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 ProcessDefinitionQueryactive()Only selects process definitions which are activevoidcheckQueryOk()protected voidcheckVersion(java.lang.Integer version)ProcessDefinitionQueryImpldeploymentId(java.lang.String deploymentId)Only select process definitions that are deployed in a deployment with the given deployment idProcessDefinitionQueryImpldeploymentIds(java.util.Set<java.lang.String> deploymentIds)Select process definitions that are deployed in deployments with the given set of idsProcessDefinitionQueryeventSubscription(java.lang.String 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>getAuthorizationGroups()java.lang.StringgetAuthorizationUserId()java.lang.StringgetCategory()java.lang.StringgetCategoryLike()java.lang.StringgetCategoryNotEquals()java.lang.StringgetDeploymentId()java.util.Set<java.lang.String>getDeploymentIds()java.lang.StringgetEventSubscriptionName()java.lang.StringgetEventSubscriptionType()java.lang.StringgetId()java.util.Set<java.lang.String>getIds()java.lang.StringgetKey()java.lang.StringgetKeyLike()java.util.Set<java.lang.String>getKeys()java.lang.StringgetName()java.lang.StringgetNameLike()java.lang.StringgetProcDefId()java.lang.StringgetResourceName()java.lang.StringgetResourceNameLike()SuspensionStategetSuspensionState()java.lang.StringgetTenantId()java.lang.StringgetTenantIdLike()java.lang.IntegergetVersion()java.lang.IntegergetVersionGt()java.lang.IntegergetVersionGte()java.lang.IntegergetVersionLt()java.lang.IntegergetVersionLte()booleanisLatest()booleanisWithoutTenantId()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.ProcessDefinitionQueryorderByDeploymentId()Order by deployment id (needs to be followed byQuery.asc()orQuery.desc()).ProcessDefinitionQueryorderByProcessDefinitionAppVersion()Order by the app version of the process definitions (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()).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.ProcessDefinitionQueryImplprocessDefinitionCategoryNotEquals(java.lang.String categoryNotEquals)Only select deployments that have a different category then the given one.ProcessDefinitionQueryImplprocessDefinitionId(java.lang.String processDefinitionId)Only select process definition with the given id.ProcessDefinitionQueryprocessDefinitionIds(java.util.Set<java.lang.String> processDefinitionIds)Only select process definitions with the given ids.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.ProcessDefinitionQueryImplprocessDefinitionKeys(java.util.Set<java.lang.String> keys)Only select process definition with the given keys.ProcessDefinitionQueryImplprocessDefinitionName(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)ProcessDefinitionQueryprocessDefinitionTenantId(java.lang.String tenantId)Only select process definitions that have the given tenant id.ProcessDefinitionQueryprocessDefinitionTenantIdLike(java.lang.String tenantIdLike)Only select process definitions with a tenant id like the given one.ProcessDefinitionQueryImplprocessDefinitionVersion(java.lang.Integer version)Only select process definition with a certain version.ProcessDefinitionQueryprocessDefinitionVersionGreaterThan(java.lang.Integer processDefinitionVersion)Only select process definitions which version are greater than a certain version.ProcessDefinitionQueryprocessDefinitionVersionGreaterThanOrEquals(java.lang.Integer processDefinitionVersion)Only select process definitions which version are greater than or equals a certain version.ProcessDefinitionQueryprocessDefinitionVersionLowerThan(java.lang.Integer processDefinitionVersion)Only select process definitions which version are lower than a certain version.ProcessDefinitionQueryprocessDefinitionVersionLowerThanOrEquals(java.lang.Integer processDefinitionVersion)Only select process definitions which version are lower than or equals a certain version.ProcessDefinitionQueryprocessDefinitionWithoutTenantId()Only select process definitions that do not have a tenant id.voidsetSuspensionState(SuspensionState suspensionState)ProcessDefinitionQueryImplstartableByUser(java.lang.String userId)Only selects process definitions which given userId is authoriezed to startProcessDefinitionQuerysuspended()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:ProcessDefinitionQueryOnly select process definition with the given id.- Specified by:
processDefinitionIdin interfaceProcessDefinitionQuery
-
processDefinitionIds
public ProcessDefinitionQuery processDefinitionIds(java.util.Set<java.lang.String> processDefinitionIds)
Description copied from interface:ProcessDefinitionQueryOnly select process definitions with the given ids.- Specified by:
processDefinitionIdsin 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
-
processDefinitionCategoryNotEquals
public ProcessDefinitionQueryImpl processDefinitionCategoryNotEquals(java.lang.String categoryNotEquals)
Description copied from interface:ProcessDefinitionQueryOnly select deployments that have a different category then the given one.- Specified by:
processDefinitionCategoryNotEqualsin interfaceProcessDefinitionQuery- See Also:
DeploymentBuilder.category(String)
-
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
-
deploymentIds
public ProcessDefinitionQueryImpl deploymentIds(java.util.Set<java.lang.String> deploymentIds)
Description copied from interface:ProcessDefinitionQuerySelect process definitions that are deployed in deployments with the given set of ids- Specified by:
deploymentIdsin 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
-
processDefinitionKeys
public ProcessDefinitionQueryImpl processDefinitionKeys(java.util.Set<java.lang.String> keys)
Description copied from interface:ProcessDefinitionQueryOnly select process definition with the given keys.- Specified by:
processDefinitionKeysin 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
-
processDefinitionVersionGreaterThan
public ProcessDefinitionQuery processDefinitionVersionGreaterThan(java.lang.Integer processDefinitionVersion)
Description copied from interface:ProcessDefinitionQueryOnly select process definitions which version are greater than a certain version.- Specified by:
processDefinitionVersionGreaterThanin interfaceProcessDefinitionQuery
-
processDefinitionVersionGreaterThanOrEquals
public ProcessDefinitionQuery processDefinitionVersionGreaterThanOrEquals(java.lang.Integer processDefinitionVersion)
Description copied from interface:ProcessDefinitionQueryOnly select process definitions which version are greater than or equals a certain version.- Specified by:
processDefinitionVersionGreaterThanOrEqualsin interfaceProcessDefinitionQuery
-
processDefinitionVersionLowerThan
public ProcessDefinitionQuery processDefinitionVersionLowerThan(java.lang.Integer processDefinitionVersion)
Description copied from interface:ProcessDefinitionQueryOnly select process definitions which version are lower than a certain version.- Specified by:
processDefinitionVersionLowerThanin interfaceProcessDefinitionQuery
-
processDefinitionVersionLowerThanOrEquals
public ProcessDefinitionQuery processDefinitionVersionLowerThanOrEquals(java.lang.Integer processDefinitionVersion)
Description copied from interface:ProcessDefinitionQueryOnly select process definitions which version are lower than or equals a certain version.- Specified by:
processDefinitionVersionLowerThanOrEqualsin interfaceProcessDefinitionQuery
-
checkVersion
protected void checkVersion(java.lang.Integer version)
-
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 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:
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
-
processDefinitionTenantId
public ProcessDefinitionQuery processDefinitionTenantId(java.lang.String tenantId)
Description copied from interface:ProcessDefinitionQueryOnly select process definitions that have the given tenant id.- Specified by:
processDefinitionTenantIdin interfaceProcessDefinitionQuery
-
processDefinitionTenantIdLike
public ProcessDefinitionQuery processDefinitionTenantIdLike(java.lang.String tenantIdLike)
Description copied from interface:ProcessDefinitionQueryOnly select process definitions with a tenant id like the given one.- Specified by:
processDefinitionTenantIdLikein interfaceProcessDefinitionQuery
-
processDefinitionWithoutTenantId
public ProcessDefinitionQuery processDefinitionWithoutTenantId()
Description copied from interface:ProcessDefinitionQueryOnly select process definitions that do not have a tenant id.- Specified by:
processDefinitionWithoutTenantIdin interfaceProcessDefinitionQuery
-
messageEventSubscription
public ProcessDefinitionQuery messageEventSubscription(java.lang.String messageName)
-
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(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:ProcessDefinitionQueryOrder by deployment id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDeploymentIdin 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
-
orderByProcessDefinitionAppVersion
public ProcessDefinitionQuery orderByProcessDefinitionAppVersion()
Description copied from interface:ProcessDefinitionQueryOrder by the app version of the process definitions (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionAppVersionin 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()).- Specified by:
orderByTenantIdin 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.
-
checkQueryOk
public void checkQueryOk()
- Overrides:
checkQueryOkin 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:ProcessDefinitionQueryOnly selects process definitions which given userId is authoriezed to start- Specified by:
startableByUserin interfaceProcessDefinitionQuery
-
-