Creating a Compound Task
A compound task is a workflow that functions as a single task. A compound task, like any other task, is atomic: its component tasks are hidden.
You create a compound task by saving a workflow as a compound task when you create or edit the workflow. Do this, for example, if you find yourself building the same series of tasks into several different workflows.
You can define a simple workflow and save it as a compound task, then define another workflow that incorporates the compound task. You can use this pattern to define increasingly complex workflows.
To save an existing workflow as a compound task, do the following:
Note |
To create a new compound task from scratch, see Creating a Workflow. |
Procedure
Step 1 |
Choose Orchestration. |
Step 2 |
On the Orchestration page, click Workflows. |
Step 3 |
Select a workflow to save as a compound task. |
Step 4 |
Click Edit. |
Step 5 |
Check Save as Compound Task. |
Step 6 |
If you want all of the workflow's task outputs available as output of the compound task, click Publish Task outputs as Compound Task outputs. |
Step 7 |
Click Next. |
Step 8 |
On the Add User Inputs screen, click Next. |
Step 9 |
On the Add User Outputs screen, click Submit. |
Example: Creating a Compound Task
This example demonstrates repeating a workflow task for elements in a list.
Before you begin
Create the example workflow as described in Example: Creating a Workflow.
Procedure
Step 1 |
Navigate to . |
||
Step 2 |
Click the Workflows tab. |
||
Step 3 |
Locate and select the PowerCycleVM workflow you created in Example: Creating a Workflow. |
||
Step 4 |
Click Edit. |
||
Step 5 |
In the Edit Workflow Details window, check the Save as Compound Task check box.
|
||
Step 6 |
Click through to the Edit Workflow Output page. |
||
Step 7 |
Click Submit. |
What to do next
Include the custom task in other workflows. For example, you can put this task before the Completed (Failed) task of workflows that modify to remotely hosted VMs. Then, the VM restarts if a modification fails.