Hi everyone,
Could someone clarify why variables set through the input mapping of an embedded subprocess are not limited to that specific subprocess but instead become accessible in the parent process as well?
Here’s an example process model for context:
In the input mapping for each subprocess, I’ve defined a variable called “myVariable.” In the first subprocess, this variable is set to 1, and in the second subprocess, it’s set to 2.
When the process reaches the service task “do foo,” both variables remain in the process context. I expected “myVariable=1” to be accessible only within subprocess 1 and “myVariable=2” only within subprocess 2, but instead, both are still available globally.
An alternative approach would be to define the input variable separately for each individual activity within each subprocess. However, I’d prefer to avoid that approach, as well as relying on an execution listener for this purpose.
Thanks in advance!