Apr 04
After deploying a new process I sure that you would like to run it
It’s easy. First of all, you must create a new process instance:
jbpmContext = jbpmConfiguration.createJbpmContext();
processInstance = jbpmContext.newProcessInstance("processname");
Then you can initialize it by adding some variables to the process:
contextInstance = processInstance.getContextInstance();
contextInstance.setVariable("var", myVar);
To start it you have to send a signal to the process first token :
processInstance.getRootToken().signal();

Recent Comments