AnsweredAssumed Answered

How can a Call Activiti access two parent variables under the same local variable name

Question asked by sid121091 on Sep 21, 2015
Latest reply on Nov 3, 2015 by erikwinlof
Hi,

I am trying to use Call Activity in my BPMN 2.0 process. I have two variables in my parent process and I would use the IN and OUT to access those variables in my sub process. I would like to access both the variables under the same name in the subprocess. Is this possible? I would also like to state that the parent process calls the sub process twice (one each for each variable). So there are two calls to the subprocess by two different variables. However I would like to access them both as a single variable. And the value of that local variable should contain the corresponding value of the variable in the parent process.

EX: I have two variables fruits and vegetables in the parent process. First I call the subprocess with the variable fruits. While the subprocess has started, I also call the subprocess again with the variable vegetables(after executing one more task in the parent process). I have local variable eateries in the subprocess. Now I want to access the contents of the variables in the parent process using only the local variable eateries. When I flow through the first subprocess call, getVariables("eateries") should return me the contents of the variable "fruits". And during the flow of the second subprocess call, it should return me the contents of the variable "vegetables". And this process should run concurrently also. The second subprocess should run immediately when it is called and not wait for the first subprocess to complete. Is this possible? And if so how?

This is quite an urgent requirement and thanks in advance

Outcomes