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.StringauthorizationUserIdprotected java.util.List<java.lang.String>cachedCandidateGroupsprotected java.lang.Stringcategoryprotected java.lang.StringcategoryLikeprotected java.util.DatedeployedAfterprotected java.util.DatedeployedAtprotected java.lang.StringdeploymentIdprotected java.lang.StringeventSubscriptionNameprotected java.lang.StringeventSubscriptionTypeprotected java.lang.Stringidprotected java.lang.String[]idsprotected java.lang.StringincidentIdprotected java.lang.StringincidentMessageprotected java.lang.StringincidentMessageLikeprotected java.lang.StringincidentTypeprotected booleanincludeDefinitionsWithoutTenantIdprotected booleanisNotStartableInTasklistprotected booleanisStartableInTasklistprotected booleanisTenantIdSetprotected booleanisVersionTagSetprotected java.lang.Stringkeyprotected java.lang.StringkeyLikeprotected java.lang.String[]keysprotected booleanlatestprotected java.lang.Stringnameprotected java.lang.StringnameLikeprotected java.lang.StringprocDefIdprotected java.util.List<PermissionCheck>processDefinitionCreatePermissionChecksprotected java.lang.StringresourceNameprotected java.lang.StringresourceNameLikeprotected booleanstartablePermissionCheckprotected SuspensionStatesuspensionStateprotected java.lang.String[]tenantIdsprotected java.lang.Integerversionprotected java.lang.StringversionTagprotected java.lang.StringversionTagLike-
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 ProcessDefinitionQueryactive()Only selects process definitions which are activevoidaddProcessDefinitionCreatePermissionCheck(CompositePermissionCheck processDefinitionCreatePermissionCheck)protected voidaddProcessDefinitionToCacheAndRetrieveDocumentation(java.util.List<ProcessDefinition> list)voidcheckQueryOk()ProcessDefinitionQueryImpldeployedAfter(java.util.Date deployedAfter)Only select process definitions that were deployed after the given Date (exclusive).ProcessDefinitionQueryImpldeployedAt(java.util.Date deployedAt)Only select process definitions that were deployed at the given Date.ProcessDefinitionQueryImpldeploymentId(java.lang.String deploymentId)Only select process definitions that are deployed in a deployment with the given deployment idProcessDefinitionQueryeventSubscription(EventType eventType, java.lang.String eventName)longexecuteCount(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.StringgetCategory()java.lang.StringgetCategoryLike()java.util.DategetDeployedAfter()java.util.DategetDeployedAt()java.lang.StringgetDeploymentId()java.lang.StringgetId()java.lang.String[]getIds()java.lang.StringgetIncidentId()java.lang.StringgetIncidentMessage()java.lang.StringgetIncidentMessageLike()java.lang.StringgetIncidentType()java.lang.StringgetKey()java.lang.StringgetKeyLike()java.lang.StringgetName()java.lang.StringgetNameLike()java.util.List<PermissionCheck>getProcessDefinitionCreatePermissionChecks()java.lang.StringgetResourceName()java.lang.StringgetResourceNameLike()SuspensionStategetSuspensionState()java.lang.IntegergetVersion()java.lang.StringgetVersionTag()protected booleanhasExcludingConditions()Whether or not the query has excluding conditions.ProcessDefinitionQueryincidentId(java.lang.String incidentId)Only selects process definitions with the given incident id.ProcessDefinitionQueryincidentMessage(java.lang.String incidentMessage)Only selects process definitions with the given incident message.ProcessDefinitionQueryincidentMessageLike(java.lang.String incidentMessageLike)Only selects process definitions with an incident message like the given.ProcessDefinitionQueryincidentType(java.lang.String incidentType)Only selects process definitions with the given incident type.ProcessDefinitionQueryincludeProcessDefinitionsWithoutTenantId()Select process definitions which have no tenant id.booleanisLatest()booleanisNotStartableInTasklist()booleanisShouldJoinDeploymentTable()booleanisStartableInTasklist()booleanisStartablePermissionCheck()ProcessDefinitionQueryImpllatestVersion()Only select the process definitions which are the latest deployed (ie.ProcessDefinitionQuerymessageEventSubscription(java.lang.String messageName)ProcessDefinitionQuerymessageEventSubscriptionName(java.lang.String messageName)Selects the single process definition which has a start message event with the messageName.ProcessDefinitionQuerynotStartableInTasklist()Select process definitions which could not be started in Tasklist.ProcessDefinitionQueryorderByDeploymentId()Order by deployment id (needs to be followed byQuery.asc()orQuery.desc()).ProcessDefinitionQueryorderByDeploymentTime()Order by deployment time (needs to be followed byQuery.asc()orQuery.desc()).ProcessDefinitionQueryorderByProcessDefinitionCategory()Order by the category of the process definitions (needs to be followed byQuery.asc()orQuery.desc()).ProcessDefinitionQueryorderByProcessDefinitionId()Order by the id of the process definitions (needs to be followed byQuery.asc()orQuery.desc()).ProcessDefinitionQueryorderByProcessDefinitionKey()Order by process definition key (needs to be followed byQuery.asc()orQuery.desc()).ProcessDefinitionQueryorderByProcessDefinitionName()Order by the name of the process definitions (needs to be followed byQuery.asc()orQuery.desc()).ProcessDefinitionQueryorderByProcessDefinitionVersion()Order by the version of the process definitions (needs to be followed byQuery.asc()orQuery.desc()).ProcessDefinitionQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).ProcessDefinitionQueryorderByVersionTag()Order by version tag (needs to be followed byQuery.asc()orQuery.desc()).ProcessDefinitionQueryImplprocessDefinitionCategory(java.lang.String category)Only select process definitions with the given category.ProcessDefinitionQueryImplprocessDefinitionCategoryLike(java.lang.String categoryLike)Only select process definitions where the category matches the given parameter.ProcessDefinitionQueryImplprocessDefinitionId(java.lang.String processDefinitionId)Only select process definiton with the given id.ProcessDefinitionQueryImplprocessDefinitionIdIn(java.lang.String... ids)Only select process definiton with the given id.ProcessDefinitionQueryImplprocessDefinitionKey(java.lang.String key)Only select process definition with the given key.ProcessDefinitionQueryImplprocessDefinitionKeyLike(java.lang.String keyLike)Only select process definitions where the key matches the given parameter.ProcessDefinitionQueryImplprocessDefinitionKeysIn(java.lang.String... keys)Only select process definitions with the given keysProcessDefinitionQueryImplprocessDefinitionName(java.lang.String name)Only select process definitions with the given name.ProcessDefinitionQueryImplprocessDefinitionNameLike(java.lang.String nameLike)Only select process definitions where the name matches the given parameter.ProcessDefinitionQueryImplprocessDefinitionResourceName(java.lang.String resourceName)Only select process definition with the given resource name.ProcessDefinitionQueryImplprocessDefinitionResourceNameLike(java.lang.String resourceNameLike)Only select process definition with a resource name like the given .ProcessDefinitionQueryprocessDefinitionStarter(java.lang.String procDefId)ProcessDefinitionQueryImplprocessDefinitionVersion(java.lang.Integer version)Only select process definition with a certain version.voidsetProcessDefinitionCreatePermissionChecks(java.util.List<PermissionCheck> processDefinitionCreatePermissionChecks)voidsetSuspensionState(SuspensionState suspensionState)ProcessDefinitionQueryImplstartableByUser(java.lang.String userId)Only selects process definitions which given userId is authorized to startProcessDefinitionQuerystartableInTasklist()Select process definitions which could be started in Tasklist.ProcessDefinitionQuerystartablePermissionCheck()ProcessDefinitionQuerysuspended()Only selects process definitions which are suspendedProcessDefinitionQueryImpltenantIdIn(java.lang.String... tenantIds)Only select process definitions with one of the given tenant ids.ProcessDefinitionQueryversionTag(java.lang.String versionTag)Only selects process definitions with a specific version tagProcessDefinitionQueryversionTagLike(java.lang.String versionTagLike)Only selects process definitions with a version tag like the givenProcessDefinitionQuerywithoutTenantId()Only select process definitions which have no tenant id.ProcessDefinitionQuerywithoutVersionTag()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:ProcessDefinitionQueryOnly select process definiton with the given id.- Specified by:
processDefinitionIdin interfaceProcessDefinitionQuery
-
processDefinitionIdIn
public ProcessDefinitionQueryImpl processDefinitionIdIn(java.lang.String... ids)
Description copied from interface:ProcessDefinitionQueryOnly select process definiton with the given id.- Specified by:
processDefinitionIdInin interfaceProcessDefinitionQuery
-
processDefinitionCategory
public ProcessDefinitionQueryImpl processDefinitionCategory(java.lang.String category)
Description copied from interface:ProcessDefinitionQueryOnly select process definitions with the given category.- Specified by:
processDefinitionCategoryin interfaceProcessDefinitionQuery
-
processDefinitionCategoryLike
public ProcessDefinitionQueryImpl processDefinitionCategoryLike(java.lang.String categoryLike)
Description copied from interface:ProcessDefinitionQueryOnly 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:
processDefinitionCategoryLikein interfaceProcessDefinitionQuery
-
processDefinitionName
public ProcessDefinitionQueryImpl processDefinitionName(java.lang.String name)
Description copied from interface:ProcessDefinitionQueryOnly select process definitions with the given name.- Specified by:
processDefinitionNamein interfaceProcessDefinitionQuery
-
processDefinitionNameLike
public ProcessDefinitionQueryImpl processDefinitionNameLike(java.lang.String nameLike)
Description copied from interface:ProcessDefinitionQueryOnly 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:
processDefinitionNameLikein interfaceProcessDefinitionQuery
-
deploymentId
public ProcessDefinitionQueryImpl deploymentId(java.lang.String deploymentId)
Description copied from interface:ProcessDefinitionQueryOnly select process definitions that are deployed in a deployment with the given deployment id- Specified by:
deploymentIdin interfaceProcessDefinitionQuery
-
deployedAfter
public ProcessDefinitionQueryImpl deployedAfter(java.util.Date deployedAfter)
Description copied from interface:ProcessDefinitionQueryOnly select process definitions that were deployed after the given Date (exclusive).- Specified by:
deployedAfterin interfaceProcessDefinitionQuery
-
deployedAt
public ProcessDefinitionQueryImpl deployedAt(java.util.Date deployedAt)
Description copied from interface:ProcessDefinitionQueryOnly select process definitions that were deployed at the given Date.- Specified by:
deployedAtin interfaceProcessDefinitionQuery
-
processDefinitionKey
public ProcessDefinitionQueryImpl processDefinitionKey(java.lang.String key)
Description copied from interface:ProcessDefinitionQueryOnly select process definition with the given key.- Specified by:
processDefinitionKeyin interfaceProcessDefinitionQuery
-
processDefinitionKeysIn
public ProcessDefinitionQueryImpl processDefinitionKeysIn(java.lang.String... keys)
Description copied from interface:ProcessDefinitionQueryOnly select process definitions with the given keys- Specified by:
processDefinitionKeysInin interfaceProcessDefinitionQuery
-
processDefinitionKeyLike
public ProcessDefinitionQueryImpl processDefinitionKeyLike(java.lang.String keyLike)
Description copied from interface:ProcessDefinitionQueryOnly 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:
processDefinitionKeyLikein interfaceProcessDefinitionQuery
-
processDefinitionResourceName
public ProcessDefinitionQueryImpl processDefinitionResourceName(java.lang.String resourceName)
Description copied from interface:ProcessDefinitionQueryOnly select process definition with the given resource name.- Specified by:
processDefinitionResourceNamein interfaceProcessDefinitionQuery
-
processDefinitionResourceNameLike
public ProcessDefinitionQueryImpl processDefinitionResourceNameLike(java.lang.String resourceNameLike)
Description copied from interface:ProcessDefinitionQueryOnly select process definition with a resource name like the given .- Specified by:
processDefinitionResourceNameLikein interfaceProcessDefinitionQuery
-
processDefinitionVersion
public ProcessDefinitionQueryImpl processDefinitionVersion(java.lang.Integer version)
Description copied from interface:ProcessDefinitionQueryOnly select process definition with a certain version. Particulary useful when used in combination withProcessDefinitionQuery.processDefinitionKey(String)- Specified by:
processDefinitionVersionin interfaceProcessDefinitionQuery
-
latestVersion
public ProcessDefinitionQueryImpl latestVersion()
Description copied from interface:ProcessDefinitionQueryOnly 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:
latestVersionin interfaceProcessDefinitionQuery
-
active
public ProcessDefinitionQuery active()
Description copied from interface:ProcessDefinitionQueryOnly selects process definitions which are active- Specified by:
activein interfaceProcessDefinitionQuery
-
suspended
public ProcessDefinitionQuery suspended()
Description copied from interface:ProcessDefinitionQueryOnly selects process definitions which are suspended- Specified by:
suspendedin interfaceProcessDefinitionQuery
-
messageEventSubscription
public ProcessDefinitionQuery messageEventSubscription(java.lang.String messageName)
- Specified by:
messageEventSubscriptionin interfaceProcessDefinitionQuery- See Also:
ProcessDefinitionQuery.messageEventSubscriptionName(String)
-
messageEventSubscriptionName
public ProcessDefinitionQuery messageEventSubscriptionName(java.lang.String messageName)
Description copied from interface:ProcessDefinitionQuerySelects the single process definition which has a start message event with the messageName.- Specified by:
messageEventSubscriptionNamein 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:ProcessDefinitionQueryOnly selects process definitions with the given incident type.- Specified by:
incidentTypein interfaceProcessDefinitionQuery
-
incidentId
public ProcessDefinitionQuery incidentId(java.lang.String incidentId)
Description copied from interface:ProcessDefinitionQueryOnly selects process definitions with the given incident id.- Specified by:
incidentIdin interfaceProcessDefinitionQuery
-
incidentMessage
public ProcessDefinitionQuery incidentMessage(java.lang.String incidentMessage)
Description copied from interface:ProcessDefinitionQueryOnly selects process definitions with the given incident message.- Specified by:
incidentMessagein interfaceProcessDefinitionQuery
-
incidentMessageLike
public ProcessDefinitionQuery incidentMessageLike(java.lang.String incidentMessageLike)
Description copied from interface:ProcessDefinitionQueryOnly selects process definitions with an incident message like the given.- Specified by:
incidentMessageLikein interfaceProcessDefinitionQuery
-
hasExcludingConditions
protected boolean hasExcludingConditions()
Description copied from class:AbstractQueryWhether 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:
hasExcludingConditionsin classAbstractQuery<ProcessDefinitionQuery,ProcessDefinition>- Returns:
trueif the query does have excluding conditions,falseotherwise
-
tenantIdIn
public ProcessDefinitionQueryImpl tenantIdIn(java.lang.String... tenantIds)
Description copied from interface:ProcessDefinitionQueryOnly select process definitions with one of the given tenant ids.- Specified by:
tenantIdInin interfaceProcessDefinitionQuery
-
withoutTenantId
public ProcessDefinitionQuery withoutTenantId()
Description copied from interface:ProcessDefinitionQueryOnly select process definitions which have no tenant id.- Specified by:
withoutTenantIdin interfaceProcessDefinitionQuery
-
includeProcessDefinitionsWithoutTenantId
public ProcessDefinitionQuery includeProcessDefinitionsWithoutTenantId()
Description copied from interface:ProcessDefinitionQuerySelect process definitions which have no tenant id. Can be used in combination withProcessDefinitionQuery.tenantIdIn(String...).- Specified by:
includeProcessDefinitionsWithoutTenantIdin interfaceProcessDefinitionQuery
-
versionTag
public ProcessDefinitionQuery versionTag(java.lang.String versionTag)
Description copied from interface:ProcessDefinitionQueryOnly selects process definitions with a specific version tag- Specified by:
versionTagin interfaceProcessDefinitionQuery
-
versionTagLike
public ProcessDefinitionQuery versionTagLike(java.lang.String versionTagLike)
Description copied from interface:ProcessDefinitionQueryOnly selects process definitions with a version tag like the given- Specified by:
versionTagLikein interfaceProcessDefinitionQuery
-
withoutVersionTag
public ProcessDefinitionQuery withoutVersionTag()
Description copied from interface:ProcessDefinitionQueryOnly selects process definitions without a version tag- Specified by:
withoutVersionTagin interfaceProcessDefinitionQuery
-
startableInTasklist
public ProcessDefinitionQuery startableInTasklist()
Description copied from interface:ProcessDefinitionQuerySelect process definitions which could be started in Tasklist.- Specified by:
startableInTasklistin interfaceProcessDefinitionQuery
-
notStartableInTasklist
public ProcessDefinitionQuery notStartableInTasklist()
Description copied from interface:ProcessDefinitionQuerySelect process definitions which could not be started in Tasklist.- Specified by:
notStartableInTasklistin interfaceProcessDefinitionQuery
-
startablePermissionCheck
public ProcessDefinitionQuery startablePermissionCheck()
- Specified by:
startablePermissionCheckin interfaceProcessDefinitionQuery
-
orderByDeploymentId
public ProcessDefinitionQuery orderByDeploymentId()
Description copied from interface:ProcessDefinitionQueryOrder by deployment id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDeploymentIdin interfaceProcessDefinitionQuery
-
orderByDeploymentTime
public ProcessDefinitionQuery orderByDeploymentTime()
Description copied from interface:ProcessDefinitionQueryOrder by deployment time (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDeploymentTimein interfaceProcessDefinitionQuery
-
orderByProcessDefinitionKey
public ProcessDefinitionQuery orderByProcessDefinitionKey()
Description copied from interface:ProcessDefinitionQueryOrder by process definition key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionKeyin interfaceProcessDefinitionQuery
-
orderByProcessDefinitionCategory
public ProcessDefinitionQuery orderByProcessDefinitionCategory()
Description copied from interface:ProcessDefinitionQueryOrder by the category of the process definitions (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionCategoryin interfaceProcessDefinitionQuery
-
orderByProcessDefinitionId
public ProcessDefinitionQuery orderByProcessDefinitionId()
Description copied from interface:ProcessDefinitionQueryOrder by the id of the process definitions (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionIdin interfaceProcessDefinitionQuery
-
orderByProcessDefinitionVersion
public ProcessDefinitionQuery orderByProcessDefinitionVersion()
Description copied from interface:ProcessDefinitionQueryOrder by the version of the process definitions (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionVersionin interfaceProcessDefinitionQuery
-
orderByProcessDefinitionName
public ProcessDefinitionQuery orderByProcessDefinitionName()
Description copied from interface:ProcessDefinitionQueryOrder by the name of the process definitions (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionNamein interfaceProcessDefinitionQuery
-
orderByTenantId
public ProcessDefinitionQuery orderByTenantId()
Description copied from interface:ProcessDefinitionQueryOrder 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:
orderByTenantIdin interfaceProcessDefinitionQuery
-
orderByVersionTag
public ProcessDefinitionQuery orderByVersionTag()
Description copied from interface:ProcessDefinitionQueryOrder 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:
orderByVersionTagin interfaceProcessDefinitionQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractQuery<ProcessDefinitionQuery,ProcessDefinition>
-
executeList
public java.util.List<ProcessDefinition> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin 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:
checkQueryOkin 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:ProcessDefinitionQueryOnly selects process definitions which given userId is authorized to start- Specified by:
startableByUserin interfaceProcessDefinitionQuery
-
-