Uses of Interface
org.camunda.bpm.engine.history.HistoricProcessInstanceQuery
-
Packages that use HistoricProcessInstanceQuery Package Description org.camunda.bpm.engine Public API of the Camunda Platform engine.
Typical usage of the API starts by the creation of aProcessEngineConfiguration
(typically based on a configuration file), from which aProcessEngine
can be obtained.
Through the services obtained from such aProcessEngine
, BPM and workflow operation can be executed:
RepositoryService
: ManagesDeployment
s
RuntimeService
: For starting and searchingProcessInstance
s
TaskService
: Exposes operations to manage human (standalone)Task
s, such as claiming, completing and assigning tasks
IdentityService
: Used for managingUser
s,Group
s and the relations between them
ManagementService
: Exposes engine admin and maintenance operations, which have no relation to the runtime execution of business processes
HistoryService
: Exposes information about ongoing and past process instances.
FormService
: Access to form data and rendered forms for starting new process instances and completing tasks.org.camunda.bpm.engine.externaltask org.camunda.bpm.engine.history Classes related to theHistoryService
.org.camunda.bpm.engine.impl API implementation classes, which shouldn't directly be used by end-users.org.camunda.bpm.engine.impl.cmd org.camunda.bpm.engine.impl.cmd.batch org.camunda.bpm.engine.impl.cmd.batch.variables org.camunda.bpm.engine.impl.history org.camunda.bpm.engine.impl.runtime org.camunda.bpm.engine.rest.dto.history org.camunda.bpm.engine.runtime Classes related to theRuntimeService
. -
-
Uses of HistoricProcessInstanceQuery in org.camunda.bpm.engine
Methods in org.camunda.bpm.engine that return HistoricProcessInstanceQuery Modifier and Type Method Description HistoricProcessInstanceQuery
HistoryService. createHistoricProcessInstanceQuery()
Creates a new programmatic query to search forHistoricProcessInstance
s.Methods in org.camunda.bpm.engine with parameters of type HistoricProcessInstanceQuery Modifier and Type Method Description Batch
HistoryService. deleteHistoricProcessInstancesAsync(List<String> processInstanceIds, HistoricProcessInstanceQuery query, String deleteReason)
Deletes historic process instances asynchronously based on query and a list of process instances.Batch
HistoryService. deleteHistoricProcessInstancesAsync(HistoricProcessInstanceQuery query, String deleteReason)
Deletes historic process instances asynchronously based on query.Batch
RuntimeService. deleteProcessInstancesAsync(List<String> processInstanceIds, ProcessInstanceQuery processInstanceQuery, HistoricProcessInstanceQuery historicProcessInstanceQuery, String deleteReason, boolean skipCustomListeners, boolean skipSubprocesses)
Delete an existing runtime process instances asynchronously using Batch operation.Batch
ManagementService. setJobRetriesAsync(List<String> processInstanceIds, ProcessInstanceQuery processInstanceQuery, HistoricProcessInstanceQuery historicProcessInstanceQuery, int retries)
Sets the number of retries that jobs have left asynchronously.Batch
RuntimeService. setVariablesAsync(List<String> processInstanceIds, ProcessInstanceQuery processInstanceQuery, HistoricProcessInstanceQuery historicProcessInstanceQuery, Map<String,?> variables)
Update or create runtime process variables in the root scope of process instances.Batch
RuntimeService. setVariablesAsync(HistoricProcessInstanceQuery historicProcessInstanceQuery, Map<String,?> variables)
Update or create runtime process variables in the root scope of process instances. -
Uses of HistoricProcessInstanceQuery in org.camunda.bpm.engine.externaltask
Methods in org.camunda.bpm.engine.externaltask with parameters of type HistoricProcessInstanceQuery Modifier and Type Method Description UpdateExternalTaskRetriesBuilder
UpdateExternalTaskRetriesSelectBuilder. historicProcessInstanceQuery(HistoricProcessInstanceQuery historicProcessInstanceQuery)
Selects a list of external tasks with the given historic process instance query. -
Uses of HistoricProcessInstanceQuery in org.camunda.bpm.engine.history
Methods in org.camunda.bpm.engine.history that return HistoricProcessInstanceQuery Modifier and Type Method Description HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. active()
Only select historic process instances that are active.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. activeActivityIdIn(String... ids)
Only select historic process instances that have active activities with given ids.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. caseInstanceId(String caseInstanceId)
Only select historic process instances which are associated with the given case instance id.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. completed()
Only select historic process instances that are completed.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. endOr()
endOr() terminates an OR query on which an arbitrary amount of filter criteria were applied.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. executedActivityAfter(Date date)
Only select historic process instances that executed an activity after the given date.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. executedActivityBefore(Date date)
Only select historic process instances that executed an activity before the given date.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. executedActivityIdIn(String... ids)
Only select historic process instances that executed activities with given ids.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. executedJobAfter(Date date)
Only select historic process instances that executed an job after the given date.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. executedJobBefore(Date date)
Only select historic process instances that executed an job before the given date.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. externallyTerminated()
Only select historic process instances that are externallyTerminated.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. finishDateBy(Date date)
Deprecated.usestartedAfter(Date)
andstartedBefore(Date)
insteadHistoricProcessInstanceQuery
HistoricProcessInstanceQuery. finishDateOn(Date date)
Deprecated.usestartedAfter(Date)
andstartedBefore(Date)
insteadHistoricProcessInstanceQuery
HistoricProcessInstanceQuery. finished()
Only select historic process instances that are completely finished.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. finishedAfter(Date date)
Only select historic process instances that were started after the given date.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. finishedBefore(Date date)
Only select historic process instances that were started before the given date.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. incidentMessage(String incidentMessage)
Only select historic process instances with the given incident message.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. incidentMessageLike(String incidentMessageLike)
Only select historic process instances which had an incident message like the given value.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. incidentStatus(String status)
Only select historic process instances with incident status either 'open' or 'resolved'.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. incidentType(String incidentType)
Only selects process instances with the given incident type.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. internallyTerminated()
Only select historic process instances that are internallyTerminated.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. matchVariableNamesIgnoreCase()
The query will match the names of variables in a case-insensitive way.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. matchVariableValuesIgnoreCase()
The query will match the values of variables in a case-insensitive way.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. or()
After calling or(), a chain of several filter criteria could follow.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. orderByProcessDefinitionId()
Order by the process definition id (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. orderByProcessDefinitionKey()
Order by the process definition key (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. orderByProcessDefinitionName()
Order by the process definition name (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. orderByProcessDefinitionVersion()
Order by the process definition version (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. orderByProcessInstanceBusinessKey()
Order by the business key (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. orderByProcessInstanceDuration()
Order by the duration of the process instance (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. orderByProcessInstanceEndTime()
Order by the end time (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. orderByProcessInstanceId()
Order by the process instance id (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. orderByProcessInstanceStartTime()
Order by the start time (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. processDefinitionId(String processDefinitionId)
Only select historic process instances for the given process definitionHistoricProcessInstanceQuery
HistoricProcessInstanceQuery. processDefinitionKey(String processDefinitionKey)
Only select historic process instances that are defined by a process definition with the given key.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. processDefinitionKeyIn(String... processDefinitionKeys)
Only select historic process instances that are defined by any given process definition key.HistoricProcessInstanceQuery
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 listHistoricProcessInstanceQuery
HistoricProcessInstanceQuery. processDefinitionName(String processDefinitionName)
Only select historic process instances that are defined by a process definition with the given name.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. processDefinitionNameLike(String nameLike)
Only select historic process instances that are defined by process definition which name is like the given value.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. processInstanceBusinessKey(String processInstanceBusinessKey)
Only select historic process instances with the given business keyHistoricProcessInstanceQuery
HistoricProcessInstanceQuery. processInstanceBusinessKeyLike(String processInstanceBusinessKeyLike)
Only select historic process instances which had a business key like the given value.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. processInstanceId(String processInstanceId)
Only select historic process instances with the given process instance.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. processInstanceIds(Set<String> processInstanceIds)
Only select historic process instances whose id is in the given set of ids.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. rootProcessInstances()
Only select historic process instances that are top level process instances.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. startDateBy(Date date)
Deprecated.usestartedAfter(Date)
andstartedBefore(Date)
insteadHistoricProcessInstanceQuery
HistoricProcessInstanceQuery. startDateOn(Date date)
Deprecated.usestartedAfter(Date)
andstartedBefore(Date)
insteadHistoricProcessInstanceQuery
HistoricProcessInstanceQuery. startedAfter(Date date)
Only select historic process instances that were started after the given date.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. startedBefore(Date date)
Only select historic process instances that were started before the given date.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. startedBy(String userId)
Only select historic process instance that are started by the given user.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. subCaseInstanceId(String subCaseInstanceId)
Only select historic process instances having a sub case instance with the given case instance id.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. subProcessInstanceId(String subProcessInstanceId)
Only select historic process instances having a sub process instance with the given process instance id.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. superCaseInstanceId(String superCaseInstanceId)
Only select historic process instances started by the given case instance.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. superProcessInstanceId(String superProcessInstanceId)
Only select historic process instances started by the given process instance.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. suspended()
Only select historic process instances that are suspended.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. tenantIdIn(String... tenantIds)
Only select historic process instances with one of the given tenant ids.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. unfinished()
Only select historic process instance that are not yet finished.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. variableValueEquals(String name, Object value)
Only select process instances which had a global variable with the given value when they ended.HistoricProcessInstanceQuery
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
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
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
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
HistoricProcessInstanceQuery. variableValueLike(String name, String value)
Only select process instances which had global variable value like the given value when they ended.HistoricProcessInstanceQuery
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.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. withIncidents()
Only select historic process instances with incidentsHistoricProcessInstanceQuery
HistoricProcessInstanceQuery. withoutTenantId()
Only selects historic process instances which have no tenant id.HistoricProcessInstanceQuery
HistoricProcessInstanceQuery. withRootIncidents()
Only select historic process instances with root incidentsMethods in org.camunda.bpm.engine.history with parameters of type HistoricProcessInstanceQuery Modifier and Type Method Description SetRemovalTimeToHistoricProcessInstancesBuilder
SetRemovalTimeToHistoricProcessInstancesBuilder. byQuery(HistoricProcessInstanceQuery historicProcessInstanceQuery)
Selects historic process instances by the given query. -
Uses of HistoricProcessInstanceQuery in org.camunda.bpm.engine.impl
Classes in org.camunda.bpm.engine.impl that implement HistoricProcessInstanceQuery Modifier and Type Class Description class
HistoricProcessInstanceQueryImpl
Fields in org.camunda.bpm.engine.impl declared as HistoricProcessInstanceQuery Modifier and Type Field Description protected HistoricProcessInstanceQuery
MessageCorrelationAsyncBuilderImpl. historicProcessInstanceQuery
protected HistoricProcessInstanceQuery
SetJobsRetriesByProcessBatchCmd. historicProcessInstanceQuery
protected HistoricProcessInstanceQuery
UpdateProcessInstancesSuspensionStateBuilderImpl. historicProcessInstanceQuery
protected HistoricProcessInstanceQuery
RestartProcessInstanceBuilderImpl. query
Methods in org.camunda.bpm.engine.impl with parameters of type HistoricProcessInstanceQuery Modifier and Type Method Description UpdateProcessInstancesSuspensionStateBuilder
UpdateProcessInstancesSuspensionStateBuilderImpl. byHistoricProcessInstanceQuery(HistoricProcessInstanceQuery historicProcessInstanceQuery)
Batch
HistoryServiceImpl. deleteHistoricProcessInstancesAsync(List<String> processInstanceIds, HistoricProcessInstanceQuery query, String deleteReason)
Batch
HistoryServiceImpl. deleteHistoricProcessInstancesAsync(HistoricProcessInstanceQuery query, String deleteReason)
Batch
RuntimeServiceImpl. deleteProcessInstancesAsync(List<String> processInstanceIds, ProcessInstanceQuery processInstanceQuery, HistoricProcessInstanceQuery historicProcessInstanceQuery, String deleteReason, boolean skipCustomListeners, boolean skipSubprocesses)
MessageCorrelationAsyncBuilder
MessageCorrelationAsyncBuilderImpl. historicProcessInstanceQuery(HistoricProcessInstanceQuery historicProcessInstanceQuery)
RestartProcessInstanceBuilder
RestartProcessInstanceBuilderImpl. historicProcessInstanceQuery(HistoricProcessInstanceQuery query)
Batch
ManagementServiceImpl. setJobRetriesAsync(List<String> processInstanceIds, ProcessInstanceQuery query, HistoricProcessInstanceQuery historicProcessInstanceQuery, int retries)
Batch
RuntimeServiceImpl. setVariablesAsync(List<String> processInstanceIds, ProcessInstanceQuery processInstanceQuery, HistoricProcessInstanceQuery historicProcessInstanceQuery, Map<String,?> variables)
Batch
RuntimeServiceImpl. setVariablesAsync(HistoricProcessInstanceQuery historicProcessInstanceQuery, Map<String,?> variables)
Constructors in org.camunda.bpm.engine.impl with parameters of type HistoricProcessInstanceQuery Constructor Description SetJobsRetriesByProcessBatchCmd(List<String> processInstanceIds, ProcessInstanceQuery query, HistoricProcessInstanceQuery historicProcessInstanceQuery, int retries)
-
Uses of HistoricProcessInstanceQuery in org.camunda.bpm.engine.impl.cmd
Fields in org.camunda.bpm.engine.impl.cmd declared as HistoricProcessInstanceQuery Modifier and Type Field Description protected HistoricProcessInstanceQuery
UpdateExternalTaskRetriesBuilderImpl. historicProcessInstanceQuery
Methods in org.camunda.bpm.engine.impl.cmd that return HistoricProcessInstanceQuery Modifier and Type Method Description HistoricProcessInstanceQuery
UpdateExternalTaskRetriesBuilderImpl. getHistoricProcessInstanceQuery()
Methods in org.camunda.bpm.engine.impl.cmd with parameters of type HistoricProcessInstanceQuery Modifier and Type Method Description UpdateExternalTaskRetriesBuilder
UpdateExternalTaskRetriesBuilderImpl. historicProcessInstanceQuery(HistoricProcessInstanceQuery historicProcessInstanceQuery)
-
Uses of HistoricProcessInstanceQuery in org.camunda.bpm.engine.impl.cmd.batch
Fields in org.camunda.bpm.engine.impl.cmd.batch declared as HistoricProcessInstanceQuery Modifier and Type Field Description protected HistoricProcessInstanceQuery
CorrelateAllMessageBatchCmd. historicProcessInstanceQuery
protected HistoricProcessInstanceQuery
DeleteHistoricProcessInstancesBatchCmd. historicProcessInstanceQuery
protected HistoricProcessInstanceQuery
DeleteProcessInstanceBatchCmd. historicProcessInstanceQuery
Constructors in org.camunda.bpm.engine.impl.cmd.batch with parameters of type HistoricProcessInstanceQuery Constructor Description DeleteHistoricProcessInstancesBatchCmd(List<String> historicProcessInstanceIds, HistoricProcessInstanceQuery historicProcessInstanceQuery, String deleteReason)
DeleteProcessInstanceBatchCmd(List<String> processInstances, ProcessInstanceQuery processInstanceQuery, HistoricProcessInstanceQuery historicProcessInstanceQuery, String deleteReason, boolean skipCustomListeners, boolean skipSubprocesses)
-
Uses of HistoricProcessInstanceQuery in org.camunda.bpm.engine.impl.cmd.batch.variables
Fields in org.camunda.bpm.engine.impl.cmd.batch.variables declared as HistoricProcessInstanceQuery Modifier and Type Field Description protected HistoricProcessInstanceQuery
SetVariablesToProcessInstancesBatchCmd. historicProcessInstanceQuery
Constructors in org.camunda.bpm.engine.impl.cmd.batch.variables with parameters of type HistoricProcessInstanceQuery Constructor Description SetVariablesToProcessInstancesBatchCmd(List<String> processInstanceIds, ProcessInstanceQuery processInstanceQuery, HistoricProcessInstanceQuery historicProcessInstanceQuery, Map<String,?> variables)
-
Uses of HistoricProcessInstanceQuery in org.camunda.bpm.engine.impl.history
Fields in org.camunda.bpm.engine.impl.history declared as HistoricProcessInstanceQuery Modifier and Type Field Description protected HistoricProcessInstanceQuery
SetRemovalTimeToHistoricProcessInstancesBuilderImpl. query
Methods in org.camunda.bpm.engine.impl.history that return HistoricProcessInstanceQuery Modifier and Type Method Description HistoricProcessInstanceQuery
SetRemovalTimeToHistoricProcessInstancesBuilderImpl. getQuery()
Methods in org.camunda.bpm.engine.impl.history with parameters of type HistoricProcessInstanceQuery Modifier and Type Method Description SetRemovalTimeToHistoricProcessInstancesBuilder
SetRemovalTimeToHistoricProcessInstancesBuilderImpl. byQuery(HistoricProcessInstanceQuery query)
-
Uses of HistoricProcessInstanceQuery in org.camunda.bpm.engine.impl.runtime
Methods in org.camunda.bpm.engine.impl.runtime with parameters of type HistoricProcessInstanceQuery Modifier and Type Method Description UpdateProcessInstancesSuspensionStateBuilder
UpdateProcessInstanceSuspensionStateBuilderImpl. byHistoricProcessInstanceQuery(HistoricProcessInstanceQuery historicProcessInstanceQuery)
-
Uses of HistoricProcessInstanceQuery in org.camunda.bpm.engine.rest.dto.history
Methods in org.camunda.bpm.engine.rest.dto.history that return HistoricProcessInstanceQuery Modifier and Type Method Description protected HistoricProcessInstanceQuery
HistoricProcessInstanceQueryDto. createNewQuery(ProcessEngine engine)
Methods in org.camunda.bpm.engine.rest.dto.history with parameters of type HistoricProcessInstanceQuery Modifier and Type Method Description protected void
HistoricProcessInstanceQueryDto. applyFilters(HistoricProcessInstanceQuery query)
protected void
HistoricProcessInstanceQueryDto. applySortBy(HistoricProcessInstanceQuery query, String sortBy, Map<String,Object> parameters, ProcessEngine engine)
-
Uses of HistoricProcessInstanceQuery in org.camunda.bpm.engine.runtime
Methods in org.camunda.bpm.engine.runtime with parameters of type HistoricProcessInstanceQuery Modifier and Type Method Description UpdateProcessInstancesSuspensionStateBuilder
UpdateProcessInstancesRequest. byHistoricProcessInstanceQuery(HistoricProcessInstanceQuery historicProcessInstanceQuery)
Selects a list of process instances with the given a historical process instance query.MessageCorrelationAsyncBuilder
MessageCorrelationAsyncBuilder. historicProcessInstanceQuery(HistoricProcessInstanceQuery historicProcessInstanceQuery)
Correlate the message such that the process instances found by the given query are selected.RestartProcessInstanceBuilder
RestartProcessInstanceBuilder. historicProcessInstanceQuery(HistoricProcessInstanceQuery query)
-