Package org.camunda.bpm.engine.impl
Class ProcessDefinitionQueryImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.ListQueryParameterObject
-
- org.camunda.bpm.engine.impl.AbstractQuery<ProcessDefinitionQuery,ProcessDefinition>
-
- org.camunda.bpm.engine.impl.ProcessDefinitionQueryImpl
-
- All Implemented Interfaces:
java.io.Serializable
,Command<java.lang.Object>
,Query<ProcessDefinitionQuery,ProcessDefinition>
,ProcessDefinitionQuery
public class ProcessDefinitionQueryImpl extends AbstractQuery<ProcessDefinitionQuery,ProcessDefinition> implements ProcessDefinitionQuery
- Author:
- Tom Baeyens, Joram Barrez, Daniel Meyer, Saeid Mirzaei
- 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 java.lang.String
authorizationUserId
protected java.util.List<java.lang.String>
cachedCandidateGroups
protected java.lang.String
category
protected java.lang.String
categoryLike
protected java.util.Date
deployedAfter
protected java.util.Date
deployedAt
protected java.lang.String
deploymentId
protected java.lang.String
eventSubscriptionName
protected java.lang.String
eventSubscriptionType
protected java.lang.String
id
protected java.lang.String[]
ids
protected java.lang.String
incidentId
protected java.lang.String
incidentMessage
protected java.lang.String
incidentMessageLike
protected java.lang.String
incidentType
protected boolean
includeDefinitionsWithoutTenantId
protected boolean
isNotStartableInTasklist
protected boolean
isStartableInTasklist
protected boolean
isTenantIdSet
protected boolean
isVersionTagSet
protected java.lang.String
key
protected java.lang.String
keyLike
protected java.lang.String[]
keys
protected boolean
latest
protected java.lang.String
name
protected java.lang.String
nameLike
protected java.lang.String
procDefId
protected java.util.List<PermissionCheck>
processDefinitionCreatePermissionChecks
protected java.lang.String
resourceName
protected java.lang.String
resourceNameLike
protected boolean
startablePermissionCheck
protected SuspensionState
suspensionState
protected java.lang.String[]
tenantIds
protected java.lang.Integer
version
protected java.lang.String
versionTag
protected java.lang.String
versionTagLike
-
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 ProcessDefinitionQueryImpl()
ProcessDefinitionQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessDefinitionQuery
active()
Only selects process definitions which are activevoid
addProcessDefinitionCreatePermissionCheck(CompositePermissionCheck processDefinitionCreatePermissionCheck)
protected void
addProcessDefinitionToCacheAndRetrieveDocumentation(java.util.List<ProcessDefinition> list)
void
checkQueryOk()
ProcessDefinitionQueryImpl
deployedAfter(java.util.Date deployedAfter)
Only select process definitions that were deployed after the given Date (exclusive).ProcessDefinitionQueryImpl
deployedAt(java.util.Date deployedAt)
Only select process definitions that were deployed at the given Date.ProcessDefinitionQueryImpl
deploymentId(java.lang.String deploymentId)
Only select process definitions that are deployed in a deployment with the given deployment idProcessDefinitionQuery
eventSubscription(EventType eventType, java.lang.String eventName)
long
executeCount(CommandContext commandContext)
java.util.List<ProcessDefinition>
executeList(CommandContext commandContext, Page page)
Executes the actual query to retrieve the list of results.java.util.List<java.lang.String>
getCandidateGroups()
java.lang.String
getCategory()
java.lang.String
getCategoryLike()
java.util.Date
getDeployedAfter()
java.util.Date
getDeployedAt()
java.lang.String
getDeploymentId()
java.lang.String
getId()
java.lang.String[]
getIds()
java.lang.String
getIncidentId()
java.lang.String
getIncidentMessage()
java.lang.String
getIncidentMessageLike()
java.lang.String
getIncidentType()
java.lang.String
getKey()
java.lang.String
getKeyLike()
java.lang.String
getName()
java.lang.String
getNameLike()
java.util.List<PermissionCheck>
getProcessDefinitionCreatePermissionChecks()
java.lang.String
getResourceName()
java.lang.String
getResourceNameLike()
SuspensionState
getSuspensionState()
java.lang.Integer
getVersion()
java.lang.String
getVersionTag()
protected boolean
hasExcludingConditions()
Whether or not the query has excluding conditions.ProcessDefinitionQuery
incidentId(java.lang.String incidentId)
Only selects process definitions with the given incident id.ProcessDefinitionQuery
incidentMessage(java.lang.String incidentMessage)
Only selects process definitions with the given incident message.ProcessDefinitionQuery
incidentMessageLike(java.lang.String incidentMessageLike)
Only selects process definitions with an incident message like the given.ProcessDefinitionQuery
incidentType(java.lang.String incidentType)
Only selects process definitions with the given incident type.ProcessDefinitionQuery
includeProcessDefinitionsWithoutTenantId()
Select process definitions which have no tenant id.boolean
isLatest()
boolean
isNotStartableInTasklist()
boolean
isShouldJoinDeploymentTable()
boolean
isStartableInTasklist()
boolean
isStartablePermissionCheck()
ProcessDefinitionQueryImpl
latestVersion()
Only select the process definitions which are the latest deployed (ie.ProcessDefinitionQuery
messageEventSubscription(java.lang.String messageName)
ProcessDefinitionQuery
messageEventSubscriptionName(java.lang.String messageName)
Selects the single process definition which has a start message event with the messageName.ProcessDefinitionQuery
notStartableInTasklist()
Select process definitions which could not be started in Tasklist.ProcessDefinitionQuery
orderByDeploymentId()
Order by deployment id (needs to be followed byQuery.asc()
orQuery.desc()
).ProcessDefinitionQuery
orderByDeploymentTime()
Order by deployment time (needs to be followed byQuery.asc()
orQuery.desc()
).ProcessDefinitionQuery
orderByProcessDefinitionCategory()
Order by the category of the process definitions (needs to be followed byQuery.asc()
orQuery.desc()
).ProcessDefinitionQuery
orderByProcessDefinitionId()
Order by the id of the process definitions (needs to be followed byQuery.asc()
orQuery.desc()
).ProcessDefinitionQuery
orderByProcessDefinitionKey()
Order by process definition key (needs to be followed byQuery.asc()
orQuery.desc()
).ProcessDefinitionQuery
orderByProcessDefinitionName()
Order by the name of the process definitions (needs to be followed byQuery.asc()
orQuery.desc()
).ProcessDefinitionQuery
orderByProcessDefinitionVersion()
Order by the version of the process definitions (needs to be followed byQuery.asc()
orQuery.desc()
).ProcessDefinitionQuery
orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).ProcessDefinitionQuery
orderByVersionTag()
Order by version tag (needs to be followed byQuery.asc()
orQuery.desc()
).ProcessDefinitionQueryImpl
processDefinitionCategory(java.lang.String category)
Only select process definitions with the given category.ProcessDefinitionQueryImpl
processDefinitionCategoryLike(java.lang.String categoryLike)
Only select process definitions where the category matches the given parameter.ProcessDefinitionQueryImpl
processDefinitionId(java.lang.String processDefinitionId)
Only select process definiton with the given id.ProcessDefinitionQueryImpl
processDefinitionIdIn(java.lang.String... ids)
Only select process definiton with the given id.ProcessDefinitionQueryImpl
processDefinitionKey(java.lang.String key)
Only select process definition with the given key.ProcessDefinitionQueryImpl
processDefinitionKeyLike(java.lang.String keyLike)
Only select process definitions where the key matches the given parameter.ProcessDefinitionQueryImpl
processDefinitionKeysIn(java.lang.String... keys)
Only select process definitions with the given keysProcessDefinitionQueryImpl
processDefinitionName(java.lang.String name)
Only select process definitions with the given name.ProcessDefinitionQueryImpl
processDefinitionNameLike(java.lang.String nameLike)
Only select process definitions where the name matches the given parameter.ProcessDefinitionQueryImpl
processDefinitionResourceName(java.lang.String resourceName)
Only select process definition with the given resource name.ProcessDefinitionQueryImpl
processDefinitionResourceNameLike(java.lang.String resourceNameLike)
Only select process definition with a resource name like the given .ProcessDefinitionQuery
processDefinitionStarter(java.lang.String procDefId)
ProcessDefinitionQueryImpl
processDefinitionVersion(java.lang.Integer version)
Only select process definition with a certain version.void
setProcessDefinitionCreatePermissionChecks(java.util.List<PermissionCheck> processDefinitionCreatePermissionChecks)
void
setSuspensionState(SuspensionState suspensionState)
ProcessDefinitionQueryImpl
startableByUser(java.lang.String userId)
Only selects process definitions which given userId is authorized to startProcessDefinitionQuery
startableInTasklist()
Select process definitions which could be started in Tasklist.ProcessDefinitionQuery
startablePermissionCheck()
ProcessDefinitionQuery
suspended()
Only selects process definitions which are suspendedProcessDefinitionQueryImpl
tenantIdIn(java.lang.String... tenantIds)
Only select process definitions with one of the given tenant ids.ProcessDefinitionQuery
versionTag(java.lang.String versionTag)
Only selects process definitions with a specific version tagProcessDefinitionQuery
versionTagLike(java.lang.String versionTagLike)
Only selects process definitions with a version tag like the givenProcessDefinitionQuery
withoutTenantId()
Only select process definitions which have no tenant id.ProcessDefinitionQuery
withoutVersionTag()
Only selects process definitions without a version tag-
Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
addExpression, addValidator, asc, checkMaxResultsLimit, 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.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 java.lang.String id
-
ids
protected java.lang.String[] ids
-
category
protected java.lang.String category
-
categoryLike
protected java.lang.String categoryLike
-
name
protected java.lang.String name
-
nameLike
protected java.lang.String nameLike
-
deploymentId
protected java.lang.String deploymentId
-
deployedAfter
protected java.util.Date deployedAfter
-
deployedAt
protected java.util.Date deployedAt
-
key
protected java.lang.String key
-
keys
protected java.lang.String[] keys
-
keyLike
protected java.lang.String keyLike
-
resourceName
protected java.lang.String resourceName
-
resourceNameLike
protected java.lang.String resourceNameLike
-
version
protected java.lang.Integer version
-
latest
protected boolean latest
-
suspensionState
protected SuspensionState suspensionState
-
authorizationUserId
protected java.lang.String authorizationUserId
-
cachedCandidateGroups
protected java.util.List<java.lang.String> cachedCandidateGroups
-
procDefId
protected java.lang.String procDefId
-
incidentType
protected java.lang.String incidentType
-
incidentId
protected java.lang.String incidentId
-
incidentMessage
protected java.lang.String incidentMessage
-
incidentMessageLike
protected java.lang.String incidentMessageLike
-
eventSubscriptionName
protected java.lang.String eventSubscriptionName
-
eventSubscriptionType
protected java.lang.String eventSubscriptionType
-
isTenantIdSet
protected boolean isTenantIdSet
-
tenantIds
protected java.lang.String[] tenantIds
-
includeDefinitionsWithoutTenantId
protected boolean includeDefinitionsWithoutTenantId
-
isVersionTagSet
protected boolean isVersionTagSet
-
versionTag
protected java.lang.String versionTag
-
versionTagLike
protected java.lang.String versionTagLike
-
isStartableInTasklist
protected boolean isStartableInTasklist
-
isNotStartableInTasklist
protected boolean isNotStartableInTasklist
-
startablePermissionCheck
protected boolean startablePermissionCheck
-
processDefinitionCreatePermissionChecks
protected java.util.List<PermissionCheck> processDefinitionCreatePermissionChecks
-
-
Constructor Detail
-
ProcessDefinitionQueryImpl
public ProcessDefinitionQueryImpl()
-
ProcessDefinitionQueryImpl
public ProcessDefinitionQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
processDefinitionId
public ProcessDefinitionQueryImpl processDefinitionId(java.lang.String processDefinitionId)
Description copied from interface:ProcessDefinitionQuery
Only select process definiton with the given id.- Specified by:
processDefinitionId
in interfaceProcessDefinitionQuery
-
processDefinitionIdIn
public ProcessDefinitionQueryImpl processDefinitionIdIn(java.lang.String... ids)
Description copied from interface:ProcessDefinitionQuery
Only select process definiton with the given id.- Specified by:
processDefinitionIdIn
in interfaceProcessDefinitionQuery
-
processDefinitionCategory
public ProcessDefinitionQueryImpl processDefinitionCategory(java.lang.String category)
Description copied from interface:ProcessDefinitionQuery
Only select process definitions with the given category.- Specified by:
processDefinitionCategory
in interfaceProcessDefinitionQuery
-
processDefinitionCategoryLike
public ProcessDefinitionQueryImpl processDefinitionCategoryLike(java.lang.String categoryLike)
Description copied from interface:ProcessDefinitionQuery
Only select process definitions where the category matches the given parameter. The syntax that should be used is the same as in SQL, eg. %activiti%- Specified by:
processDefinitionCategoryLike
in interfaceProcessDefinitionQuery
-
processDefinitionName
public ProcessDefinitionQueryImpl processDefinitionName(java.lang.String name)
Description copied from interface:ProcessDefinitionQuery
Only select process definitions with the given name.- Specified by:
processDefinitionName
in interfaceProcessDefinitionQuery
-
processDefinitionNameLike
public ProcessDefinitionQueryImpl processDefinitionNameLike(java.lang.String nameLike)
Description copied from interface:ProcessDefinitionQuery
Only select process definitions where the name matches the given parameter. The syntax that should be used is the same as in SQL, eg. %activiti%- Specified by:
processDefinitionNameLike
in interfaceProcessDefinitionQuery
-
deploymentId
public ProcessDefinitionQueryImpl deploymentId(java.lang.String deploymentId)
Description copied from interface:ProcessDefinitionQuery
Only select process definitions that are deployed in a deployment with the given deployment id- Specified by:
deploymentId
in interfaceProcessDefinitionQuery
-
deployedAfter
public ProcessDefinitionQueryImpl deployedAfter(java.util.Date deployedAfter)
Description copied from interface:ProcessDefinitionQuery
Only select process definitions that were deployed after the given Date (exclusive).- Specified by:
deployedAfter
in interfaceProcessDefinitionQuery
-
deployedAt
public ProcessDefinitionQueryImpl deployedAt(java.util.Date deployedAt)
Description copied from interface:ProcessDefinitionQuery
Only select process definitions that were deployed at the given Date.- Specified by:
deployedAt
in interfaceProcessDefinitionQuery
-
processDefinitionKey
public ProcessDefinitionQueryImpl processDefinitionKey(java.lang.String key)
Description copied from interface:ProcessDefinitionQuery
Only select process definition with the given key.- Specified by:
processDefinitionKey
in interfaceProcessDefinitionQuery
-
processDefinitionKeysIn
public ProcessDefinitionQueryImpl processDefinitionKeysIn(java.lang.String... keys)
Description copied from interface:ProcessDefinitionQuery
Only select process definitions with the given keys- Specified by:
processDefinitionKeysIn
in interfaceProcessDefinitionQuery
-
processDefinitionKeyLike
public ProcessDefinitionQueryImpl processDefinitionKeyLike(java.lang.String keyLike)
Description copied from interface:ProcessDefinitionQuery
Only select process definitions where the key matches the given parameter. The syntax that should be used is the same as in SQL, eg. %activiti%- Specified by:
processDefinitionKeyLike
in interfaceProcessDefinitionQuery
-
processDefinitionResourceName
public ProcessDefinitionQueryImpl processDefinitionResourceName(java.lang.String resourceName)
Description copied from interface:ProcessDefinitionQuery
Only select process definition with the given resource name.- Specified by:
processDefinitionResourceName
in interfaceProcessDefinitionQuery
-
processDefinitionResourceNameLike
public ProcessDefinitionQueryImpl processDefinitionResourceNameLike(java.lang.String resourceNameLike)
Description copied from interface:ProcessDefinitionQuery
Only select process definition with a resource name like the given .- Specified by:
processDefinitionResourceNameLike
in interfaceProcessDefinitionQuery
-
processDefinitionVersion
public ProcessDefinitionQueryImpl processDefinitionVersion(java.lang.Integer version)
Description copied from interface:ProcessDefinitionQuery
Only select process definition with a certain version. Particulary useful when used in combination withProcessDefinitionQuery.processDefinitionKey(String)
- Specified by:
processDefinitionVersion
in interfaceProcessDefinitionQuery
-
latestVersion
public ProcessDefinitionQueryImpl latestVersion()
Description copied from interface:ProcessDefinitionQuery
Only select the process definitions which are the latest deployed (ie. which have the highest version number for the given key).
Can only be used in combination with
ProcessDefinitionQuery.processDefinitionKey(String)
ofProcessDefinitionQuery.processDefinitionKeyLike(String)
. Can also be used without any other criteria (ie. query.latest().list()), which will then give all the latest versions of all the deployed process definitions.For multi-tenancy: select the latest deployed process definitions for each tenant. If a process definition is deployed for multiple tenants then all process definitions are selected.
- Specified by:
latestVersion
in interfaceProcessDefinitionQuery
-
active
public ProcessDefinitionQuery active()
Description copied from interface:ProcessDefinitionQuery
Only selects process definitions which are active- Specified by:
active
in interfaceProcessDefinitionQuery
-
suspended
public ProcessDefinitionQuery suspended()
Description copied from interface:ProcessDefinitionQuery
Only selects process definitions which are suspended- Specified by:
suspended
in interfaceProcessDefinitionQuery
-
messageEventSubscription
public ProcessDefinitionQuery messageEventSubscription(java.lang.String messageName)
- Specified by:
messageEventSubscription
in interfaceProcessDefinitionQuery
- See Also:
ProcessDefinitionQuery.messageEventSubscriptionName(String)
-
messageEventSubscriptionName
public ProcessDefinitionQuery messageEventSubscriptionName(java.lang.String messageName)
Description copied from interface:ProcessDefinitionQuery
Selects the single process definition which has a start message event with the messageName.- Specified by:
messageEventSubscriptionName
in interfaceProcessDefinitionQuery
-
processDefinitionStarter
public ProcessDefinitionQuery processDefinitionStarter(java.lang.String procDefId)
-
eventSubscription
public ProcessDefinitionQuery eventSubscription(EventType eventType, java.lang.String eventName)
-
incidentType
public ProcessDefinitionQuery incidentType(java.lang.String incidentType)
Description copied from interface:ProcessDefinitionQuery
Only selects process definitions with the given incident type.- Specified by:
incidentType
in interfaceProcessDefinitionQuery
-
incidentId
public ProcessDefinitionQuery incidentId(java.lang.String incidentId)
Description copied from interface:ProcessDefinitionQuery
Only selects process definitions with the given incident id.- Specified by:
incidentId
in interfaceProcessDefinitionQuery
-
incidentMessage
public ProcessDefinitionQuery incidentMessage(java.lang.String incidentMessage)
Description copied from interface:ProcessDefinitionQuery
Only selects process definitions with the given incident message.- Specified by:
incidentMessage
in interfaceProcessDefinitionQuery
-
incidentMessageLike
public ProcessDefinitionQuery incidentMessageLike(java.lang.String incidentMessageLike)
Description copied from interface:ProcessDefinitionQuery
Only selects process definitions with an incident message like the given.- Specified by:
incidentMessageLike
in interfaceProcessDefinitionQuery
-
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<ProcessDefinitionQuery,ProcessDefinition>
- Returns:
true
if the query does have excluding conditions,false
otherwise
-
tenantIdIn
public ProcessDefinitionQueryImpl tenantIdIn(java.lang.String... tenantIds)
Description copied from interface:ProcessDefinitionQuery
Only select process definitions with one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceProcessDefinitionQuery
-
withoutTenantId
public ProcessDefinitionQuery withoutTenantId()
Description copied from interface:ProcessDefinitionQuery
Only select process definitions which have no tenant id.- Specified by:
withoutTenantId
in interfaceProcessDefinitionQuery
-
includeProcessDefinitionsWithoutTenantId
public ProcessDefinitionQuery includeProcessDefinitionsWithoutTenantId()
Description copied from interface:ProcessDefinitionQuery
Select process definitions which have no tenant id. Can be used in combination withProcessDefinitionQuery.tenantIdIn(String...)
.- Specified by:
includeProcessDefinitionsWithoutTenantId
in interfaceProcessDefinitionQuery
-
versionTag
public ProcessDefinitionQuery versionTag(java.lang.String versionTag)
Description copied from interface:ProcessDefinitionQuery
Only selects process definitions with a specific version tag- Specified by:
versionTag
in interfaceProcessDefinitionQuery
-
versionTagLike
public ProcessDefinitionQuery versionTagLike(java.lang.String versionTagLike)
Description copied from interface:ProcessDefinitionQuery
Only selects process definitions with a version tag like the given- Specified by:
versionTagLike
in interfaceProcessDefinitionQuery
-
withoutVersionTag
public ProcessDefinitionQuery withoutVersionTag()
Description copied from interface:ProcessDefinitionQuery
Only selects process definitions without a version tag- Specified by:
withoutVersionTag
in interfaceProcessDefinitionQuery
-
startableInTasklist
public ProcessDefinitionQuery startableInTasklist()
Description copied from interface:ProcessDefinitionQuery
Select process definitions which could be started in Tasklist.- Specified by:
startableInTasklist
in interfaceProcessDefinitionQuery
-
notStartableInTasklist
public ProcessDefinitionQuery notStartableInTasklist()
Description copied from interface:ProcessDefinitionQuery
Select process definitions which could not be started in Tasklist.- Specified by:
notStartableInTasklist
in interfaceProcessDefinitionQuery
-
startablePermissionCheck
public ProcessDefinitionQuery startablePermissionCheck()
- Specified by:
startablePermissionCheck
in interfaceProcessDefinitionQuery
-
orderByDeploymentId
public ProcessDefinitionQuery orderByDeploymentId()
Description copied from interface:ProcessDefinitionQuery
Order by deployment id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDeploymentId
in interfaceProcessDefinitionQuery
-
orderByDeploymentTime
public ProcessDefinitionQuery orderByDeploymentTime()
Description copied from interface:ProcessDefinitionQuery
Order by deployment time (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDeploymentTime
in interfaceProcessDefinitionQuery
-
orderByProcessDefinitionKey
public ProcessDefinitionQuery orderByProcessDefinitionKey()
Description copied from interface:ProcessDefinitionQuery
Order by process definition key (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessDefinitionKey
in interfaceProcessDefinitionQuery
-
orderByProcessDefinitionCategory
public ProcessDefinitionQuery orderByProcessDefinitionCategory()
Description copied from interface:ProcessDefinitionQuery
Order by the category of the process definitions (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessDefinitionCategory
in interfaceProcessDefinitionQuery
-
orderByProcessDefinitionId
public ProcessDefinitionQuery orderByProcessDefinitionId()
Description copied from interface:ProcessDefinitionQuery
Order by the id of the process definitions (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessDefinitionId
in interfaceProcessDefinitionQuery
-
orderByProcessDefinitionVersion
public ProcessDefinitionQuery orderByProcessDefinitionVersion()
Description copied from interface:ProcessDefinitionQuery
Order by the version of the process definitions (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessDefinitionVersion
in interfaceProcessDefinitionQuery
-
orderByProcessDefinitionName
public ProcessDefinitionQuery orderByProcessDefinitionName()
Description copied from interface:ProcessDefinitionQuery
Order by the name of the process definitions (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessDefinitionName
in interfaceProcessDefinitionQuery
-
orderByTenantId
public ProcessDefinitionQuery orderByTenantId()
Description copied from interface:ProcessDefinitionQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
). Note that the ordering of process instances without tenant id is database-specific.- Specified by:
orderByTenantId
in interfaceProcessDefinitionQuery
-
orderByVersionTag
public ProcessDefinitionQuery orderByVersionTag()
Description copied from interface:ProcessDefinitionQuery
Order by version tag (needs to be followed byQuery.asc()
orQuery.desc()
). Note: sorting by versionTag is a string based sort. There is no interpretation of the version which can lead to a sorting like: v0.1.0 v0.10.0 v0.2.0.- Specified by:
orderByVersionTag
in interfaceProcessDefinitionQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCount
in classAbstractQuery<ProcessDefinitionQuery,ProcessDefinition>
-
executeList
public java.util.List<ProcessDefinition> 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<ProcessDefinitionQuery,ProcessDefinition>
page
- used if the results must be paged. If null, no paging will be applied.
-
addProcessDefinitionToCacheAndRetrieveDocumentation
protected void addProcessDefinitionToCacheAndRetrieveDocumentation(java.util.List<ProcessDefinition> list)
-
checkQueryOk
public void checkQueryOk()
- Overrides:
checkQueryOk
in classAbstractQuery<ProcessDefinitionQuery,ProcessDefinition>
-
getDeploymentId
public java.lang.String getDeploymentId()
-
getDeployedAfter
public java.util.Date getDeployedAfter()
-
getDeployedAt
public java.util.Date getDeployedAt()
-
getId
public java.lang.String getId()
-
getIds
public java.lang.String[] getIds()
-
getName
public java.lang.String getName()
-
getNameLike
public java.lang.String getNameLike()
-
getKey
public java.lang.String getKey()
-
getKeyLike
public java.lang.String getKeyLike()
-
getVersion
public java.lang.Integer getVersion()
-
isLatest
public boolean isLatest()
-
getCategory
public java.lang.String getCategory()
-
getCategoryLike
public java.lang.String getCategoryLike()
-
getResourceName
public java.lang.String getResourceName()
-
getResourceNameLike
public java.lang.String getResourceNameLike()
-
getSuspensionState
public SuspensionState getSuspensionState()
-
setSuspensionState
public void setSuspensionState(SuspensionState suspensionState)
-
getIncidentId
public java.lang.String getIncidentId()
-
getIncidentType
public java.lang.String getIncidentType()
-
getIncidentMessage
public java.lang.String getIncidentMessage()
-
getIncidentMessageLike
public java.lang.String getIncidentMessageLike()
-
getVersionTag
public java.lang.String getVersionTag()
-
isStartableInTasklist
public boolean isStartableInTasklist()
-
isNotStartableInTasklist
public boolean isNotStartableInTasklist()
-
isStartablePermissionCheck
public boolean isStartablePermissionCheck()
-
setProcessDefinitionCreatePermissionChecks
public void setProcessDefinitionCreatePermissionChecks(java.util.List<PermissionCheck> processDefinitionCreatePermissionChecks)
-
getProcessDefinitionCreatePermissionChecks
public java.util.List<PermissionCheck> getProcessDefinitionCreatePermissionChecks()
-
isShouldJoinDeploymentTable
public boolean isShouldJoinDeploymentTable()
-
addProcessDefinitionCreatePermissionCheck
public void addProcessDefinitionCreatePermissionCheck(CompositePermissionCheck processDefinitionCreatePermissionCheck)
-
getCandidateGroups
public java.util.List<java.lang.String> getCandidateGroups()
-
startableByUser
public ProcessDefinitionQueryImpl startableByUser(java.lang.String userId)
Description copied from interface:ProcessDefinitionQuery
Only selects process definitions which given userId is authorized to start- Specified by:
startableByUser
in interfaceProcessDefinitionQuery
-
-