org.jbpm.api.history
Interface HistoryProcessInstanceQuery


public interface HistoryProcessInstanceQuery

query for occurences of process instances.

Author:
Tom Baeyens

Field Summary
static java.lang.String PROPERTY_DURATION
          duration property to be used as property in orderAsc(String) and orderDesc(String)
static java.lang.String PROPERTY_ENDTIME
          endtime property to be used as property in orderAsc(String) and orderDesc(String)
static java.lang.String PROPERTY_ID
          id property to be used as property in orderAsc(String) and orderDesc(String)
static java.lang.String PROPERTY_STARTTIME
          starttime property to be used as property in orderAsc(String) and orderDesc(String)
static java.lang.String PROPERTY_STATE
          state property to be used as property in orderAsc(String) and orderDesc(String)
 
Method Summary
 java.util.List<HistoryProcessInstance> list()
          execute the query and obtain the list of HistoryProcessInstances
 HistoryProcessInstanceQuery orderAsc(java.lang.String property)
          order selected process instances ascending for certain properties
 HistoryProcessInstanceQuery orderDesc(java.lang.String property)
          order selected process instances ascending for certain properties
 HistoryProcessInstanceQuery page(int firstResult, int maxResults)
          select a specific page in the result set
 HistoryProcessInstanceQuery processDefinitionId(java.lang.String processDefinitionId)
          select only process instances within the given process definition
 HistoryProcessInstanceQuery processInstanceId(java.lang.String processInstanceId)
          select only the process instances with the given id
 HistoryProcessInstanceQuery state(java.lang.String state)
          select only process instances in the given state
 HistoryProcessInstance uniqueResult()
          execute the query and obtain the unique HistoryProcessInstance
 

Field Detail

PROPERTY_STARTTIME

static final java.lang.String PROPERTY_STARTTIME
starttime property to be used as property in orderAsc(String) and orderDesc(String)

See Also:
Constant Field Values

PROPERTY_ENDTIME

static final java.lang.String PROPERTY_ENDTIME
endtime property to be used as property in orderAsc(String) and orderDesc(String)

See Also:
Constant Field Values

PROPERTY_ID

static final java.lang.String PROPERTY_ID
id property to be used as property in orderAsc(String) and orderDesc(String)

See Also:
Constant Field Values

PROPERTY_STATE

static final java.lang.String PROPERTY_STATE
state property to be used as property in orderAsc(String) and orderDesc(String)

See Also:
Constant Field Values

PROPERTY_DURATION

static final java.lang.String PROPERTY_DURATION
duration property to be used as property in orderAsc(String) and orderDesc(String)

See Also:
Constant Field Values
Method Detail

processInstanceId

HistoryProcessInstanceQuery processInstanceId(java.lang.String processInstanceId)
select only the process instances with the given id


processDefinitionId

HistoryProcessInstanceQuery processDefinitionId(java.lang.String processDefinitionId)
select only process instances within the given process definition


state

HistoryProcessInstanceQuery state(java.lang.String state)
select only process instances in the given state


orderAsc

HistoryProcessInstanceQuery orderAsc(java.lang.String property)
order selected process instances ascending for certain properties


orderDesc

HistoryProcessInstanceQuery orderDesc(java.lang.String property)
order selected process instances ascending for certain properties


page

HistoryProcessInstanceQuery page(int firstResult,
                                 int maxResults)
select a specific page in the result set


list

java.util.List<HistoryProcessInstance> list()
execute the query and obtain the list of HistoryProcessInstances


uniqueResult

HistoryProcessInstance uniqueResult()
execute the query and obtain the unique HistoryProcessInstance



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