cancel
Showing results for 
Search instead for 
Did you mean: 

How to set a process variable value when I 'signal' it?

lojian
Champ in-the-making
Champ in-the-making
Just as title…
I have a process, it has a "receive task" node which could be triggered by a "signal".
Could I set that process instance's variable before I send out the signal?

Thanks…
2 REPLIES 2

jcosano
Champ in-the-making
Champ in-the-making
you can try with:

runtimeService.setVariable(pi.getId(), "procID", pi.getId())

lojian
Champ in-the-making
Champ in-the-making
Thank you!