CopyToCommissionDetailFields

This is a standard CopyTo business rule which can be used to update the Non-System fixed fields and the dynamic fields (with the exception of StatusCode). This rule support collections. A Commission record can be updated,

  • by the exact client or policy that created the claim.
  • by a transaction at Policy level to which the segment is linked.
  • by a Plan level activity of the plan to which the Policy belongs or the Company level activity of the company to which the Plan belongs.
CopyToCommissionDetailFields: Elements and Attributes
Element/Tag Attributes Parent Element Description Element/Attribute Values
<CopyToCommissionDetailFields>

 

  Required element:The root element for CopyToCommissionField Business Rule.  
  COMMISSIONDETAILGUID   A MathVariable containing a list of COMMISSIONDETAILGUID for the commission record that will be changed by this rule.  
<Tests>   <CopyToCommissionDetailFields> Optional element: The opening and closing tags of the Test section.  
<Test>   <Tests>

Required and repeatable element: Defines conditions for the generating the Commission record. When the test expressions are true, the record will be created. Test expressions support all logical operators. Context variables and MathVariables are also available for reference When multiple <Test> elements are present, all of the expressions must be true for the record to be created.

A conditional expression

  TYPE  

Required attribute: Specifies the method by which the test will execute. EXPRESSION is the only supported value for this attribute.

Expression
<Fields>   <CopyToCommissionDetailFields> Required element  
<Field>   <Fields> Required and repeatable element  
<FromCollection>    

Required if From is not used. This is mutually exclusive with the usage of From .Defines a collection MathVariable that is the source of the data with which to update.

Key is a CommissionDetailGUID that identifies the specific commission that is updated.

Value is the value to which the field will be updated.

<From>   <Field> Required: This is required only when FromCollection is not used. This is mutually exclusive with the From element, which specifies the MathVariable from which the data should be copied.  
<To>   <Field>

Defines the target field for the update.

The name of the field on the CommissionDetail Screen (both fixed and dynamic fields) to which the value should be copied.

<OptionTextCollection>

   

Optional element:

Specifies a collection of key-value pairs, where the key is an Entity GUID and the value is a supported value for the OPTIONTEXT for field defined in the <To> element.

This element can only be paired with the <FromCollection> element.

Note: This element and the <OptionText> element are mutually exclusive. This element is also mutually exclusive with the <From> element.

MathVariable
<OptionText>   <Field>

Optional element:

Identifies the source of the data that will update the OptionText for the field defined in the <To> element.

Note: This element and the <OptionTextCollection> element are mutually exclusive.

MathVariable

XML Schema Using <FromCollection>

<CopyToCommissionDetailFields>
<Tests>
<Test TYPE="EXPRESSION">CopyMV = TrueMV</Test>
<Tests>
<Fields>
<Field>
<FromCollection>AmountCollectionMV</FromCollection>
<To>Amount</To>
<OptionTextCollection>AmountCollectionMVOptionText</OptionTextCollection>
</Field>
</Fields>
</CopyToCommissionDetailFields>

XML Schema using COMMISSIONDETAILGUID

<CopyToCommissionDetailFields COMMISSIONDETAILGUID="CommissionDetailGUIDMV" >
<Tests>
<Test TYPE="EXPRESSION">CopyMV = TrueMV</Test>
<Tests>
<Fields>
<Field>
<From>AmountMV</From>
<To>Amount</To>
<OptionText>AmountOptionText</OptionText>
</Field>
</Fields>
</CopyToCommissionDetailFields>

XML Example using COMMISSIONDETAILGUID

<CopyToCommissionDetailFields COMMISSIONDETAILGUID="CommissionDetailGUIDMV">
<Tests>
<Test TYPE="EXPRESSION">YesBooleanMV = 'True'</Test>
</Tests>
<Fields>
<Field>
<From>RadioField</From>
<To>RadioField</To>
<OptionText>RadioFieldM</OptionText>
</Field>
<Field>
<From>ComboSQL</From>
<To>ComboSQL</To>
<OptionText>ComboSQLM</OptionText>
</Field>
<Field>
<From>Activity:ComboField</From>
<To>ComboField</To>
<OptionText>ComboFieldM</OptionText>
</Field>
<Field>
<From>Activity:RadioField2</From>
<To>RadioField2</To>
<OptionText>RadioField2M</OptionText>
</Field>
</Fields>
</CopyToCommissionDetailFields>