I have 3 process pools in camunda and I implemented to send variables from 1st instance to 2nd instance by using Expression
implementation with using event-name(A) and I'm trying to send 1st process pool variables to 2nd,3rd process pools and also sending 2nd process pool result to 3rd process pool, basically 3rd process pool will receive input from 1st and 2nd process pools but values are not sending. how can I achieve this with creating only one instance. I used below code to send data and successfully received in 2nd process pool.
${execution.getProcessEngineServices().getRuntimeService().createMessageCorrelation("A").setVariable("A","A").correlateWithResult()}
Ok, I still haven't got why you just can pass through the variables.
Here is the solution I came up:
Some Remarks:
And here the prove that it works:
See Gist: https://gist.github.com/pme123/22e7ab46f12218b7e399913af3115cf6