AnsweredAssumed Answered

activitiUtil.getProcessInstance(instanceId) returns null

Question asked by tullo1 on Nov 20, 2013
Latest reply on Aug 22, 2014 by ismaelgarcia
Hi

I try to start the ootb adhoc workflow from within a service task in alfresco.

When the service task is triggered the method call activitiUtil.getProcessInstance(instanceId) will always return null for an instanceId mapped to the adhoc worflow just started. 

ActivitiTypeConverter

public WorkflowPath convert(Execution execution)
{
    String instanceId = execution.getProcessInstanceId();
    ProcessInstance instance = activitiUtil.getProcessInstance(instanceId);
    return convert(execution, instance);
}


Could that be a transaction related problem?

BR
Andreas

Outcomes