Creating a Next Step conditional branch in a flow

Ops Center Automator Service Builder User Guide

Version
11.0.x
Audience
anonymous
Part Number
MK-99AUT002-20

You can create a conditional branch to control the flow of steps that run depending on when a condition is met.

A Next Step conditional branch is useful for running a step in a flow based on a condition.

You specify next step conditions from the Next Steps tab when establishing the flow in a service template.


Specifying step conditions from Next Steps tab in a service template flow

The step names and conditional settings associated with any of the steps in the flow are shown:

Step Name
Name of the step for which the condition is defined.
Condition Name
Name of the conditional expression to evaluate. By default, this is the next step name.
Condition Type
Type of condition (ALWAYS, IF, OTHER) that must be met for a next step to run. When selecting [OTHER], there must be an item with a conditional expression of type [IF].
Condition
Specifies the condition using valid expressions that are applied to service properties.
Description
Gives a brief description of the condition being evaluated.

To add a Next Step condition:

  1. Drag the step to include in the conditional flow to the flow area of the window.
  2. Connect a line between the preceding step in the conditional flow and the next step to run if the condition occurs.
  3. From the Next Steps tab, click the required Condition Type (ALWAYS, IF, OTHER) from the list. If you choose ALWAYS, the step always runs normally by default. Because you must use IF and OTHER together, your only other choice is IF.
  4. Click the pencil icon to access the Specify Execution Condition dialog box where you can enter the value for the condition.
  5. Enter the condition value, then click OK. Optionally, you can also enter a description for the next step condition.
    When you finish, the condition is indicated by a conditional icon on the execution flow line arrow.
    To create a more complex conditional branching, you can use multiple Branch by Returncode Plug-ins so that one step is run when a condition is met and another step is run when the condition is not met.