CopyToClassGroupFields

This business rule is used to copy values from one or more activity fields to one or more class group fields. The values that are copied to class group fields will be written to the corresponding columns of the AsClassGroup or AsClassGroupField database table.

This business rule can copy data of the following types:

In addition to the field's value, CURRENCY data will have its FLOATVALUE and CURRENCYCODE copied. When TEXT data is copied to fields with DataType COMBO or RADIO, the OPTIONTEXT and OPTIONTEXTFLAG will also be copied.

This business rule will only work in the context of the specific group customer to which it belongs.

When this business rule is attached to a transaction, it will also need to be added to the corresponding TransactionBusinessRulePacket business rule.

CopyToClassGroupFields Elements/Attributes
Element/Tag Attribute Definition Element/Attribute Value and Description

<CopyToClassGroupFields>

 

The opening and closing tags of this rule.

 
CLASSGROUPGUID

Optional attribute:

Provides the CLASSGROUPGUID of the class group that will be updated.

Note: This attribute and the <FromCollection> element are mutually exclusive, but it is required that one of the two be used.

A MathVariable that resolves to the desired CLASSGROUPGUID
<Tests>  

Optional element:

The opening and closing tags of the Test section.

 
<Test>  

Required, repeatable element:

Defines conditions for the copying of field data. When the test expressions are true, the data will be copied.

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 field data to be copied.

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>   Required element:

The opening and closing tags of the Fields section.

 
<Field>   Required, repeatable element:

The opening and closing tags for the configuration defining a single field whose data is to be copied.

 
<FromCollection>   Optional element:

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

Note: This element and the CLASSGROUPGUID attribute are mutually exclusive, but it is required that one of the two be used. This element and the <From> element are also mutually exclusive.

A MathVariable that resolves to a key-value pair, where the key is a CLASSGROUPGUID and the value is a supported value for the field defined in the <To> element.
<From>   Optional element:

Identifies the source of the data that will updated the field defined in the <To> element.

Note: This element and the <FromCollection> element are mutually exclusive. Therefore, if the CLASSGROUPGUID attribute is used, this element is required.

An activity field name, or a MathVariable that resolves to an activity field name.
<To>  

Required element:

Identifies the field to be updated.

Any fixed field store in AsClassGroup or any dynamic field stored in AsClassGroupField.

<MultiFields>   Optional, repeatable element: Defines the multifields to be updated/inserted  
  Note: The system will validate named "To" fields against the field name in the MultiField rule in the ClassGroupScreen rule for the type code of the specified ClassGroupGUID.
  NAME Required: Specifies the named section of the related entity's Multifield rule. Literal name
  END Required: Specifies the total number of instances of multifields for the named section of the related entity's Multifield rule. If NAME is omitted or does not exist in the MultiField rule, all the fields in the MultiField rule will be repeated for "END" number of times. Literal Integer or Integer Math Variable
<Field>   Optional, repeatable element: Contains the instructions for the specified "To" field. This element (and sub elements) may be omitted if the default field values are desired.  
<FromIndexCollection>   Required: A collection of index/value pairs for the target fields. Indices must be unique integers Math variable collection of index/values.
<To>   Required: The target named field in the entity multifield rule Literal field name

XML Schema Using CLASSGROUPGUID

<CopyToClassGroupFields CLASSGROUPGUID="[MathVariable]">
<Tests>
<Test TYPE="EXPRESSION">[Test expression]</Test>
</Tests>
<Fields>
<Field>
<From>[Activity field name or MathVariable]</From>
<To>[Field name]</To>
</Field>
</Fields>
<Multifields>
<Field>
<From></From>
<To></To>
</Field>
</MultiFields>
</CopyToClassGroupFields>

XML Schema Using <FromCollection>

<CopyToClassGroupFields>
<Tests>
<Test TYPE="EXPRESSION">[Test expression]</Test>
</Tests>
<Fields>
<Field>
<FromCollection>[MathVariable]</FromCollection>
<To>[Field name]</To>
</Field>
</Fields>
</CopyToClassGroupFields>

 

 

 

 

Oracle Insurance Logo Copyright © 2017, Oracle and/or its affiliates. All rights reserved. About Oracle Insurance | Contact Us