public void execute(ExecutionContext executionContext) throws Exception {
// debug("entering call process action handler");
String name = null;
try {
name = getProcessName();
ProcessInstance processInst = ProcessUtil.newProcessInstance(name);
Task task = Util.getStartTask(processInst.getProcessDefinition());
Token superProcessTOken = executionContext.getToken();
processInst.setSuperProcessToken(superProcessTOken);
// If i comment this line i don't get this error.
........code to extract caller data......
TaskInstance ti = Util.initProcess(processInst, task, values,
false);
if (ti != null) {
// setup the swimlane instance
Swimlane swm = ti.getTask().getSwimlane();
if (s != null) {
String assignment = swm.getPooledActorsExpression();
if (!Strings.isEmpty(assignment)) {
ti.getSwimlaneInstance().setPooledActors(
assignment.split(","));
}
ti.end();
}
}
I hope now you can understand.