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