/** * instructs the main path of execution to continue by taking the specified transition on the * current node. * * @throws IllegalStateException if the token is not active. */ public void signal(Transition transition) { if (hasEnded()) throw new IllegalStateException("process instance has ended"); rootToken.signal(transition); }
/** * instructs the main path of execution to continue by taking the default transition on the * current node. * * @throws IllegalStateException if the token is not active. */ public void signal() { if (hasEnded()) throw new IllegalStateException("process instance has ended"); rootToken.signal(); }
/** * calculates if this process instance has still options to continue. */ public boolean isTerminatedImplicitly() { return !hasEnded() ? rootToken.isTerminatedImplicitly() : true; }
/** * instructs the main path of execution to continue by taking the default transition on the * current node. * * @throws IllegalStateException if the token is not active. */ public void signal() { if (hasEnded()) throw new IllegalStateException("process instance has ended"); rootToken.signal(); }
/** * calculates if this process instance has still options to continue. */ public boolean isTerminatedImplicitly() { return !hasEnded() ? rootToken.isTerminatedImplicitly() : true; }
/** * instructs the main path of execution to continue by taking the specified transition on the * current node. * * @throws IllegalStateException if the token is not active. */ public void signal(Transition transition) { if (hasEnded()) throw new IllegalStateException("process instance has ended"); rootToken.signal(transition); }
/** * instructs the main path of execution to continue by taking the specified transition on the * current node. * * @throws IllegalStateException if the token is not active. */ public void signal(String transitionName) { if (hasEnded()) throw new IllegalStateException("process instance has ended"); rootToken.signal(transitionName); }
/** * instructs the main path of execution to continue by taking the specified transition on the * current node. * * @throws IllegalStateException if the token is not active. */ public void signal(String transitionName) { if (hasEnded()) throw new IllegalStateException("process instance has ended"); rootToken.signal(transitionName); }
/** * 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(); }
protected void raiseEndEventIfNecessary() { if ( processInstance.hasEnded() ) { Events.instance().raiseEvent( "org.jboss.seam.endPageflow." + processInstance.getProcessDefinition().getName() ); Events.instance().raiseEvent( "org.jboss.seam.endPageflow"); } }
/** * 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()); } }
private boolean afterResumeProcess(long processId, ProcessInstance process) { if ( process==null ) { processNotFound(processId); return false; } else if ( process.hasEnded() ) { processEnded(processId); return false; } else { Events.instance().raiseEvent("org.jboss.seam.initProcess." + process.getProcessDefinition().getName()); return true; } }
private boolean afterResumeProcess(String processKey, ProcessInstance process) { if ( process==null ) { processNotFound(processKey); return false; } else if ( process.hasEnded() ) { processEnded(processKey); return false; } else { Events.instance().raiseEvent("org.jboss.seam.initProcess." + process.getProcessDefinition().getName()); return true; } }
if ( process.hasEnded() )
if (instance.hasEnded()) { context.selectOutcome("finished"); context.addSuccessMessage("Process completed");