Class WorkInstanceInfoQueryImpl<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<Q,R>
com.flowable.platform.engine.impl.work.WorkInstanceInfoQueryImpl<Q,R>
- All Implemented Interfaces:
WorkInstanceInfoQuery<Q,
,R> Serializable
,org.flowable.common.engine.api.query.Query<Q,
,R> org.flowable.common.engine.impl.interceptor.Command<Object>
- Direct Known Subclasses:
HistoricWorkInstanceQueryImpl
,WorkInstanceQueryImpl
public abstract class WorkInstanceInfoQueryImpl<Q extends WorkInstanceInfoQuery<Q,R>,R extends WorkInstanceInfo>
extends org.flowable.common.engine.impl.query.AbstractQuery<Q,R>
implements WorkInstanceInfoQuery<Q,R>
- Author:
- Filip Hrisafov
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.db.ListQueryParameterObject.OrderBy, org.flowable.common.engine.impl.db.ListQueryParameterObject.ResultType
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
org.flowable.common.engine.api.query.Query.NullHandlingOnOrder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Collection
<String> protected String
protected String
protected String
protected String
protected static final org.flowable.common.engine.impl.db.ListQueryParameterObject.OrderBy
protected Collection
<String> protected String
protected String
protected String
protected String
protected Date
protected Date
protected String
protected boolean
protected boolean
protected String
protected String
protected String
protected String
protected Date
protected Date
protected String
protected String
protected String
protected String
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, defaultOrderBy, firstResult, ignoreOrderBy, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC
-
Constructor Summary
ConstructorsConstructorDescriptionWorkInstanceInfoQueryImpl
(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionaccessibleByUserOrGroups
(String userId, Collection<String> groupKeys) Only select work instances accessible by the give user or groupsassigneeUserId
(String userId) Only select work instance assigned to the given useridbusinessKey
(String businessKey) Only select work instance with the given businessKeybusinessStatus
(String businessStatus) Only select work instance with the given businessStatusprotected void
definitionCategories
(Collection<String> definitionCategories) Only select work instances with the given definition categoriesdefinitionCategory
(String definitionCategory) Only select work instances with the given definition categorydefinitionId
(String definitionId) Only select work instances with the given definition iddefinitionKey
(String definitionKey) Only select work instances with the given definition keydefinitionName
(String definitionName) Only select work instances with the given definition namefinishedAfter
(Date finishedAfter) finishedBefore
(Date finishedBefore) getId()
getName()
getState()
getType()
Only select work instances with the given idSelect all instances.Whether translations for the work instances should also be fetched.boolean
boolean
Only select work instances with the given nameparentScopeId
(String parentScopeId) rootScopeId
(String rootScopeId) searchText
(String searchText) Only select work instances with the given search textprotected void
startedAfter
(Date startedAfter) startedBefore
(Date startedBefore) startUserId
(String startUserId) Only select work instances with the given start user idOnly select work instances with the given stateOnly select work instances with the given tenantIdOnly select work instances with the given typeMethods inherited from class org.flowable.common.engine.impl.query.AbstractQuery
asc, count, desc, direction, execute, executeCount, executeList, executeSingleResult, getSafeList, 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, setIgnoreOrderBy, 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.Query
asc, count, desc, list, listPage, orderBy, orderBy, singleResult
-
Field Details
-
DEFAULT_ORDER_BY
protected static final org.flowable.common.engine.impl.db.ListQueryParameterObject.OrderBy DEFAULT_ORDER_BY -
id
-
name
-
definitionId
-
definitionName
-
definitionKey
-
definitionCategory
-
definitionCategories
-
state
-
type
-
startUserId
-
searchText
-
tenantId
-
accessibleByUser
-
accessibleByGroups
-
safeAccessibleByGroups
-
includeTranslations
protected boolean includeTranslations -
assigneeUserId
-
businessKey
-
businessStatus
-
includeOnlyRoot
protected boolean includeOnlyRoot -
parentScopeId
-
rootScopeId
-
startedBefore
-
startedAfter
-
finishedBefore
-
finishedAfter
-
-
Constructor Details
-
WorkInstanceInfoQueryImpl
public WorkInstanceInfoQueryImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor)
-
-
Method Details
-
id
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given id- Specified by:
id
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
name
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given name- Specified by:
name
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
definitionId
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given definition id- Specified by:
definitionId
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
definitionName
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given definition name- Specified by:
definitionName
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
definitionKey
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given definition key- Specified by:
definitionKey
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
definitionCategory
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given definition category- Specified by:
definitionCategory
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
definitionCategories
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given definition categories- Specified by:
definitionCategories
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
state
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given state- Specified by:
state
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
type
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given type- Specified by:
type
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
startUserId
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given start user id- Specified by:
startUserId
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
searchText
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given search text- Specified by:
searchText
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
tenantId
Description copied from interface:WorkInstanceInfoQuery
Only select work instances with the given tenantId- Specified by:
tenantId
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
accessibleByUserOrGroups
Description copied from interface:WorkInstanceInfoQuery
Only select work instances accessible by the give user or groups- Specified by:
accessibleByUserOrGroups
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
includeTranslation
Description copied from interface:WorkInstanceInfoQuery
Whether translations for the work instances should also be fetched.- Specified by:
includeTranslation
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
assigneeUserId
Description copied from interface:WorkInstanceInfoQuery
Only select work instance assigned to the given userid- Specified by:
assigneeUserId
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
checkQueryOk
protected void checkQueryOk()- Overrides:
checkQueryOk
in classorg.flowable.common.engine.impl.query.AbstractQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
businessKey
Description copied from interface:WorkInstanceInfoQuery
Only select work instance with the given businessKey- Specified by:
businessKey
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
businessStatus
Description copied from interface:WorkInstanceInfoQuery
Only select work instance with the given businessStatus- Specified by:
businessStatus
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
includeAllInstances
Description copied from interface:WorkInstanceInfoQuery
Select all instances. Not only the root instances.- Specified by:
includeAllInstances
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
parentScopeId
- Specified by:
parentScopeId
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
startedBefore
- Specified by:
startedBefore
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
startedAfter
- Specified by:
startedAfter
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
finishedBefore
- Specified by:
finishedBefore
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
finishedAfter
- Specified by:
finishedAfter
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
rootScopeId
- Specified by:
rootScopeId
in interfaceWorkInstanceInfoQuery<Q extends WorkInstanceInfoQuery<Q,
R>, R extends WorkInstanceInfo>
-
setSafeLists
protected void setSafeLists() -
getId
-
getName
-
getDefinitionId
-
getDefinitionName
-
getDefinitionKey
-
getDefinitionCategory
-
getDefinitionCategories
-
getState
-
getType
-
getStartUserId
-
getSearchText
-
getTenantId
-
getAccessibleByUser
-
getAccessibleByGroups
-
getSafeAccessibleByGroups
-
isIncludeTranslations
public boolean isIncludeTranslations() -
getAssigneeUserId
-
isIncludeOnlyRoot
public boolean isIncludeOnlyRoot() -
getParentScopeId
-
getRootScopeId
-
getStartedBefore
-
getStartedAfter
-
getEndedBefore
-
getEndedAfter
-