Package org.camunda.bpm.engine.impl
Class HistoricProcessInstanceQueryImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.ListQueryParameterObject
-
- org.camunda.bpm.engine.impl.AbstractQuery<T,U>
-
- org.camunda.bpm.engine.impl.AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
-
- org.camunda.bpm.engine.impl.HistoricProcessInstanceQueryImpl
-
- All Implemented Interfaces:
java.io.Serializable,HistoricProcessInstanceQuery,Command<java.lang.Object>,Query<HistoricProcessInstanceQuery,HistoricProcessInstance>
public class HistoricProcessInstanceQueryImpl extends AbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance> implements HistoricProcessInstanceQuery
- Author:
- Tom Baeyens, Falko Menge, Bernd Ruecker
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String[]activeActivityIdsprotected java.lang.StringbusinessKeyprotected java.lang.String[]businessKeyInprotected java.lang.StringbusinessKeyLikeprotected java.lang.StringcaseInstanceIdprotected java.util.DateexecutedActivityAfterprotected java.util.DateexecutedActivityBeforeprotected java.lang.String[]executedActivityIdsprotected java.util.DateexecutedJobAfterprotected java.util.DateexecutedJobBeforeprotected java.util.DatefinishDateByprotected java.util.DatefinishDateOnprotected java.util.DatefinishDateOnBeginprotected java.util.DatefinishDateOnEndprotected booleanfinishedprotected java.util.DatefinishedAfterprotected java.util.DatefinishedBeforeprotected java.lang.StringincidentMessageprotected java.lang.StringincidentMessageLikeprotected java.lang.StringincidentStatusprotected java.lang.StringincidentTypeprotected booleanisOrQueryActiveprotected booleanisRootProcessInstancesprotected booleanisTenantIdSetprotected java.lang.StringprocessDefinitionIdprotected java.lang.StringprocessDefinitionKeyprotected java.lang.String[]processDefinitionKeysprotected java.lang.StringprocessDefinitionNameprotected java.lang.StringprocessDefinitionNameLikeprotected java.lang.StringprocessInstanceIdprotected java.util.Set<java.lang.String>processInstanceIdsprotected java.util.List<java.lang.String>processKeyNotInprotected java.util.List<HistoricProcessInstanceQueryImpl>queriesprotected java.util.Map<java.lang.String,java.util.Set<QueryVariableValue>>queryVariableNameToValuesMapprotected java.util.DatestartDateByprotected java.util.DatestartDateOnprotected java.util.DatestartDateOnBeginprotected java.util.DatestartDateOnEndprotected java.util.DatestartedAfterprotected java.util.DatestartedBeforeprotected java.lang.StringstartedByprotected java.lang.Stringstateprotected java.lang.StringsubCaseInstanceIdprotected java.lang.StringsubProcessInstanceIdprotected java.lang.StringsuperCaseInstanceIdprotected java.lang.StringsuperProcessInstanceIdprotected java.lang.String[]tenantIdsprotected booleanunfinishedprotected booleanwithIncidentsprotected booleanwithRootIncidents-
Fields inherited from class org.camunda.bpm.engine.impl.AbstractVariableQueryImpl
queryVariableValues, variableNamesIgnoreCase, variableValuesIgnoreCase
-
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
-
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
-
-
Constructor Summary
Constructors Constructor Description HistoricProcessInstanceQueryImpl()HistoricProcessInstanceQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HistoricProcessInstanceQueryactive()Only select historic process instances that are active.HistoricProcessInstanceQueryactiveActivityIdIn(java.lang.String... ids)Only select historic process instances that have active activities with given ids.voidaddOrQuery(HistoricProcessInstanceQueryImpl orQuery)protected voidaddVariable(java.lang.String name, java.lang.Object value, QueryOperator operator, boolean processInstanceScope)HistoricProcessInstanceQuerycaseInstanceId(java.lang.String caseInstanceId)Only select historic process instances which are associated with the given case instance id.HistoricProcessInstanceQuerycompleted()Only select historic process instances that are completed.HistoricProcessInstanceQueryendOr()endOr() terminates an OR query on which an arbitrary amount of filter criteria were applied.protected voidensureVariablesInitialized()longexecuteCount(CommandContext commandContext)HistoricProcessInstanceQueryexecutedActivityAfter(java.util.Date date)Only select historic process instances that executed an activity after the given date.HistoricProcessInstanceQueryexecutedActivityBefore(java.util.Date date)Only select historic process instances that executed an activity before the given date.HistoricProcessInstanceQueryexecutedActivityIdIn(java.lang.String... ids)Only select historic process instances that executed activities with given ids.java.util.List<ImmutablePair<java.lang.String,java.lang.String>>executeDeploymentIdMappingsList(CommandContext commandContext)HistoricProcessInstanceQueryexecutedJobAfter(java.util.Date date)Only select historic process instances that executed an job after the given date.HistoricProcessInstanceQueryexecutedJobBefore(java.util.Date date)Only select historic process instances that executed an job before the given date.java.util.List<java.lang.String>executeIdsList(CommandContext commandContext)java.util.List<HistoricProcessInstance>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.HistoricProcessInstanceQueryexternallyTerminated()Only select historic process instances that are externallyTerminated.HistoricProcessInstanceQueryfinishDateBy(java.util.Date date)Deprecated.HistoricProcessInstanceQueryfinishDateOn(java.util.Date date)Deprecated.HistoricProcessInstanceQueryfinished()Only select historic process instances that are completely finished.HistoricProcessInstanceQueryfinishedAfter(java.util.Date date)Only select historic process instances that were started after the given date.HistoricProcessInstanceQueryfinishedBefore(java.util.Date date)Only select historic process instances that were started before the given date.java.lang.String[]getActiveActivityIds()java.lang.StringgetBusinessKey()java.lang.String[]getBusinessKeyIn()java.lang.StringgetBusinessKeyLike()java.lang.StringgetCaseInstanceId()java.util.DategetExecutedActivityAfter()java.util.DategetExecutedActivityBefore()java.lang.String[]getExecutedActivityIds()java.util.DategetExecutedJobAfter()java.util.DategetExecutedJobBefore()java.util.DategetFinishDateBy()java.util.DategetFinishDateOn()java.util.DategetFinishDateOnBegin()java.util.DategetFinishDateOnEnd()java.util.DategetFinishedAfter()java.util.DategetFinishedBefore()java.lang.StringgetIncidentMessage()java.lang.StringgetIncidentMessageLike()java.lang.StringgetIncidentStatus()java.lang.StringgetIncidentType()booleangetIsTenantIdSet()java.lang.StringgetProcessDefinitionId()java.lang.StringgetProcessDefinitionIdLike()java.lang.StringgetProcessDefinitionKey()java.lang.String[]getProcessDefinitionKeys()java.lang.StringgetProcessDefinitionName()java.lang.StringgetProcessDefinitionNameLike()java.lang.StringgetProcessInstanceId()java.util.Set<java.lang.String>getProcessInstanceIds()java.util.List<java.lang.String>getProcessKeyNotIn()java.util.List<HistoricProcessInstanceQueryImpl>getQueries()java.util.Map<java.lang.String,java.util.Set<QueryVariableValue>>getQueryVariableNameToValuesMap()java.util.List<QueryVariableValue>getQueryVariableValues()java.util.DategetStartDateBy()java.util.DategetStartDateOn()java.util.DategetStartDateOnBegin()java.util.DategetStartDateOnEnd()java.util.DategetStartedAfter()java.util.DategetStartedBefore()java.lang.StringgetStartedBy()java.lang.StringgetState()java.lang.StringgetSubCaseInstanceId()java.lang.StringgetSubProcessInstanceId()java.lang.StringgetSuperCaseInstanceId()java.lang.StringgetSuperProcessInstanceId()java.lang.String[]getTenantIds()protected booleanhasExcludingConditions()Whether or not the query has excluding conditions.HistoricProcessInstanceQueryincidentMessage(java.lang.String incidentMessage)Only select historic process instances with the given incident message.HistoricProcessInstanceQueryincidentMessageLike(java.lang.String incidentMessageLike)Only select historic process instances which had an incident message like the given value.HistoricProcessInstanceQueryincidentStatus(java.lang.String status)Only select historic process instances with incident status either 'open' or 'resolved'.HistoricProcessInstanceQueryincidentType(java.lang.String incidentType)Only selects process instances with the given incident type.HistoricProcessInstanceQueryinternallyTerminated()Only select historic process instances that are internallyTerminated.booleanisFinished()booleanisOpen()booleanisOrQueryActive()booleanisRootProcessInstances()booleanisTenantIdSet()booleanisUnfinished()booleanisWithIncidents()booleanisWithRootIncidents()HistoricProcessInstanceQueryor()After calling or(), a chain of several filter criteria could follow.HistoricProcessInstanceQueryorderByProcessDefinitionId()Order by the process definition id (needs to be followed byQuery.asc()orQuery.desc()).HistoricProcessInstanceQueryorderByProcessDefinitionKey()Order by the process definition key (needs to be followed byQuery.asc()orQuery.desc()).HistoricProcessInstanceQueryorderByProcessDefinitionName()Order by the process definition name (needs to be followed byQuery.asc()orQuery.desc()).HistoricProcessInstanceQueryorderByProcessDefinitionVersion()Order by the process definition version (needs to be followed byQuery.asc()orQuery.desc()).HistoricProcessInstanceQueryorderByProcessInstanceBusinessKey()Order by the business key (needs to be followed byQuery.asc()orQuery.desc()).HistoricProcessInstanceQueryorderByProcessInstanceDuration()Order by the duration of the process instance (needs to be followed byQuery.asc()orQuery.desc()).HistoricProcessInstanceQueryorderByProcessInstanceEndTime()Order by the end time (needs to be followed byQuery.asc()orQuery.desc()).HistoricProcessInstanceQueryorderByProcessInstanceId()Order by the process instance id (needs to be followed byQuery.asc()orQuery.desc()).HistoricProcessInstanceQueryorderByProcessInstanceStartTime()Order by the start time (needs to be followed byQuery.asc()orQuery.desc()).HistoricProcessInstanceQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).HistoricProcessInstanceQueryImplprocessDefinitionId(java.lang.String processDefinitionId)Only select historic process instances for the given process definitionHistoricProcessInstanceQueryprocessDefinitionKey(java.lang.String processDefinitionKey)Only select historic process instances that are defined by a process definition with the given key.HistoricProcessInstanceQueryprocessDefinitionKeyIn(java.lang.String... processDefinitionKeys)Only select historic process instances that are defined by any given process definition key.HistoricProcessInstanceQueryprocessDefinitionKeyNotIn(java.util.List<java.lang.String> processDefinitionKeys)Only select historic process instances that don't have a process-definition of which the key is present in the given listHistoricProcessInstanceQueryprocessDefinitionName(java.lang.String processDefinitionName)Only select historic process instances that are defined by a process definition with the given name.HistoricProcessInstanceQueryprocessDefinitionNameLike(java.lang.String nameLike)Only select historic process instances that are defined by process definition which name is like the given value.HistoricProcessInstanceQueryprocessInstanceBusinessKey(java.lang.String businessKey)Only select historic process instances with the given business keyHistoricProcessInstanceQueryprocessInstanceBusinessKeyIn(java.lang.String... businessKeyIn)Only select historic process instances whose business key is in the given set.HistoricProcessInstanceQueryprocessInstanceBusinessKeyLike(java.lang.String businessKeyLike)Only select historic process instances which had a business key like the given value.HistoricProcessInstanceQueryImplprocessInstanceId(java.lang.String processInstanceId)Only select historic process instances with the given process instance.HistoricProcessInstanceQueryprocessInstanceIds(java.util.Set<java.lang.String> processInstanceIds)Only select historic process instances whose id is in the given set of ids.HistoricProcessInstanceQueryrootProcessInstances()Only select historic process instances that are top level process instances.voidsetOrQueryActive()voidsetSuperProcessInstanceId(java.lang.String superProcessInstanceId)HistoricProcessInstanceQuerystartDateBy(java.util.Date date)Deprecated.HistoricProcessInstanceQuerystartDateOn(java.util.Date date)Deprecated.HistoricProcessInstanceQuerystartedAfter(java.util.Date date)Only select historic process instances that were started after the given date.HistoricProcessInstanceQuerystartedBefore(java.util.Date date)Only select historic process instances that were started before the given date.HistoricProcessInstanceQuerystartedBy(java.lang.String userId)Only select historic process instance that are started by the given user.HistoricProcessInstanceQuerysubCaseInstanceId(java.lang.String subCaseInstanceId)Only select historic process instances having a sub case instance with the given case instance id.HistoricProcessInstanceQuerysubProcessInstanceId(java.lang.String subProcessInstanceId)Only select historic process instances having a sub process instance with the given process instance id.HistoricProcessInstanceQuerysuperCaseInstanceId(java.lang.String superCaseInstanceId)Only select historic process instances started by the given case instance.HistoricProcessInstanceQuerysuperProcessInstanceId(java.lang.String superProcessInstanceId)Only select historic process instances started by the given process instance.HistoricProcessInstanceQuerysuspended()Only select historic process instances that are suspended.HistoricProcessInstanceQuerytenantIdIn(java.lang.String... tenantIds)Only select historic process instances with one of the given tenant ids.HistoricProcessInstanceQueryunfinished()Only select historic process instance that are not yet finished.HistoricProcessInstanceQuerywithIncidents()Only select historic process instances with incidentsHistoricProcessInstanceQuerywithoutTenantId()Only selects historic process instances which have no tenant id.HistoricProcessInstanceQuerywithRootIncidents()Only select historic process instances with root incidents-
Methods inherited from class org.camunda.bpm.engine.impl.AbstractVariableQueryImpl
createQueryVariableValue, isVariableNamesIgnoreCase, isVariableValuesIgnoreCase, matchVariableNamesIgnoreCase, matchVariableValuesIgnoreCase, validateVariable, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals, variableValueNotLike
-
Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
addExpression, addValidator, asc, checkMaxResultsLimit, checkQueryOk, count, desc, direction, disableMaxResultsLimit, enableMaxResultsLimit, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteDeploymentIdMappingsList, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeResult, executeSingleResult, extend, getExpressions, getMethod, list, listDeploymentIdMappings, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, unlimitedList, validate, validate
-
Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
-
Methods inherited from interface org.camunda.bpm.engine.history.HistoricProcessInstanceQuery
matchVariableNamesIgnoreCase, matchVariableValuesIgnoreCase, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals
-
Methods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
-
-
-
Field Detail
-
processInstanceId
protected java.lang.String processInstanceId
-
processDefinitionId
protected java.lang.String processDefinitionId
-
processDefinitionName
protected java.lang.String processDefinitionName
-
processDefinitionNameLike
protected java.lang.String processDefinitionNameLike
-
businessKey
protected java.lang.String businessKey
-
businessKeyIn
protected java.lang.String[] businessKeyIn
-
businessKeyLike
protected java.lang.String businessKeyLike
-
finished
protected boolean finished
-
unfinished
protected boolean unfinished
-
withIncidents
protected boolean withIncidents
-
withRootIncidents
protected boolean withRootIncidents
-
incidentType
protected java.lang.String incidentType
-
incidentStatus
protected java.lang.String incidentStatus
-
incidentMessage
protected java.lang.String incidentMessage
-
incidentMessageLike
protected java.lang.String incidentMessageLike
-
startedBy
protected java.lang.String startedBy
-
isRootProcessInstances
protected boolean isRootProcessInstances
-
superProcessInstanceId
protected java.lang.String superProcessInstanceId
-
subProcessInstanceId
protected java.lang.String subProcessInstanceId
-
superCaseInstanceId
protected java.lang.String superCaseInstanceId
-
subCaseInstanceId
protected java.lang.String subCaseInstanceId
-
processKeyNotIn
protected java.util.List<java.lang.String> processKeyNotIn
-
startedBefore
protected java.util.Date startedBefore
-
startedAfter
protected java.util.Date startedAfter
-
finishedBefore
protected java.util.Date finishedBefore
-
finishedAfter
protected java.util.Date finishedAfter
-
executedActivityAfter
protected java.util.Date executedActivityAfter
-
executedActivityBefore
protected java.util.Date executedActivityBefore
-
executedJobAfter
protected java.util.Date executedJobAfter
-
executedJobBefore
protected java.util.Date executedJobBefore
-
processDefinitionKey
protected java.lang.String processDefinitionKey
-
processDefinitionKeys
protected java.lang.String[] processDefinitionKeys
-
processInstanceIds
protected java.util.Set<java.lang.String> processInstanceIds
-
tenantIds
protected java.lang.String[] tenantIds
-
isTenantIdSet
protected boolean isTenantIdSet
-
executedActivityIds
protected java.lang.String[] executedActivityIds
-
activeActivityIds
protected java.lang.String[] activeActivityIds
-
state
protected java.lang.String state
-
caseInstanceId
protected java.lang.String caseInstanceId
-
queries
protected java.util.List<HistoricProcessInstanceQueryImpl> queries
-
isOrQueryActive
protected boolean isOrQueryActive
-
queryVariableNameToValuesMap
protected java.util.Map<java.lang.String,java.util.Set<QueryVariableValue>> queryVariableNameToValuesMap
-
startDateBy
protected java.util.Date startDateBy
-
startDateOn
protected java.util.Date startDateOn
-
finishDateBy
protected java.util.Date finishDateBy
-
finishDateOn
protected java.util.Date finishDateOn
-
startDateOnBegin
protected java.util.Date startDateOnBegin
-
startDateOnEnd
protected java.util.Date startDateOnEnd
-
finishDateOnBegin
protected java.util.Date finishDateOnBegin
-
finishDateOnEnd
protected java.util.Date finishDateOnEnd
-
-
Constructor Detail
-
HistoricProcessInstanceQueryImpl
public HistoricProcessInstanceQueryImpl()
-
HistoricProcessInstanceQueryImpl
public HistoricProcessInstanceQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
processInstanceId
public HistoricProcessInstanceQueryImpl processInstanceId(java.lang.String processInstanceId)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances with the given process instance. {@link ProcessInstance) ids and {@link HistoricProcessInstance} ids match.- Specified by:
processInstanceIdin interfaceHistoricProcessInstanceQuery
-
processInstanceIds
public HistoricProcessInstanceQuery processInstanceIds(java.util.Set<java.lang.String> processInstanceIds)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances whose id is in the given set of ids. {@link ProcessInstance) ids and {@link HistoricProcessInstance} ids match.- Specified by:
processInstanceIdsin interfaceHistoricProcessInstanceQuery
-
processDefinitionId
public HistoricProcessInstanceQueryImpl processDefinitionId(java.lang.String processDefinitionId)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances for the given process definition- Specified by:
processDefinitionIdin interfaceHistoricProcessInstanceQuery
-
processDefinitionKey
public HistoricProcessInstanceQuery processDefinitionKey(java.lang.String processDefinitionKey)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that are defined by a process definition with the given key.- Specified by:
processDefinitionKeyin interfaceHistoricProcessInstanceQuery
-
processDefinitionKeyIn
public HistoricProcessInstanceQuery processDefinitionKeyIn(java.lang.String... processDefinitionKeys)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that are defined by any given process definition key.- Specified by:
processDefinitionKeyInin interfaceHistoricProcessInstanceQuery
-
processDefinitionName
public HistoricProcessInstanceQuery processDefinitionName(java.lang.String processDefinitionName)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that are defined by a process definition with the given name.- Specified by:
processDefinitionNamein interfaceHistoricProcessInstanceQuery
-
processDefinitionNameLike
public HistoricProcessInstanceQuery processDefinitionNameLike(java.lang.String nameLike)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that are defined by process definition which name is like the given value.- Specified by:
processDefinitionNameLikein interfaceHistoricProcessInstanceQuery- Parameters:
nameLike- The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
-
processInstanceBusinessKey
public HistoricProcessInstanceQuery processInstanceBusinessKey(java.lang.String businessKey)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances with the given business key- Specified by:
processInstanceBusinessKeyin interfaceHistoricProcessInstanceQuery
-
processInstanceBusinessKeyIn
public HistoricProcessInstanceQuery processInstanceBusinessKeyIn(java.lang.String... businessKeyIn)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances whose business key is in the given set.- Specified by:
processInstanceBusinessKeyInin interfaceHistoricProcessInstanceQuery
-
processInstanceBusinessKeyLike
public HistoricProcessInstanceQuery processInstanceBusinessKeyLike(java.lang.String businessKeyLike)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances which had a business key like the given value.- Specified by:
processInstanceBusinessKeyLikein interfaceHistoricProcessInstanceQuery- Parameters:
businessKeyLike- The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
-
finished
public HistoricProcessInstanceQuery finished()
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that are completely finished.- Specified by:
finishedin interfaceHistoricProcessInstanceQuery
-
unfinished
public HistoricProcessInstanceQuery unfinished()
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instance that are not yet finished.- Specified by:
unfinishedin interfaceHistoricProcessInstanceQuery
-
withIncidents
public HistoricProcessInstanceQuery withIncidents()
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances with incidents- Specified by:
withIncidentsin interfaceHistoricProcessInstanceQuery- Returns:
- HistoricProcessInstanceQuery
-
withRootIncidents
public HistoricProcessInstanceQuery withRootIncidents()
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances with root incidents- Specified by:
withRootIncidentsin interfaceHistoricProcessInstanceQuery- Returns:
- HistoricProcessInstanceQuery
-
incidentType
public HistoricProcessInstanceQuery incidentType(java.lang.String incidentType)
Description copied from interface:HistoricProcessInstanceQueryOnly selects process instances with the given incident type.- Specified by:
incidentTypein interfaceHistoricProcessInstanceQuery
-
incidentStatus
public HistoricProcessInstanceQuery incidentStatus(java.lang.String status)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances with incident status either 'open' or 'resolved'. To get all process instances with incidents, useHistoricProcessInstanceQuery.withIncidents().- Specified by:
incidentStatusin interfaceHistoricProcessInstanceQuery- Parameters:
status- indicates the incident status, which is either 'open' or 'resolved'- Returns:
HistoricProcessInstanceQuery
-
incidentMessage
public HistoricProcessInstanceQuery incidentMessage(java.lang.String incidentMessage)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances with the given incident message.- Specified by:
incidentMessagein interfaceHistoricProcessInstanceQuery- Parameters:
incidentMessage- Incidents Message for which the historic process instances should be selected- Returns:
- HistoricProcessInstanceQuery
-
incidentMessageLike
public HistoricProcessInstanceQuery incidentMessageLike(java.lang.String incidentMessageLike)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances which had an incident message like the given value.- Specified by:
incidentMessageLikein interfaceHistoricProcessInstanceQuery- Parameters:
incidentMessageLike- The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).- Returns:
- HistoricProcessInstanceQuery
-
startedBy
public HistoricProcessInstanceQuery startedBy(java.lang.String userId)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instance that are started by the given user.- Specified by:
startedByin interfaceHistoricProcessInstanceQuery
-
processDefinitionKeyNotIn
public HistoricProcessInstanceQuery processDefinitionKeyNotIn(java.util.List<java.lang.String> processDefinitionKeys)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that don't have a process-definition of which the key is present in the given list- Specified by:
processDefinitionKeyNotInin interfaceHistoricProcessInstanceQuery
-
startedAfter
public HistoricProcessInstanceQuery startedAfter(java.util.Date date)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that were started after the given date.- Specified by:
startedAfterin interfaceHistoricProcessInstanceQuery
-
startedBefore
public HistoricProcessInstanceQuery startedBefore(java.util.Date date)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that were started before the given date.- Specified by:
startedBeforein interfaceHistoricProcessInstanceQuery
-
finishedAfter
public HistoricProcessInstanceQuery finishedAfter(java.util.Date date)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that were started after the given date.- Specified by:
finishedAfterin interfaceHistoricProcessInstanceQuery
-
finishedBefore
public HistoricProcessInstanceQuery finishedBefore(java.util.Date date)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that were started before the given date.- Specified by:
finishedBeforein interfaceHistoricProcessInstanceQuery
-
rootProcessInstances
public HistoricProcessInstanceQuery rootProcessInstances()
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that are top level process instances.- Specified by:
rootProcessInstancesin interfaceHistoricProcessInstanceQuery
-
superProcessInstanceId
public HistoricProcessInstanceQuery superProcessInstanceId(java.lang.String superProcessInstanceId)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances started by the given process instance. {@link ProcessInstance) ids and {@link HistoricProcessInstance} ids match.- Specified by:
superProcessInstanceIdin interfaceHistoricProcessInstanceQuery
-
subProcessInstanceId
public HistoricProcessInstanceQuery subProcessInstanceId(java.lang.String subProcessInstanceId)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances having a sub process instance with the given process instance id. Note that there will always be maximum only one such process instance that can be the result of this query.- Specified by:
subProcessInstanceIdin interfaceHistoricProcessInstanceQuery
-
superCaseInstanceId
public HistoricProcessInstanceQuery superCaseInstanceId(java.lang.String superCaseInstanceId)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances started by the given case instance.- Specified by:
superCaseInstanceIdin interfaceHistoricProcessInstanceQuery
-
subCaseInstanceId
public HistoricProcessInstanceQuery subCaseInstanceId(java.lang.String subCaseInstanceId)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances having a sub case instance with the given case instance id. Note that there will always be maximum only one such process instance that can be the result of this query.- Specified by:
subCaseInstanceIdin interfaceHistoricProcessInstanceQuery
-
caseInstanceId
public HistoricProcessInstanceQuery caseInstanceId(java.lang.String caseInstanceId)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances which are associated with the given case instance id.- Specified by:
caseInstanceIdin interfaceHistoricProcessInstanceQuery
-
tenantIdIn
public HistoricProcessInstanceQuery tenantIdIn(java.lang.String... tenantIds)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances with one of the given tenant ids.- Specified by:
tenantIdInin interfaceHistoricProcessInstanceQuery
-
withoutTenantId
public HistoricProcessInstanceQuery withoutTenantId()
Description copied from interface:HistoricProcessInstanceQueryOnly selects historic process instances which have no tenant id.- Specified by:
withoutTenantIdin interfaceHistoricProcessInstanceQuery
-
hasExcludingConditions
protected boolean hasExcludingConditions()
Description copied from class:AbstractQueryWhether or not the query has excluding conditions. If the query has excluding conditions, (e.g. task due date before and after are excluding), the SQL query is avoided and a default result is returned. The returned result is the same as if the SQL was executed and there were no entries.- Overrides:
hasExcludingConditionsin classAbstractQuery<HistoricProcessInstanceQuery,HistoricProcessInstance>- Returns:
trueif the query does have excluding conditions,falseotherwise
-
orderByProcessInstanceBusinessKey
public HistoricProcessInstanceQuery orderByProcessInstanceBusinessKey()
Description copied from interface:HistoricProcessInstanceQueryOrder by the business key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceBusinessKeyin interfaceHistoricProcessInstanceQuery
-
orderByProcessInstanceDuration
public HistoricProcessInstanceQuery orderByProcessInstanceDuration()
Description copied from interface:HistoricProcessInstanceQueryOrder by the duration of the process instance (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceDurationin interfaceHistoricProcessInstanceQuery
-
orderByProcessInstanceStartTime
public HistoricProcessInstanceQuery orderByProcessInstanceStartTime()
Description copied from interface:HistoricProcessInstanceQueryOrder by the start time (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceStartTimein interfaceHistoricProcessInstanceQuery
-
orderByProcessInstanceEndTime
public HistoricProcessInstanceQuery orderByProcessInstanceEndTime()
Description copied from interface:HistoricProcessInstanceQueryOrder by the end time (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceEndTimein interfaceHistoricProcessInstanceQuery
-
orderByProcessDefinitionId
public HistoricProcessInstanceQuery orderByProcessDefinitionId()
Description copied from interface:HistoricProcessInstanceQueryOrder by the process definition id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionIdin interfaceHistoricProcessInstanceQuery
-
orderByProcessDefinitionKey
public HistoricProcessInstanceQuery orderByProcessDefinitionKey()
Description copied from interface:HistoricProcessInstanceQueryOrder by the process definition key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionKeyin interfaceHistoricProcessInstanceQuery
-
orderByProcessDefinitionName
public HistoricProcessInstanceQuery orderByProcessDefinitionName()
Description copied from interface:HistoricProcessInstanceQueryOrder by the process definition name (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionNamein interfaceHistoricProcessInstanceQuery
-
orderByProcessDefinitionVersion
public HistoricProcessInstanceQuery orderByProcessDefinitionVersion()
Description copied from interface:HistoricProcessInstanceQueryOrder by the process definition version (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionVersionin interfaceHistoricProcessInstanceQuery
-
orderByProcessInstanceId
public HistoricProcessInstanceQuery orderByProcessInstanceId()
Description copied from interface:HistoricProcessInstanceQueryOrder by the process instance id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceHistoricProcessInstanceQuery
-
orderByTenantId
public HistoricProcessInstanceQuery orderByTenantId()
Description copied from interface:HistoricProcessInstanceQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()). Note that the ordering of historic process instances without tenant id is database-specific.- Specified by:
orderByTenantIdin interfaceHistoricProcessInstanceQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
-
executeList
public java.util.List<HistoricProcessInstance> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>page- used if the results must be paged. If null, no paging will be applied.
-
executeIdsList
public java.util.List<java.lang.String> executeIdsList(CommandContext commandContext)
- Overrides:
executeIdsListin classAbstractQuery<HistoricProcessInstanceQuery,HistoricProcessInstance>
-
executeDeploymentIdMappingsList
public java.util.List<ImmutablePair<java.lang.String,java.lang.String>> executeDeploymentIdMappingsList(CommandContext commandContext)
- Overrides:
executeDeploymentIdMappingsListin classAbstractQuery<HistoricProcessInstanceQuery,HistoricProcessInstance>
-
getQueryVariableValues
public java.util.List<QueryVariableValue> getQueryVariableValues()
- Overrides:
getQueryVariableValuesin classAbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
-
getQueryVariableNameToValuesMap
public java.util.Map<java.lang.String,java.util.Set<QueryVariableValue>> getQueryVariableNameToValuesMap()
-
ensureVariablesInitialized
protected void ensureVariablesInitialized()
-
addVariable
protected void addVariable(java.lang.String name, java.lang.Object value, QueryOperator operator, boolean processInstanceScope)- Overrides:
addVariablein classAbstractVariableQueryImpl<HistoricProcessInstanceQuery,HistoricProcessInstance>
-
getQueries
public java.util.List<HistoricProcessInstanceQueryImpl> getQueries()
-
addOrQuery
public void addOrQuery(HistoricProcessInstanceQueryImpl orQuery)
-
setOrQueryActive
public void setOrQueryActive()
-
isOrQueryActive
public boolean isOrQueryActive()
-
getActiveActivityIds
public java.lang.String[] getActiveActivityIds()
-
getBusinessKey
public java.lang.String getBusinessKey()
-
getBusinessKeyIn
public java.lang.String[] getBusinessKeyIn()
-
getBusinessKeyLike
public java.lang.String getBusinessKeyLike()
-
getExecutedActivityIds
public java.lang.String[] getExecutedActivityIds()
-
getExecutedActivityAfter
public java.util.Date getExecutedActivityAfter()
-
getExecutedActivityBefore
public java.util.Date getExecutedActivityBefore()
-
getExecutedJobAfter
public java.util.Date getExecutedJobAfter()
-
getExecutedJobBefore
public java.util.Date getExecutedJobBefore()
-
isOpen
public boolean isOpen()
-
isUnfinished
public boolean isUnfinished()
-
isFinished
public boolean isFinished()
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
-
getProcessDefinitionKey
public java.lang.String getProcessDefinitionKey()
-
getProcessDefinitionKeys
public java.lang.String[] getProcessDefinitionKeys()
-
getProcessDefinitionIdLike
public java.lang.String getProcessDefinitionIdLike()
-
getProcessDefinitionName
public java.lang.String getProcessDefinitionName()
-
getProcessDefinitionNameLike
public java.lang.String getProcessDefinitionNameLike()
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
-
getProcessInstanceIds
public java.util.Set<java.lang.String> getProcessInstanceIds()
-
getStartedBy
public java.lang.String getStartedBy()
-
getSuperProcessInstanceId
public java.lang.String getSuperProcessInstanceId()
-
setSuperProcessInstanceId
public void setSuperProcessInstanceId(java.lang.String superProcessInstanceId)
-
getProcessKeyNotIn
public java.util.List<java.lang.String> getProcessKeyNotIn()
-
getStartedAfter
public java.util.Date getStartedAfter()
-
getStartedBefore
public java.util.Date getStartedBefore()
-
getFinishedAfter
public java.util.Date getFinishedAfter()
-
getFinishedBefore
public java.util.Date getFinishedBefore()
-
getCaseInstanceId
public java.lang.String getCaseInstanceId()
-
getIncidentType
public java.lang.String getIncidentType()
-
getIncidentMessage
public java.lang.String getIncidentMessage()
-
getIncidentMessageLike
public java.lang.String getIncidentMessageLike()
-
getIncidentStatus
public java.lang.String getIncidentStatus()
-
getState
public java.lang.String getState()
-
getFinishDateBy
public java.util.Date getFinishDateBy()
-
getStartDateBy
public java.util.Date getStartDateBy()
-
getStartDateOn
public java.util.Date getStartDateOn()
-
getStartDateOnBegin
public java.util.Date getStartDateOnBegin()
-
getStartDateOnEnd
public java.util.Date getStartDateOnEnd()
-
getFinishDateOn
public java.util.Date getFinishDateOn()
-
getFinishDateOnBegin
public java.util.Date getFinishDateOnBegin()
-
getFinishDateOnEnd
public java.util.Date getFinishDateOnEnd()
-
isTenantIdSet
public boolean isTenantIdSet()
-
getIsTenantIdSet
public boolean getIsTenantIdSet()
-
isWithIncidents
public boolean isWithIncidents()
-
isWithRootIncidents
public boolean isWithRootIncidents()
-
startDateBy
@Deprecated public HistoricProcessInstanceQuery startDateBy(java.util.Date date)
Deprecated.Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that were started as of the provided date. (Date will be adjusted to reflect midnight)- Specified by:
startDateByin interfaceHistoricProcessInstanceQuery
-
startDateOn
@Deprecated public HistoricProcessInstanceQuery startDateOn(java.util.Date date)
Deprecated.Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that were started on the provided date.- Specified by:
startDateOnin interfaceHistoricProcessInstanceQuery
-
finishDateBy
@Deprecated public HistoricProcessInstanceQuery finishDateBy(java.util.Date date)
Deprecated.Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that were finished as of the provided date. (Date will be adjusted to reflect one second before midnight)- Specified by:
finishDateByin interfaceHistoricProcessInstanceQuery
-
finishDateOn
@Deprecated public HistoricProcessInstanceQuery finishDateOn(java.util.Date date)
Deprecated.Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that were finished on provided date.- Specified by:
finishDateOnin interfaceHistoricProcessInstanceQuery
-
isRootProcessInstances
public boolean isRootProcessInstances()
-
getSubProcessInstanceId
public java.lang.String getSubProcessInstanceId()
-
getSuperCaseInstanceId
public java.lang.String getSuperCaseInstanceId()
-
getSubCaseInstanceId
public java.lang.String getSubCaseInstanceId()
-
getTenantIds
public java.lang.String[] getTenantIds()
-
executedActivityAfter
public HistoricProcessInstanceQuery executedActivityAfter(java.util.Date date)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that executed an activity after the given date.- Specified by:
executedActivityAfterin interfaceHistoricProcessInstanceQuery
-
executedActivityBefore
public HistoricProcessInstanceQuery executedActivityBefore(java.util.Date date)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that executed an activity before the given date.- Specified by:
executedActivityBeforein interfaceHistoricProcessInstanceQuery
-
executedJobAfter
public HistoricProcessInstanceQuery executedJobAfter(java.util.Date date)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that executed an job after the given date.- Specified by:
executedJobAfterin interfaceHistoricProcessInstanceQuery
-
executedJobBefore
public HistoricProcessInstanceQuery executedJobBefore(java.util.Date date)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that executed an job before the given date.- Specified by:
executedJobBeforein interfaceHistoricProcessInstanceQuery
-
executedActivityIdIn
public HistoricProcessInstanceQuery executedActivityIdIn(java.lang.String... ids)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that executed activities with given ids.- Specified by:
executedActivityIdInin interfaceHistoricProcessInstanceQuery
-
activeActivityIdIn
public HistoricProcessInstanceQuery activeActivityIdIn(java.lang.String... ids)
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that have active activities with given ids.- Specified by:
activeActivityIdInin interfaceHistoricProcessInstanceQuery
-
active
public HistoricProcessInstanceQuery active()
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that are active.- Specified by:
activein interfaceHistoricProcessInstanceQuery
-
suspended
public HistoricProcessInstanceQuery suspended()
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that are suspended.- Specified by:
suspendedin interfaceHistoricProcessInstanceQuery
-
completed
public HistoricProcessInstanceQuery completed()
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that are completed.- Specified by:
completedin interfaceHistoricProcessInstanceQuery
-
externallyTerminated
public HistoricProcessInstanceQuery externallyTerminated()
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that are externallyTerminated.- Specified by:
externallyTerminatedin interfaceHistoricProcessInstanceQuery
-
internallyTerminated
public HistoricProcessInstanceQuery internallyTerminated()
Description copied from interface:HistoricProcessInstanceQueryOnly select historic process instances that are internallyTerminated.- Specified by:
internallyTerminatedin interfaceHistoricProcessInstanceQuery
-
or
public HistoricProcessInstanceQuery or()
Description copied from interface:HistoricProcessInstanceQueryAfter calling or(), a chain of several filter criteria could follow. Each filter criterion that follows or() will be linked together with an OR expression until the OR query is terminated. To terminate the OR query right after the last filter criterion was applied,
HistoricProcessInstanceQuery.endOr()must be invoked.- Specified by:
orin interfaceHistoricProcessInstanceQuery- Returns:
- an object of the type
HistoricProcessInstanceQueryon which an arbitrary amount of filter criteria could be applied. The several filter criteria will be linked together by an OR expression.
-
endOr
public HistoricProcessInstanceQuery endOr()
Description copied from interface:HistoricProcessInstanceQueryendOr() terminates an OR query on which an arbitrary amount of filter criteria were applied. To terminate the OR query which has been started by invoking
HistoricProcessInstanceQuery.or(), endOr() must be invoked. Filter criteria which are applied after calling endOr() are linked together by an AND expression.- Specified by:
endOrin interfaceHistoricProcessInstanceQuery- Returns:
- an object of the type
HistoricProcessInstanceQueryon which an arbitrary amount of filter criteria could be applied. The filter criteria will be linked together by an AND expression.
-
-