Manage Action Engine Workflows
Action Engine Workflow is a Beta feature.
You can configure action engine workflows, and manage existing action engine workflows from the Paragon Automation GUI. You can add or edit action engine workflow commands, conditions, inputs, and outputs while creating an action engine workflow. You can also create action engine workflows by using the CLI. See Action Engine Workflow Overview.
Add an Action Engine Workflow
-
Click Configuration > Action Engine
.
The Workflows page appears.
-
Click the plus (+) icon to add an action engine
workflow.
The Add New Workflow page appears. The General tabbed page appears by default.
-
Enter the following information in the General
tabbed page:
- Enter a name for the action engine workflow in the Name text box.
- Enter a description for the action engine workflow in the Description text box.
-
Select an entry task from the Entry Task
drop-down list.
You must add a task before you can select the task from the Entry Task drop-down list. To add a task, see Step 4.
An entry task is the first task that is executed when you run an action engine workflow.
-
Select an exit task from the Exit Task
drop-down list.
You must add a task before you can select the task from the Exit Task drop-down list. To add a task, see Step 4.
An exit task is the last task (for example, a clean up task) that is executed at the end of an action engine workflow sequence.
- Click Tasks to view the Task tabbed page.
-
Click (+) to add a task.
Enter the following information:
- Enter a name for the task in the Name text box.
-
Enable or disable the Parallel toggle
button.
Enable the Parallel toggle button to run all steps in a task simultaneously.
-
Click the (+) icon to add a new step.
A row is added to the Steps section.
In the row that is added:- Enter a name for the step in the Name text box.
- Enter a description for the step in the Description text box.
- Select dependencies from the Dependencies drop-down list.
- Select an action type from the Action Type drop-down list.
Follow these steps to add a command:-
Click Edit Commands to add a new
command.
The ADD/EDIT COMMANDS pop-up appears.
-
Click +Add New Command to add a new command.
The New Command section appears in the ADD/EDIT COMMANDS pop-up.
- Enter a value for the command tag in the Command Tag text box.
-
Enter a value in the Commands list box. You can select more than one command.
Click X to remove the command that you selected.
-
Enter a value in the Arguments list box. You
can select more than one argument.
Click X to remove the argument that you selected.
-
Enter a value in the Device list box. You
can select more than one device.
Click X to remove the device that you selected.
-
Enter a value in the Device Group list box.
You can select more than one device group.
Click X to remove the device group that you selected.
- Enter a value in the Environment list box.
- Select an output from the Output Type list box.
-
Enable or disable the Ignore toggle button.
You can enable the Ignore button to ignore steps.
-
Set repeat parameters in the Repeat
field.
You can determine if you want to repeat a failed step or not.
-
The default delay value displayed is 10 seconds.
After you have set repeat parameters to repeat a step that has failed, there is a delay of 10 seconds before the step is repeated again.
-
Click OK to confirm.
The new command is added.
Follow these steps to add a condition:-
Click Edit Conditions to add new
conditions.
The ADD/EDIT CONDITIONS pop-up appears.
- Enter the conditions in the Conditions text box.
- Select a condition type from the Conditions Type list box.
- Enter a description for the condition in the Condition Description text box.
-
Click OK to confirm.
The new condition is added.
Follow these steps to add inputs:-
Click Edit Inputs to add new inputs.
The ADD/EDIT INPUTS pop-up appears.
- Click the (+) icon to add new input.
- Enter a name for the input in the Name field.
- Enter a value for the input in the Value field.
-
Click OK to confirm.
The operation is successful message is displayed in the ADD/EDIT INPUTS pop-up.
- Click Close to close the ADD/EDIT INPUTS pop-up.
Follow these steps to add outputs:-
Click Edit Output to add new outputs.
The ADD/EDIT OUTPUT pop-up appears.
- Click the (+) icon to add new input.
- Select a name for the output from the Name list.
- Enter a description for the output in the Description text box.
- Enter a value for the command tag in the Command Tag field.
- Select output type from the Output Type list box. See Table 1.
-
The field displayed depends on the output type that you have
selected. See Table 1.
Table 1: Output Type and Corresponding Fields Output Type Field Grok Pattern XML XPath JSON JQ Path Artifact Path Regex Pattern Result -
Click OK> to confirm.
The operation is successful message is displayed in the ADD/EDIT OUTPUT pop-up.
- Click Close to close the ADD/EDIT OUTPUT pop-up.
- Click the √ icon to add this row to the Steps section.
- Click Arguments tab.
-
On the Arguments tabbed page, click the plus (+)
icon to add a new argument.
- Enter a name for the argument in the Name text box.
- Click Ok to confirm.
-
Do any one of the following:
- Click Save to save the action engine workflow.
-
Click Save & Deploy to save and deploy
the action engine workflow.
You have now added and deployed an action engine workflow. To monitor the action engine workflows that you have added, see Monitoring > Action Engine.
Run an Action Engine Workflow
-
Click Monitoring > Action
Engine.
The Workflows Monitor page appears.
- Select the action engine workflow you want to run by selecting the check box next to the name of the action engine workflow.
-
Click Run Workflow.
The Run Workflow <workflow name> pop-up appears.
-
In the Run Workflow <workflow
name> pop-up that appears, you can:
- View the list of preconfigured arguments for the action engine workflow.
-
Configure additional arguments.
To configure additional arguments, click (+).
The Additional Arguments fields that you can configure are displayed.
- Enter a name in the Name text box to
identify this additional argument.
The name you enter must be in the
[a-zA-Z][a-zA-Z0-9_-]*$
regular expression format. This format states that the first character of the name can start witha-z
orA-Z
. The name cannot start with a number or a special character. However, you can use numbers,_
, and-
within the name.The maximum length is 64 characters.
- Select an additional argument type from the
Type drop-down list.
Available options: string, list, password, device, device-group, network-group
- Select a value from the options available.
The options you can choose from depend on the additional argument Type that you have selected.
You can add one or more than one arguments.
- Enter a name in the Name text box to
identify this additional argument.
- Click OK to confirm settings and to run the action engine workflow.
Stop an Instance
You cannot resume (restart) an instance that you have stopped.
-
Click Monitoring > Action
Engine.
The Workflows Monitor page appears.
- Click an action engine workflow to view the instances listed under it.
- Select the instance that is currently running by selecting the check box next to the name of the instance.
- Click Stop to stop the instance.
Resume a Suspended Instance
-
Click Monitoring > Action
Engine.
The Workflows Monitor page appears.
- Click an action engine workflow to view the instances listed under it.
- Select a suspended instance, by selecting the check box next to the name of the instance.
- Click Resume to restart the instance.
Filter Instances
-
Click Monitoring > Action
Engine.
The Workflows Monitor page appears.
-
Click Filter, and then click Add
Filter from the Filter drop-down
list.
The Add Criteria pop-up appears.
-
Enter the following information in the Add Criteria
pop-up.
- Select the field that you want to apply the filter to, from the Field drop-down list.
- Select the conditions that you want to apply to the field, from the Condition drop-down list.
- Enter the start and finish time that you want to apply to the filter, in the Value text box.
- Click Add to apply the filter.
Delete an Action Engine Workflow
-
Click Configuration > Action
Engine.
The Workflows page appears.
- Select the action engine workflow you want to delete by selecting the check box next to the name of the instance.
-
Click the Delete icon.
The Delete Workflow pop-up appears.
- In the Delete Workflow pop-up that appears, click Ok to delete the action engine workflow.