Add a resource operation step to invoke a subflow
Invoke a subflow by adding an operation step to a resource and linking it to a new or existing subflow.
Before you begin
Make sure the Orchestration application is installed.
Role required: Cloud user, designer, or admin
Procedure
In the Cloud Admin Portal, navigate to Design > Resource Blocks.
Set the resource block to Draft state by toggling the publish and then select Operations > Steps > Add Step.
The Add Operation Steps form appears.
From the Operation Type list, select Invoke Flow.
From the Content Type list, select Subflow.
Note: You cannot invoke flows while adding a resource operation step. This is a known limitation.
Select an active subflow from the Flow/Subflow lookup list.
Specify a condition in the Condition field.
Select Submit.
The subflow operation step is attached to the resource block and appears on the page. Any input parameters associated with the subflow you selected are auto-populated on the Input tab.
In the Inputs subtab, select the
Add step parameter icon to add a new step parameter.
1. Add the following key value pair to the subflow.
|Key|Value|
|---|-----|
|`flowcorrelationid`|`$(Script:CMPFlowStepHandler.generateCorrelationId)`|
Select the Response Processor tab and then select the plus icon.
The Add Response Processor dialog box appears.
In the Script Name list, select a script for the response processor.
For a script to appear in the Script Name list, the script should already have been created in the Resource Script tab. For more information, see Configure a response processor.
Select Submit.
Set the resource block to Publish state to incorporate your changes and publish the resource block.
What to do next
Create a response action for Cloud Provisioning and Governance
Parent Topic:Add operation steps to a resource block