Appearance
Expect
The expect task is used to validate the logical integrity of a workflow. For the expect task to succeed, a set of rules that relate to the state of a tasks must all evaluate to true.

In the example above, Task_1 will have to succeed and Task_2 will have to have never executed for the expect task to succeed.
Individual rules can be edited by adding a row to editing an existing row.

Condition
If specified, a Javascript expression provided in the Condition field is also executed and must evaluate to true. When a condition is evaluated a special variable status is set to the exit status of the task being tested.
Testing a Workflow
Here at Xona, we use the expect task to test the workflow manager. We run a set of tasks designed to test certain features then use the expect task to validate that they worked correctly. You can do the same with your workflows to provide an additional layer of validation.