I'm trying to invoke a jbpm process with a custom object process variable via remote client against kie server. The process does some updates on the process variable which I need to retrieve back. What's the best way to retrieve the modified process variable? Appreciate any examples along with answer. [6.5.0 final]
0
votes
1 Answers
1
votes
If process instance is completed then you can use below REST API's to get process variable info
[GET] http://localhost:8080/kie-server/services/rest/server/queries/processes/instances/{ProcessInstanceID}/variables/instances
[GET] http://localhost:8080/kie-server/services/rest/server/queries/processes/instances/{ProcessInstanceID}?withVars=true
If process instance is active then you can use below REST API:
http://localhost:8080/kie-server/services/rest/server/containers/{containerId}/processes/instances/{ProcessInstanceId}/variables