Set variable on subprocess loop instance

Hi all,

I want to set a process variable which has to be set on the looped instance of the subProcess. How can I achieve this from a DelegateExecution object? I know only how to set it on the process or task scope :disappointed_relieved:

Kind regards,
Nico

Hi Nico,

You can define an execution listener on the multi-instance sub process and register it for the start event. This listener is going to be called for every instance of the MI construct. You can use the method DelegateExecution#setVariableLocal to set a variable in that scope then.

Cheers,
Thorben

1 Like