org.jbpm.api.session
Interface PvmDbSession

All Superinterfaces:
DbSession

public interface PvmDbSession
extends DbSession

Author:
Tom Baeyens

Method Summary
 void deleteProcessDefinition(java.lang.String processDefinitionId, boolean deleteProcessInstances, boolean deleteHistory)
          delete process definition
 void deleteProcessInstance(java.lang.String processInstanceId)
          delete the process instance including the history.
 void deleteProcessInstance(java.lang.String processInstanceId, boolean deleteHistory)
          delete the process instance and optionally deletes the history.
 ClientExecution findExecutionById(java.lang.String executionId)
          the execution uniquely identified by the given executionKey.
 ClientExecution findExecutionByKey(java.lang.String processDefinitionName, java.lang.String executionKey)
          the execution uniquely identified by the given processDefinition name and the execution key.
 java.util.List<Job> findJobsWithException(int firstResult, int maxResults)
          the jobs for which all the retries have failed and which will not be picked up any more by the jobImpl executor
 ClientProcessDefinition findLatestProcessDefinitionByKey(java.lang.String processDefinitionKey)
          latest version of the processDefinition for the given key.
 java.util.List<Message> findMessages(int firstResult, int maxResults)
          timers
 ClientProcessDefinition findProcessDefinitionById(java.lang.String processDefinitionId)
          the process definition uniquely identified by the given processDefinition id.
 java.lang.String findProcessDefinitionKeyByName(java.lang.String processDefinitionName)
          the first key for an existing process definition with the given processDefinitionName
 java.util.List<java.lang.String> findProcessDefinitionKeys()
          all deployed process names.
 java.lang.String findProcessDefinitionNameByKey(java.lang.String processDefinitionKey)
          the first name for an existing process definition with the given processDefinitionKey
 java.util.List<ClientProcessDefinition> findProcessDefinitionsByKey(java.lang.String processDefinitionKey)
          all versions of the processDefinition for the given key.
 ClientExecution findProcessInstanceById(java.lang.String processInstanceId)
          the process instance uniquely identified by the given executionKey.
 java.util.List<java.lang.String> findProcessInstanceIds(java.lang.String processDefinitionId)
           
 java.util.List<Timer> findTimers(int firstResult, int maxResults)
          timers
 
Methods inherited from interface org.jbpm.api.session.DbSession
delete, flush, forceVersionUpdate, get, lockPessimistically, merge, save
 

Method Detail

findProcessDefinitionKeys

java.util.List<java.lang.String> findProcessDefinitionKeys()
all deployed process names.


findLatestProcessDefinitionByKey

ClientProcessDefinition findLatestProcessDefinitionByKey(java.lang.String processDefinitionKey)
latest version of the processDefinition for the given key.


findProcessDefinitionsByKey

java.util.List<ClientProcessDefinition> findProcessDefinitionsByKey(java.lang.String processDefinitionKey)
all versions of the processDefinition for the given key.


findProcessDefinitionById

ClientProcessDefinition findProcessDefinitionById(java.lang.String processDefinitionId)
the process definition uniquely identified by the given processDefinition id.


findProcessDefinitionKeyByName

java.lang.String findProcessDefinitionKeyByName(java.lang.String processDefinitionName)
the first key for an existing process definition with the given processDefinitionName


findProcessDefinitionNameByKey

java.lang.String findProcessDefinitionNameByKey(java.lang.String processDefinitionKey)
the first name for an existing process definition with the given processDefinitionKey


deleteProcessDefinition

void deleteProcessDefinition(java.lang.String processDefinitionId,
                             boolean deleteProcessInstances,
                             boolean deleteHistory)
delete process definition


findExecutionById

ClientExecution findExecutionById(java.lang.String executionId)
the execution uniquely identified by the given executionKey.


findProcessInstanceById

ClientExecution findProcessInstanceById(java.lang.String processInstanceId)
the process instance uniquely identified by the given executionKey.


findExecutionByKey

ClientExecution findExecutionByKey(java.lang.String processDefinitionName,
                                   java.lang.String executionKey)
the execution uniquely identified by the given processDefinition name and the execution key.


findProcessInstanceIds

java.util.List<java.lang.String> findProcessInstanceIds(java.lang.String processDefinitionId)

deleteProcessInstance

void deleteProcessInstance(java.lang.String processInstanceId)
delete the process instance including the history.


deleteProcessInstance

void deleteProcessInstance(java.lang.String processInstanceId,
                           boolean deleteHistory)
delete the process instance and optionally deletes the history.


findTimers

java.util.List<Timer> findTimers(int firstResult,
                                 int maxResults)
timers


findMessages

java.util.List<Message> findMessages(int firstResult,
                                     int maxResults)
timers


findJobsWithException

java.util.List<Job> findJobsWithException(int firstResult,
                                          int maxResults)
the jobs for which all the retries have failed and which will not be picked up any more by the jobImpl executor



Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.