findAllProcessDefinitionVersions(String name) queries the database for all versions of process definitions with the given name, ordered by version (descending).
getProcessInstance(long processInstanceId) gets a process instance from the database by the identifier.
This method returns null in case the given process instance doesn't exist.
loadProcessInstance(long processInstanceId) loads a process instance from the database by the identifier.
This throws an exception in case the process instance doesn't exist.
fetches all processInstances for the given process definition from the database.
The returned list of process instances is sorted start date, youngest first.
loads a process instance from the database by the identifier.
This throws an exception in case the process instance doesn't exist.
See Also:GraphSession.getProcessInstance(long) throws: JbpmException - in case the process instance doesn't exist.
saves the process definitions. this method does not assign a version
number. that is the responsibility of the
org.jbpm.jpdl.par.ProcessArchiveDeployer .