- 21 Nov 2024
- 3 Minutes to read
- Print
- DarkLight
- PDF
Configuring an Action Condition
- Updated on 21 Nov 2024
- 3 Minutes to read
- Print
- DarkLight
- PDF
You can configure the Action Condition node that you added under an Action node to determine how to proceed in the Workflow based on the action results.
You can configure the Action Condition node with one or both of the following types of Action Conditions:
Adding a Condition Based on Action Result
In the Actions Conditions pane, you can configure the Action Condition to be based on the action's success or failure. In this case, the Workflow proceeds on the True and False branches, according to the action result, as follows:
- The True branch if the Action Condition checks for action failure and the action failed or if the Action Condition checks for action success and the action succeeded.
- The False branch if the Action Condition checks for action failure and the action succeeded or if the Action Condition checks for action success and the action failed.
To add an Action condition based on action result to the Workflow
In the Action Conditions pane, select Condition based on action result.
From the dropdown, select Success or Failure. Success or Failure appears in the Action Conditions box.
At the end of the False branch, hover over the + icon and add one or more of the following to run if the outcome of the action does not match the action condition (success or failure)
- Click to add an Event node, and then select and configure an Event.
- Click to add an Action node, and then select and configure an Action.
- Click to add an ELSE IF condition to the workflow to run if the outcome of the action does not match the action condition (success or failure).
- Click to add a delay to the workflow. Configure the Delay node.
At the end of the True branch, hover over the + icon and add one or more of the following to run if the outcome of the action matches the action condition (success or failure):
- Click to add an Event node, and then select and configure an Event.
- Click to add an Action node, and then select and configure an Action.
- Click to add a delay to the workflow. Configure the Delay node.
Adding a Condition Based on Asset Criteria
You can add an action condition based on one or more asset criteria by creating a query using the Query Wizard or by using an existing query, by creating a query using the Query Wizard or by using an existing query, and then proceed in the Workflow accordingly.
An action based on Asset criteria checks if the asset resolved from the above action matches the query criteria. For example, checks if the resolved Device asset has an Asset Unique ID containing a certain number (query).
To add a condition based on asset criteria
- Under the Condition based on asset criteria section, create a query using the Query Wizard or use an existing query, to check if the resolved asset matches the query criteria.
- To add an additional condition based on asset criteria, click + and continue as in step 1.
In the following example, the Workflow checks that the user resolved from the above action has an Asset Unique ID containing 99.
The following example uses an existing query to check that the user resolved from the above action is a non-admin user.
To clear an asset criteria
- Hover over the criteria, and click the x. The criteria values are cleared.
For more information about working with Workflows, refer to the following:
Viewing and Configuring Workflows Events Settings
Selecting and Configuring the Workflow Trigger
Selecting and Configuring a Workflow Event
Configuring an Event Condition
Selecting and Configuring a Workflow Action
Configuring an Action Condition
Deleting and Deactivating/Activating Workflows