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:
Serializable
,Command<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 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(List<ProcessDefinition> list)
void
checkQueryOk()
ProcessDefinitionQueryImpl
deployedAfter(Date deployedAfter)
Only select process definitions that were deployed after the given Date (exclusive).ProcessDefinitionQueryImpl
deployedAt(Date deployedAt)
Only select process definitions that were deployed at the given Date.ProcessDefinitionQueryImpl
deploymentId(String deploymentId)
Only select process definitions that are deployed in a deployment with the given deployment idProcessDefinitionQuery
eventSubscription(EventType eventType, String eventName)
long
executeCount(CommandContext commandContext)
List<ProcessDefinition>
executeList(CommandContext commandContext, Page page)
Executes the actual query to retrieve the list of results.List<String>
getCandidateGroups()
String
getCategory()
String
getCategoryLike()
Date
getDeployedAfter()
Date
getDeployedAt()
String
getDeploymentId()
String
getId()
String[]
getIds()
String
getIncidentId()
String
getIncidentMessage()
String
getIncidentMessageLike()
String
getIncidentType()
String
getKey()
String
getKeyLike()
String
getName()
String
getNameLike()
List<PermissionCheck>
getProcessDefinitionCreatePermissionChecks()
String
getResourceName()
String
getResourceNameLike()
SuspensionState
getSuspensionState()
Integer
getVersion()
String
getVersionTag()
protected boolean
hasExcludingConditions()
Whether or not the query has excluding conditions.ProcessDefinitionQuery
incidentId(String incidentId)
Only selects process definitions with the given incident id.ProcessDefinitionQuery
incidentMessage(String incidentMessage)
Only selects process definitions with the given incident message.ProcessDefinitionQuery
incidentMessageLike(String incidentMessageLike)
Only selects process definitions with an incident message like the given.ProcessDefinitionQuery
incidentType(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(String messageName)
ProcessDefinitionQuery
messageEventSubscriptionName(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(String category)
Only select process definitions with the given category.ProcessDefinitionQueryImpl
processDefinitionCategoryLike(String categoryLike)
Only select process definitions where the category matches the given parameter.ProcessDefinitionQueryImpl
processDefinitionId(String processDefinitionId)
Only select process definiton with the given id.ProcessDefinitionQueryImpl
processDefinitionIdIn(String... ids)
Only select process definiton with the given id.ProcessDefinitionQueryImpl
processDefinitionKey(String key)
Only select process definition with the given key.ProcessDefinitionQueryImpl
processDefinitionKeyLike(String keyLike)
Only select process definitions where the key matches the given parameter.ProcessDefinitionQueryImpl
processDefinitionKeysIn(String... keys)
Only select process definitions with the given keysProcessDefinitionQueryImpl
processDefinitionName(String name)
Only select process definitions with the given name.ProcessDefinitionQueryImpl
processDefinitionNameLike(String nameLike)
Only select process definitions where the name matches the given parameter.ProcessDefinitionQueryImpl
processDefinitionResourceName(String resourceName)
Only select process definition with the given resource name.ProcessDefinitionQueryImpl
processDefinitionResourceNameLike(String resourceNameLike)
Only select process definition with a resource name like the given .ProcessDefinitionQuery
processDefinitionStarter(String procDefId)
ProcessDefinitionQueryImpl
processDefinitionVersion(Integer version)
Only select process definition with a certain version.void
setProcessDefinitionCreatePermissionChecks(List<PermissionCheck> processDefinitionCreatePermissionChecks)
void
setSuspensionState(SuspensionState suspensionState)
ProcessDefinitionQueryImpl
startableByUser(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(String... tenantIds)
Only select process definitions with one of the given tenant ids.ProcessDefinitionQuery
versionTag(String versionTag)
Only selects process definitions with a specific version tagProcessDefinitionQuery
versionTagLike(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 String id
-
ids
protected String[] ids
-
category
protected String category
-
categoryLike
protected String categoryLike
-
name
protected String name
-
nameLike
protected String nameLike
-
deploymentId
protected String deploymentId
-
deployedAfter
protected Date deployedAfter
-
deployedAt
protected Date deployedAt
-
key
protected String key
-
keys
protected String[] keys
-
keyLike
protected String keyLike
-
resourceName
protected String resourceName
-
resourceNameLike
protected String resourceNameLike
-
version
protected Integer version
-
latest
protected boolean latest
-
suspensionState
protected SuspensionState suspensionState
-
authorizationUserId
protected String authorizationUserId
-
procDefId
protected String procDefId
-
incidentType
protected String incidentType
-
incidentId
protected String incidentId
-
incidentMessage
protected String incidentMessage
-
incidentMessageLike
protected String incidentMessageLike
-
eventSubscriptionName
protected String eventSubscriptionName
-
eventSubscriptionType
protected String eventSubscriptionType
-
isTenantIdSet
protected boolean isTenantIdSet
-
tenantIds
protected String[] tenantIds
-
includeDefinitionsWithoutTenantId
protected boolean includeDefinitionsWithoutTenantId
-
isVersionTagSet
protected boolean isVersionTagSet
-
versionTag
protected String versionTag
-
versionTagLike
protected String versionTagLike
-
isStartableInTasklist
protected boolean isStartableInTasklist
-
isNotStartableInTasklist
protected boolean isNotStartableInTasklist
-
startablePermissionCheck
protected boolean startablePermissionCheck
-
processDefinitionCreatePermissionChecks
protected List<PermissionCheck> processDefinitionCreatePermissionChecks
-
-
Constructor Detail
-
ProcessDefinitionQueryImpl
public ProcessDefinitionQueryImpl()
-
ProcessDefinitionQueryImpl
public ProcessDefinitionQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
processDefinitionId
public ProcessDefinitionQueryImpl processDefinitionId(String processDefinitionId)
Description copied from interface:ProcessDefinitionQuery
Only select process definiton with the given id.- Specified by:
processDefinitionId
in interfaceProcessDefinitionQuery
-
processDefinitionIdIn
public ProcessDefinitionQueryImpl processDefinitionIdIn(String... ids)
Description copied from interface:ProcessDefinitionQuery
Only select process definiton with the given id.- Specified by:
processDefinitionIdIn
in interfaceProcessDefinitionQuery
-
processDefinitionCategory
public ProcessDefinitionQueryImpl processDefinitionCategory(String category)
Description copied from interface:ProcessDefinitionQuery
Only select process definitions with the given category.- Specified by:
processDefinitionCategory
in interfaceProcessDefinitionQuery
-
processDefinitionCategoryLike
public ProcessDefinitionQueryImpl processDefinitionCategoryLike(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(String name)
Description copied from interface:ProcessDefinitionQuery
Only select process definitions with the given name.- Specified by:
processDefinitionName
in interfaceProcessDefinitionQuery
-
processDefinitionNameLike
public ProcessDefinitionQueryImpl processDefinitionNameLike(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(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(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(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(String key)
Description copied from interface:ProcessDefinitionQuery
Only select process definition with the given key.- Specified by:
processDefinitionKey
in interfaceProcessDefinitionQuery
-
processDefinitionKeysIn
public ProcessDefinitionQueryImpl processDefinitionKeysIn(String... keys)
Description copied from interface:ProcessDefinitionQuery
Only select process definitions with the given keys- Specified by:
processDefinitionKeysIn
in interfaceProcessDefinitionQuery
-
processDefinitionKeyLike
public ProcessDefinitionQueryImpl processDefinitionKeyLike(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(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(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(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(String messageName)
- Specified by:
messageEventSubscription
in interfaceProcessDefinitionQuery
- See Also:
ProcessDefinitionQuery.messageEventSubscriptionName(String)
-
messageEventSubscriptionName
public ProcessDefinitionQuery messageEventSubscriptionName(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(String procDefId)
-
eventSubscription
public ProcessDefinitionQuery eventSubscription(EventType eventType, String eventName)
-
incidentType
public ProcessDefinitionQuery incidentType(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(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(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(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(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(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(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 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(List<ProcessDefinition> list)
-
checkQueryOk
public void checkQueryOk()
- Overrides:
checkQueryOk
in classAbstractQuery<ProcessDefinitionQuery,ProcessDefinition>
-
getDeploymentId
public String getDeploymentId()
-
getDeployedAfter
public Date getDeployedAfter()
-
getDeployedAt
public Date getDeployedAt()
-
getId
public String getId()
-
getIds
public String[] getIds()
-
getName
public String getName()
-
getNameLike
public String getNameLike()
-
getKey
public String getKey()
-
getKeyLike
public String getKeyLike()
-
getVersion
public Integer getVersion()
-
isLatest
public boolean isLatest()
-
getCategory
public String getCategory()
-
getCategoryLike
public String getCategoryLike()
-
getResourceName
public String getResourceName()
-
getResourceNameLike
public String getResourceNameLike()
-
getSuspensionState
public SuspensionState getSuspensionState()
-
setSuspensionState
public void setSuspensionState(SuspensionState suspensionState)
-
getIncidentId
public String getIncidentId()
-
getIncidentType
public String getIncidentType()
-
getIncidentMessage
public String getIncidentMessage()
-
getIncidentMessageLike
public String getIncidentMessageLike()
-
getVersionTag
public String getVersionTag()
-
isStartableInTasklist
public boolean isStartableInTasklist()
-
isNotStartableInTasklist
public boolean isNotStartableInTasklist()
-
isStartablePermissionCheck
public boolean isStartablePermissionCheck()
-
setProcessDefinitionCreatePermissionChecks
public void setProcessDefinitionCreatePermissionChecks(List<PermissionCheck> processDefinitionCreatePermissionChecks)
-
getProcessDefinitionCreatePermissionChecks
public List<PermissionCheck> getProcessDefinitionCreatePermissionChecks()
-
isShouldJoinDeploymentTable
public boolean isShouldJoinDeploymentTable()
-
addProcessDefinitionCreatePermissionCheck
public void addProcessDefinitionCreatePermissionCheck(CompositePermissionCheck processDefinitionCreatePermissionCheck)
-
startableByUser
public ProcessDefinitionQueryImpl startableByUser(String userId)
Description copied from interface:ProcessDefinitionQuery
Only selects process definitions which given userId is authorized to start- Specified by:
startableByUser
in interfaceProcessDefinitionQuery
-
-