public Object createInstance() { return new ProcessInstance(this); }
public ProcessInstance createProcessInstance() { return new ProcessInstance(this); }
public ProcessInstance createProcessInstance(Map variables) { return new ProcessInstance(this, variables, null); }
public ProcessInstance createProcessInstance(Map variables, String businessKey) { return new ProcessInstance(this, variables, businessKey); }
public Object createInstance() { return new ProcessInstance(this); }
public ProcessInstance createProcessInstance() { return new ProcessInstance(this); }
public ProcessInstance createProcessInstance(Map variables, String businessKey) { return new ProcessInstance(this, variables, businessKey); }
public ProcessInstance createProcessInstance(Map variables) { return new ProcessInstance(this, variables, null); }
/** * creates a new process instance for the latest version of the process definition with the * given name. * * @throws JbpmException when no processDefinition with the given name is deployed. */ public ProcessInstance newProcessInstance(String processDefinitionName) { ProcessDefinition processDefinition = getGraphSession().findLatestProcessDefinition(processDefinitionName); return new ProcessInstance(processDefinition); }
/** * creates a new process instance for the latest version of the process definition with the * given name. * * @throws JbpmException when no processDefinition with the given name is deployed. */ public ProcessInstance newProcessInstance(String processDefinitionName) { ProcessDefinition processDefinition = getGraphSession().findLatestProcessDefinition(processDefinitionName); return new ProcessInstance(processDefinition); }
public ProcessInstance createSubProcessInstance(ProcessDefinition subProcessDefinition) { // create the new sub process instance subProcessInstance = new ProcessInstance(subProcessDefinition); // bind the subprocess to the super-process-token setSubProcessInstance(subProcessInstance); subProcessInstance.setSuperProcessToken(this); // make sure the process gets saved during super process save processInstance.addCascadeProcessInstance(subProcessInstance); return subProcessInstance; }
/** * creates a new process instance for the latest version of the process definition with the * given name and registers it for auto-save. * * @throws JbpmException when no processDefinition with the given name is deployed. */ public ProcessInstance newProcessInstanceForUpdate(String processDefinitionName) { ProcessDefinition processDefinition = getGraphSession().findLatestProcessDefinition(processDefinitionName); ProcessInstance processInstance = new ProcessInstance(processDefinition); addAutoSaveProcessInstance(processInstance); return processInstance; }
/** * creates a new process instance for the latest version of the process definition with the * given name and registers it for auto-save. * * @throws JbpmException when no processDefinition with the given name is deployed. */ public ProcessInstance newProcessInstanceForUpdate(String processDefinitionName) { ProcessDefinition processDefinition = getGraphSession().findLatestProcessDefinition(processDefinitionName); ProcessInstance processInstance = new ProcessInstance(processDefinition); addAutoSaveProcessInstance(processInstance); return processInstance; }
public ProcessInstance createSubProcessInstance(ProcessDefinition subProcessDefinition) { // create the new sub process instance subProcessInstance = new ProcessInstance(subProcessDefinition); // bind the subprocess to the super-process-token setSubProcessInstance(subProcessInstance); subProcessInstance.setSuperProcessToken(this); // make sure the process gets saved during super process save processInstance.addCascadeProcessInstance(subProcessInstance); return subProcessInstance; }
ProcessDefinition processDefinition = jbpmContext.getGraphSession().loadProcessDefinition( processDefinitionId); processInstance = new ProcessInstance(processDefinition);
ProcessDefinition processDefinition = jbpmContext.getGraphSession().loadProcessDefinition( processDefinitionId); processInstance = new ProcessInstance(processDefinition);