CopyToProgramFields
The CopyToProgramFields business rule is used to update program fields. The update capability of the rule is restricted to dynamic program fields; fixed program fields and program status cannot be updated from this rule. Configuration will allow option text value updates connected to combo box and radio button fields.
The rule is attached to a program transaction only. Program transactions are the transactions associated to Program Actions in the ProgramDefinition rule. These transactions include a "IsProgram" variable that can be used in this rule's conditions.
| Elements | Attributes | Parent Element | Description | Element / Attribute Values |
|---|---|---|---|---|
| <CopyToProgramFields> | This is the root element of the rule. | |||
| <Tests> | <CopyToProgramFields> |
Optional: This element provides one or more conditions that, when all evaluate to true, allows the processing of the remainder of the parent element's configuration. |
||
| <Test> | <Tests> |
Required: This element provides a single condition. It is repeated to provide multiple conditions. |
|
|
| <Fields> | <CopyToProgramFields> |
Required: See Fields Element article under the Common Elements topic. This rule cannot update the fields of multiple Programs through the <FromCollection> element. |
||
| <Field> | <Fields> |
Required, Repeatable: See the Fields element in the Fields Element article under the Common Elements topic. Fields with datatype of combo and radio can have the field's option text updated.
|
XML Schema
<CopyToProgramFields>
<Tests>
<Test>[condition]</Test>
<Test>...</Test>
</Tests>
<Fields>
<Field>...</Field>
<Field>...</Field>
</Fields>
</CopyToProgramFields>
XML Example
<CopyToProgramFields>
<Tests>
<Test>IsProgram = 'true'</Test>
</Tests>
<Fields>
<Field>
<From>NextAnnuityPayoutBusinessDateMV</From>
<To>NextPayoutDate</To>
</Field>
</Fields>
</CopyToProgramFields>