org.activiti.engine.history
接口 HistoricProcessInstanceQuery

所有超级接口:
Query<HistoricProcessInstanceQuery,HistoricProcessInstance>
所有已知实现类:
HistoricProcessInstanceQueryImpl

public interface HistoricProcessInstanceQuery
extends Query<HistoricProcessInstanceQuery,HistoricProcessInstance>

Allows programmatic querying of HistoricProcessInstances.

作者:
Tom Baeyens, Joram Barrez, Falko Menge

方法摘要
 HistoricProcessInstanceQuery excludeSubprocesses(boolean excludeSubprocesses)
          Exclude sub processes from the query result;
 HistoricProcessInstanceQuery finishDateBy(Date date)
          已过时。 will be removed in 5.12, use startedAfter(Date) and startedBefore(Date) instead
 HistoricProcessInstanceQuery finishDateOn(Date date)
          已过时。 will be removed in 5.12, use startedAfter(Date) and startedBefore(Date) instead
 HistoricProcessInstanceQuery finished()
          Only select historic process instances that are completely finished.
 HistoricProcessInstanceQuery finishedAfter(Date date)
          Only select historic process instances that were started after the given date.
 HistoricProcessInstanceQuery finishedBefore(Date date)
          Only select historic process instances that were started before the given date.
 HistoricProcessInstanceQuery includeProcessVariables()
          Include process variables in the process query result
 HistoricProcessInstanceQuery involvedUser(String userId)
          Only select the historic process instances with which the user with the given id is involved.
 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 processDefinitionKeyNotIn(List<String> processDefinitionKeys)
          Only select historic process instances that don't have a process-definition of which the key is present in the given list
 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)
          已过时。 will be removed in 5.12, use startedAfter(Date) and startedBefore(Date) instead
 HistoricProcessInstanceQuery startDateOn(Date date)
          已过时。 will be removed in 5.12, use startedAfter(Date) and startedBefore(Date) instead
 HistoricProcessInstanceQuery startedAfter(Date date)
          Only select historic process instances that were started after the given date.
 HistoricProcessInstanceQuery startedBefore(Date date)
          Only select historic process instances that were started before the given 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.
 HistoricProcessInstanceQuery variableValueEquals(Object value)
          Only select process instances which had at least one global variable with the given value when they ended.
 HistoricProcessInstanceQuery variableValueEquals(String name, Object value)
          Only select process instances which had a global variable with the given value when they ended.
 HistoricProcessInstanceQuery variableValueEqualsIgnoreCase(String name, String value)
          Only select historic process instances which have a local string variable with the given value, case insensitive.
 HistoricProcessInstanceQuery variableValueGreaterThan(String name, Object value)
          Only select process instances which had a global variable value greater than the passed value when they ended.
 HistoricProcessInstanceQuery variableValueGreaterThanOrEqual(String name, Object value)
          Only select process instances which had a global variable value greater than or equal to the passed value when they ended.
 HistoricProcessInstanceQuery variableValueLessThan(String name, Object value)
          Only select process instances which had a global variable value less than the passed value when the ended.
 HistoricProcessInstanceQuery variableValueLessThanOrEqual(String name, Object value)
          Only select process instances which has a global variable value less than or equal to the passed value when they ended.
 HistoricProcessInstanceQuery variableValueLike(String name, String value)
          Only select process instances which had global variable value like the given value when they ended.
 HistoricProcessInstanceQuery variableValueNotEquals(String name, Object value)
          Only select process instances which had a global variable with the given name, but with a different value than the passed value when they ended.
 
从接口 org.activiti.engine.query.Query 继承的方法
asc, count, desc, list, listPage, singleResult
 

方法详细信息

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.


processDefinitionKeyNotIn

HistoricProcessInstanceQuery processDefinitionKeyNotIn(List<String> processDefinitionKeys)
Only select historic process instances that don't have a process-definition of which the key is present in the given list


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.


involvedUser

HistoricProcessInstanceQuery involvedUser(String userId)
Only select the historic process instances with which the user with the given id is involved.


variableValueEquals

HistoricProcessInstanceQuery variableValueEquals(String name,
                                                 Object value)
Only select process instances which had a global variable with the given value when they ended. The type only applies to already ended process instances, otherwise use a ProcessInstanceQuery instead! of variable is determined based on the value, using types configured in ProcessEngineConfiguration#getVariableTypes(). Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.

参数:
name - of the variable, cannot be null.

variableValueEquals

HistoricProcessInstanceQuery variableValueEquals(Object value)
Only select process instances which had at least one global variable with the given value when they ended. The type only applies to already ended process instances, otherwise use a ProcessInstanceQuery instead! of variable is determined based on the value, using types configured in ProcessEngineConfiguration#getVariableTypes(). Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.


variableValueEqualsIgnoreCase

HistoricProcessInstanceQuery variableValueEqualsIgnoreCase(String name,
                                                           String value)
Only select historic process instances which have a local string variable with the given value, case insensitive.

参数:
name - name of the variable, cannot be null.
value - value of the variable, cannot be null.

variableValueNotEquals

HistoricProcessInstanceQuery variableValueNotEquals(String name,
                                                    Object value)
Only select process instances which had a global variable with the given name, but with a different value than the passed value when they ended. Only select process instances which have a variable value greater than the passed value. Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.

参数:
name - of the variable, cannot be null.

variableValueGreaterThan

HistoricProcessInstanceQuery variableValueGreaterThan(String name,
                                                      Object value)
Only select process instances which had a global variable value greater than the passed value when they ended. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported. Only select process instances which have a variable value greater than the passed value.

参数:
name - cannot be null.
value - cannot be null.

variableValueGreaterThanOrEqual

HistoricProcessInstanceQuery variableValueGreaterThanOrEqual(String name,
                                                             Object value)
Only select process instances which had a global variable value greater than or equal to the passed value when they ended. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported. Only applies to already ended process instances, otherwise use a ProcessInstanceQuery instead!

参数:
name - cannot be null.
value - cannot be null.

variableValueLessThan

HistoricProcessInstanceQuery variableValueLessThan(String name,
                                                   Object value)
Only select process instances which had a global variable value less than the passed value when the ended. Only applies to already ended process instances, otherwise use a ProcessInstanceQuery instead! Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.

参数:
name - cannot be null.
value - cannot be null.

variableValueLessThanOrEqual

HistoricProcessInstanceQuery variableValueLessThanOrEqual(String name,
                                                          Object value)
Only select process instances which has a global variable value less than or equal to the passed value when they ended. Only applies to already ended process instances, otherwise use a ProcessInstanceQuery instead! Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.

参数:
name - cannot be null.
value - cannot be null.

variableValueLike

HistoricProcessInstanceQuery variableValueLike(String name,
                                               String value)
Only select process instances which had global variable value like the given value when they ended. Only applies to already ended process instances, otherwise use a ProcessInstanceQuery instead! This can be used on string variables only.

参数:
name - cannot be null.
value - cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).

startedBefore

HistoricProcessInstanceQuery startedBefore(Date date)
Only select historic process instances that were started before the given date.


startedAfter

HistoricProcessInstanceQuery startedAfter(Date date)
Only select historic process instances that were started after the given date.


finishedBefore

HistoricProcessInstanceQuery finishedBefore(Date date)
Only select historic process instances that were started before the given date.


finishedAfter

HistoricProcessInstanceQuery finishedAfter(Date date)
Only select historic process instances that were started after the given 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.


excludeSubprocesses

HistoricProcessInstanceQuery excludeSubprocesses(boolean excludeSubprocesses)
Exclude sub processes from the query result;


startDateBy

HistoricProcessInstanceQuery startDateBy(Date date)
已过时。 will be removed in 5.12, use startedAfter(Date) and startedBefore(Date) instead

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)
已过时。 will be removed in 5.12, use startedAfter(Date) and startedBefore(Date) instead

Only select historic process instances that were started on the provided date.


finishDateBy

HistoricProcessInstanceQuery finishDateBy(Date date)
已过时。 will be removed in 5.12, use startedAfter(Date) and startedBefore(Date) instead

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)
已过时。 will be removed in 5.12, use startedAfter(Date) and startedBefore(Date) instead

Only select historic process instances that were finished on provided date.


includeProcessVariables

HistoricProcessInstanceQuery includeProcessVariables()
Include process variables in the process query result



Copyright © 2013 Alfresco. All rights reserved.