CopyToRequirementFields (For Requirements)
The CopyToRequirementFields business rule is attached to Policy, Client and Policy-Client level Requirements. This rule updates the Requirement to which it is attached and no other Requirements. The PreviousStatusCode field value on this Requirement can be updated by this rule.
The CopyToRequirementFields business rule processes during execution of the <Rule> element configured under the Requirement's Definition rule.
| Element | Attributes | Parent Element | Description | Element / Attribute Values |
|---|---|---|---|---|
| <CopyToRequirementFields> | This is the root element for the rule. | |||
| <Fields> | <CopyToRequirementFields> |
Required: This element's structure defines one or more fields or data columns to update and the data source of their updated values. |
||
| <Field> | <Fields> |
Required, Repeatable: This element defines a single field or data column to update and the data source of its updated value. The element is repeated to update multiple fields or data columns. |
||
| <From> | <Field> |
Required: This element provides a single updated value for the field or data column. |
|
|
| <To> | <Field> |
Required: This element provides the field name to update. |
|
|
| <OptionText> | <Field> |
Optional: This element provides a single value for the field's option text. This applies to combo and radio fields only. The value of a combo and radio field is not the same as its visible text. Option text provides the visible text associated to this field's value. |
|
XML Example
<CopyToRequirementFields>
<Fields>
<Field>
<From>[variable | requirement field]</From>
<To>[field name]</To>
<OptionText>[variable | requirement field]</OptionText>
</Field>
<Field>...</Field>
</Fields>
</CopyToRequirementFields>
XML Schema
<CopyToRequirementFields>
<Fields>
<Field>
<From>CloseDateMV</From>
<To>CloseDate</To>
</Field>
</Fields>
</CopyToRequirementFields>