I was reading this documentation :
In this example it is shown that, if event subprocess is defined inside the embedded subprocess then, it has access to the subprocess variables and event is defined at the boundary, it doesn’t have access to the variables. So i created my own test process and behaviour looks different. Can someone explain it to me?
This is my sample process diagram.
When i started the process, the 1st form value was empty as expected.
Then i filled its value and 2nd task came up with empty form as expected.
After filling its value, the subprocess ended with end error event, which triggered the end error event flow. By the documentation, if the variable of sub process should not be accessible outside the subprocess, but when the main process user task comes up, the value of the variables is filled with the value i filled up in subprocess form.
Can someone plz explain me what am i doing wrong.
Also, can someone confirm me that, by creating an embedded subprocess, no new processInstanceId is created as opposed to case in callActivity task. Only new executionId is created. All the variables of subprocess are stored at the processInstance scope i.e. all variables are accessible on the main process instance even after sub process has ended.