Class ActionInstanceQueryImpl
java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<ActionInstanceQuery,ActionInstance>
com.flowable.action.engine.impl.runtime.ActionInstanceQueryImpl
- All Implemented Interfaces:
ActionInstanceQuery
,Serializable
,CacheAwareQuery<ActionInstanceEntity>
,Query<ActionInstanceQuery,
,ActionInstance> Command<Object>
public class ActionInstanceQueryImpl
extends AbstractQuery<ActionInstanceQuery,ActionInstance>
implements ActionInstanceQuery, CacheAwareQuery<ActionInstanceEntity>, Serializable
- Author:
- Tijs Rademakers, Joram Barrez
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultType
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected Integer
protected Integer
protected String
protected String
protected Integer
protected boolean
protected boolean
protected Collection<? extends Collection<String>>
protected String
protected String
protected String
protected Date
protected Date
protected Date
protected String
protected String
protected String
protected boolean
Fields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutor
Fields inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
databaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC
-
Constructor Summary
ConstructorDescriptionActionInstanceQueryImpl
(CommandContext commandContext) ActionInstanceQueryImpl
(CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionactionDefinitionId
(String actionDefinitionId) Only select action instances with the given action definition id.actionDefinitionIdLike
(String actionDefinitionIdLike) Only select action instances with an action definition id like the given string.actionDefinitionKey
(String actionDefinitionKey) Only select action instances linked to the action definition for the given key.long
executeCount
(CommandContext commandContext) executeList
(CommandContext commandContext) formInstanceId
(String formInstanceId) Only select action instances with the given form instance id.Only select action instances with the given form key.getIcon()
getId()
getIds()
getName()
Collection<? extends Collection<String>>
Only select action instances with the given icon.Only select action instances with the given id.Only select action instances with the given ids.boolean
boolean
maxPriority
(Integer maxPriority) Only select action instances with the given priority or lower.minPriority
(Integer minPriority) Only select action instances with the given priority or higher.Only select action instances with the given name.Only select action instances with an name like the given string.Order by priority (needs to be followed byQuery.asc()
orQuery.desc()
).Order by start date (needs to be followed byQuery.asc()
orQuery.desc()
).Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).participantGroup
(String groupId) Only select action instances with an identity link for the provided group.participantGroups
(List<String> groupIds) Only select action instances with an identity link for the provided groups.participantUser
(String userId) Only select action instances with an identity link for the provided user.participantUsers
(List<String> userIds) Only select action instances with an identity link for the provided users.Only select action instances with the given priority.Only select action instances with a given scope id and scope type or an action link with the given scope id and scope type This query option can only be used when a scope id is already set.Similar toActionInstanceQuery.queryOnActionLinks()
, but only returns those instances which have anActionLink
instance.scopeDefinitionId
(String scopeDefinitionId) Only select action instances with the given scope definition id.Only select action instances with the given scope id.Only select action instances with the given scope type.void
setSafeParticipantGroups
(Collection<? extends Collection<String>> safeParticipantGroups) Only select action instances started on the given timestartDateAfter
(Date startDateAfter) Only select action instances started after the given timestartDateBefore
(Date startDateBefore) Only select action instances started before the given timesubScopeId
(String subScopeId) Only select action instances with the given scope id.supportsChannel
(String channel) Only select action instances with an action link for the action definition id and the provided channel.supportsChannels
(List<String> channels) Only select action instances with action definition links for the action definition id and the provided channels.Only select action instances that have the given tenant id.tenantIdLike
(String tenantIdLike) Only select action instances with a tenant id like the given one.Only select action instances that do not have a tenant id.Methods inherited from class org.flowable.common.engine.impl.query.AbstractQuery
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResult
Methods inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
addOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setParameter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.flowable.common.engine.api.query.CacheAwareQuery
enhanceCachedValue
-
Field Details
-
id
-
ids
-
actionDefinitionId
-
actionDefinitionIdLike
-
actionDefinitionKey
-
name
-
nameLike
-
scopeId
-
subScopeId
-
scopeType
-
scopeDefinitionId
-
startDate
-
startDateBefore
-
startDateAfter
-
formInstanceId
-
formKey
-
priority
-
maxPriority
-
minPriority
-
participantUsers
-
participantGroups
-
safeParticipantGroups
-
channel
-
channels
-
queryOnActionLinks
protected boolean queryOnActionLinks -
queryOnlyOnActionLinks
protected boolean queryOnlyOnActionLinks -
tenantId
-
tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId -
icon
-
-
Constructor Details
-
ActionInstanceQueryImpl
public ActionInstanceQueryImpl() -
ActionInstanceQueryImpl
-
ActionInstanceQueryImpl
-
-
Method Details
-
id
Description copied from interface:ActionInstanceQuery
Only select action instances with the given id.- Specified by:
id
in interfaceActionInstanceQuery
-
ids
Description copied from interface:ActionInstanceQuery
Only select action instances with the given ids.- Specified by:
ids
in interfaceActionInstanceQuery
-
actionDefinitionId
Description copied from interface:ActionInstanceQuery
Only select action instances with the given action definition id.- Specified by:
actionDefinitionId
in interfaceActionInstanceQuery
-
actionDefinitionIdLike
Description copied from interface:ActionInstanceQuery
Only select action instances with an action definition id like the given string.- Specified by:
actionDefinitionIdLike
in interfaceActionInstanceQuery
-
actionDefinitionKey
Description copied from interface:ActionInstanceQuery
Only select action instances linked to the action definition for the given key.- Specified by:
actionDefinitionKey
in interfaceActionInstanceQuery
-
name
Description copied from interface:ActionInstanceQuery
Only select action instances with the given name.- Specified by:
name
in interfaceActionInstanceQuery
-
nameLike
Description copied from interface:ActionInstanceQuery
Only select action instances with an name like the given string.- Specified by:
nameLike
in interfaceActionInstanceQuery
-
scopeId
Description copied from interface:ActionInstanceQuery
Only select action instances with the given scope id.- Specified by:
scopeId
in interfaceActionInstanceQuery
-
subScopeId
Description copied from interface:ActionInstanceQuery
Only select action instances with the given scope id.- Specified by:
subScopeId
in interfaceActionInstanceQuery
-
scopeType
Description copied from interface:ActionInstanceQuery
Only select action instances with the given scope type.- Specified by:
scopeType
in interfaceActionInstanceQuery
-
scopeDefinitionId
Description copied from interface:ActionInstanceQuery
Only select action instances with the given scope definition id.- Specified by:
scopeDefinitionId
in interfaceActionInstanceQuery
-
startDate
Description copied from interface:ActionInstanceQuery
Only select action instances started on the given time- Specified by:
startDate
in interfaceActionInstanceQuery
-
startDateBefore
Description copied from interface:ActionInstanceQuery
Only select action instances started before the given time- Specified by:
startDateBefore
in interfaceActionInstanceQuery
-
startDateAfter
Description copied from interface:ActionInstanceQuery
Only select action instances started after the given time- Specified by:
startDateAfter
in interfaceActionInstanceQuery
-
formInstanceId
Description copied from interface:ActionInstanceQuery
Only select action instances with the given form instance id.- Specified by:
formInstanceId
in interfaceActionInstanceQuery
-
formKey
Description copied from interface:ActionInstanceQuery
Only select action instances with the given form key.- Specified by:
formKey
in interfaceActionInstanceQuery
-
priority
Description copied from interface:ActionInstanceQuery
Only select action instances with the given priority.- Specified by:
priority
in interfaceActionInstanceQuery
-
maxPriority
Description copied from interface:ActionInstanceQuery
Only select action instances with the given priority or lower.- Specified by:
maxPriority
in interfaceActionInstanceQuery
-
minPriority
Description copied from interface:ActionInstanceQuery
Only select action instances with the given priority or higher.- Specified by:
minPriority
in interfaceActionInstanceQuery
-
participantUser
Description copied from interface:ActionInstanceQuery
Only select action instances with an identity link for the provided user.- Specified by:
participantUser
in interfaceActionInstanceQuery
-
participantUsers
Description copied from interface:ActionInstanceQuery
Only select action instances with an identity link for the provided users.- Specified by:
participantUsers
in interfaceActionInstanceQuery
-
participantGroup
Description copied from interface:ActionInstanceQuery
Only select action instances with an identity link for the provided group.- Specified by:
participantGroup
in interfaceActionInstanceQuery
-
participantGroups
Description copied from interface:ActionInstanceQuery
Only select action instances with an identity link for the provided groups.- Specified by:
participantGroups
in interfaceActionInstanceQuery
-
supportsChannel
Description copied from interface:ActionInstanceQuery
Only select action instances with an action link for the action definition id and the provided channel.- Specified by:
supportsChannel
in interfaceActionInstanceQuery
-
supportsChannels
Description copied from interface:ActionInstanceQuery
Only select action instances with action definition links for the action definition id and the provided channels.- Specified by:
supportsChannels
in interfaceActionInstanceQuery
-
queryOnActionLinks
Description copied from interface:ActionInstanceQuery
Only select action instances with a given scope id and scope type or an action link with the given scope id and scope type This query option can only be used when a scope id is already set. Note that this potentially can be a slow query due to the query having to add an or-clause which turns out to be inefficient on some databases.- Specified by:
queryOnActionLinks
in interfaceActionInstanceQuery
-
queryOnlyOnActionLinks
Description copied from interface:ActionInstanceQuery
Similar toActionInstanceQuery.queryOnActionLinks()
, but only returns those instances which have anActionLink
instance. This query option can only be used when a scope id is already set.- Specified by:
queryOnlyOnActionLinks
in interfaceActionInstanceQuery
-
tenantId
Description copied from interface:ActionInstanceQuery
Only select action instances that have the given tenant id.- Specified by:
tenantId
in interfaceActionInstanceQuery
-
tenantIdLike
Description copied from interface:ActionInstanceQuery
Only select action instances with a tenant id like the given one.- Specified by:
tenantIdLike
in interfaceActionInstanceQuery
-
withoutTenantId
Description copied from interface:ActionInstanceQuery
Only select action instances that do not have a tenant id.- Specified by:
withoutTenantId
in interfaceActionInstanceQuery
-
icon
Description copied from interface:ActionInstanceQuery
Only select action instances with the given icon.- Specified by:
icon
in interfaceActionInstanceQuery
-
orderByStartDate
Description copied from interface:ActionInstanceQuery
Order by start date (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByStartDate
in interfaceActionInstanceQuery
-
orderByPriority
Description copied from interface:ActionInstanceQuery
Order by priority (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByPriority
in interfaceActionInstanceQuery
-
orderByTenantId
Description copied from interface:ActionInstanceQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTenantId
in interfaceActionInstanceQuery
-
executeCount
- Specified by:
executeCount
in classAbstractQuery<ActionInstanceQuery,
ActionInstance>
-
executeList
- Specified by:
executeList
in classAbstractQuery<ActionInstanceQuery,
ActionInstance>
-
getId
- Specified by:
getId
in interfaceCacheAwareQuery<ActionInstanceEntity>
-
getIds
-
getActionDefinitionId
-
getActionDefinitionIdLike
-
getActionDefinitionKey
-
getName
-
getNameLike
-
getScopeId
-
getSubScopeId
-
getScopeType
-
getScopeDefinitionId
-
getStartDate
-
getStartDateBefore
-
getStartDateAfter
-
getFormInstanceId
-
getFormKey
-
getPriority
-
getMaxPriority
-
getMinPriority
-
getParticipantUsers
-
getParticipantGroups
-
getSafeParticipantGroups
-
setSafeParticipantGroups
public void setSafeParticipantGroups(Collection<? extends Collection<String>> safeParticipantGroups) -
getChannel
-
getChannels
-
isQueryOnActionLinks
public boolean isQueryOnActionLinks() -
getTenantId
-
getTenantIdLike
-
isWithoutTenantId
public boolean isWithoutTenantId() -
getIcon
-