Package org.camunda.bpm.engine.impl
Class HistoricIncidentQueryImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.ListQueryParameterObject
-
- org.camunda.bpm.engine.impl.AbstractQuery<T,U>
-
- org.camunda.bpm.engine.impl.AbstractVariableQueryImpl<HistoricIncidentQuery,HistoricIncident>
-
- org.camunda.bpm.engine.impl.HistoricIncidentQueryImpl
-
- All Implemented Interfaces:
Serializable,HistoricIncidentQuery,Command<Object>,Query<HistoricIncidentQuery,HistoricIncident>
public class HistoricIncidentQueryImpl extends AbstractVariableQueryImpl<HistoricIncidentQuery,HistoricIncident> implements HistoricIncidentQuery
- Author:
- Roman Smirnov
- 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 StringactivityIdprotected StringcauseIncidentIdprotected Stringconfigurationprotected DatecreateTimeAfterprotected DatecreateTimeBeforeprotected DateendTimeAfterprotected DateendTimeBeforeprotected StringexecutionIdprotected StringfailedActivityIdprotected StringhistoryConfigurationprotected Stringidprotected StringincidentMessageprotected StringincidentMessageLikeprotected IncidentStateincidentStateprotected StringincidentTypeprotected booleanisTenantIdSetprotected String[]jobDefinitionIdsprotected StringprocessDefinitionIdprotected StringprocessDefinitionKeyprotected String[]processDefinitionKeysprotected StringprocessInstanceIdprotected StringrootCauseIncidentIdprotected String[]tenantIds-
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 HistoricIncidentQueryImpl()HistoricIncidentQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HistoricIncidentQueryactivityId(String activityId)Only select historic incidents which contain an activity with the given id.HistoricIncidentQuerycauseIncidentId(String causeIncidentId)Only select historic incidents which contain the id of the cause incident.HistoricIncidentQueryconfiguration(String configuration)Only select incidents which contain the configuration.HistoricIncidentQuerycreateTimeAfter(Date createTimeAfter)Only select historic incidents which have a createTime date after the given dateHistoricIncidentQuerycreateTimeBefore(Date createTimeBefore)Only select historic incidents which have a createTime date before the given dateHistoricIncidentQuerydeleted()Only select historic incidents which are deleted.HistoricIncidentQueryendTimeAfter(Date endTimeAfter)Only select historic incidents which have an endTimeAfter date after the given dateHistoricIncidentQueryendTimeBefore(Date endTimeBefore)Only select historic incidents which have an endTimeBefore date before the given datelongexecuteCount(CommandContext commandContext)List<HistoricIncident>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.HistoricIncidentQueryexecutionId(String executionId)Only select historic incidents with the given id.HistoricIncidentQueryfailedActivityId(String activityId)Only select historic incidents which were created due to a failure at an activity with the given id.StringgetActivityId()StringgetCauseIncidentId()StringgetConfiguration()StringgetExecutionId()StringgetFailedActivityId()StringgetHistoryConfiguration()StringgetId()StringgetIncidentMessage()IncidentStategetIncidentState()StringgetIncidentType()StringgetProcessDefinitionId()String[]getProcessDefinitionKeys()StringgetProcessInstanceId()StringgetRootCauseIncidentId()HistoricIncidentQueryhistoryConfiguration(String historyConfiguration)Only select incidents which contain the historyConfiguration.HistoricIncidentQueryincidentId(String incidentId)Only select historic incidents which have the given id.HistoricIncidentQueryincidentMessage(String incidentMessage)Only select historic incidents which have the given incident message.HistoricIncidentQueryincidentMessageLike(String incidentMessageLike)Only select historic incidents which incident message is like the given valueHistoricIncidentQueryincidentType(String incidentType)Only select historic incidents which have the given incident type.booleanisTenantIdSet()HistoricIncidentQueryjobDefinitionIdIn(String... jobDefinitionIds)Only select incidents that belong to one of the given job definition ids.HistoricIncidentQueryopen()Only select historic incidents which are open.HistoricIncidentQueryorderByActivityId()Order by activityId (needs to be followed byQuery.asc()orQuery.desc()).HistoricIncidentQueryorderByCauseIncidentId()Order by causeIncidentId (needs to be followed byQuery.asc()orQuery.desc()).HistoricIncidentQueryorderByConfiguration()Order by configuration (needs to be followed byQuery.asc()orQuery.desc()).HistoricIncidentQueryorderByCreateTime()Order by create time (needs to be followed byQuery.asc()orQuery.desc()).HistoricIncidentQueryorderByEndTime()Order by end time (needs to be followed byQuery.asc()orQuery.desc()).HistoricIncidentQueryorderByExecutionId()Order by executionId (needs to be followed byQuery.asc()orQuery.desc()).HistoricIncidentQueryorderByHistoryConfiguration()Order by historyConfiguration (needs to be followed byQuery.asc()orQuery.desc()).HistoricIncidentQueryorderByIncidentId()Order by id (needs to be followed byQuery.asc()orQuery.desc()).HistoricIncidentQueryorderByIncidentMessage()Order by message (needs to be followed byQuery.asc()orQuery.desc()).HistoricIncidentQueryorderByIncidentState()Order by incidentState (needs to be followed byQuery.asc()orQuery.desc()).HistoricIncidentQueryorderByIncidentType()Order by incidentType (needs to be followed byQuery.asc()orQuery.desc()).HistoricIncidentQueryorderByProcessDefinitionId()Order by processDefinitionId (needs to be followed byQuery.asc()orQuery.desc()).HistoricIncidentQueryorderByProcessDefinitionKey()Order by processDefinitionKey (needs to be followed byQuery.asc()orQuery.desc()).HistoricIncidentQueryorderByProcessInstanceId()Order by processInstanceId (needs to be followed byQuery.asc()orQuery.desc()).HistoricIncidentQueryorderByRootCauseIncidentId()Order by rootCauseIncidentId (needs to be followed byQuery.asc()orQuery.desc()).HistoricIncidentQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).HistoricIncidentQueryprocessDefinitionId(String processDefinitionId)Only select historic incidents which have the given process definition id.HistoricIncidentQueryprocessDefinitionKey(String processDefinitionKey)Only select historic incidents which have the given processDefinitionKey.HistoricIncidentQueryprocessDefinitionKeyIn(String... processDefinitionKeys)Only select historic incidents which have one of the given process definition keys.HistoricIncidentQueryprocessInstanceId(String processInstanceId)Only select historic incidents which have the given process instance id.HistoricIncidentQueryresolved()Only select historic incidents which are resolved.HistoricIncidentQueryrootCauseIncidentId(String rootCauseIncidentId)Only select historic incidents which contain the id of the root cause incident.HistoricIncidentQuerytenantIdIn(String... tenantIds)Only select historic incidents that belong to one of the given tenant ids.HistoricIncidentQuerywithoutTenantId()Only selects historic incidents that have no tenant id.-
Methods inherited from class org.camunda.bpm.engine.impl.AbstractVariableQueryImpl
addVariable, ensureVariablesInitialized, getQueryVariableValues, isVariableNamesIgnoreCase, isVariableValuesIgnoreCase, matchVariableNamesIgnoreCase, matchVariableValuesIgnoreCase, 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, executeDeploymentIdMappingsList, executeIdsList, executeResult, executeSingleResult, extend, getExpressions, getMethod, hasExcludingConditions, 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.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
-
-
-
Field Detail
-
id
protected String id
-
incidentType
protected String incidentType
-
incidentMessage
protected String incidentMessage
-
incidentMessageLike
protected String incidentMessageLike
-
executionId
protected String executionId
-
activityId
protected String activityId
-
createTimeBefore
protected Date createTimeBefore
-
createTimeAfter
protected Date createTimeAfter
-
endTimeBefore
protected Date endTimeBefore
-
endTimeAfter
protected Date endTimeAfter
-
failedActivityId
protected String failedActivityId
-
processInstanceId
protected String processInstanceId
-
processDefinitionId
protected String processDefinitionId
-
processDefinitionKey
protected String processDefinitionKey
-
processDefinitionKeys
protected String[] processDefinitionKeys
-
causeIncidentId
protected String causeIncidentId
-
rootCauseIncidentId
protected String rootCauseIncidentId
-
configuration
protected String configuration
-
historyConfiguration
protected String historyConfiguration
-
incidentState
protected IncidentState incidentState
-
tenantIds
protected String[] tenantIds
-
isTenantIdSet
protected boolean isTenantIdSet
-
jobDefinitionIds
protected String[] jobDefinitionIds
-
-
Constructor Detail
-
HistoricIncidentQueryImpl
public HistoricIncidentQueryImpl()
-
HistoricIncidentQueryImpl
public HistoricIncidentQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
incidentId
public HistoricIncidentQuery incidentId(String incidentId)
Description copied from interface:HistoricIncidentQueryOnly select historic incidents which have the given id.- Specified by:
incidentIdin interfaceHistoricIncidentQuery
-
incidentType
public HistoricIncidentQuery incidentType(String incidentType)
Description copied from interface:HistoricIncidentQueryOnly select historic incidents which have the given incident type.- Specified by:
incidentTypein interfaceHistoricIncidentQuery
-
incidentMessage
public HistoricIncidentQuery incidentMessage(String incidentMessage)
Description copied from interface:HistoricIncidentQueryOnly select historic incidents which have the given incident message.- Specified by:
incidentMessagein interfaceHistoricIncidentQuery
-
incidentMessageLike
public HistoricIncidentQuery incidentMessageLike(String incidentMessageLike)
Description copied from interface:HistoricIncidentQueryOnly select historic incidents which incident message is like the given value- Specified by:
incidentMessageLikein interfaceHistoricIncidentQuery- Parameters:
incidentMessageLike- The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
-
executionId
public HistoricIncidentQuery executionId(String executionId)
Description copied from interface:HistoricIncidentQueryOnly select historic incidents with the given id.- Specified by:
executionIdin interfaceHistoricIncidentQuery
-
createTimeBefore
public HistoricIncidentQuery createTimeBefore(Date createTimeBefore)
Description copied from interface:HistoricIncidentQueryOnly select historic incidents which have a createTime date before the given date- Specified by:
createTimeBeforein interfaceHistoricIncidentQuery
-
createTimeAfter
public HistoricIncidentQuery createTimeAfter(Date createTimeAfter)
Description copied from interface:HistoricIncidentQueryOnly select historic incidents which have a createTime date after the given date- Specified by:
createTimeAfterin interfaceHistoricIncidentQuery
-
endTimeBefore
public HistoricIncidentQuery endTimeBefore(Date endTimeBefore)
Description copied from interface:HistoricIncidentQueryOnly select historic incidents which have an endTimeBefore date before the given date- Specified by:
endTimeBeforein interfaceHistoricIncidentQuery
-
endTimeAfter
public HistoricIncidentQuery endTimeAfter(Date endTimeAfter)
Description copied from interface:HistoricIncidentQueryOnly select historic incidents which have an endTimeAfter date after the given date- Specified by:
endTimeAfterin interfaceHistoricIncidentQuery
-
activityId
public HistoricIncidentQuery activityId(String activityId)
Description copied from interface:HistoricIncidentQueryOnly select historic incidents which contain an activity with the given id.- Specified by:
activityIdin interfaceHistoricIncidentQuery
-
failedActivityId
public HistoricIncidentQuery failedActivityId(String activityId)
Description copied from interface:HistoricIncidentQueryOnly select historic incidents which were created due to a failure at an activity with the given id.- Specified by:
failedActivityIdin interfaceHistoricIncidentQuery
-
processInstanceId
public HistoricIncidentQuery processInstanceId(String processInstanceId)
Description copied from interface:HistoricIncidentQueryOnly select historic incidents which have the given process instance id.- Specified by:
processInstanceIdin interfaceHistoricIncidentQuery
-
processDefinitionId
public HistoricIncidentQuery processDefinitionId(String processDefinitionId)
Description copied from interface:HistoricIncidentQueryOnly select historic incidents which have the given process definition id.- Specified by:
processDefinitionIdin interfaceHistoricIncidentQuery
-
processDefinitionKey
public HistoricIncidentQuery processDefinitionKey(String processDefinitionKey)
Description copied from interface:HistoricIncidentQueryOnly select historic incidents which have the given processDefinitionKey.- Specified by:
processDefinitionKeyin interfaceHistoricIncidentQuery
-
processDefinitionKeyIn
public HistoricIncidentQuery processDefinitionKeyIn(String... processDefinitionKeys)
Description copied from interface:HistoricIncidentQueryOnly select historic incidents which have one of the given process definition keys.- Specified by:
processDefinitionKeyInin interfaceHistoricIncidentQuery
-
causeIncidentId
public HistoricIncidentQuery causeIncidentId(String causeIncidentId)
Description copied from interface:HistoricIncidentQueryOnly select historic incidents which contain the id of the cause incident.- Specified by:
causeIncidentIdin interfaceHistoricIncidentQuery
-
rootCauseIncidentId
public HistoricIncidentQuery rootCauseIncidentId(String rootCauseIncidentId)
Description copied from interface:HistoricIncidentQueryOnly select historic incidents which contain the id of the root cause incident.- Specified by:
rootCauseIncidentIdin interfaceHistoricIncidentQuery
-
tenantIdIn
public HistoricIncidentQuery tenantIdIn(String... tenantIds)
Description copied from interface:HistoricIncidentQueryOnly select historic incidents that belong to one of the given tenant ids.- Specified by:
tenantIdInin interfaceHistoricIncidentQuery
-
withoutTenantId
public HistoricIncidentQuery withoutTenantId()
Description copied from interface:HistoricIncidentQueryOnly selects historic incidents that have no tenant id.- Specified by:
withoutTenantIdin interfaceHistoricIncidentQuery
-
configuration
public HistoricIncidentQuery configuration(String configuration)
Description copied from interface:HistoricIncidentQueryOnly select incidents which contain the configuration.- Specified by:
configurationin interfaceHistoricIncidentQuery
-
historyConfiguration
public HistoricIncidentQuery historyConfiguration(String historyConfiguration)
Description copied from interface:HistoricIncidentQueryOnly select incidents which contain the historyConfiguration.- Specified by:
historyConfigurationin interfaceHistoricIncidentQuery
-
jobDefinitionIdIn
public HistoricIncidentQuery jobDefinitionIdIn(String... jobDefinitionIds)
Description copied from interface:HistoricIncidentQueryOnly select incidents that belong to one of the given job definition ids.- Specified by:
jobDefinitionIdInin interfaceHistoricIncidentQuery
-
open
public HistoricIncidentQuery open()
Description copied from interface:HistoricIncidentQueryOnly select historic incidents which are open.- Specified by:
openin interfaceHistoricIncidentQuery
-
resolved
public HistoricIncidentQuery resolved()
Description copied from interface:HistoricIncidentQueryOnly select historic incidents which are resolved.- Specified by:
resolvedin interfaceHistoricIncidentQuery
-
deleted
public HistoricIncidentQuery deleted()
Description copied from interface:HistoricIncidentQueryOnly select historic incidents which are deleted.- Specified by:
deletedin interfaceHistoricIncidentQuery
-
orderByIncidentId
public HistoricIncidentQuery orderByIncidentId()
Description copied from interface:HistoricIncidentQueryOrder by id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByIncidentIdin interfaceHistoricIncidentQuery
-
orderByIncidentMessage
public HistoricIncidentQuery orderByIncidentMessage()
Description copied from interface:HistoricIncidentQueryOrder by message (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByIncidentMessagein interfaceHistoricIncidentQuery
-
orderByCreateTime
public HistoricIncidentQuery orderByCreateTime()
Description copied from interface:HistoricIncidentQueryOrder by create time (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByCreateTimein interfaceHistoricIncidentQuery
-
orderByEndTime
public HistoricIncidentQuery orderByEndTime()
Description copied from interface:HistoricIncidentQueryOrder by end time (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByEndTimein interfaceHistoricIncidentQuery
-
orderByIncidentType
public HistoricIncidentQuery orderByIncidentType()
Description copied from interface:HistoricIncidentQueryOrder by incidentType (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByIncidentTypein interfaceHistoricIncidentQuery
-
orderByExecutionId
public HistoricIncidentQuery orderByExecutionId()
Description copied from interface:HistoricIncidentQueryOrder by executionId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByExecutionIdin interfaceHistoricIncidentQuery
-
orderByActivityId
public HistoricIncidentQuery orderByActivityId()
Description copied from interface:HistoricIncidentQueryOrder by activityId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityIdin interfaceHistoricIncidentQuery
-
orderByProcessInstanceId
public HistoricIncidentQuery orderByProcessInstanceId()
Description copied from interface:HistoricIncidentQueryOrder by processInstanceId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceHistoricIncidentQuery
-
orderByProcessDefinitionKey
public HistoricIncidentQuery orderByProcessDefinitionKey()
Description copied from interface:HistoricIncidentQueryOrder by processDefinitionKey (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionKeyin interfaceHistoricIncidentQuery
-
orderByProcessDefinitionId
public HistoricIncidentQuery orderByProcessDefinitionId()
Description copied from interface:HistoricIncidentQueryOrder by processDefinitionId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionIdin interfaceHistoricIncidentQuery
-
orderByCauseIncidentId
public HistoricIncidentQuery orderByCauseIncidentId()
Description copied from interface:HistoricIncidentQueryOrder by causeIncidentId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByCauseIncidentIdin interfaceHistoricIncidentQuery
-
orderByRootCauseIncidentId
public HistoricIncidentQuery orderByRootCauseIncidentId()
Description copied from interface:HistoricIncidentQueryOrder by rootCauseIncidentId (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByRootCauseIncidentIdin interfaceHistoricIncidentQuery
-
orderByConfiguration
public HistoricIncidentQuery orderByConfiguration()
Description copied from interface:HistoricIncidentQueryOrder by configuration (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByConfigurationin interfaceHistoricIncidentQuery
-
orderByHistoryConfiguration
public HistoricIncidentQuery orderByHistoryConfiguration()
Description copied from interface:HistoricIncidentQueryOrder by historyConfiguration (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByHistoryConfigurationin interfaceHistoricIncidentQuery
-
orderByIncidentState
public HistoricIncidentQuery orderByIncidentState()
Description copied from interface:HistoricIncidentQueryOrder by incidentState (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByIncidentStatein interfaceHistoricIncidentQuery
-
orderByTenantId
public HistoricIncidentQuery orderByTenantId()
Description copied from interface:HistoricIncidentQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()). Note that the ordering of incidents without tenant id is database-specific.- Specified by:
orderByTenantIdin interfaceHistoricIncidentQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractVariableQueryImpl<HistoricIncidentQuery,HistoricIncident>
-
executeList
public List<HistoricIncident> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractVariableQueryImpl<HistoricIncidentQuery,HistoricIncident>page- used if the results must be paged. If null, no paging will be applied.
-
getId
public String getId()
-
getIncidentType
public String getIncidentType()
-
getIncidentMessage
public String getIncidentMessage()
-
getExecutionId
public String getExecutionId()
-
getActivityId
public String getActivityId()
-
getFailedActivityId
public String getFailedActivityId()
-
getProcessInstanceId
public String getProcessInstanceId()
-
getProcessDefinitionId
public String getProcessDefinitionId()
-
getProcessDefinitionKeys
public String[] getProcessDefinitionKeys()
-
getCauseIncidentId
public String getCauseIncidentId()
-
getRootCauseIncidentId
public String getRootCauseIncidentId()
-
getConfiguration
public String getConfiguration()
-
getHistoryConfiguration
public String getHistoryConfiguration()
-
getIncidentState
public IncidentState getIncidentState()
-
isTenantIdSet
public boolean isTenantIdSet()
-
-