Skip to main content
November 16, 2023
Question

How to pass process parameters in WEBAPI

  • November 16, 2023
  • 2 replies
  • 0 views

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
November 16, 2023

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

November 16, 2023

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.