|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbpm.db.GraphSession
are the graph related database operations.
Constructor Summary | |
GraphSession(JbpmSession jbpmSession)
|
Method Summary | |
void |
deleteProcessDefinition(long processDefinitionId)
|
void |
deleteProcessDefinition(ProcessDefinition processDefinition)
|
void |
deleteProcessInstance(long processInstanceId)
|
void |
deleteProcessInstance(ProcessInstance processInstance)
|
java.util.List |
findAllProcessDefinitions()
queries the database for all process definitions, ordered by name (ascending), then by version (descending). |
java.util.List |
findAllProcessDefinitionVersions(java.lang.String name)
queries the database for all versions of process definitions with the given name, ordered by version (descending). |
ProcessDefinition |
findLatestProcessDefinition(java.lang.String name)
queries the database for the latest version of a process definition with the given name. |
java.util.List |
findLatestProcessDefinitions()
queries the database for the latest version of each process definition. |
ProcessDefinition |
findProcessDefinition(java.lang.String name,
int version)
queries the database for a process definition with the given name and version. |
java.util.List |
findProcessInstances(long processDefinitionId)
fetches all processInstances for the given process definition from the database. |
ProcessDefinition |
getProcessDefinition(long processDefinitionId)
gets a process definition from the database by the identifier. |
ProcessDefinition |
loadProcessDefinition(long processDefinitionId)
loads a process definition from the database by the identifier. |
ProcessInstance |
loadProcessInstance(long processInstanceId)
loads a process instance from the database by the identifier. |
Token |
loadToken(long tokenId)
loads a token from the database by the identifier. |
void |
lockProcessInstance(long processInstanceId)
locks a process instance in the database. |
void |
lockProcessInstance(ProcessInstance processInstance)
locks a process instance in the database. |
void |
saveProcessDefinition(ProcessDefinition processDefinition)
saves the process definitions. |
void |
saveProcessInstance(ProcessInstance processInstance)
save a new process instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GraphSession(JbpmSession jbpmSession)
Method Detail |
public void saveProcessDefinition(ProcessDefinition processDefinition)
ProcessArchiveDeployer
.
public ProcessDefinition loadProcessDefinition(long processDefinitionId)
JbpmException
- in case no such process definition exists.public ProcessDefinition getProcessDefinition(long processDefinitionId)
public ProcessDefinition findProcessDefinition(java.lang.String name, int version)
public ProcessDefinition findLatestProcessDefinition(java.lang.String name)
public java.util.List findLatestProcessDefinitions()
public java.util.List findAllProcessDefinitions()
public java.util.List findAllProcessDefinitionVersions(java.lang.String name)
public void deleteProcessDefinition(long processDefinitionId)
public void deleteProcessDefinition(ProcessDefinition processDefinition)
public void saveProcessInstance(ProcessInstance processInstance)
public ProcessInstance loadProcessInstance(long processInstanceId)
public Token loadToken(long tokenId)
public void lockProcessInstance(long processInstanceId)
public void lockProcessInstance(ProcessInstance processInstance)
public java.util.List findProcessInstances(long processDefinitionId)
public void deleteProcessInstance(long processInstanceId)
public void deleteProcessInstance(ProcessInstance processInstance)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |