SpawnActivities
This business rule can be attached to a requirement in order to spawn an activity from the requirement.
Element/Tag | Definition | Attribute | Element/Attribute Value and Description |
---|---|---|---|
<SpawnActivities> |
Required element: The opening and closing tag for the business rule. |
||
<Spawn> | Required element:
This element defines the conditions used to trigger the addition of an activity, the activity that should be spawned and the fields that should be added to the spawned activity. |
||
<Tests> | Optional element:
The container element for the test expression configuration. |
Note: when multiple <Test> elements are configured, it is expected that all Test elements resolve to TRUE for the overall <Tests> to be considered TRUE (logical AND operation) and the other parts of the configuration in relation to <Tests> element is executed |
|
<Test> | Required, repeatable element:
This element defines an expression that, if it resolves to true, will invoke the remainder of the rule's configuration. Note: This element is required if the <Tests> element is present. |
An expression that, if it resolves to true, will invoke the remainder of the rule's configuration. This expression should resolve to a Boolean value. | |
<Transaction> |
Required element: This element defines the activity to be spawned. |
The name of the activity to be spawned. | |
SPAWNCODE |
Required attribute: This attribute should contain a valid spawn code. Spawn codes are defined in the AsCodeSpawn code name. |
||
<Fields> |
Required element: This is the container element for the field section of configuration.
|
||
<Field> |
Required element: This element identifies and defines the spawned activity's fields and the values with which they should be populated. |
||
<From> |
Required element: This element defines the value of the Activity Field or MathVariable passed to the spawned activity. |
The name of the activity field whose value is to be passed to the field specified in the <To> element. The value of this element can also be a MathVariable whose value resolves to the name of the desired field. | |
<To> |
Required element: This element defines the field to be populated in the spawned activity. |
The name of the field to be populated. |
XML Example
<SpawnActivities>
<Spawn>
<Tests>
<Test>'01'= '01'</Test>
</Tests>
<Transaction SPAWNCODE="01">ReinsuranceAcceptance</Transaction>
<Fields>
<Field>
<From>Company</From>
<To>Company</To>
</Field>
</Fields>
</Spawn>
</SpawnActivities>