Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 6 Grouping Activities : Overview of Groups

Overview of Groups
Groups are used to specify related sets of activities. The main uses of groups are the following:
To create a set of activities that have a common error transition — similar to a try...catch block in Java. This allows you to have a set of activities with only one error-handling transition, instead of trying to individually catch errors on each activity. See No Action Groups for more information.
To create sets of activities that are executed conditionally, such as in an if ... then ... else if ... construct in a programming language.
Activities can be grouped or ungrouped. Also, groups can be maximized to display all activities in the group or minimized to show only a small icon for the whole group. This allows you to collapse and expand groups in a process definition to better display the relevant portions of the process you wish to view. Maximized groups can also be resized.
To group a set of activities, perform the following procedure:
1.
2.
3.
Choose View > Create a Group from the menu, or click the Create a group icon.
4.
5.
6.
7.
To ungroup a set of grouped activities, perform the following procedure:
1.
2.
3.
Choose View > Remove a Group from the menu, or click the Undo the group button.
To minimize or maximize the display of a group, perform the following procedure:
1.
2.
Figure 21 illustrates minimizing and maximizing a group.
Figure 21 Minimizing and maximizing groups
To resize a maximized group, perform the following procedure:
1.
2.
3.
Activity Output and Groups
Each activity in the group can access the output of previously executed activities inside or outside the group. If the group is used for a loop (iterate, repeat until true, and so on), activity output in the group is reset so that activities in subsequent iterations of the group will not have access to output data from previous iterations. Also, any loop indexes for loops contained in loops are reset when the parent loop begins a new iteration.
When a group has completed executing, output from the activities in the group is available to subsequent activities in the process definition. In the case of loop groups, only output from the last execution of the activity is available.
If you wish to store data from each successive iteration of a loop, you can create a process variable and use the Assign activity in the loop to store or alter data for each iteration. For Iterate and Repeat Until True loops, you can optionally accumulate the output of each execution of one activity in the group into a list. This list becomes the group’s output and the list is available to subsequent activities in the process definition.

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved