org.activiti.engine.history
Interface HistoricProcessInstanceQuery

All Superinterfaces:
Query<HistoricProcessInstanceQuery,HistoricProcessInstance>

public interface HistoricProcessInstanceQuery
extends Query<HistoricProcessInstanceQuery,HistoricProcessInstance>

Allows programmatic querying of HistoricProcessInstances.

Author:
Tom Baeyens, Joram Barrez, Falko Menge

Method Summary
 HistoricProcessInstanceQuery finishDateBy(Date date)
          Only select historic process instances that were finished as of the provided date.
 HistoricProcessInstanceQuery finishDateOn(Date date)
          Only select historic process instances that were finished on provided date.
 HistoricProcessInstanceQuery finished()
          Only select historic process instances that are completely finished.
 HistoricProcessInstanceQuery orderByProcessDefinitionId()
          Order by the process definition id (needs to be followed by Query.asc() or Query.desc()).
 HistoricProcessInstanceQuery orderByProcessInstanceBusinessKey()
          Order by the business key (needs to be followed by Query.asc() or Query.desc()).
 HistoricProcessInstanceQuery orderByProcessInstanceDuration()
          Order by the duration of the process instance (needs to be followed by Query.asc() or Query.desc()).
 HistoricProcessInstanceQuery orderByProcessInstanceEndTime()
          Order by the end time (needs to be followed by Query.asc() or Query.desc()).
 HistoricProcessInstanceQuery orderByProcessInstanceId()
          Order by the process instance id (needs to be followed by Query.asc() or Query.desc()).
 HistoricProcessInstanceQuery orderByProcessInstanceStartTime()
          Order by the start time (needs to be followed by Query.asc() or Query.desc()).
 HistoricProcessInstanceQuery processDefinitionId(String processDefinitionId)
          Only select historic process instances for the given process definition
 HistoricProcessInstanceQuery processDefinitionKey(String processDefinitionKey)
          Only select historic process instances that are defined by a process definition with the given key.
 HistoricProcessInstanceQuery processInstanceBusinessKey(String processInstanceBusinessKey)
          Only select historic process instances with the given business key
 HistoricProcessInstanceQuery processInstanceId(String processInstanceId)
          Only select historic process instances with the given process instance.
 HistoricProcessInstanceQuery processInstanceIds(Set<String> processInstanceIds)
          Only select historic process instances whose id is in the given set of ids.
 HistoricProcessInstanceQuery startDateBy(Date date)
          Only select historic process instances that were started as of the provided date.
 HistoricProcessInstanceQuery startDateOn(Date date)
          Only select historic process instances that were started on the provided date.
 HistoricProcessInstanceQuery startedBy(String userId)
          Only select historic process instance that are started by the given user.
 HistoricProcessInstanceQuery superProcessInstanceId(String superProcessInstanceId)
          Only select historic process instances started by the given process instance.
 HistoricProcessInstanceQuery unfinished()
          Only select historic process instance that are not yet finished.
 
Methods inherited from interface org.activiti.engine.query.Query
asc, count, desc, list, listPage, singleResult
 

Method Detail

processInstanceId

HistoricProcessInstanceQuery processInstanceId(String processInstanceId)
Only select historic process instances with the given process instance. ProcessInstance) ids and {@link HistoricProcessInstance} ids match.


processInstanceIds

HistoricProcessInstanceQuery processInstanceIds(Set<String> processInstanceIds)
Only select historic process instances whose id is in the given set of ids. ProcessInstance) ids and {@link HistoricProcessInstance} ids match.


processDefinitionId

HistoricProcessInstanceQuery processDefinitionId(String processDefinitionId)
Only select historic process instances for the given process definition


processDefinitionKey

HistoricProcessInstanceQuery processDefinitionKey(String processDefinitionKey)
Only select historic process instances that are defined by a process definition with the given key.


processInstanceBusinessKey

HistoricProcessInstanceQuery processInstanceBusinessKey(String processInstanceBusinessKey)
Only select historic process instances with the given business key


finished

HistoricProcessInstanceQuery finished()
Only select historic process instances that are completely finished.


unfinished

HistoricProcessInstanceQuery unfinished()
Only select historic process instance that are not yet finished.


startDateBy

HistoricProcessInstanceQuery startDateBy(Date date)
Only select historic process instances that were started as of the provided date. (Date will be adjusted to reflect midnight)


startDateOn

HistoricProcessInstanceQuery startDateOn(Date date)
Only select historic process instances that were started on the provided date.


finishDateBy

HistoricProcessInstanceQuery finishDateBy(Date date)
Only select historic process instances that were finished as of the provided date. (Date will be adjusted to reflect one second before midnight)


finishDateOn

HistoricProcessInstanceQuery finishDateOn(Date date)
Only select historic process instances that were finished on provided date.


startedBy

HistoricProcessInstanceQuery startedBy(String userId)
Only select historic process instance that are started by the given user.


orderByProcessInstanceId

HistoricProcessInstanceQuery orderByProcessInstanceId()
Order by the process instance id (needs to be followed by Query.asc() or Query.desc()).


orderByProcessDefinitionId

HistoricProcessInstanceQuery orderByProcessDefinitionId()
Order by the process definition id (needs to be followed by Query.asc() or Query.desc()).


orderByProcessInstanceBusinessKey

HistoricProcessInstanceQuery orderByProcessInstanceBusinessKey()
Order by the business key (needs to be followed by Query.asc() or Query.desc()).


orderByProcessInstanceStartTime

HistoricProcessInstanceQuery orderByProcessInstanceStartTime()
Order by the start time (needs to be followed by Query.asc() or Query.desc()).


orderByProcessInstanceEndTime

HistoricProcessInstanceQuery orderByProcessInstanceEndTime()
Order by the end time (needs to be followed by Query.asc() or Query.desc()).


orderByProcessInstanceDuration

HistoricProcessInstanceQuery orderByProcessInstanceDuration()
Order by the duration of the process instance (needs to be followed by Query.asc() or Query.desc()).


superProcessInstanceId

HistoricProcessInstanceQuery superProcessInstanceId(String superProcessInstanceId)
Only select historic process instances started by the given process instance. ProcessInstance) ids and {@link HistoricProcessInstance} ids match.



Copyright © 2012 Alfresco. All Rights Reserved.