# Grouping Nodes in Your Business Process

You can create a group from one or more nodes or other groups. You can simplify the display of your business process in the Design View, by collapsing a group of nodes into a single node. A group can provide an extra level of exception handling logic—exception handlers that you specify for a group catch exceptions that are not handled by exception handlers defined for nodes inside the group.

You can specify groups of nodes in a business process. Also, some business process nodes are implicit groups—Client Request with Return, Decision, For Each, Do While, While Do, Parallel, Switch and Event Choice. Groups that represent these nodes and groups defined by you have the same characteristics.

This section describes how to work with groups in your business processes. It includes the following topics:

- To Create Groups—Alternative 1
- To Create Groups—Alternative 2
- To Delete, Ungroup, Collapse, or Expand Groups
- To Activate Exception, Message, and Timeout Paths for Groups

To Create Groups—Alternative 1

1. In the Design View, shift-click on the nodes you want to group to select them or click and drag your mouse around the nodes you want to group.
2. Right-click one of the selected nodes and select Group Selected from the drop-down menu.

The specified nodes are grouped inside a collapsible box in the Design View.

You can name the group by double-clicking the default name (Group) and entering the name you want to assign.

Note: If you select a set of nodes and right-click to display the drop-down menu, the Group Select command is unavailable if the grouping of these nodes would create an invalid business process.

To Create Groups—Alternative 2

1. In the Design View, drag and drop Group from the Palette onto the business process, placing it on the business process at the point at which you want to create a group.

An empty Group is created in the business process.

2. Drag and drop nodes from the Palette that you want to add to the group onto the business process, placing them within the group.

To Delete, Ungroup, Collapse, or Expand Groups

1. Click the outline or label (name) of a group to select it.
2. Right-click to display the drop-down menu.

- To collapse the group into a single entity, select Collapse. The group is collapsed.

- To expand the representation of the group again, right-click the collapsed group, select Expand.
- To undo the grouping of the node, select Ungroup.

Note: You must first expand a collapsed group to ungroup it.

Collapsing simplifies the view of your business process in the Design View.

You can also toggle between collapsed and expanded groups by clicking or in the upper left-hand corner of the group.

- Select Delete to delete the group.

Warning: When you delete a group, you delete all the contents of that group.

To Activate Exception, Message, and Timeout Paths for Groups

Activate an exception, a message, or a timeout path for a group of nodes in the following way:

1. In the Design View, click the outline of the group to select it.
2. Right-click and select Add Exception Path, Add Message Path, or Add Timeout Path from the drop-down menu.

- The following graphic associated with a group indicates that an exception handling path is activated for the group:

For more information about exception paths and how to configure them, see Handling Exceptions. To learn about the settings in the Property Editor, see Creating Exception Handler Paths.

- The following graphic associated with a group indicates that a message path is activated for the group:

For information about how to configure your message path, see Adding Message Paths.

- The following graphic associated with a group indicates that an Timeout path is activated for the group:

For information about how to configure your timeout path, see Adding Timeout Paths.

You can add business process nodes to the paths shown in the preceding figure, as required to define the exception handling logic.

Related Topics

Handling Exceptions

Adding Message Paths

Adding Timeout Paths

Each of the nodes described in the following topics is implicitly a group of nodes:

Defining Conditions For Branching (Decision nodes)

Creating Case Statements (Switch nodes)

Receiving Multiple Events (Event Choice nodes)

Creating Looping Logic (While Do and Do While nodes)

Looping Through Items in a List (For Each nodes)