Package org.activiti.engine.impl
Class ProcessDefinitionQueryImpl
- java.lang.Object
-
- org.activiti.engine.impl.db.ListQueryParameterObject
-
- org.activiti.engine.impl.AbstractQuery<ProcessDefinitionQuery,ProcessDefinition>
-
- org.activiti.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
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.activiti.engine.impl.AbstractQuery
AbstractQuery.NullHandlingOnOrder
-
-
Field Summary
-
Fields inherited from class org.activiti.engine.impl.AbstractQuery
commandContext, commandExecutor, databaseType, nullHandlingOnOrder, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC
-
Fields inherited from class org.activiti.engine.impl.db.ListQueryParameterObject
firstResult, maxResults, parameter
-
-
Constructor Summary
Constructors Constructor Description ProcessDefinitionQueryImpl()
ProcessDefinitionQueryImpl(CommandContext commandContext)
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
checkQueryOk()
protected void
checkVersion(java.lang.Integer version)
ProcessDefinitionQueryImpl
deploymentId(java.lang.String deploymentId)
Only select process definitions that are deployed in a deployment with the given deployment idProcessDefinitionQueryImpl
deploymentIds(java.util.Set<java.lang.String> deploymentIds)
Select process definitions that are deployed in deployments with the given set of idsProcessDefinitionQuery
eventSubscription(java.lang.String 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>
getAuthorizationGroups()
java.lang.String
getAuthorizationUserId()
java.lang.String
getCategory()
java.lang.String
getCategoryLike()
java.lang.String
getCategoryNotEquals()
java.lang.String
getDeploymentId()
java.util.Set<java.lang.String>
getDeploymentIds()
java.lang.String
getEventSubscriptionName()
java.lang.String
getEventSubscriptionType()
java.lang.String
getId()
java.util.Set<java.lang.String>
getIds()
java.lang.String
getKey()
java.lang.String
getKeyLike()
java.util.Set<java.lang.String>
getKeys()
java.lang.String
getName()
java.lang.String
getNameLike()
java.lang.String
getProcDefId()
java.lang.String
getResourceName()
java.lang.String
getResourceNameLike()
SuspensionState
getSuspensionState()
java.lang.String
getTenantId()
java.lang.String
getTenantIdLike()
java.lang.Integer
getVersion()
java.lang.Integer
getVersionGt()
java.lang.Integer
getVersionGte()
java.lang.Integer
getVersionLt()
java.lang.Integer
getVersionLte()
boolean
isLatest()
boolean
isWithoutTenantId()
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
orderByDeploymentId()
Order by deployment id (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()
).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
processDefinitionCategoryNotEquals(java.lang.String categoryNotEquals)
Only select deployments that have a different category then the given one.ProcessDefinitionQueryImpl
processDefinitionId(java.lang.String processDefinitionId)
Only select process definition with the given id.ProcessDefinitionQuery
processDefinitionIds(java.util.Set<java.lang.String> processDefinitionIds)
Only select process definitions with the given ids.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
processDefinitionKeys(java.util.Set<java.lang.String> keys)
Only select process definition with the given keys.ProcessDefinitionQueryImpl
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)
ProcessDefinitionQuery
processDefinitionTenantId(java.lang.String tenantId)
Only select process definitions that have the given tenant id.ProcessDefinitionQuery
processDefinitionTenantIdLike(java.lang.String tenantIdLike)
Only select process definitions with a tenant id like the given one.ProcessDefinitionQueryImpl
processDefinitionVersion(java.lang.Integer version)
Only select process definition with a certain version.ProcessDefinitionQuery
processDefinitionVersionGreaterThan(java.lang.Integer processDefinitionVersion)
Only select process definitions which version are greater than a certain version.ProcessDefinitionQuery
processDefinitionVersionGreaterThanOrEquals(java.lang.Integer processDefinitionVersion)
Only select process definitions which version are greater than or equals a certain version.ProcessDefinitionQuery
processDefinitionVersionLowerThan(java.lang.Integer processDefinitionVersion)
Only select process definitions which version are lower than a certain version.ProcessDefinitionQuery
processDefinitionVersionLowerThanOrEquals(java.lang.Integer processDefinitionVersion)
Only select process definitions which version are lower than or equals a certain version.ProcessDefinitionQuery
processDefinitionWithoutTenantId()
Only select process definitions that do not have a tenant id.void
setSuspensionState(SuspensionState suspensionState)
ProcessDefinitionQueryImpl
startableByUser(java.lang.String userId)
Only selects process definitions which given userId is authoriezed to startProcessDefinitionQuery
suspended()
Only selects process definitions which are suspended-
Methods inherited from class org.activiti.engine.impl.AbstractQuery
addOrder, asc, count, desc, direction, execute, executeSingleResult, getDatabaseType, getOrderBy, getOrderByColumns, list, listPage, orderBy, orderBy, setCommandExecutor, setDatabaseType, singleResult
-
Methods inherited from class org.activiti.engine.impl.db.ListQueryParameterObject
getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setFirstResult, setMaxResults, setParameter
-
-
-
-
Constructor Detail
-
ProcessDefinitionQueryImpl
public ProcessDefinitionQueryImpl()
-
ProcessDefinitionQueryImpl
public ProcessDefinitionQueryImpl(CommandContext commandContext)
-
ProcessDefinitionQueryImpl
public ProcessDefinitionQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
processDefinitionId
public ProcessDefinitionQueryImpl processDefinitionId(java.lang.String processDefinitionId)
Description copied from interface:ProcessDefinitionQuery
Only select process definition with the given id.- Specified by:
processDefinitionId
in interfaceProcessDefinitionQuery
-
processDefinitionIds
public ProcessDefinitionQuery processDefinitionIds(java.util.Set<java.lang.String> processDefinitionIds)
Description copied from interface:ProcessDefinitionQuery
Only select process definitions with the given ids.- Specified by:
processDefinitionIds
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
-
processDefinitionCategoryNotEquals
public ProcessDefinitionQueryImpl processDefinitionCategoryNotEquals(java.lang.String categoryNotEquals)
Description copied from interface:ProcessDefinitionQuery
Only select deployments that have a different category then the given one.- Specified by:
processDefinitionCategoryNotEquals
in interfaceProcessDefinitionQuery
- See Also:
DeploymentBuilder.category(String)
-
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
-
deploymentIds
public ProcessDefinitionQueryImpl deploymentIds(java.util.Set<java.lang.String> deploymentIds)
Description copied from interface:ProcessDefinitionQuery
Select process definitions that are deployed in deployments with the given set of ids- Specified by:
deploymentIds
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
-
processDefinitionKeys
public ProcessDefinitionQueryImpl processDefinitionKeys(java.util.Set<java.lang.String> keys)
Description copied from interface:ProcessDefinitionQuery
Only select process definition with the given keys.- Specified by:
processDefinitionKeys
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
-
processDefinitionVersionGreaterThan
public ProcessDefinitionQuery processDefinitionVersionGreaterThan(java.lang.Integer processDefinitionVersion)
Description copied from interface:ProcessDefinitionQuery
Only select process definitions which version are greater than a certain version.- Specified by:
processDefinitionVersionGreaterThan
in interfaceProcessDefinitionQuery
-
processDefinitionVersionGreaterThanOrEquals
public ProcessDefinitionQuery processDefinitionVersionGreaterThanOrEquals(java.lang.Integer processDefinitionVersion)
Description copied from interface:ProcessDefinitionQuery
Only select process definitions which version are greater than or equals a certain version.- Specified by:
processDefinitionVersionGreaterThanOrEquals
in interfaceProcessDefinitionQuery
-
processDefinitionVersionLowerThan
public ProcessDefinitionQuery processDefinitionVersionLowerThan(java.lang.Integer processDefinitionVersion)
Description copied from interface:ProcessDefinitionQuery
Only select process definitions which version are lower than a certain version.- Specified by:
processDefinitionVersionLowerThan
in interfaceProcessDefinitionQuery
-
processDefinitionVersionLowerThanOrEquals
public ProcessDefinitionQuery processDefinitionVersionLowerThanOrEquals(java.lang.Integer processDefinitionVersion)
Description copied from interface:ProcessDefinitionQuery
Only select process definitions which version are lower than or equals a certain version.- Specified by:
processDefinitionVersionLowerThanOrEquals
in interfaceProcessDefinitionQuery
-
checkVersion
protected void checkVersion(java.lang.Integer version)
-
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 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.
- 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
-
processDefinitionTenantId
public ProcessDefinitionQuery processDefinitionTenantId(java.lang.String tenantId)
Description copied from interface:ProcessDefinitionQuery
Only select process definitions that have the given tenant id.- Specified by:
processDefinitionTenantId
in interfaceProcessDefinitionQuery
-
processDefinitionTenantIdLike
public ProcessDefinitionQuery processDefinitionTenantIdLike(java.lang.String tenantIdLike)
Description copied from interface:ProcessDefinitionQuery
Only select process definitions with a tenant id like the given one.- Specified by:
processDefinitionTenantIdLike
in interfaceProcessDefinitionQuery
-
processDefinitionWithoutTenantId
public ProcessDefinitionQuery processDefinitionWithoutTenantId()
Description copied from interface:ProcessDefinitionQuery
Only select process definitions that do not have a tenant id.- Specified by:
processDefinitionWithoutTenantId
in interfaceProcessDefinitionQuery
-
messageEventSubscription
public ProcessDefinitionQuery messageEventSubscription(java.lang.String messageName)
-
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(java.lang.String eventType, java.lang.String eventName)
-
getAuthorizationGroups
public java.util.List<java.lang.String> getAuthorizationGroups()
-
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
-
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()
).- Specified by:
orderByTenantId
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.
-
checkQueryOk
public void checkQueryOk()
- Overrides:
checkQueryOk
in classAbstractQuery<ProcessDefinitionQuery,ProcessDefinition>
-
getDeploymentId
public java.lang.String getDeploymentId()
-
getDeploymentIds
public java.util.Set<java.lang.String> getDeploymentIds()
-
getId
public java.lang.String getId()
-
getIds
public java.util.Set<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()
-
getKeys
public java.util.Set<java.lang.String> getKeys()
-
getVersion
public java.lang.Integer getVersion()
-
getVersionGt
public java.lang.Integer getVersionGt()
-
getVersionGte
public java.lang.Integer getVersionGte()
-
getVersionLt
public java.lang.Integer getVersionLt()
-
getVersionLte
public java.lang.Integer getVersionLte()
-
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)
-
getCategoryNotEquals
public java.lang.String getCategoryNotEquals()
-
getTenantId
public java.lang.String getTenantId()
-
getTenantIdLike
public java.lang.String getTenantIdLike()
-
isWithoutTenantId
public boolean isWithoutTenantId()
-
getAuthorizationUserId
public java.lang.String getAuthorizationUserId()
-
getProcDefId
public java.lang.String getProcDefId()
-
getEventSubscriptionName
public java.lang.String getEventSubscriptionName()
-
getEventSubscriptionType
public java.lang.String getEventSubscriptionType()
-
startableByUser
public ProcessDefinitionQueryImpl startableByUser(java.lang.String userId)
Description copied from interface:ProcessDefinitionQuery
Only selects process definitions which given userId is authoriezed to start- Specified by:
startableByUser
in interfaceProcessDefinitionQuery
-
-