Add a condition to an If/Else activity

Before you begin

Note: There can be only one condition placed on a branch of an If/Else activity, with the exception of the last branch.

Activities can be inserted at both the workflow and subprocess levels.

Procedure

  1. In the navigator, click Workflow > Workflows.
  2. In the resource list, select the workflow that you want to work with. If no workflow exists, create a new workflow.
  3. In the Displays panel, click Workflow Management > Workflow Editor.
  4. Click the Workflow Editor tab.
  5. Insert an activity:
    • At the workflow level:
      • From the Standard Activities panel, click and drag the activity you want to insert to a drop point.
        Note: Activities can exist only between the presubprocess and postsubprocess.
    • At the subprocess level:
      • Double-click the local subprocess you want to add the activity to.
      • From the Standard Activities panel, click and drag the activity you want to insert to a drop point.
  6. Click the branch you want to create the condition on.
  7. On the activity configuration panel, click Edit Condition.
    The Expression Editor dialog box appears.
  8. Enter the expression required to satisfy the If/Else condition:
    Tip: For more information, see Workflow Expressions.
    1. Click Check Syntax.
    2. Click Test.
    3. Clck Evaluate.
    4. Click Close, and then click OK.
  9. Click Save.