cancel
Showing results for 
Search instead for 
Did you mean: 

Access process variable from another process

mpriess
Champ in-the-making
Champ in-the-making
Hello,

I have a main process which launch a task. The task in the main process set a variable into the execution and I launch a new process.

I implemented a tasklistener for the subprocess startevent. If the start event is passed to the listener. I try to access
a variable which I added in the main process task. But now I get a NullpointerException.

If I leave a Activity is the variable not persisted immediately?

Regards,
Michael
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
How are you launching the process? Using the runtimeService?

Entities are only flushed at the end of a transaction. But if you passed the variable in a map, it should be there. If so, do you have a failing unit test that demonstrated the problem?