Subprocess level variable


#1

Hi

bpmnPoc3.bpmn (12.3 KB)

I have a sub process with multi instance parallel executions in my bpmn. I am able to set sub-process specific variables (by adding it as input parameter in subprocess).

I need a way to update these sub-process specific variables using REST API.

I have tried this api:
http://localhost:8080/engine-rest/execution/executionId/localVariables/varName
but it sets it only for that particular external task execution and as soon as it moves to next external task, the variable dissapears.

I tried this as well:

http://localhost:8080/engine-rest/process-instance/processInstanceId/variables

but this adds the variable on the process instance level.

I also found another api for updating task variable using task id, but that is applicable only to user tasks.

Is there any such rest api to update sub process level variable? am i missing something.?

Thanks
urvashi


Using setVariable with activityId