Hi,
the question first, because the latter explanation is maybe a bit confusing…
Is it possible that a subprocess has its own variable scope?
I have a sub process where the main activity is done and a Multiple Call activity is invoked. This Call activity gets some variables passed which are necessary for execution.
Inside this sub process, I have a further expanded subprocess which is holding a message driver Start (non-interupting) node which should start several “latecomers”. I can pass some variables with the message which are saved in the main process. Therefore, if I invoke this message several times, it is overwriting the values of the previous invocation, because the variables are set in the same scope.
I haven’t found any configuration for “sub process or token scopes”. Is it at least possible to identifier the “token” which was invoked by the message, so that I can emulate the “new token scope”?
I cannot setup a completely new process with it own scope, because I need the execution token in the upper subprocess to identify if this latecomer is also done.
Best Regards,
Michael
EDIT:
I have added a screenshot of a the related part in our BPM. Actually I want to have some user tasks between “Taskprocessing” the message start, but variables which are passed by REST message deliver call should be saved local and not in the process instance scope…
Currently, my approach is to directly call the Sub task in the call activity, because I hope that at least while being in one Transaction I can be sure that the variable is not overwritten by other message calls. But, I don’t know if I am right here as is it depends on what Camunda is locking during this transaction. I believe the process instance is locked and no other “token” can move while other is currently moving. Would be nice if someone could confirm this