How to update a contract variable

1
0
-1

Hi experts,

My process has only one contract variable. How should I build the payload of the method http://../API/bpm/activity/ in order to update some values?

I'm working with the getting started tutorial and I need to update status and refusalReason in:

{
"userId": 3,
"departureDate": "2016-10-09",
"numberOfNights": 3,
"hotelNeeded": false,
"destination": "Paris",
"reason": "Open source conference",
"status": "pending",
"refusalReason": ""
}

Thanks a lot,
Jose.

1 answer

1
+2
-1
This one is the BEST answer!

Hi all,

Using Membrane Monitor (http://www.membrane-soa.org/soap-monitor/) I've captured the REST operation done when approving the Travel Request via the form. I was confused by the doc, trying to use /bonita/API/bpm/activity/{id}/ when it's actually:

POST:/bonita/API/bpm/userTask/{userTaskId}/execution
Payload:
{"status":"refused","refusalReason":"No budget available"}

Hope it helps to someone!

Notifications