Overview
This feature enables the dynamic mapping of incoming request parameters to custom input arguments within a workflow. It allows users or callers to pass runtime parameter values as part of a request, which can then be directly mapped to the corresponding custom input arguments of a defined workflow.
Steps
Step 1: Open Workflow
.png)
Step 2: Adding custom input argument
Open the arguments designer by clicking the Arguments button in the lower-left corner of the design canvas. The arguments designer appears
.png)
Add the name of the parameter that will be used in the request, configure the rest of the workflow as needed, save, close, and check in the workflow once all changes are complete.
Step 3: Mapping custom input argument
Map the custom input argument to the sequence in your workflow.
.png)
Step 4: Configuring the request
{
"Source":"Default Test",
"JobReference":"Example Job",
"Process":{
"ProcessType": 1,
"BusinessUnitGuid":"", //Add template GUID
"TemplateGuid":"",//Add template GUID
"TemplateVersion":"",
"ChainGuid":"", //Add chain GUID
"ChainVersion":"",
"WorkflowProcessGuid":"", //Add the GUID of the workflow where the custom input argument is configured.
"WorkflowProcessVersion":"",
"ProcessAsync":false,
"ReturnData":"None"
},
"Timeout":"00:01:00",
"Data":{
"DataType":"XML",
"Data":"", //Add template data in base64
"DataProcessor":"",
"ProcessorProfile":""
},
"Parameters":{
"MyArgument": " Custom Input Argument value " //Add the name of the custom input argument configured in the workflow
}
}