cancel
Showing results for 
Search instead for 
Did you mean: 

CallActiviti - how does out variable work

venkataphani
Champ in-the-making
Champ in-the-making
Hi,

I'm using Activiti 5.21, and trying to implement CallActiviti by invoking a standalone sub-process by sending & receiving parameters. Before invoking the sub-process, I define the process variable in the main process. The sub-process receives the sent parameters, and completes the sub-process successfully by setting  a value to the out parameter. This is done as the last step using groovy script by setting returnFlag = value; before returning.

When I return back to the main process, it does not receive the value set in the out parameter, instead it's getting null value and I'm getting a null value exception. I'm not sure where I'm doing wrong. The out parameter is a boolean value and I need a value to be returned by the sub-process so the logic in the main process can move ahead. Any guidance would be helpful.

Reg,
Venkata
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Venkata,

An example in activiti source is org.activiti.engine.test.bpmn.callactivity.CallActivityAdvancedTest#testSubProcessWithDataInputOutput
Regards
Martin