A decision group can have a formula but there are a couple of differences between the formulas for a decision and a decision group.
1.The formula for a decision group determines whether or not its children are executed. The data type of a decision group formula is always boolean. The data type of a decision's formula is determined by the data type of its context.
2.The value returned by a decision's formula can be used to update the value of its context node. The value returned by a decision group's formula is never used to update a schema node.
Notes |
•If the group's context is a repeating node then the group's formula will be executed for each instance of the node that is processed by the group. This formula for example only executes the group's decisions for female named drivers. It is executed for each NamedDriver node in the xml file if the group's Action is Update:
•The value returned by the formula is only used to determine whether or not to execute the group's children. It is not used to determine whether or not the group's action will be taken. If the group's Action is Create then a new instance of the group's context node will be created even if the group's formula returns False. |

Figure 3-13(a) Decision group formula with data type boolean for a context node with data type string.