Add a resource operation step to invoke a workflow
You can invoke a workflow by adding an operations step to a resource and then associating the resource to a workflow.
Before you begin
- The Orchestration application is installed.
- Role required: Cloud user, designer, or admin
Procedure
- In the Cloud Admin Portal, navigate to Design > Resource Blocks.
- Click the resource block to add an operations step to.
-
Set the resource block to Draft state and then click Operations > Steps > Add Step.
To enable the workflow to be exported as part of the update sets, you must create an extension interface and add the new operation. See Extend Cloud Provisioning and Governance resource blocks with an override operation for details.
- On the Add Operation Steps popup, select Invoke Workflowfor Operation Type.
-
Select the Workflow from the list of workflows that you created.
The system can filter the list using tags. To add a tag:
- Navigate to System Properties.
- Locate and select the system property sn_cmp.workflow_tag_filter.
- Edit the property. Add a tag or comma-separated list of tags.
- Click Save.
-
Filter the workflows.
- On the workflow table, open the workflow.
- Click Add Tag.
- Enter the value that you provided earlier in the property sn_cmp.workflow_tag_filter
-
Click Enter.
The value is added as a tag to the workflow.
The new step appears after the software generates the new Day 2 Operation Catalog. -
Add a workflow.
- After you create the step, the system adds the workflow inputs to the operation input parameters.
- Provide the mapping for these parameters, if needed.
- Click the Generate Catalog button to create the catalog item for the operation.
- After the catalog generates, you can add from the load and field change rules to the catalog items.
Workflows can exist that are created on tables other than global. You can add a workflow created on such a table. To execute operations on this type of workflow, you need the sys_id of the record in which the workflow is executing to create the current record. So when the designer adds a workflow that is on table other than global, the system creates a wf_current parameter in the operation input parameter. You can then write an expression to map the sys_id of the resource in which the operation is executing. Once this is completed, the designer can use the ‘current’ key word in workflow scripts. - Set the resource block to the Published state to make the workflow available in the Cloud User Portal.