|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HistoryProcessInstanceQuery
query for ongoing and finished process instances.
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_KEY
Key propertu 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 | |
---|---|
long |
count()
execute a count(*) query and returns number of results |
HistoryProcessInstanceQuery |
ended()
select only process instances that have ended. |
HistoryProcessInstanceQuery |
endedAfter(java.util.Date threshold)
select only process instances that have ended on or after the given date. |
HistoryProcessInstanceQuery |
endedBefore(java.util.Date threshold)
select only process instances that have ended before the given date. |
java.util.List<HistoryProcessInstance> |
list()
execute the query and obtain the list of HistoryProcessInstance s |
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 with the given process definition |
HistoryProcessInstanceQuery |
processInstanceId(java.lang.String processInstanceId)
select only the process instances with the given id |
HistoryProcessInstanceQuery |
processInstanceKey(java.lang.String processInstanceKey)
select only process instances with the given business key |
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 |
---|
static final java.lang.String PROPERTY_STARTTIME
orderAsc(String)
and orderDesc(String)
static final java.lang.String PROPERTY_ENDTIME
orderAsc(String)
and orderDesc(String)
static final java.lang.String PROPERTY_ID
orderAsc(String)
and orderDesc(String)
static final java.lang.String PROPERTY_STATE
orderAsc(String)
and orderDesc(String)
static final java.lang.String PROPERTY_DURATION
orderAsc(String)
and orderDesc(String)
static final java.lang.String PROPERTY_KEY
orderAsc(String)
and orderDesc(String)
Method Detail |
---|
HistoryProcessInstanceQuery processInstanceId(java.lang.String processInstanceId)
HistoryProcessInstanceQuery processDefinitionId(java.lang.String processDefinitionId)
HistoryProcessInstanceQuery processInstanceKey(java.lang.String processInstanceKey)
HistoryProcessInstanceQuery state(java.lang.String state)
HistoryProcessInstanceQuery orderAsc(java.lang.String property)
properties
HistoryProcessInstanceQuery orderDesc(java.lang.String property)
properties
HistoryProcessInstanceQuery page(int firstResult, int maxResults)
HistoryProcessInstanceQuery ended()
endedBefore(Date)
or
endedAfter(Date)
HistoryProcessInstanceQuery endedBefore(java.util.Date threshold)
endedAfter(Date)
to specify a finite interval
java.lang.IllegalArgumentException
- if the given threshold is later
than the end-after date (if set), thus yielding an empty intervalHistoryProcessInstanceQuery endedAfter(java.util.Date threshold)
endedBefore(Date)
to specify a finite interval
java.lang.IllegalArgumentException
- if the given threshold is earlier
than the end-before date (if set), thus yielding an empty intervaljava.util.List<HistoryProcessInstance> list()
HistoryProcessInstance
s
HistoryProcessInstance uniqueResult()
HistoryProcessInstance
long count()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |