I am in the process of integrating jbpm 3.1 with my application. I have the following (basic) questions:
1. What is it in JBPM that controls the transition of a process instance from one state to another? Also, what is the lifetime of this? When is it started and shut down? What keeps a track of all the instances in the workflow, and their status?
2. I need to be able to create new process instances, and insert them into the workflow, one by one, in order, without waiting for them to complete or fail. I am doing the following for inserting each process instance :
JbpmContext context = jbpmConfiguration.createJbpmContext(); ProcessInstance instance = processDefinition.createProcessInstance(); instance.signal(); context.save(instance); context.close();