GroupCustomer Copy Function
The AsFile enhancement provides an ability in OIPA to invoke copy function and create a new GroupCustomer from the existing one. In order to invoke copy function, AsFile XMLDATA section should be configured to call the newly supported class "com.adminserver.pas.webservice.bll.AsFilePostInsertCopyGroupCustomerBll" under <PostInsert> element.
Prerequisites
A GroupCustomer should exist with under Prototype Primary company with ALLOWEDTOCOPY = "Yes".
New Items
AsFile:
AsFile is enhanced to invoke the Group Customer Copy function by calling the "com.adminserver.pas.webservice.bll.AsFilePostInsertCopyGroupCustomerBll" class under post insert element.
Changes to Existing Items
N/A
Configuration Details
AsFile:
- CopyGroupCustomer AsFile should be configured at "Prototype" company level with "CGC" as file ID.
- XMLDATA section should be configured to to invoke Group Customer Copy function by calling class "com.adminserver.pas.webservice.bll.AsFilePostInsertCopyGroupCustomerBll" under post insert element.
XMLDATA:
<?xml version="1.0" encoding="UTF-8"?>
<File>
<AssignAttributes>
<Attribute NAME="CustomerNumber" TYPE="XPATH">/CopyGroupCustomer/CustomerNumber</Attribute>
<Attribute NAME="GroupCustomerGuid" TYPE="SQL">select GroupCustomerGuid from asgroupcustomer where CustomerNumber = '[CustomerNumber]'</Attribute>
<Attribute NAME="GroupCustomerClientGuid" TYPE="SQL">select ClientGuid from asgroupcustomer where CustomerNumber = '[CustomerNumber]'</Attribute>
<Attribute NAME="EffectiveDate" TYPE="XPATH">/CopyGroupCustomer/EffectiveDate</Attribute>
<Attribute NAME="AsOfDate" TYPE="XPATH">/CopyGroupCustomer/AsOfDate</Attribute>
<Attribute NAME="Plan" TYPE="XPATH">/CopyGroupCustomer/Exclusions/Plan</Attribute>
<Attribute NAME="ClassGroup" TYPE="XPATH">/CopyGroupCustomer/Exclusions/ClassGroup</Attribute>
<!--Attribute NAME="ExclusionMap" TYPE="SQLMAP">select '0D4ACBD3-DC74-4C95-AD95-2F85F1658ECA' EntityGuid, shortdescription EntityName from AsCode where ascode.codename='AsCodeCopyEntityType' and codevalue='AGREEMENT'</Attribute-->
<Attribute NAME="ExclusionMap" TYPE="SQLMAP"/>
<Attribute NAME="ClientNumber" TYPE="VALUE">qatester3</Attribute>
</AssignAttributes>
<PostInsert>
<Object class="com.adminserver.pas.webservice.bll.AsFilePostInsertCopyGroupCustomerBll">
<Parameters>
<Parameter NAME="GroupCustomerGuid">GroupCustomerGuid</Parameter>
<Parameter NAME="EffectiveDate">EffectiveDate</Parameter>
<Parameter NAME="AsOfDate">AsOfDate</Parameter>
<Parameter NAME="ExclusionMap">ExclusionMap</Parameter>
<Parameter NAME="ClientNumber">ClientNumber</Parameter>
</Parameters>
</Object>
</PostInsert>
</File>
XSLT:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:helper="com.adminserver.webservice.helper.XsltFunctionHelper" extension-element-prefixes="helper" version="2.0">
<xsl:template match="CopyGroupCustomer">
<xsl:element name="AsXml"/>
</xsl:template>
</xsl:stylesheet>