Adding multiple condition blocks
IBM® webMethods Integration also allows you to set multiple condition blocks. When you add multiple condition blocks, they work like the OR condition. This means that all filter conditions set for at least one condition block must be met, for the workflow execution to proceed.
Let's understand this by modifying the first example.
Let's say, each time a new card is created in a specific list in Trello, you want to send its details to a specific recipient via Gmail if:
- The card is created by a user named, 'John Doe'
OR
- The card name contains the words, 'approval required'.
To do this, first repeat steps 1-5 from the first example. Once this is done, click on the Add Condition button to add second condition block and then click on the Add Filter button to set up a filter condition in it.
Since we want to check whether the card is created by a user named John Doe, set the filter condition in as given below:
Input: Add memberCreator_fullName key listed under Trigger Data - New Card 'action' object on the left side of the screen in the Input field. This key contains the name of the card creator.
Condition: Select (Text) Exactly Matches condition from the drop down list.
Expected: Enter 'John Doe' as an input for this field.
Once you have set up the second condition block, click Done, and Save the workflow.
After this, whenever a new card is created in the list specified by you, the workflow will check if the card name contains the words 'approval required' or if the card is created by a user named 'John Doe'. If any of these conditions is met, the workflow execution will proceed, whereas if none of the conditions meet, the workflow execution will be terminated.
Now that you know how to set conditions, let us understand the various types of conditions that can be used in a workflow.