Hi Folks,
I'm trying to achieve the following:
Any inputs would be great, as I'm just beginning, I can implement more efficient code.
Thanks in advance!!
Discussion posts and replies are publicly visible
Hi, Your web api code should be something like below: with( a!startProcess( processModel: cons!yourProcessModel, processParameters: a!fromJson( http!request.body ), onSuccess: a!httpResponse( statusCode: 200, headers: { a!httpHeader(name: "Content-Type", value: "application/json") }, body: a!toJson( {"Your Success Message"} ) ), 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" } ) ) ) )