Failure Arrow

Description

The Failure flow control arrow is color coded red. It stems from a parent object (e.g., Conditions, Sub-Workflows, Tasks, Processes) in a workflow and proceeds only if the parent object fails. It is normally used to modify the path of a workflow in the result of task failure and, for instance, link to an alternate task that corrects the issue encountered by the failed task. See Flow Control Arrows for more details.

Example 1

Flow control arrows allow conditional branching to take place by determining a workflow’s progress depending on specific events or conditions that transpire. The sample workflow below illustrates exception handling by way of conditional branching at its simplest form. A workflow executes along the path of any arrow containing the value equaling that of the previous object. Therefore, if Task1 completes successfully, execution follows the path containing the Success (green) arrow and runs Task 2 on Agent 2. If Task1 fails, execution follows the path containing the Failure (red) arrow and runs Task 3 on Agent 3 instead.

Example 2

Another scenario would be to execute two or more tasks simultaneously in the event of a failure. As shown in the example below, if Task 1 is successful, the workflow executes along the path of the Success arrow and runs Task2. However, if it fails, execution follows both of the Failure arrows that are assigned. Both failure tasks will execute simultaneously.

Example 3

Along with a Result Arrow, an Evaluation object can also be followed by a Failure arrow. This is because Evaluation objects treat a true result as a success and a false result as a failure. As shown in the example below, the Evaluation object evaluates 5=5, which is, of course true. Therefore, it follows the Success arrow which runs Task 1 on Agent 1.

Additional Notes

There are some basic practices to follow when using arrows to link from one object to another:

See Also


Flow Control Arrows | Failure Arrow | Success Arrow | Result Arrow | Evaluation Object | Wait Object | Workflow Logic