Invoke a subflow by adding an operations step to a resource and then associating the resource to a new or existing subflow.
Before you begin
- The Orchestration application is installed.
Role required: Cloud user, designer, or admin
Procedure
-
In the Cloud Admin Portal, navigate to
.
-
Click the resource block to add an operations step to.
-
Set the resource block to Draft state and then click .
The Operation Step form appears.
-
Select Invoke Flow, from the Operation Type list.
-
Select Subflow from the Flow Type list.
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.
- Optional:
Specify a condition in the Condition field.
-
Click 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, click the
icon to add a new step parameter.
-
Add the following key value pair to the subflow.
| Key |
Value |
flowcorrelationid |
$(Script:CMPFlowStepHandler.generateCorrelationId) |
-
Click the Response Processor tab and then click 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.
-
Click Submit.
-
Set the resource block to Publish state to incorporate your changes and publish the resource block.