org.jbpm.api.history
Interface HistoryTaskQuery


public interface HistoryTaskQuery

query for history tasks.

Author:
Tom Baeyens

Field Summary
static java.lang.String PROPERTY_ASSIGNEE
          outcome property to be used as property in orderAsc(String) and orderDesc(String)
static java.lang.String PROPERTY_CREATETIME
          starttime property to be used as property in orderAsc(String) and orderDesc(String)
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_EXECUTIONID
          executionId 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_OUTCOME
          outcome 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
 HistoryTaskQuery assignee(java.lang.String assignee)
          only select history tasks for the given assignee
 long count()
          execute a count(*) query and returns number of results
 HistoryTaskQuery executionId(java.lang.String executionId)
          only select history tasks within the given execution
 java.util.List<HistoryTask> list()
          execute the query and obtain the list of HistoryTasks
 HistoryTaskQuery orderAsc(java.lang.String property)
          order selected history tasks ascending for certain properties
 HistoryTaskQuery orderDesc(java.lang.String property)
          order selected process definitions descending for certain properties
 HistoryTaskQuery outcome(java.lang.String outcome)
          only select history tasks that have the given outcome
 HistoryTaskQuery page(int firstResult, int maxResults)
          select a specific page in the result set
 HistoryTaskQuery startedAfter(java.util.Date time)
          only select history tasks started after the given time
 HistoryTaskQuery startedBefore(java.util.Date time)
          only select history tasks started before the given time
 HistoryTaskQuery state(java.lang.String state)
          only select history tasks in the given state
 HistoryTaskQuery taskId(java.lang.String taskId)
          only select the history task for the given id
 HistoryTaskQuery tookLessThen(long durationInMillis)
          only select history tasks that took less then the given duration in milliseconds
 HistoryTaskQuery tookLongerThen(long durationInMillis)
          only select history tasks that took longer then the given duration in milliseconds
 HistoryTask uniqueResult()
          execute the query and obtain the unique HistoryTask
 

Field Detail

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_CREATETIME

static final java.lang.String PROPERTY_CREATETIME
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_EXECUTIONID

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

See Also:
Constant Field Values

PROPERTY_OUTCOME

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

See Also:
Constant Field Values

PROPERTY_ASSIGNEE

static final java.lang.String PROPERTY_ASSIGNEE
outcome 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

taskId

HistoryTaskQuery taskId(java.lang.String taskId)
only select the history task for the given id


executionId

HistoryTaskQuery executionId(java.lang.String executionId)
only select history tasks within the given execution


assignee

HistoryTaskQuery assignee(java.lang.String assignee)
only select history tasks for the given assignee


state

HistoryTaskQuery state(java.lang.String state)
only select history tasks in the given state


outcome

HistoryTaskQuery outcome(java.lang.String outcome)
only select history tasks that have the given outcome


orderAsc

HistoryTaskQuery orderAsc(java.lang.String property)
order selected history tasks ascending for certain properties


orderDesc

HistoryTaskQuery orderDesc(java.lang.String property)
order selected process definitions descending for certain properties


page

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


startedAfter

HistoryTaskQuery startedAfter(java.util.Date time)
only select history tasks started after the given time


startedBefore

HistoryTaskQuery startedBefore(java.util.Date time)
only select history tasks started before the given time


tookLessThen

HistoryTaskQuery tookLessThen(long durationInMillis)
only select history tasks that took less then the given duration in milliseconds


tookLongerThen

HistoryTaskQuery tookLongerThen(long durationInMillis)
only select history tasks that took longer then the given duration in milliseconds


list

java.util.List<HistoryTask> list()
execute the query and obtain the list of HistoryTasks


uniqueResult

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


count

long count()
execute a count(*) query and returns number of results



Copyright © 2010 JBoss Community. All Rights Reserved.