Approval Task Rule
The Approval Task rule allows you to trigger a workflow when an approval task is acted upon. This allows you to have one workflow generate approval tasks and another workflow handle when they are completed.
There are certain considerations when using two workflows versus using the Create Approval Request and Wait For Event activities within a single workflow:
-
The workflow that generates the approval task does not have to remain in Waiting For Event status until the task is acted upon; it can complete normally and end.
-
A single workflow can generate multiple approval tasks and the task response workflow will act on them individually as they are completed.
-
The workflow triggered by the completed task will not have access to any variables from the workflow that created the task. You need to use global variables or an external database to keep track of data between workflow instances.
Create New Approval Task Rule
Perform the following steps to create a new Approval Task rule:
-
In the General section, enter the following information:
-
Type - Approval Task Rule
-
Rule Name - A unique display name for the rule.
-
Description - Text that describes the rule, such as what it will trigger.
-
-
The toggle is switched to on by default, so when left on, the rule is enabled and the workflow can be executed. If you want to create the rule but prevent it from triggering your workflow to run, switch the Automation rule on toggle off to disable the rule. This is useful for testing and debugging purposes.
-
In the Conditions section, specify the condition or conditions that determine which tasks will trigger the workflow:
-
Property - Click the variable browser icon and choose the variable.
-
Comparison - Click the drop-down list and choose the operator.
-
Value - Click the drop-down list or enter the desired value, depending on the data type.
You can click the (Ellipsis) icon and either reset or delete a condition.
-
-
If you add more than one condition, choose one of the following options:
-
ALL of these conditions must be met - The workflow will be triggered only if every condition is met (logical AND operator).
-
ANY of these conditions can be met - The workflow will be triggered if any of the conditions is met (inclusive OR operator).
-
Advanced - Click the operator drop-down to choose any combination of operators, in which case, it's processed sequentially, top-to-bottom.
For example: {[(condition1 AND condition2) OR condition3] AND condition4}
-
-
Configure a workflow to associate with this rule.
-
In the Apply to selected workflows section, click the Select workflow drop-down and select a valid workflow or enter its name.
-
Only a non-atomic workflow can be associated to the rule directly; custom and system atomic workflows cannot.
-
The most relevant workflows to this type of rule are shown starting at the top of the drop-down list.
-
Out-of-box XDR system workflows are prefixed with a Cisco icon.
-
-
Depending on the workflow, enter the parameter data as needed. If the workflow has input variables, you can click the variable browser icon and select event input/output variables, which enable you to provide trigger-related values to the input variables as a reference.
-
To delete a workflow, click the (Trash Can) icon next to it.
-
By default, the workflow is on and enabled. To disable it, click the toggle switch to off.
-
-
To include additional workflows, click Add another workflow.
-
Multiple workflows will be executed in parallel, not sequentially.
-
To delete a workflow, click the (Trash Can) icon next to it.
-
If you delete a workflow from here, the actual workflow itself does not get deleted, only its association with this rule is removed. In the workflow's properties, this rule would no longer appear as a trigger.
-
-
Click Submit, and a trigger for this rule is automatically added to the associated workflow (see Workflow Properties).