Skip to main content
Inspiring
Nov 16, 2023 12:12 PM UTC
Question

How to pass process parameters in WEBAPI

How to pass process parameters in WEBAPI which calls process model .


a!startProcess(
processModel: cons!PCI_PM_CALL_INTEGRATIONS,
processParameters: a!fromJson(
http!request.body
),
onSuccess: a!httpResponse(
statusCode: 200,
headers: {
a!httpHeader(name: "Content-Type", value: "application/json")
},
body: a!toJson(
fv!processInfo
)
),
onError: a!httpResponse(
statusCode: 500,
headers: {
a!httpHeader(name: "Content-Type", value: "application/json")
},
body: a!toJson(
{
error: "There was an error starting the process"
}
)
)
)

2 replies

stefanhelzle0001
Brainy
Nov 16, 2023 12:32 PM UTC

Pass a simple dictionary or map that maps incoming values to process variables.

Known Participant
Nov 16, 2023 6:08 PM UTC

Hi, first of all create parameterised variable in the process model. Those variables you can refer in the api like below

The API data can be passed to these variables.