AnsweredAssumed Answered

Can activiti start new process from TaskListener?

Question asked by targaryenj on Oct 19, 2016
Latest reply on Nov 1, 2016 by vasile.dirla
i have this code in a complete taskListener,it won't work.

ProcessInstance processInstance = runtimeService.startProcessInstanceById(latestProcessDefinition.getId(),
                    projectId + latestProcessDefinition.getId(), variablesMap);
            List<Task> task = taskService.createTaskQuery().processInstanceId(processInstance.getId()).list();


Outcomes