If..Then activity

The If..Then activity tests the Where expression in the If branches to determine what branch of the If..Then activity to run.

About this task

By default, each If..Then activity includes an If branch and an Else branch. You can add if additional branches to an If..Then activity.

When the Where expression in the If branch is equal to true, processing proceeds down that If branch of the orchestration. If an If..Then activity contains multiple If branches, the Where expressions in the If branches are tested in sequential order. When none of the Where expressions in the If branches are satisfied, processing proceeds down the Else branch.

You also have the option of copying a branch or Else branch from another If..Then activity.

To use an If..Then activity complete the following steps:

Procedure
  1. Open the Activities tab and the Logic folder.
  2. Drag the If..Then activity onto the orchestration.
  3. Add more If branches as required.
  4. Configure the If and Else branches.

Configure an IF branch

  1. Select the If branch. The Expression Builder opens.
  2. Define conditions for the branch.
  3. Drag an activity from the Activities tab onto the empty placeholder.

Configuring an Else branch

  1. Drag an activity from the Activities tab onto the empty placeholder.

Copying and pasting If nodes

  1. Click the If branch and select Copy from the list.
  2. Click on the If..Then activity in the orchestration and select Paste from the list.
    Note: If and Else branches cannot be pasted outside of an If..Then activity. You cannot replace an If branch with an Else branch.

Copying and pasting Else nodes

Else branches can be pasted into a If..Then activity only if the If..Then activity does not already contain an Else branch.

  1. Click the Else branch and select Copy from the list.
  2. Click the If..Then activity and select Paste from the list.

Adding branches

  1. Click the If..Then activity and select Add If.
  2. Define the conditions and the activities for the branch.

Editing an activity or branch

  1. Select the activity or branch to edit existing properties.
  2. Select Edit from the list.

Deleting an activity or branch

  1. Select the activity or branch to edit existing properties.
  2. Select Delete from the list.
    Note: If you delete a condition branch, all activities within the condition branch are also deleted.



Feedback | Notices


Timestamp icon Last updated: Tuesday, 27 September 2016


https://www.ibm.com/support/knowledgecenter/en/SS3LC4_7.5.3/com.ibm.wci.doc/orch_Switch_Activity.html