private org.jbpm.graph.exe.ProcessInstance getProcessInstance() { if (!enabled) { return null; } else { return ProcessInstance.instance(); } }
protected ProcessInstance getProcessInstance() { return org.jboss.seam.bpm.ProcessInstance.instance(); }
/** * Is there a process instance that has not ended * associated with the current conversation? */ public boolean hasActiveProcess() { return hasCurrentProcess() && !org.jboss.seam.bpm.ProcessInstance.instance().hasEnded(); }
/** * Associate the process instance with the given id with the * current conversation. * * @param processId the jBPM process instance id * @return true if the process was found and was not ended */ public boolean resumeProcess(Long processId) { setProcessId(processId); ProcessInstance process = org.jboss.seam.bpm.ProcessInstance.instance(); return afterResumeProcess(processId, process); }
/** * Signal the given transition for the current process instance. * * @param transitionName the jBPM transition name */ public void transition(String transitionName) { ProcessInstance process = org.jboss.seam.bpm.ProcessInstance.instance(); process.signal(transitionName); if ( process.hasEnded() ) { Events.instance().raiseEvent("org.jboss.seam.endProcess." + process.getProcessDefinition().getName()); } }
ProcessInstance process = org.jboss.seam.bpm.ProcessInstance.instance(); if ( process.hasEnded() )