Conditions

最終更新日 : Jun 12, 2024 |

You can use the Conditions task for making business logic decisions and branching the execution path of your workflow.

If you have several conditions configured, Orchestration evaluates the conditions from top to bottom and exits the task at the first matching condition.

All Conditions tasks have a default output to use if the set conditions are not met or there is an error. You cannot edit or delete the default output. The default output is always placed at the bottom of the Outputs section regardless of the outputs that you add.

You can view the variables used in the evaluated conditions of the Conditions task for an instance from the Instances tab in Orchestration Manager. You can also view the current state of all the available variables.

This task is available to only Administrator users.

Outputs

In the Outputs section, you can add conditions to determine the workflow. Orchestration selects an output based on the evaluated conditions. If there are no matching conditions or there is an error, Orchestration uses the default output. You cannot edit or delete the default output.

When creating a new output, click Add Output and complete the following fields:

Field

Description

Output Label

The unique output name that you can see in the list of task outputs. You can connect this output with the next task in the workflow.

Choose output condition

Output conditions based on logic values. Click Add Logic and in the Add Conditional Logic field, type the conditional expression that triggers the output.

To use a variable in your expression, click the field and select the required variable from the list.

For example, cache.startEvent.queue.queueId=='12345', where cache.startEvent.queue.queueId is the ID of the customer queue.

For example, if you added a testVar variable as a cache variable, you can configure the following condition to use a particular output if the HTTP status code is 200 OK: cache.testVar == 200.

To change the order of outputs, click the Reordering icon and drag the output to the required position. Orchestration checks configured conditions in a descending order. When one of the conditions is met, Orchestration does not check the subsequent conditions. Order the conditions considering their priority.

The default output is always placed at the bottom of the Outputs section.