ReinstateProgram
The ReinstateProgram attached business rule is used to reinstate a program from a Suspend status. It refers to the ProgramDefinition rule to identify the reinstatement activity to create based on program and prior program status. This rule is entered in the Transaction Business Rule Packet.
Element/Tag | Attribute | Definition | Element/Attribute Value and Description |
---|---|---|---|
<ReinstateProgram> |
|
The opening and closing tags of this rule. |
|
<Program>
|
Required element |
||
PROGRAMGUID |
Required attribute when <From> element is used. Identifies a single program for update. Not used with <FromCollection>. |
||
<Tests> |
Optional element Allows for further definition of the program fields that may be updated. |
||
<Test> |
Repeatable element A conditional statement that tests a MathVariable or Field against another MathVariable, Field, or literal value. |
String: | |
<Fields> |
Required element Common field definition. See Fields Element. |
||
<Field> |
Required, repeatable element (if Fields element is present)
The opening and closing tag that encompasses <From> and <To> elements. |
||
<From> |
Required element value Name of the Program source field data is being copied from. Cannot be used if <FromCollection> is used. |
Program: field name |
|
<FromCollection> |
Required element value: Identifies the collection from which data is copied. Cannot be used if <From> is used. |
MathVariable of variable type Collection. |
|
<To> |
Required element value: Name of Program field data is being copied to. |
XML Example
<ReinstateProgram>
<Program>
<Fields>
<Field>
<FromCollection>NextBusinessDayCollection</FromCollection>
<To>EffectiveDate</To>
</Field>
</Fields>
</Program>
</ReinstateProgram>
XML Schema
Use of <FromCollection> to update multiple programs
<ReinstateProgram>
<Program>
<Tests>
<Test>conditional statement</Test>
</Tests>
<Fields>
<Field>
<FromCollection>[math variable]</FromCollection>
<To>[field name]</To>
</Field>
</Fields>
</Program>
<ReinstateProgram>
Use of <From> to update a single program
<ReinstateProgram>
<Program PROGRAMGUID="">
<Tests>
<Test>conditional statement</Test>
</Tests>
<Fields>
<Field>
<From>[activity field|math variable]</From>
<To>[field name]</To>
</Field>
</Fields>
</Program>
</ReinstateProgram>