Package org.camunda.bpm.engine.impl
Class IncidentQueryImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.ListQueryParameterObject
-
- org.camunda.bpm.engine.impl.AbstractQuery<IncidentQuery,Incident>
-
- org.camunda.bpm.engine.impl.IncidentQueryImpl
-
- All Implemented Interfaces:
Serializable
,Command<Object>
,Query<IncidentQuery,Incident>
,IncidentQuery
public class IncidentQueryImpl extends AbstractQuery<IncidentQuery,Incident> implements IncidentQuery, Serializable
- 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 String
activityId
protected String
causeIncidentId
protected String
configuration
protected String
executionId
protected String
failedActivityId
protected String
id
protected String
incidentMessage
protected String
incidentMessageLike
protected Date
incidentTimestampAfter
protected Date
incidentTimestampBefore
protected String
incidentType
protected String[]
jobDefinitionIds
protected String
processDefinitionId
protected String[]
processDefinitionKeys
protected String
processInstanceId
protected String
rootCauseIncidentId
protected String[]
tenantIds
-
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 IncidentQueryImpl()
IncidentQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IncidentQuery
activityId(String activityId)
Only select incidents which contain an activity with the given id.IncidentQuery
causeIncidentId(String causeIncidentId)
Only select incidents which contain the id of the cause incident.IncidentQuery
configuration(String configuration)
Only select incidents which contain the configuration.long
executeCount(CommandContext commandContext)
List<Incident>
executeList(CommandContext commandContext, Page page)
Executes the actual query to retrieve the list of results.IncidentQuery
executionId(String executionId)
Only select incidents with the given id.IncidentQuery
failedActivityId(String activityId)
Only select incidents which were created due to a failure at an activity with the given id.String[]
getProcessDefinitionKeys()
IncidentQuery
incidentId(String incidentId)
Only select incidents which have the given id.IncidentQuery
incidentMessage(String incidentMessage)
Only select incidents which have the given incident message.IncidentQuery
incidentMessageLike(String incidentMessageLike)
Only select incidents which incident message is like the given value.IncidentQuery
incidentTimestampAfter(Date incidentTimestampAfter)
Only select incidents which have an incidentTimestamp date after the given dateIncidentQuery
incidentTimestampBefore(Date incidentTimestampBefore)
Only select incidents which have an incidentTimestamp date before the given dateIncidentQuery
incidentType(String incidentType)
Only select incidents which have the given incident type.IncidentQuery
jobDefinitionIdIn(String... jobDefinitionIds)
Only select incidents that belong to one of the given job definition ids.IncidentQuery
orderByActivityId()
Order by activityId (needs to be followed byQuery.asc()
orQuery.desc()
).IncidentQuery
orderByCauseIncidentId()
Order by causeIncidentId (needs to be followed byQuery.asc()
orQuery.desc()
).IncidentQuery
orderByConfiguration()
Order by configuration (needs to be followed byQuery.asc()
orQuery.desc()
).IncidentQuery
orderByExecutionId()
Order by executionId (needs to be followed byQuery.asc()
orQuery.desc()
).IncidentQuery
orderByIncidentId()
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).IncidentQuery
orderByIncidentMessage()
Order by incident message (needs to be followed byQuery.asc()
orQuery.desc()
).IncidentQuery
orderByIncidentTimestamp()
Order by incidentTimestamp (needs to be followed byQuery.asc()
orQuery.desc()
).IncidentQuery
orderByIncidentType()
Order by incidentType (needs to be followed byQuery.asc()
orQuery.desc()
).IncidentQuery
orderByProcessDefinitionId()
Order by processDefinitionId (needs to be followed byQuery.asc()
orQuery.desc()
).IncidentQuery
orderByProcessInstanceId()
Order by processInstanceId (needs to be followed byQuery.asc()
orQuery.desc()
).IncidentQuery
orderByRootCauseIncidentId()
Order by rootCauseIncidentId (needs to be followed byQuery.asc()
orQuery.desc()
).IncidentQuery
orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).IncidentQuery
processDefinitionId(String processDefinitionId)
Only select incidents which have the given process definition id.IncidentQuery
processDefinitionKeyIn(String... processDefinitionKeys)
Only select incidents which have one of the given process definition keys.IncidentQuery
processInstanceId(String processInstanceId)
Only select incidents which have the given process instance id.IncidentQuery
rootCauseIncidentId(String rootCauseIncidentId)
Only select incidents which contain the id of the root cause incident.IncidentQuery
tenantIdIn(String... tenantIds)
Only select incidents that belong to one of the given tenant ids.-
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
-
incidentTimestampBefore
protected Date incidentTimestampBefore
-
incidentTimestampAfter
protected Date incidentTimestampAfter
-
activityId
protected String activityId
-
failedActivityId
protected String failedActivityId
-
processInstanceId
protected String processInstanceId
-
processDefinitionId
protected String processDefinitionId
-
processDefinitionKeys
protected String[] processDefinitionKeys
-
causeIncidentId
protected String causeIncidentId
-
rootCauseIncidentId
protected String rootCauseIncidentId
-
configuration
protected String configuration
-
tenantIds
protected String[] tenantIds
-
jobDefinitionIds
protected String[] jobDefinitionIds
-
-
Constructor Detail
-
IncidentQueryImpl
public IncidentQueryImpl()
-
IncidentQueryImpl
public IncidentQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
incidentId
public IncidentQuery incidentId(String incidentId)
Description copied from interface:IncidentQuery
Only select incidents which have the given id.- Specified by:
incidentId
in interfaceIncidentQuery
-
incidentType
public IncidentQuery incidentType(String incidentType)
Description copied from interface:IncidentQuery
Only select incidents which have the given incident type.- Specified by:
incidentType
in interfaceIncidentQuery
-
incidentMessage
public IncidentQuery incidentMessage(String incidentMessage)
Description copied from interface:IncidentQuery
Only select incidents which have the given incident message.- Specified by:
incidentMessage
in interfaceIncidentQuery
-
incidentMessageLike
public IncidentQuery incidentMessageLike(String incidentMessageLike)
Description copied from interface:IncidentQuery
Only select incidents which incident message is like the given value.- Specified by:
incidentMessageLike
in interfaceIncidentQuery
- Parameters:
incidentMessageLike
- The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
-
executionId
public IncidentQuery executionId(String executionId)
Description copied from interface:IncidentQuery
Only select incidents with the given id.- Specified by:
executionId
in interfaceIncidentQuery
-
incidentTimestampBefore
public IncidentQuery incidentTimestampBefore(Date incidentTimestampBefore)
Description copied from interface:IncidentQuery
Only select incidents which have an incidentTimestamp date before the given date- Specified by:
incidentTimestampBefore
in interfaceIncidentQuery
-
incidentTimestampAfter
public IncidentQuery incidentTimestampAfter(Date incidentTimestampAfter)
Description copied from interface:IncidentQuery
Only select incidents which have an incidentTimestamp date after the given date- Specified by:
incidentTimestampAfter
in interfaceIncidentQuery
-
activityId
public IncidentQuery activityId(String activityId)
Description copied from interface:IncidentQuery
Only select incidents which contain an activity with the given id.- Specified by:
activityId
in interfaceIncidentQuery
-
failedActivityId
public IncidentQuery failedActivityId(String activityId)
Description copied from interface:IncidentQuery
Only select incidents which were created due to a failure at an activity with the given id.- Specified by:
failedActivityId
in interfaceIncidentQuery
-
processInstanceId
public IncidentQuery processInstanceId(String processInstanceId)
Description copied from interface:IncidentQuery
Only select incidents which have the given process instance id.- Specified by:
processInstanceId
in interfaceIncidentQuery
-
processDefinitionId
public IncidentQuery processDefinitionId(String processDefinitionId)
Description copied from interface:IncidentQuery
Only select incidents which have the given process definition id.- Specified by:
processDefinitionId
in interfaceIncidentQuery
-
processDefinitionKeyIn
public IncidentQuery processDefinitionKeyIn(String... processDefinitionKeys)
Description copied from interface:IncidentQuery
Only select incidents which have one of the given process definition keys.- Specified by:
processDefinitionKeyIn
in interfaceIncidentQuery
-
causeIncidentId
public IncidentQuery causeIncidentId(String causeIncidentId)
Description copied from interface:IncidentQuery
Only select incidents which contain the id of the cause incident.- Specified by:
causeIncidentId
in interfaceIncidentQuery
-
rootCauseIncidentId
public IncidentQuery rootCauseIncidentId(String rootCauseIncidentId)
Description copied from interface:IncidentQuery
Only select incidents which contain the id of the root cause incident.- Specified by:
rootCauseIncidentId
in interfaceIncidentQuery
-
configuration
public IncidentQuery configuration(String configuration)
Description copied from interface:IncidentQuery
Only select incidents which contain the configuration.- Specified by:
configuration
in interfaceIncidentQuery
-
tenantIdIn
public IncidentQuery tenantIdIn(String... tenantIds)
Description copied from interface:IncidentQuery
Only select incidents that belong to one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceIncidentQuery
-
jobDefinitionIdIn
public IncidentQuery jobDefinitionIdIn(String... jobDefinitionIds)
Description copied from interface:IncidentQuery
Only select incidents that belong to one of the given job definition ids.- Specified by:
jobDefinitionIdIn
in interfaceIncidentQuery
-
orderByIncidentId
public IncidentQuery orderByIncidentId()
Description copied from interface:IncidentQuery
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByIncidentId
in interfaceIncidentQuery
-
orderByIncidentTimestamp
public IncidentQuery orderByIncidentTimestamp()
Description copied from interface:IncidentQuery
Order by incidentTimestamp (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByIncidentTimestamp
in interfaceIncidentQuery
-
orderByIncidentType
public IncidentQuery orderByIncidentType()
Description copied from interface:IncidentQuery
Order by incidentType (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByIncidentType
in interfaceIncidentQuery
-
orderByExecutionId
public IncidentQuery orderByExecutionId()
Description copied from interface:IncidentQuery
Order by executionId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByExecutionId
in interfaceIncidentQuery
-
orderByActivityId
public IncidentQuery orderByActivityId()
Description copied from interface:IncidentQuery
Order by activityId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityId
in interfaceIncidentQuery
-
orderByProcessInstanceId
public IncidentQuery orderByProcessInstanceId()
Description copied from interface:IncidentQuery
Order by processInstanceId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessInstanceId
in interfaceIncidentQuery
-
orderByProcessDefinitionId
public IncidentQuery orderByProcessDefinitionId()
Description copied from interface:IncidentQuery
Order by processDefinitionId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessDefinitionId
in interfaceIncidentQuery
-
orderByCauseIncidentId
public IncidentQuery orderByCauseIncidentId()
Description copied from interface:IncidentQuery
Order by causeIncidentId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCauseIncidentId
in interfaceIncidentQuery
-
orderByRootCauseIncidentId
public IncidentQuery orderByRootCauseIncidentId()
Description copied from interface:IncidentQuery
Order by rootCauseIncidentId (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByRootCauseIncidentId
in interfaceIncidentQuery
-
orderByConfiguration
public IncidentQuery orderByConfiguration()
Description copied from interface:IncidentQuery
Order by configuration (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByConfiguration
in interfaceIncidentQuery
-
orderByTenantId
public IncidentQuery orderByTenantId()
Description copied from interface:IncidentQuery
Order 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:
orderByTenantId
in interfaceIncidentQuery
-
orderByIncidentMessage
public IncidentQuery orderByIncidentMessage()
Description copied from interface:IncidentQuery
Order by incident message (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByIncidentMessage
in interfaceIncidentQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCount
in classAbstractQuery<IncidentQuery,Incident>
-
executeList
public List<Incident> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractQuery<IncidentQuery,Incident>
page
- used if the results must be paged. If null, no paging will be applied.
-
getProcessDefinitionKeys
public String[] getProcessDefinitionKeys()
-
-