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:
Serializable,Command<Object>,Query<ProcessDefinitionQuery,,ProcessDefinition> ProcessDefinitionQuery
public class ProcessDefinitionQueryImpl
extends AbstractQuery<ProcessDefinitionQuery,ProcessDefinition>
implements ProcessDefinitionQuery
- See Also:
-
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_DESCFields inherited from class org.activiti.engine.impl.db.ListQueryParameterObject
firstResult, maxResults, parameter -
Constructor Summary
ConstructorsConstructorDescriptionProcessDefinitionQueryImpl(CommandContext commandContext) ProcessDefinitionQueryImpl(CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionactive()Only selects process definitions which are activevoidprotected voidcheckVersion(Integer version) deploymentId(String deploymentId) Only select process definitions that are deployed in a deployment with the given deployment iddeploymentIds(Set<String> deploymentIds) Select process definitions that are deployed in deployments with the given set of idseventSubscription(String eventType, String eventName) longexecuteCount(CommandContext commandContext) executeList(CommandContext commandContext, Page page) Executes the actual query to retrieve the list of results.getId()getIds()getKey()getKeys()getName()booleanisLatest()booleanOnly select the process definitions which are the latest deployed (ie. which have the highest version number for the given key).messageEventSubscription(String messageName) messageEventSubscriptionName(String messageName) Selects the single process definition which has a start message event with the messageName.Order by deployment id (needs to be followed byQuery.asc()orQuery.desc()).Order by the app version of the process definitions (needs to be followed byQuery.asc()orQuery.desc()).Order by the category of the process definitions (needs to be followed byQuery.asc()orQuery.desc()).Order by the id of the process definitions (needs to be followed byQuery.asc()orQuery.desc()).Order by process definition key (needs to be followed byQuery.asc()orQuery.desc()).Order by the name of the process definitions (needs to be followed byQuery.asc()orQuery.desc()).Order by the version of the process definitions (needs to be followed byQuery.asc()orQuery.desc()).Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).processDefinitionCategory(String category) Only select process definitions with the given category.processDefinitionCategoryLike(String categoryLike) Only select process definitions where the category matches the given parameter.processDefinitionCategoryNotEquals(String categoryNotEquals) Only select deployments that have a different category then the given one.processDefinitionId(String processDefinitionId) Only select process definition with the given id.processDefinitionIdOrKey(String idOrKey) Selects process definitions with id or key equals to processDefinitionIdOrKeyprocessDefinitionIds(Set<String> processDefinitionIds) Only select process definitions with the given ids.Only select process definition with the given key.processDefinitionKeyLike(String keyLike) Only select process definitions where the key matches the given parameter.processDefinitionKeys(Set<String> keys) Only select process definition with the given keys.processDefinitionName(String name) Only select process definitions with the given name.processDefinitionNameLike(String nameLike) Only select process definitions where the name matches the given parameter.processDefinitionResourceName(String resourceName) Only select process definition with the given resource name.processDefinitionResourceNameLike(String resourceNameLike) Only select process definition with a resource name like the given .processDefinitionStarter(String procDefId) processDefinitionTenantId(String tenantId) Only select process definitions that have the given tenant id.processDefinitionTenantIdLike(String tenantIdLike) Only select process definitions with a tenant id like the given one.processDefinitionVersion(Integer version) Only select process definition with a certain version.processDefinitionVersionGreaterThan(Integer processDefinitionVersion) Only select process definitions which version are greater than a certain version.processDefinitionVersionGreaterThanOrEquals(Integer processDefinitionVersion) Only select process definitions which version are greater than or equals a certain version.processDefinitionVersionLowerThan(Integer processDefinitionVersion) Only select process definitions which version are lower than a certain version.processDefinitionVersionLowerThanOrEquals(Integer processDefinitionVersion) Only select process definitions which version are lower than or equals a certain version.Only select process definitions that do not have a tenant id.voidsetSuspensionState(SuspensionState suspensionState) startableByGroups(List<String> groupIds) Only selects process definitions which given group members are authorized to start If not set and startableByUser is set, the groups of that user will be usedstartableByUser(String userId) Only selects process definitions which given userId is authorized to startOnly selects process definitions which are suspendedMethods inherited from class org.activiti.engine.impl.AbstractQuery
addOrder, asc, count, desc, direction, execute, executeSingleResult, getDatabaseType, getOrderBy, getOrderByColumns, list, listPage, orderBy, orderBy, setCommandExecutor, setDatabaseType, singleResultMethods inherited from class org.activiti.engine.impl.db.ListQueryParameterObject
getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setFirstResult, setMaxResults, setParameter
-
Constructor Details
-
ProcessDefinitionQueryImpl
public ProcessDefinitionQueryImpl() -
ProcessDefinitionQueryImpl
-
ProcessDefinitionQueryImpl
-
-
Method Details
-
processDefinitionId
Description copied from interface:ProcessDefinitionQueryOnly select process definition with the given id.- Specified by:
processDefinitionIdin interfaceProcessDefinitionQuery
-
processDefinitionIds
Description copied from interface:ProcessDefinitionQueryOnly select process definitions with the given ids.- Specified by:
processDefinitionIdsin interfaceProcessDefinitionQuery
-
processDefinitionCategory
Description copied from interface:ProcessDefinitionQueryOnly select process definitions with the given category.- Specified by:
processDefinitionCategoryin interfaceProcessDefinitionQuery
-
processDefinitionCategoryLike
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
Description copied from interface:ProcessDefinitionQueryOnly select deployments that have a different category then the given one.- Specified by:
processDefinitionCategoryNotEqualsin interfaceProcessDefinitionQuery- See Also:
-
processDefinitionName
Description copied from interface:ProcessDefinitionQueryOnly select process definitions with the given name.- Specified by:
processDefinitionNamein interfaceProcessDefinitionQuery
-
processDefinitionNameLike
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
Description copied from interface:ProcessDefinitionQueryOnly select process definitions that are deployed in a deployment with the given deployment id- Specified by:
deploymentIdin interfaceProcessDefinitionQuery
-
deploymentIds
Description copied from interface:ProcessDefinitionQuerySelect process definitions that are deployed in deployments with the given set of ids- Specified by:
deploymentIdsin interfaceProcessDefinitionQuery
-
processDefinitionKey
Description copied from interface:ProcessDefinitionQueryOnly select process definition with the given key.- Specified by:
processDefinitionKeyin interfaceProcessDefinitionQuery
-
processDefinitionIdOrKey
Description copied from interface:ProcessDefinitionQuerySelects process definitions with id or key equals to processDefinitionIdOrKey- Specified by:
processDefinitionIdOrKeyin interfaceProcessDefinitionQuery
-
processDefinitionKeys
Description copied from interface:ProcessDefinitionQueryOnly select process definition with the given keys.- Specified by:
processDefinitionKeysin interfaceProcessDefinitionQuery
-
processDefinitionKeyLike
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
Description copied from interface:ProcessDefinitionQueryOnly select process definition with the given resource name.- Specified by:
processDefinitionResourceNamein interfaceProcessDefinitionQuery
-
processDefinitionResourceNameLike
Description copied from interface:ProcessDefinitionQueryOnly select process definition with a resource name like the given .- Specified by:
processDefinitionResourceNameLikein interfaceProcessDefinitionQuery
-
processDefinitionVersion
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
Description copied from interface:ProcessDefinitionQueryOnly select process definitions which version are greater than a certain version.- Specified by:
processDefinitionVersionGreaterThanin interfaceProcessDefinitionQuery
-
processDefinitionVersionGreaterThanOrEquals
public ProcessDefinitionQuery processDefinitionVersionGreaterThanOrEquals(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
Description copied from interface:ProcessDefinitionQueryOnly select process definitions which version are lower than a certain version.- Specified by:
processDefinitionVersionLowerThanin interfaceProcessDefinitionQuery
-
processDefinitionVersionLowerThanOrEquals
public ProcessDefinitionQuery processDefinitionVersionLowerThanOrEquals(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
-
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
Description copied from interface:ProcessDefinitionQueryOnly selects process definitions which are active- Specified by:
activein interfaceProcessDefinitionQuery
-
suspended
Description copied from interface:ProcessDefinitionQueryOnly selects process definitions which are suspended- Specified by:
suspendedin interfaceProcessDefinitionQuery
-
processDefinitionTenantId
Description copied from interface:ProcessDefinitionQueryOnly select process definitions that have the given tenant id.- Specified by:
processDefinitionTenantIdin interfaceProcessDefinitionQuery
-
processDefinitionTenantIdLike
Description copied from interface:ProcessDefinitionQueryOnly select process definitions with a tenant id like the given one.- Specified by:
processDefinitionTenantIdLikein interfaceProcessDefinitionQuery
-
processDefinitionWithoutTenantId
Description copied from interface:ProcessDefinitionQueryOnly select process definitions that do not have a tenant id.- Specified by:
processDefinitionWithoutTenantIdin interfaceProcessDefinitionQuery
-
messageEventSubscription
-
messageEventSubscriptionName
Description copied from interface:ProcessDefinitionQuerySelects the single process definition which has a start message event with the messageName.- Specified by:
messageEventSubscriptionNamein interfaceProcessDefinitionQuery
-
processDefinitionStarter
-
eventSubscription
-
getAuthorizationGroups
-
orderByDeploymentId
Description copied from interface:ProcessDefinitionQueryOrder by deployment id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDeploymentIdin interfaceProcessDefinitionQuery
-
orderByProcessDefinitionKey
Description copied from interface:ProcessDefinitionQueryOrder by process definition key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionKeyin interfaceProcessDefinitionQuery
-
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
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
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
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
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
Description copied from interface:ProcessDefinitionQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceProcessDefinitionQuery
-
executeCount
- Specified by:
executeCountin classAbstractQuery<ProcessDefinitionQuery,ProcessDefinition>
-
executeList
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractQuery<ProcessDefinitionQuery,ProcessDefinition> - Parameters:
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
-
getDeploymentIds
-
getId
-
getIds
-
getName
-
getNameLike
-
getKey
-
getIdOrKey
-
getKeyLike
-
getKeys
-
getVersion
-
getVersionGt
-
getVersionGte
-
getVersionLt
-
getVersionLte
-
isLatest
public boolean isLatest() -
getCategory
-
getCategoryLike
-
getResourceName
-
getResourceNameLike
-
getSuspensionState
-
setSuspensionState
-
getCategoryNotEquals
-
getTenantId
-
getTenantIdLike
-
isWithoutTenantId
public boolean isWithoutTenantId() -
getAuthorizationUserId
-
getProcDefId
-
getEventSubscriptionName
-
getEventSubscriptionType
-
startableByUser
Description copied from interface:ProcessDefinitionQueryOnly selects process definitions which given userId is authorized to start- Specified by:
startableByUserin interfaceProcessDefinitionQuery
-
startableByGroups
Description copied from interface:ProcessDefinitionQueryOnly selects process definitions which given group members are authorized to start If not set and startableByUser is set, the groups of that user will be used- Specified by:
startableByGroupsin interfaceProcessDefinitionQuery
-