These tasks let a Business Process branch, loop, and manage failures based on conditions, rather than running as a single straight-line sequence:
- If/Then/Else – Runs one set of tasks if a condition is true, and a different set if it's false.
- For Each – Repeats a task (or set of tasks) once for every item in a list.
- Do While – Runs a task first, then keeps repeating it as long as a condition stays true (guarantees at least one execution).
- While Do – Checks the condition first, and only runs the task if it's true — so it may never execute.
- Force Step Failure – Deliberately fails the enclosing step (with an optional custom message), typically used inside a control structure to halt processing when something goes wrong.
Together, these give BP designers the tools to add conditional logic, iteration, and controlled error handling to their integration workflows.
If/Then/Else (Control Structures)
If a given condition is true, a specified task(s) will be executed in the “then” block. If the given condition is false, the specified task(s) will be executed in the “else” block. In the example below, different Business Processes will execute based on the result of the initial “If” statement.

For each (Control Structures)
For each item in a list, a specified task is executed. This includes multiple tasks.
Do while (Control Structures)
Executes tasks while a specified condition is true. Tasks are executed before the condition is checked. The specified task is executed before the condition is checked. This means that the specified task is always executed at least one time. Then the condition is checked. If the condition is true, then it executes again (then the condition is checked again). And so on.
While do (Control Structures)
While a specified condition is true, a specified task is executed. The condition is initially checked before the given task is executed. This means that the condition is checked first before the task is performed. If the condition isn't immediately true, then the task is never executed.
Force step failure
This task can be used within a control structure task to force the entire step that it is contained within to fail.
| Parameter | Type | Description |
|---|---|---|
| Message | String | An optional error message to display when the task executes. |
For example, in the Business Process below the Force Step Failure task has been included within a While Do task. If the ReadLocationsFA (File Adapter) is not read for some reason, then the entire step will fail and an error message will appear in the Auditor.

Comments
0 comments
Please sign in to leave a comment.