The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter contains the following sections:
Activities provide a layer of abstraction to workflow input variables. The abstraction helps you to efficiently execute any administration scenario (such as tenant onboarding or application deployment) by separating the specification of a workflow from its actual implementation. Using activities, you can do the following:
Define the input properties for a workflow and associate those properties with one or more workflows. Then, depending upon a matching condition, the activity triggers the correct workflow.
Use an activity as a workflow task, making the task usable in multiple similar but differently implemented use case scenarios.
An activity can be either triggered programmatically or by providing inputs dynamically.
You can associate an activity with one or more workflows to run the activity as part of the workflow. The associated activity is displayed as a custom workflow task in the System Activity Tasks folder of the Workflow Designer.
You have an activity and at least one workflow that is to include the activity. For more information about how to create an activity, see Creating an Activity.
Step 1 | On the menu bar, choose . | ||||||||||||||||||
Step 2 | Click the Workflows tab. | ||||||||||||||||||
Step 3 | Click Add Workflow. | ||||||||||||||||||
Step 4 | In the
Add
Workflow dialog box, complete the following fields:
| ||||||||||||||||||
Step 5 | Click Next. | ||||||||||||||||||
Step 6 | In the Add User Inputs screen, check the Associate to Activity check box. | ||||||||||||||||||
Step 7 | From the Activity drop-down list, choose an activity. The user input table is updated based on the selected activity. | ||||||||||||||||||
Step 8 | Click
Next.
In the Add User Outputs screen, the user outputs are displayed based on the selected activity. | ||||||||||||||||||
Step 9 | Click Submit. A workflow is created and is available in the Workflows tab. |
The activity that is associated with one or more workflows is displayed as a custom workflow task in the System Activity Tasks folder of the Workflow Designer. Drag-and-drop the selected activity onto the Workflow Designer window to add it to a workflow. Define the condition for controlling execution of workflows associated with an activity in the Context Input table of the workflow.
Associate an activity with a workflow so that the activity is displayed as a custom workflow task in the System Activity Tasks folder of the Workflow Designer. For more information about how to associate an activity with a workflow, see Creating an Activity.
Open the workflow in the Workflow Designer.
Step 1 | Choose the activity from the System Activity Tasks folder. | ||||||||||||||||
Step 2 | Drag-and-drop the selected activity onto the Workflow Designer window. The Add Task dialog box appears. | ||||||||||||||||
Step 3 | In the
Task
Information
screen, complete the following fields:
| ||||||||||||||||
Step 4 | Click Next. The User Input Mapping screen displays the inputs that are defined for the activity. | ||||||||||||||||
Step 5 | Check the Map to User Input check box to use the corresponding input in the workflow. | ||||||||||||||||
Step 6 | In the
Context Input table, click the
+ icon to add a contextual input:
| ||||||||||||||||
Step 7 | Click Revalidate to validate the current values. | ||||||||||||||||
Step 8 | Click Next. The User Output Mapping screen displays the outputs that are defined for the activity. | ||||||||||||||||
Step 9 | Check the Map to User Output check box to use the corresponding output in the workflow. | ||||||||||||||||
Step 10 | Click Submit. |
You can import and export activities using the Import and Export actions you use to import and export workflows, custom tasks, and script modules.
To import an activity, see Importing Workflows, Custom Tasks, Script Modules, and Activities.
To export an activity, see Exporting Workflows, Custom Tasks, Script Modules, and Activities.