cancel
Showing results for 
Search instead for 
Did you mean: 

Passing variables to a business process waiting on a receive

amareshkulkarni
Champ in-the-making
Champ in-the-making
I have a business process that is in wait state due to a receive task. I could bring it back to life using the signal(). But is there a way to pass variables to the business process when signal is invoked? I know that if I model it as a user task I can do it while marking the user task complete.

Any help is highly appreciated.
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
Call the setVariables on the execution first before calling the signal() method.

amareshkulkarni
Champ in-the-making
Champ in-the-making
I can't see a setVariables()method on import org.activiti.engine.runtime.Execution;

Can you please correct if I understood it right.

jbarrez
Star Contributor
Star Contributor
setVariables is called through the RuntimeService, passing the id of the execution.