Workflow provides an interesting activity called the
ConditionedActivityGroup, often referred to as CAG. It contains a group of activities (or activity sequences) that are executed based on the defined conditions. There are three important rules to understand when using a CAG:
There is an
UntilCondition for the group. The child activities are executed, simultaneously, as long as the
UntilCondition is false. If there is no UntilCondition, the CAG will execute until no children are executing.
There is a
WhenCondition for each child activity (or activity sequence). The child activity is executed repeatedly as long as its
WhenCondition is true. If there is no
WhenCondition, the activity is executed once. ...