SBM Orchestration Guide → Orchestration Procedures → Using the Step Palette → Using the Decision Step
You use the Decision step to decide between two or more possible outcomes. This step lets you branch the flow of control based on rules. Rules are expressions, as described in About the Expression Editor.
Using the Insert New Branch command, you can add branches to the Decision step. When you select a branch, the General and Options tabs appear in the Property Editor. The General tab provides a name and an optional description for the branch. The Options tab defines the rule associated with the branch. (The default branch, named Otherwise, has no rule. It is invoked if all the other branches are false.)
Procedure Summary
Select an orchestration workflow to display it in the orchestration workflow editor.
In the New Items section of the Step Palette, drag a Decision step onto the line between the Start and End steps.
On the General tab of the Property Editor, you can change the name of the Decision step and you can also enter a description.
To add a branch, right-click the Decision step, and then select Insert New Branch on the menu.
A Branch is added above the Otherwise branch.
On the General tab of the Property Editor, you can change the name of the Branch and you can also enter a description.
On the Options tab of the Property Editor, in the Rule section, enter an expression that represents the rule for that branch. You can use any of the functions, logical operators, or arithmetic operators available on the Functions, Logical, and Operator menus, respectively.
(For more information about expressions, see About the Expression Editor.)
Add a step or steps from the Step Palette to the Branch to define the actions that should be taken or the calculations that should be performed while the rule defined for the branch is true.
Repeat the previous step to add and configure other decision branches.
Add a step or steps from the Step Palette to the Otherwise branch. You do not define a rule for this branch.
Copyright © 2007–2017 Serena Software, Inc. All rights reserved.