Step 8: Optionally, Group Activities As Needed

Groups are used to specify related sets of activities. Grouping allows you to create loops. The main uses of groups are the following:

  • Create a set of activities with only one condition for the group. This allows you to catch any error that occurs inside of the group, instead of trying to individually catch errors on each activity. This type of group is similar to a try...catch block in Java.

  • Create sets of activities that are to be repeated. You can repeat the activities once for each item in a list, until a condition is true, or if an error occurs.

  • Create sets of activities that participate in a transaction. Activities within the group that can take part in a transaction are processed together or rolled back, depending upon whether the transaction commits or rolls back.