You can use groups to conditionally execute business logic. The If group allows you to specify a set of conditions that are evaluated in order. The following is an example of conditional execution using an If group.
The transitions from the start of the If group specify the conditions to be evaluated. Each transition is numbered and evaluated in order. The first condition to evaluate to true determines which execution path to take in the group. All other conditions are ignored once one evaluates to true. An "otherwise" condition can be specified to handle the case when no other conditions evaluate to true. If no conditions evaluate to true, and no otherwise condition is specified, the activities in the group are not executed and processing continues with the first transition after the group.
The example If group illustrates an orchestration process that receives a shipping request. A check is made to determine the current shipping rates and timetables for the vendors. A formula is used in the conditions to evaluate each vendor’s price to shipping time ratio with the corporate standard. The first vendor whose ratio evaluates to lower than the corporate standard is used.