# Designing While Node Groups

To create logic for your While group, you must complete the following steps:

- Design the Condition Logic
- Add Activities to the Paths in Your While group

Design the Condition Logic

Double-click in the While group you want to design the condition logic for.

The node builder is displayed. It allows you to create the condition or conditions that are evaluated at run time by the business process.

Note: The node builder in which you create the conditions for looping is the same as that in which you create conditions on Decision groups. To learn how to design the condition logic for the While group, see To Design the Condition Logic in Defining Conditions For Branching.

Add Activities to the Paths in Your While group

After you define the condition that is evaluated in your While loop at run time, you are ready to define the actions on the loop. To do so, add a node (or nodes) to the path in the While loop. You can add any nodes that perform the activities appropriate for the business logic that you require at this point in your business process.

When you complete the addition of activities on the group, your looping logic is represented by a condition or conditions and a series of business process nodes in the While loop.

You can view and edit the properties of your While group by clicking the outline of the group to select it, then viewing the group properties in the Property Editor.

For any group of nodes in your business process, including While groups, you can collapse the group to save space on the Design View canvas. Collapsed groups appear in the Design View as shown in the following figure:

To expand the group, click .

Related Topics

Defining Conditions For Branching

Looping Through Items in a List

Grouping Nodes in Your Business Process

Handling Exceptions

Adding Message Paths

Adding Timeout Paths