/** * 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); }
public void setId(String id) { setDirty(this.id, id); this.id = id; }
@Override public Expression parseExpression(final String expression, final Class returnType, FunctionMapper mapper) throws ELException { return createExpression(expression, returnType, mapper); }
public static ProcessDefinition parseInputSource(InputSource inputSource) { JbpmContext jbpmContext = createPageflowContext(); try { return new PageflowParser(inputSource).readProcessDefinition(); } finally { jbpmContext.close(); } }
public String login() { actor.setId(user); return "/todo.jsp"; } }
/** * Create a process instance and associate it with the * current conversation. * * @param processDefinitionName the jBPM process definition name */ public void createProcess(String processDefinitionName, boolean shouldSignalProcess) { ProcessInstance process = ManagedJbpmContext.instance().newProcessInstanceForUpdate(processDefinitionName); afterCreateProcess(processDefinitionName, process, shouldSignalProcess); }
/** * 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(); }
/** * Set the process instance id, without validating * that the process instance actually exists. */ public void setProcessId(Long processId) { setDirty(this.processId, processId); this.processId = processId; }
private org.jbpm.graph.exe.ProcessInstance getProcessInstance() { if (!enabled) { return null; } else { return ProcessInstance.instance(); } }
private org.jbpm.taskmgmt.exe.TaskInstance getTaskInstance() { if (!enabled) { return null; } else { return TaskInstance.instance(); } }
/** * Set the jBPM transition name */ public void setName(String name) { setDirty(this.name, name); this.name = name; }
public JbpmConfiguration getJbpmConfiguration() { if (jbpmConfiguration==null) { initJbpmConfiguration(); } return jbpmConfiguration; }
/** * Create a process instance and associate it with the * current conversation. * * @param processDefinitionName the jBPM process definition name */ public void createProcess(String processDefinitionName) { createProcess(processDefinitionName, true); }
public void executeTaskControllerInitialization(final TaskControllerHandler handler, final TaskInstance task, final ContextInstance context, final Token token) { new ContextualCall() { @Override void process() throws Exception { initProcessAndTask(task); handler.initializeTaskVariables(task, context, token); } }.runAndWrap(); }
protected BusinessProcess getBusinessProcess() { return BusinessProcess.instance(); }
protected JbpmContext getJbpmContext() { return ManagedJbpmContext.instance(); }
public static ProcessDefinition parseReaderSource(Reader reader) { JbpmContext jbpmContext = createPageflowContext(); try { return new PageflowParser(reader).readProcessDefinition(); } finally { jbpmContext.close(); } }
/** * Set the task instance id, without validating * that the task instance actually exists. */ public void setTaskId(Long taskId) { setDirty(this.taskId, taskId); this.taskId = taskId; }
protected ProcessInstance getProcessInstance() { return org.jboss.seam.bpm.ProcessInstance.instance(); }
protected TaskInstance getTaskInstance() { return org.jboss.seam.bpm.TaskInstance.instance(); }