AnsweredAssumed Answered

CallActiviti - how does out variable work

Question asked by venkataphani on Jul 11, 2016
Latest reply on Jul 11, 2016 by martin.grofcik
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

Outcomes