|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.db.GraphSession
public class GraphSession
graph-related database operations.
| Nested Class Summary | |
|---|---|
static class |
GraphSession.AverageNodeTimeEntry
|
| Constructor Summary | |
|---|---|
GraphSession(JbpmSession jbpmSession)
Deprecated. use GraphSession(Session) instead |
|
GraphSession(org.hibernate.Session session)
|
|
| Method Summary | |
|---|---|
List |
calculateAverageTimeByNode(long processDefinitionId,
long minumumDurationMillis)
|
void |
deleteProcessDefinition(long processDefinitionId)
|
void |
deleteProcessDefinition(ProcessDefinition processDefinition)
|
void |
deleteProcessInstance(long processInstanceId)
|
void |
deleteProcessInstance(ProcessInstance processInstance)
|
void |
deleteProcessInstance(ProcessInstance processInstance,
boolean includeTasks,
boolean includeJobs)
|
void |
deployProcessDefinition(ProcessDefinition processDefinition)
assigns a version number to the given process definition and then makes it persistent. |
List |
findActiveNodesByProcessInstance(ProcessInstance processInstance)
|
List |
findAllProcessDefinitions()
queries the database for all process definitions, ordered by name (ascending), then by version (descending). |
List |
findAllProcessDefinitionVersions(String name)
queries the database for all versions of process definitions with the given name, ordered by version (descending). |
ProcessDefinition |
findLatestProcessDefinition(String name)
queries the database for the latest version of a process definition with the given name. |
List |
findLatestProcessDefinitions()
queries the database for the latest version of each process definition. |
ProcessDefinition |
findProcessDefinition(String name,
int version)
finds the process definition with the given name and version. |
List |
findProcessDefinitions(Collection processDefinitionIds)
|
List |
findProcessInstances(long processDefinitionId)
finds all instances of the given process definition. |
ProcessDefinition |
getProcessDefinition(long processDefinitionId)
returns the persistent process definition with the given identifier. |
ProcessInstance |
getProcessInstance(long processInstanceId)
returns the persistent process instance with the given identifier. |
ProcessInstance |
getProcessInstance(ProcessDefinition processDefinition,
String key)
returns the instance of the given process definition with the specified business key. |
Token |
getToken(long tokenId)
returns the persistent token with the given identifier. |
ProcessDefinition |
loadProcessDefinition(long processDefinitionId)
returns the persistent process definition with the given identifier, assuming the definition exists. |
ProcessInstance |
loadProcessInstance(long processInstanceId)
returns the persistent process instance with the given identifier, assuming the instance exists. |
ProcessInstance |
loadProcessInstance(ProcessDefinition processDefinition,
String key)
returns the instance of the given process definition with the specified business key, assuming the instance exists. |
Token |
loadToken(long tokenId)
returns the persistent token with the given identifier, assuming the token exists. |
void |
lockProcessInstance(long processInstanceId)
obtains a pessimistic lock on the process instance with the given identifier. |
void |
lockProcessInstance(ProcessInstance processInstance)
obtains a pessimistic lock on the given process instance. |
void |
saveProcessDefinition(ProcessDefinition processDefinition)
saves the process definition. |
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)
GraphSession(Session) instead
public GraphSession(org.hibernate.Session session)
| Method Detail |
|---|
public void deployProcessDefinition(ProcessDefinition processDefinition)
public void saveProcessDefinition(ProcessDefinition processDefinition)
deployProcessDefinition(ProcessDefinition)public ProcessDefinition loadProcessDefinition(long processDefinitionId)
ObjectNotFoundException is thrown when the definition state is first accessed.
public ProcessDefinition getProcessDefinition(long processDefinitionId)
null if there is no such
definition.
public ProcessDefinition findProcessDefinition(String name,
int version)
public ProcessDefinition findLatestProcessDefinition(String name)
public List findLatestProcessDefinitions()
public List findProcessDefinitions(Collection processDefinitionIds)
public List findAllProcessDefinitions()
public List findAllProcessDefinitionVersions(String name)
public void deleteProcessDefinition(long processDefinitionId)
public void deleteProcessDefinition(ProcessDefinition processDefinition)
public void saveProcessInstance(ProcessInstance processInstance)
JbpmContext.save(ProcessInstance) instead.
public ProcessInstance loadProcessInstance(long processInstanceId)
ObjectNotFoundException is thrown when the instance state is first accessed.
public ProcessInstance getProcessInstance(long processInstanceId)
null if there is no such instancepublic Token loadToken(long tokenId)
ObjectNotFoundException is thrown
when the token state is first accessed.
public Token getToken(long tokenId)
null if there is no such token.public void lockProcessInstance(long processInstanceId)
public void lockProcessInstance(ProcessInstance processInstance)
public List findProcessInstances(long processDefinitionId)
public void deleteProcessInstance(long processInstanceId)
public void deleteProcessInstance(ProcessInstance processInstance)
public void deleteProcessInstance(ProcessInstance processInstance,
boolean includeTasks,
boolean includeJobs)
public List calculateAverageTimeByNode(long processDefinitionId,
long minumumDurationMillis)
public List findActiveNodesByProcessInstance(ProcessInstance processInstance)
public ProcessInstance getProcessInstance(ProcessDefinition processDefinition,
String key)
null if there is no such instance
public ProcessInstance loadProcessInstance(ProcessDefinition processDefinition,
String key)
JbpmPersistenceException - if the referenced process instance does not exist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||