Package org.camunda.bpm.engine.impl
Class HistoricTaskInstanceQueryImpl
java.lang.Object
org.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.engine.impl.AbstractQuery<HistoricTaskInstanceQuery,HistoricTaskInstance>
org.camunda.bpm.engine.impl.HistoricTaskInstanceQueryImpl
- All Implemented Interfaces:
Serializable
,HistoricTaskInstanceQuery
,Command<Object>
,Query<HistoricTaskInstanceQuery,
HistoricTaskInstance>
public class HistoricTaskInstanceQueryImpl
extends AbstractQuery<HistoricTaskInstanceQuery,HistoricTaskInstance>
implements HistoricTaskInstanceQuery
- Author:
- Tom Baeyens
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
Field Summary
Modifier and TypeFieldDescriptionprotected String[]
protected Boolean
protected String
protected String
protected String
protected String
protected String
protected Date
protected Date
protected Date
protected String
protected boolean
protected Date
protected Date
protected Date
protected Date
protected Date
protected boolean
protected boolean
protected boolean
protected String
protected String
protected String
protected boolean
protected String
protected String
protected String[]
protected String
protected boolean
protected List<HistoricTaskInstanceQueryImpl>
protected String
protected Date
protected Date
protected String
protected String
protected String[]
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected Integer
protected String[]
protected Boolean
protected boolean
protected Boolean
protected List<TaskQueryVariableValue>
protected Boolean
protected Boolean
protected Boolean
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
-
Method Summary
Modifier and TypeMethodDescriptionactivityInstanceIdIn
(String... activityInstanceIds) Only select historic task instances which have one of the given activity instance ids.void
addOrQuery
(HistoricTaskInstanceQueryImpl orQuery) void
addVariable
(String name, Object value, QueryOperator operator, boolean isTaskVariable, boolean isProcessInstanceVariable) protected void
addVariable
(TaskQueryVariableValue taskQueryVariableValue) caseDefinitionId
(String caseDefinitionId) Only select historic task instances for the given case definition.caseDefinitionKey
(String caseDefinitionKey) Only select historic task instances which are part of a case instance which has the given case definition key.caseDefinitionName
(String caseDefinitionName) Only select historic task instances which are part of a (historic) case instance which has the given case definition name.caseExecutionId
(String caseExecutionId) Only select historic task instances for the given case execution id.caseInstanceId
(String caseInstanceId) Only select historic task instances for the given case instance.endOr()
endOr() terminates an OR query on which an arbitrary amount of filter criteria were applied.protected void
long
executeCount
(CommandContext commandContext) executeList
(CommandContext commandContext, Page page) Executes the actual query to retrieve the list of results.executionId
(String executionId) Only select historic task instances for the given execution.finished()
Only select historic task instances which are finished.finishedAfter
(Date date) Only select tasks where end time is after given datefinishedBefore
(Date date) Only select tasks where end time is before given dateString[]
String[]
String[]
String[]
protected boolean
Whether or not the query has excluding conditions.boolean
boolean
boolean
boolean
boolean
boolean
boolean
The query will match the names of task and process variables in a case-insensitive way.The query will match the values of task and process variables in a case-insensitive way.or()
After calling or(), a chain of several filter criteria could follow.Order by case definition id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by case execution id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by case instance id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by task delete reason (needs to be followed byQuery.asc()
orQuery.desc()
).Order by execution id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by the historic activity instance id this task was used in (needs to be followed byQuery.asc()
orQuery.desc()
).Order by start time (needs to be followed byQuery.asc()
orQuery.desc()
).Order by duration (needs to be followed byQuery.asc()
orQuery.desc()
).Order by end time (needs to be followed byQuery.asc()
orQuery.desc()
).Order by process definition id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by process instance id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by task assignee (needs to be followed byQuery.asc()
orQuery.desc()
).Order by task definition key (needs to be followed byQuery.asc()
orQuery.desc()
).Order by task description (needs to be followed byQuery.asc()
orQuery.desc()
).Order by task due date (needs to be followed byQuery.asc()
orQuery.desc()
).Order by task follow-up date (needs to be followed byQuery.asc()
orQuery.desc()
).Order by task id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by task name (needs to be followed byQuery.asc()
orQuery.desc()
).Order by task owner (needs to be followed byQuery.asc()
orQuery.desc()
).Order by task priority key (needs to be followed byQuery.asc()
orQuery.desc()
).Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).processDefinitionId
(String processDefinitionId) Only select historic task instances for the given process definition.processDefinitionKey
(String processDefinitionKey) Only select historic task instances which are part of a (historic) process instance which has the given process definition key.processDefinitionName
(String processDefinitionName) Only select historic task instances which are part of a (historic) process instance which has the given definition name.Only select historic task instances which are part of a process instance which is already finished.processInstanceBusinessKey
(String processInstanceBusinessKey) Only select historic tasks for the given process instance business keyprocessInstanceBusinessKeyIn
(String... processInstanceBusinessKeys) Only select historic tasks for any of the given the given process instance business keys.processInstanceBusinessKeyLike
(String processInstanceBusinessKey) Only select historic tasks matching the given process instance business key.processInstanceId
(String processInstanceId) Only select historic task instances for the given process instance.Only select historic task instances which are part of a process instance which is not finished yet.processVariableValueEquals
(String variableName, Object variableValue) Only select historic task instances which are part of a process instance which have a variable with the given name set to the given value.processVariableValueGreaterThan
(String variableName, Object variableValue) Only select historic task instances which are part of a process that have a variable with the given name and a value greater than the given one.processVariableValueGreaterThanOrEquals
(String variableName, Object variableValue) Only select historic task instances which are part of a process that have a variable with the given name and a value greater than or equal to the given one.processVariableValueLessThan
(String variableName, Object variableValue) Only select historic task instances which are part of a process that have a variable with the given name and a value less than the given one.processVariableValueLessThanOrEquals
(String variableName, Object variableValue) Only select historic task instances which are part of a process that have a variable with the given name and a value less than or equal to the given one.processVariableValueLike
(String variableName, Object variableValue) Only select historic task instances which are part of a process that have a variable with the given name and matching the given value.processVariableValueNotEquals
(String variableName, Object variableValue) Only select historic task instances which have a variable with the given name, but with a different value than the passed value.processVariableValueNotLike
(String variableName, Object variableValue) Only select historic task instances which are part of a process that have a variable with the given name and not matching the given value.rootProcessInstanceId
(String rootProcessInstanceId) Only select historic task instances for the given root process instance.void
startedAfter
(Date date) Only select tasks where started after given datestartedBefore
(Date date) Only select tasks where started before given dateOnly select historic task instances with an assignee.taskAssignee
(String taskAssignee) Only select historic task instances which were last taskAssigned to the given assignee.taskAssigneeLike
(String taskAssigneeLike) Only select historic task instances which were last taskAssigned to an assignee like the given value.taskDefinitionKey
(String taskDefinitionKey) Only select historic task instances with the given task definition key.taskDefinitionKeyIn
(String... taskDefinitionKeys) Only select historic task instances with one of the given task definition keys.taskDeleteReason
(String taskDeleteReason) Only select historic task instances with the given task delete reason.taskDeleteReasonLike
(String taskDeleteReasonLike) Only select historic task instances with a task description like the given value.taskDescription
(String taskDescription) Only select historic task instances with the given task description.taskDescriptionLike
(String taskDescriptionLike) Only select historic task instances with a task description like the given value.taskDueAfter
(Date dueAfter) Only select select historic task instances which have a due date after the given date.taskDueBefore
(Date dueBefore) Only select select historic task instances which have a due date before the given date.taskDueDate
(Date dueDate) Only select select historic task instances with the given due date.taskFollowUpAfter
(Date followUpAfter) Only select select historic task instances which have a follow-up date after the given date.taskFollowUpBefore
(Date followUpBefore) Only select select historic task instances which have a follow-up date before the given date.taskFollowUpDate
(Date followUpDate) Only select select historic task instances with the given follow-up date.taskHadCandidateGroup
(String groupId) Only select historic task instances which have mapping with Historic identity links with the condition of group being a candidatetaskHadCandidateUser
(String userId) Only select historic task instances which have mapping with Historic identity links with the condition of user being a candidateOnly select historic task instances for the given task id.taskInvolvedGroup
(String groupId) Only select historic task instances which have mapping with Historic identity links based on group idtaskInvolvedUser
(String userId) Only select historic task instances which have mapping with Historic identity links based on user idOnly select historic task instances with the given task name.taskNameLike
(String taskNameLike) Only select historic task instances with a task name like the given value.Only select historic task instances which have the given owner.taskOwnerLike
(String taskOwnerLike) Only select historic task instances which have an owner like the one specified.taskParentTaskId
(String parentTaskId) Only select subtasks of the given parent tasktaskPriority
(Integer taskPriority) Only select historic task instances with the given priority.Only select historic task instances without an assignee.taskVariableValueEquals
(String variableName, Object variableValue) Only select historic task instances which have a local task variable with the given name set to the given value.tenantIdIn
(String... tenantIds) Only select historic task instances with one of the given tenant ids.Only select historic task instances which aren't finished yet.Only select historic task instances which have a candidate groupOnly select historic task instances which have no candidate groupOnly select select historic task instances that have no due date.Only selects historic task instances that have no tenant id.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, executeDeploymentIdMappingsList, executeIdsList, 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.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
Field Details
-
processDefinitionId
-
processDefinitionKey
-
processDefinitionName
-
processInstanceId
-
rootProcessInstanceId
-
processInstanceBusinessKey
-
processInstanceBusinessKeys
-
processInstanceBusinessKeyLike
-
executionId
-
activityInstanceIds
-
taskId
-
taskName
-
taskNameLike
-
taskParentTaskId
-
taskDescription
-
taskDescriptionLike
-
taskDeleteReason
-
taskDeleteReasonLike
-
taskOwner
-
taskOwnerLike
-
assigned
-
unassigned
-
taskAssignee
-
taskAssigneeLike
-
taskDefinitionKeys
-
taskInvolvedUser
-
taskInvolvedGroup
-
taskHadCandidateUser
-
taskHadCandidateGroup
-
withCandidateGroups
-
withoutCandidateGroups
-
taskPriority
-
finished
protected boolean finished -
unfinished
protected boolean unfinished -
processFinished
protected boolean processFinished -
processUnfinished
protected boolean processUnfinished -
variables
-
variableNamesIgnoreCase
-
variableValuesIgnoreCase
-
dueDate
-
dueAfter
-
dueBefore
-
isWithoutTaskDueDate
protected boolean isWithoutTaskDueDate -
followUpDate
-
followUpBefore
-
followUpAfter
-
tenantIds
-
isTenantIdSet
protected boolean isTenantIdSet -
caseDefinitionId
-
caseDefinitionKey
-
caseDefinitionName
-
caseInstanceId
-
caseExecutionId
-
finishedAfter
-
finishedBefore
-
startedAfter
-
startedBefore
-
queries
-
isOrQueryActive
protected boolean isOrQueryActive
-
-
Constructor Details
-
HistoricTaskInstanceQueryImpl
public HistoricTaskInstanceQueryImpl() -
HistoricTaskInstanceQueryImpl
-
-
Method Details
-
executeCount
- Specified by:
executeCount
in classAbstractQuery<HistoricTaskInstanceQuery,
HistoricTaskInstance>
-
executeList
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractQuery<HistoricTaskInstanceQuery,
HistoricTaskInstance> page
- used if the results must be paged. If null, no paging will be applied.
-
processInstanceId
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances for the given process instance.- Specified by:
processInstanceId
in interfaceHistoricTaskInstanceQuery
-
rootProcessInstanceId
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances for the given root process instance.- Specified by:
rootProcessInstanceId
in interfaceHistoricTaskInstanceQuery
-
processInstanceBusinessKey
Description copied from interface:HistoricTaskInstanceQuery
Only select historic tasks for the given process instance business key- Specified by:
processInstanceBusinessKey
in interfaceHistoricTaskInstanceQuery
-
processInstanceBusinessKeyIn
public HistoricTaskInstanceQuery processInstanceBusinessKeyIn(String... processInstanceBusinessKeys) Description copied from interface:HistoricTaskInstanceQuery
Only select historic tasks for any of the given the given process instance business keys.- Specified by:
processInstanceBusinessKeyIn
in interfaceHistoricTaskInstanceQuery
-
processInstanceBusinessKeyLike
Description copied from interface:HistoricTaskInstanceQuery
Only select historic tasks matching the given process instance business key. The syntax is that of SQL: for example usage: nameLike(%camunda%)- Specified by:
processInstanceBusinessKeyLike
in interfaceHistoricTaskInstanceQuery
-
executionId
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances for the given execution.- Specified by:
executionId
in interfaceHistoricTaskInstanceQuery
-
activityInstanceIdIn
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which have one of the given activity instance ids.- Specified by:
activityInstanceIdIn
in interfaceHistoricTaskInstanceQuery
-
processDefinitionId
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances for the given process definition.- Specified by:
processDefinitionId
in interfaceHistoricTaskInstanceQuery
-
processDefinitionKey
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which are part of a (historic) process instance which has the given process definition key.- Specified by:
processDefinitionKey
in interfaceHistoricTaskInstanceQuery
-
processDefinitionName
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which are part of a (historic) process instance which has the given definition name.- Specified by:
processDefinitionName
in interfaceHistoricTaskInstanceQuery
-
taskId
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances for the given task id.- Specified by:
taskId
in interfaceHistoricTaskInstanceQuery
-
taskName
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances with the given task name. This is the last name given to the task. The query will match the names of historic task instances in a case-insensitive way.- Specified by:
taskName
in interfaceHistoricTaskInstanceQuery
-
taskNameLike
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances with a task name like the given value. This is the last name given to the task. The syntax that should be used is the same as in SQL, eg. %activiti%. The query will match the names of historic task instances in a case-insensitive way.- Specified by:
taskNameLike
in interfaceHistoricTaskInstanceQuery
-
taskParentTaskId
Description copied from interface:HistoricTaskInstanceQuery
Only select subtasks of the given parent task- Specified by:
taskParentTaskId
in interfaceHistoricTaskInstanceQuery
-
taskDescription
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances with the given task description. This is the last description given to the task. The query will match the descriptions of historic task instances in a case-insensitive way.- Specified by:
taskDescription
in interfaceHistoricTaskInstanceQuery
-
taskDescriptionLike
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances with a task description like the given value. This is the last description given to the task. The syntax that should be used is the same as in SQL, eg. %activiti%. The query will match the descriptions of historice task instances in a case-insensitive way.- Specified by:
taskDescriptionLike
in interfaceHistoricTaskInstanceQuery
-
taskDeleteReason
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances with the given task delete reason.- Specified by:
taskDeleteReason
in interfaceHistoricTaskInstanceQuery
-
taskDeleteReasonLike
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances with a task description like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%.- Specified by:
taskDeleteReasonLike
in interfaceHistoricTaskInstanceQuery
-
taskAssigned
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances with an assignee.- Specified by:
taskAssigned
in interfaceHistoricTaskInstanceQuery
-
taskUnassigned
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances without an assignee.- Specified by:
taskUnassigned
in interfaceHistoricTaskInstanceQuery
-
taskAssignee
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which were last taskAssigned to the given assignee.- Specified by:
taskAssignee
in interfaceHistoricTaskInstanceQuery
-
taskAssigneeLike
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which were last taskAssigned to an assignee like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%.- Specified by:
taskAssigneeLike
in interfaceHistoricTaskInstanceQuery
-
taskOwner
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which have the given owner.- Specified by:
taskOwner
in interfaceHistoricTaskInstanceQuery
-
taskOwnerLike
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which have an owner like the one specified. The syntax that should be used is the same as in SQL, eg. %activiti%.- Specified by:
taskOwnerLike
in interfaceHistoricTaskInstanceQuery
-
caseDefinitionId
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances for the given case definition.- Specified by:
caseDefinitionId
in interfaceHistoricTaskInstanceQuery
-
caseDefinitionKey
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which are part of a case instance which has the given case definition key.- Specified by:
caseDefinitionKey
in interfaceHistoricTaskInstanceQuery
-
caseDefinitionName
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which are part of a (historic) case instance which has the given case definition name.- Specified by:
caseDefinitionName
in interfaceHistoricTaskInstanceQuery
-
caseInstanceId
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances for the given case instance.- Specified by:
caseInstanceId
in interfaceHistoricTaskInstanceQuery
-
caseExecutionId
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances for the given case execution id.- Specified by:
caseExecutionId
in interfaceHistoricTaskInstanceQuery
-
finished
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which are finished.- Specified by:
finished
in interfaceHistoricTaskInstanceQuery
-
unfinished
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which aren't finished yet.- Specified by:
unfinished
in interfaceHistoricTaskInstanceQuery
-
matchVariableNamesIgnoreCase
Description copied from interface:HistoricTaskInstanceQuery
The query will match the names of task and process variables in a case-insensitive way.- Specified by:
matchVariableNamesIgnoreCase
in interfaceHistoricTaskInstanceQuery
-
matchVariableValuesIgnoreCase
Description copied from interface:HistoricTaskInstanceQuery
The query will match the values of task and process variables in a case-insensitive way.- Specified by:
matchVariableValuesIgnoreCase
in interfaceHistoricTaskInstanceQuery
-
taskVariableValueEquals
public HistoricTaskInstanceQueryImpl taskVariableValueEquals(String variableName, Object variableValue) Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which have a local task variable with the given name set to the given value. Make sure history-level is configured >= AUDIT when this feature is used.- Specified by:
taskVariableValueEquals
in interfaceHistoricTaskInstanceQuery
-
processVariableValueEquals
public HistoricTaskInstanceQuery processVariableValueEquals(String variableName, Object variableValue) Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which are part of a process instance which have a variable with the given name set to the given value. The last variable value in the variable updates (HistoricDetail
) will be used, so make sure history-level is configured >= AUDIT when this feature is used.- Specified by:
processVariableValueEquals
in interfaceHistoricTaskInstanceQuery
-
processVariableValueNotEquals
public HistoricTaskInstanceQuery processVariableValueNotEquals(String variableName, Object variableValue) Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which have a variable with the given name, but with a different value than the passed value. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueNotEquals
in interfaceHistoricTaskInstanceQuery
-
processVariableValueLike
public HistoricTaskInstanceQuery processVariableValueLike(String variableName, Object variableValue) Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which are part of a process that have a variable with the given name and matching the given value. The syntax is that of SQL: for example usage: valueLike(%value%)- Specified by:
processVariableValueLike
in interfaceHistoricTaskInstanceQuery
-
processVariableValueNotLike
public HistoricTaskInstanceQuery processVariableValueNotLike(String variableName, Object variableValue) Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which are part of a process that have a variable with the given name and not matching the given value. The syntax is that of SQL: for example usage: valueNotLike(%value%)- Specified by:
processVariableValueNotLike
in interfaceHistoricTaskInstanceQuery
-
processVariableValueGreaterThan
public HistoricTaskInstanceQuery processVariableValueGreaterThan(String variableName, Object variableValue) Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which are part of a process that have a variable with the given name and a value greater than the given one.- Specified by:
processVariableValueGreaterThan
in interfaceHistoricTaskInstanceQuery
-
processVariableValueGreaterThanOrEquals
public HistoricTaskInstanceQuery processVariableValueGreaterThanOrEquals(String variableName, Object variableValue) Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which are part of a process that have a variable with the given name and a value greater than or equal to the given one.- Specified by:
processVariableValueGreaterThanOrEquals
in interfaceHistoricTaskInstanceQuery
-
processVariableValueLessThan
public HistoricTaskInstanceQuery processVariableValueLessThan(String variableName, Object variableValue) Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which are part of a process that have a variable with the given name and a value less than the given one.- Specified by:
processVariableValueLessThan
in interfaceHistoricTaskInstanceQuery
-
processVariableValueLessThanOrEquals
public HistoricTaskInstanceQuery processVariableValueLessThanOrEquals(String variableName, Object variableValue) Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which are part of a process that have a variable with the given name and a value less than or equal to the given one.- Specified by:
processVariableValueLessThanOrEquals
in interfaceHistoricTaskInstanceQuery
-
taskDefinitionKey
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances with the given task definition key.- Specified by:
taskDefinitionKey
in interfaceHistoricTaskInstanceQuery
- See Also:
-
taskDefinitionKeyIn
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances with one of the given task definition keys.- Specified by:
taskDefinitionKeyIn
in interfaceHistoricTaskInstanceQuery
- See Also:
-
taskPriority
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances with the given priority.- Specified by:
taskPriority
in interfaceHistoricTaskInstanceQuery
-
processFinished
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which are part of a process instance which is already finished.- Specified by:
processFinished
in interfaceHistoricTaskInstanceQuery
-
taskInvolvedUser
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which have mapping with Historic identity links based on user id- Specified by:
taskInvolvedUser
in interfaceHistoricTaskInstanceQuery
-
taskInvolvedGroup
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which have mapping with Historic identity links based on group id- Specified by:
taskInvolvedGroup
in interfaceHistoricTaskInstanceQuery
-
taskHadCandidateUser
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which have mapping with Historic identity links with the condition of user being a candidate- Specified by:
taskHadCandidateUser
in interfaceHistoricTaskInstanceQuery
-
taskHadCandidateGroup
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which have mapping with Historic identity links with the condition of group being a candidate- Specified by:
taskHadCandidateGroup
in interfaceHistoricTaskInstanceQuery
-
withCandidateGroups
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which have a candidate group- Specified by:
withCandidateGroups
in interfaceHistoricTaskInstanceQuery
-
withoutCandidateGroups
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which have no candidate group- Specified by:
withoutCandidateGroups
in interfaceHistoricTaskInstanceQuery
-
processUnfinished
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances which are part of a process instance which is not finished yet.- Specified by:
processUnfinished
in interfaceHistoricTaskInstanceQuery
-
ensureVariablesInitialized
protected void ensureVariablesInitialized() -
addVariable
public void addVariable(String name, Object value, QueryOperator operator, boolean isTaskVariable, boolean isProcessInstanceVariable) -
addVariable
-
taskDueDate
Description copied from interface:HistoricTaskInstanceQuery
Only select select historic task instances with the given due date.- Specified by:
taskDueDate
in interfaceHistoricTaskInstanceQuery
-
taskDueAfter
Description copied from interface:HistoricTaskInstanceQuery
Only select select historic task instances which have a due date after the given date.- Specified by:
taskDueAfter
in interfaceHistoricTaskInstanceQuery
-
taskDueBefore
Description copied from interface:HistoricTaskInstanceQuery
Only select select historic task instances which have a due date before the given date.- Specified by:
taskDueBefore
in interfaceHistoricTaskInstanceQuery
-
withoutTaskDueDate
Description copied from interface:HistoricTaskInstanceQuery
Only select select historic task instances that have no due date.- Specified by:
withoutTaskDueDate
in interfaceHistoricTaskInstanceQuery
-
taskFollowUpDate
Description copied from interface:HistoricTaskInstanceQuery
Only select select historic task instances with the given follow-up date.- Specified by:
taskFollowUpDate
in interfaceHistoricTaskInstanceQuery
-
taskFollowUpBefore
Description copied from interface:HistoricTaskInstanceQuery
Only select select historic task instances which have a follow-up date before the given date.- Specified by:
taskFollowUpBefore
in interfaceHistoricTaskInstanceQuery
-
taskFollowUpAfter
Description copied from interface:HistoricTaskInstanceQuery
Only select select historic task instances which have a follow-up date after the given date.- Specified by:
taskFollowUpAfter
in interfaceHistoricTaskInstanceQuery
-
tenantIdIn
Description copied from interface:HistoricTaskInstanceQuery
Only select historic task instances with one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceHistoricTaskInstanceQuery
-
withoutTenantId
Description copied from interface:HistoricTaskInstanceQuery
Only selects historic task instances that have no tenant id.- Specified by:
withoutTenantId
in interfaceHistoricTaskInstanceQuery
-
finishedAfter
Description copied from interface:HistoricTaskInstanceQuery
Only select tasks where end time is after given date- Specified by:
finishedAfter
in interfaceHistoricTaskInstanceQuery
-
finishedBefore
Description copied from interface:HistoricTaskInstanceQuery
Only select tasks where end time is before given date- Specified by:
finishedBefore
in interfaceHistoricTaskInstanceQuery
-
startedAfter
Description copied from interface:HistoricTaskInstanceQuery
Only select tasks where started after given date- Specified by:
startedAfter
in interfaceHistoricTaskInstanceQuery
-
startedBefore
Description copied from interface:HistoricTaskInstanceQuery
Only select tasks where started before given date- Specified by:
startedBefore
in interfaceHistoricTaskInstanceQuery
-
hasExcludingConditions
protected boolean hasExcludingConditions()Description copied from class:AbstractQuery
Whether 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:
hasExcludingConditions
in classAbstractQuery<HistoricTaskInstanceQuery,
HistoricTaskInstance> - Returns:
true
if the query does have excluding conditions,false
otherwise
-
orderByTaskId
Description copied from interface:HistoricTaskInstanceQuery
Order by task id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTaskId
in interfaceHistoricTaskInstanceQuery
-
orderByHistoricActivityInstanceId
Description copied from interface:HistoricTaskInstanceQuery
Order by the historic activity instance id this task was used in (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByHistoricActivityInstanceId
in interfaceHistoricTaskInstanceQuery
-
orderByProcessDefinitionId
Description copied from interface:HistoricTaskInstanceQuery
Order by process definition id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessDefinitionId
in interfaceHistoricTaskInstanceQuery
-
orderByProcessInstanceId
Description copied from interface:HistoricTaskInstanceQuery
Order by process instance id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessInstanceId
in interfaceHistoricTaskInstanceQuery
-
orderByExecutionId
Description copied from interface:HistoricTaskInstanceQuery
Order by execution id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByExecutionId
in interfaceHistoricTaskInstanceQuery
-
orderByHistoricTaskInstanceDuration
Description copied from interface:HistoricTaskInstanceQuery
Order by duration (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByHistoricTaskInstanceDuration
in interfaceHistoricTaskInstanceQuery
-
orderByHistoricTaskInstanceEndTime
Description copied from interface:HistoricTaskInstanceQuery
Order by end time (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByHistoricTaskInstanceEndTime
in interfaceHistoricTaskInstanceQuery
-
orderByHistoricActivityInstanceStartTime
Description copied from interface:HistoricTaskInstanceQuery
Order by start time (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByHistoricActivityInstanceStartTime
in interfaceHistoricTaskInstanceQuery
-
orderByTaskName
Description copied from interface:HistoricTaskInstanceQuery
Order by task name (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTaskName
in interfaceHistoricTaskInstanceQuery
-
orderByTaskDescription
Description copied from interface:HistoricTaskInstanceQuery
Order by task description (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTaskDescription
in interfaceHistoricTaskInstanceQuery
-
orderByTaskAssignee
Description copied from interface:HistoricTaskInstanceQuery
Order by task assignee (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTaskAssignee
in interfaceHistoricTaskInstanceQuery
-
orderByTaskOwner
Description copied from interface:HistoricTaskInstanceQuery
Order by task owner (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTaskOwner
in interfaceHistoricTaskInstanceQuery
-
orderByTaskDueDate
Description copied from interface:HistoricTaskInstanceQuery
Order by task due date (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTaskDueDate
in interfaceHistoricTaskInstanceQuery
-
orderByTaskFollowUpDate
Description copied from interface:HistoricTaskInstanceQuery
Order by task follow-up date (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTaskFollowUpDate
in interfaceHistoricTaskInstanceQuery
-
orderByDeleteReason
Description copied from interface:HistoricTaskInstanceQuery
Order by task delete reason (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDeleteReason
in interfaceHistoricTaskInstanceQuery
-
orderByTaskDefinitionKey
Description copied from interface:HistoricTaskInstanceQuery
Order by task definition key (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTaskDefinitionKey
in interfaceHistoricTaskInstanceQuery
-
orderByTaskPriority
Description copied from interface:HistoricTaskInstanceQuery
Order by task priority key (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTaskPriority
in interfaceHistoricTaskInstanceQuery
-
orderByCaseDefinitionId
Description copied from interface:HistoricTaskInstanceQuery
Order by case definition id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseDefinitionId
in interfaceHistoricTaskInstanceQuery
-
orderByCaseInstanceId
Description copied from interface:HistoricTaskInstanceQuery
Order by case instance id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseInstanceId
in interfaceHistoricTaskInstanceQuery
-
orderByCaseExecutionId
Description copied from interface:HistoricTaskInstanceQuery
Order by case execution id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseExecutionId
in interfaceHistoricTaskInstanceQuery
-
orderByTenantId
Description copied from interface:HistoricTaskInstanceQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
). Note that the ordering of historic task instances without tenant id is database-specific.- Specified by:
orderByTenantId
in interfaceHistoricTaskInstanceQuery
-
getProcessInstanceId
-
getRootProcessInstanceId
-
getProcessInstanceBusinessKey
-
getProcessInstanceBusinessKeys
-
getProcessInstanceBusinessKeyLike
-
getProcessDefinitionKey
-
getProcessDefinitionName
-
getExecutionId
-
getActivityInstanceIds
-
getProcessDefinitionId
-
isAssigned
-
isUnassigned
-
isWithCandidateGroups
-
isWithoutCandidateGroups
-
isFinished
public boolean isFinished() -
isProcessFinished
public boolean isProcessFinished() -
isUnfinished
public boolean isUnfinished() -
isProcessUnfinished
public boolean isProcessUnfinished() -
getDueDate
-
getDueBefore
-
getDueAfter
-
isWithoutTaskDueDate
public boolean isWithoutTaskDueDate() -
getFollowUpDate
-
getFollowUpBefore
-
getFollowUpAfter
-
getTaskName
-
getTaskNameLike
-
getTaskDescription
-
getTaskDescriptionLike
-
getTaskDeleteReason
-
getTaskDeleteReasonLike
-
getTaskAssignee
-
getTaskAssigneeLike
-
getTaskId
-
getTaskInvolvedGroup
-
getTaskInvolvedUser
-
getTaskHadCandidateGroup
-
getTaskHadCandidateUser
-
getTaskDefinitionKeys
-
getVariables
-
getVariableNamesIgnoreCase
-
getVariableValuesIgnoreCase
-
getTaskOwnerLike
-
getTaskOwner
-
getTaskPriority
-
getTaskParentTaskId
-
getTenantIds
-
getCaseDefinitionId
-
getCaseDefinitionKey
-
getCaseDefinitionName
-
getCaseInstanceId
-
getCaseExecutionId
-
getFinishedAfter
-
getFinishedBefore
-
getStartedAfter
-
getStartedBefore
-
isTenantIdSet
public boolean isTenantIdSet() -
getQueries
-
isOrQueryActive
public boolean isOrQueryActive() -
addOrQuery
-
setOrQueryActive
public void setOrQueryActive() -
or
Description copied from interface:HistoricTaskInstanceQuery
After 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,
HistoricTaskInstanceQuery.endOr()
must be invoked.- Specified by:
or
in interfaceHistoricTaskInstanceQuery
- Returns:
- an object of the type
HistoricTaskInstanceQuery
on which an arbitrary amount of filter criteria could be applied. The several filter criteria will be linked together by an OR expression.
-
endOr
Description copied from interface:HistoricTaskInstanceQuery
endOr() 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
HistoricTaskInstanceQuery.or()
, endOr() must be invoked. Filter criteria which are applied after calling endOr() are linked together by an AND expression.- Specified by:
endOr
in interfaceHistoricTaskInstanceQuery
- Returns:
- an object of the type
HistoricTaskInstanceQuery
on which an arbitrary amount of filter criteria could be applied. The filter criteria will be linked together by an AND expression.
-