Subprocess level variable



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:
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:


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.?


Using setVariable with activityId