|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.db.GraphSession
public class GraphSession
are the graph related database operations.
Constructor Summary | |
---|---|
GraphSession(JbpmSession jbpmSession)
|
|
GraphSession(org.hibernate.Session session)
|
Method Summary | |
---|---|
void |
deleteProcessDefinition(long processDefinitionId)
|
void |
deleteProcessDefinition(ProcessDefinition processDefinition)
|
void |
deleteProcessInstance(long processInstanceId)
|
void |
deleteProcessInstance(ProcessInstance processInstance)
|
void |
deleteProcessInstance(ProcessInstance processInstance,
boolean includeTasks,
boolean includeTimers,
boolean includeMessages)
|
void |
deployProcessDefinition(ProcessDefinition processDefinition)
|
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. |
ProcessInstance |
getProcessInstance(long processInstanceId)
gets a process instance from the database by the identifier. |
Token |
getToken(long tokenId)
gets a token 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)
Deprecated. use JbpmContext.save(ProcessInstance) instead. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphSession(JbpmSession jbpmSession)
public GraphSession(org.hibernate.Session session)
Method Detail |
---|
public void deployProcessDefinition(ProcessDefinition processDefinition)
public void saveProcessDefinition(ProcessDefinition processDefinition)
org.jbpm.jpdl.par.ProcessArchiveDeployer
.
public ProcessDefinition loadProcessDefinition(long processDefinitionId)
a
- JbpmException in case the referenced process definition doesn't exist.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)
JbpmContext.save(ProcessInstance)
instead.
java.lang.UnsupportedOperationException
public ProcessInstance loadProcessInstance(long processInstanceId)
a
- JbpmException in case the process instance doesn't exist.getProcessInstance(long)
public ProcessInstance getProcessInstance(long processInstanceId)
public Token loadToken(long tokenId)
JbpmException
- in case the referenced token doesn't exist.public Token getToken(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)
public void deleteProcessInstance(ProcessInstance processInstance, boolean includeTasks, boolean includeTimers, boolean includeMessages)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |