站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss JBPM 3.0.4 API 英文版文档

GraphSession (jbpm-3.0.4) - JBoss JBPM 3.0.4 API 英文版文档


org.jbpm.db
Class GraphSession

java.lang.Object
  extended byorg.jbpm.db.GraphSession

public class GraphSession
extends java.lang.Object

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

GraphSession

public GraphSession(JbpmSession jbpmSession)
Method Detail

saveProcessDefinition

public void saveProcessDefinition(ProcessDefinition processDefinition)
saves the process definitions. this method does not assign a version number. that is the responsibility of the ProcessArchiveDeployer.


loadProcessDefinition

public ProcessDefinition loadProcessDefinition(long processDefinitionId)
loads a process definition from the database by the identifier.

Throws:
JbpmException - in case no such process definition exists.

getProcessDefinition

public ProcessDefinition getProcessDefinition(long processDefinitionId)
gets a process definition from the database by the identifier.

Returns:
the referenced process definition or null in case no such process definition exists.

findProcessDefinition

public ProcessDefinition findProcessDefinition(java.lang.String name,
                                               int version)
queries the database for a process definition with the given name and version.


findLatestProcessDefinition

public ProcessDefinition findLatestProcessDefinition(java.lang.String name)
queries the database for the latest version of a process definition with the given name.


findLatestProcessDefinitions

public java.util.List findLatestProcessDefinitions()
queries the database for the latest version of each process definition. Process definitions are distinct by name.


findAllProcessDefinitions

public java.util.List findAllProcessDefinitions()
queries the database for all process definitions, ordered by name (ascending), then by version (descending).


findAllProcessDefinitionVersions

public 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).


deleteProcessDefinition

public void deleteProcessDefinition(long processDefinitionId)

deleteProcessDefinition

public void deleteProcessDefinition(ProcessDefinition processDefinition)

saveProcessInstance

public void saveProcessInstance(ProcessInstance processInstance)
save a new process instance.


loadProcessInstance

public ProcessInstance loadProcessInstance(long processInstanceId)
loads a process instance from the database by the identifier.


loadToken

public Token loadToken(long tokenId)
loads a token from the database by the identifier.


lockProcessInstance

public void lockProcessInstance(long processInstanceId)
locks a process instance in the database.


lockProcessInstance

public void lockProcessInstance(ProcessInstance processInstance)
locks a process instance in the database.


findProcessInstances

public java.util.List findProcessInstances(long processDefinitionId)
fetches all processInstances for the given process definition from the database. The returned list of process instances is sorted start date, youngest first.


deleteProcessInstance

public void deleteProcessInstance(long processInstanceId)

deleteProcessInstance

public void deleteProcessInstance(ProcessInstance processInstance)


Version : jbpm-3.0.4