@Override protected org.jbpm.taskmgmt.exe.TaskInstance work() throws Exception { Long taskId = BusinessProcess.instance().getTaskId(); if (taskId!=null) { //TODO: do we need to cache this?? return ManagedJbpmContext.instance().getTaskInstanceForUpdate(taskId); } else { return null; } }
public Asynchronous() { if ( Init.instance().isJbpmInstalled() ) { BusinessProcess businessProcess = BusinessProcess.instance(); processId = businessProcess.getProcessId(); taskId = BusinessProcess.instance().getTaskId(); } }