Package org.activiti.engine.repository
Interface ProcessDefinitionQuery
- All Superinterfaces:
Query<ProcessDefinitionQuery,ProcessDefinition>
- All Known Implementing Classes:
ProcessDefinitionQueryImpl
@Internal
public interface ProcessDefinitionQuery
extends Query<ProcessDefinitionQuery,ProcessDefinition>
Allows programmatic querying of
ProcessDefinitions.-
Method Summary
Modifier and TypeMethodDescriptionactive()Only selects process definitions which are activedeploymentId(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 idsOnly select the process definitions which are the latest deployed (ie. which have the highest version number for the given key).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 processDefinitionCategory) Only select process definitions with the given category.processDefinitionCategoryLike(String processDefinitionCategoryLike) 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 processDefinitionIdOrKey) Selects process definitions with id or key equals to processDefinitionIdOrKeyprocessDefinitionIds(Set<String> processDefinitionIds) Only select process definitions with the given ids.processDefinitionKey(String processDefinitionKey) Only select process definition with the given key.processDefinitionKeyLike(String processDefinitionKeyLike) Only select process definitions where the key matches the given parameter.processDefinitionKeys(Set<String> processDefinitionKeys) Only select process definition with the given keys.processDefinitionName(String processDefinitionName) Only select process definitions with the given name.processDefinitionNameLike(String processDefinitionNameLike) 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 .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 processDefinitionVersion) 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.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 suspended
-
Method Details
-
processDefinitionId
Only select process definition with the given id. -
processDefinitionIds
Only select process definitions with the given ids. -
processDefinitionCategory
Only select process definitions with the given category. -
processDefinitionCategoryLike
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% -
processDefinitionCategoryNotEquals
Only select deployments that have a different category then the given one.- See Also:
-
processDefinitionName
Only select process definitions with the given name. -
processDefinitionNameLike
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% -
deploymentId
Only select process definitions that are deployed in a deployment with the given deployment id -
deploymentIds
Select process definitions that are deployed in deployments with the given set of ids -
processDefinitionKey
Only select process definition with the given key. -
processDefinitionKeys
Only select process definition with the given keys. -
processDefinitionKeyLike
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% -
processDefinitionIdOrKey
Selects process definitions with id or key equals to processDefinitionIdOrKey -
processDefinitionVersion
Only select process definition with a certain version. Particulary useful when used in combination withprocessDefinitionKey(String) -
processDefinitionVersionGreaterThan
Only select process definitions which version are greater than a certain version. -
processDefinitionVersionGreaterThanOrEquals
ProcessDefinitionQuery processDefinitionVersionGreaterThanOrEquals(Integer processDefinitionVersion) Only select process definitions which version are greater than or equals a certain version. -
processDefinitionVersionLowerThan
Only select process definitions which version are lower than a certain version. -
processDefinitionVersionLowerThanOrEquals
Only select process definitions which version are lower than or equals a certain version. -
latestVersion
ProcessDefinitionQuery latestVersion()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.
- Throws:
ActivitiIllegalArgumentException- if used in combination with,invalid reference
#groupId(string)orinvalid reference
#processDefinitionVersion(int)deploymentId(String)
-
processDefinitionResourceName
Only select process definition with the given resource name. -
processDefinitionResourceNameLike
Only select process definition with a resource name like the given . -
startableByUser
Only selects process definitions which given userId is authorized to start -
startableByGroups
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 used -
suspended
ProcessDefinitionQuery suspended()Only selects process definitions which are suspended -
active
ProcessDefinitionQuery active()Only selects process definitions which are active -
processDefinitionTenantId
Only select process definitions that have the given tenant id. -
processDefinitionTenantIdLike
Only select process definitions with a tenant id like the given one. -
processDefinitionWithoutTenantId
ProcessDefinitionQuery processDefinitionWithoutTenantId()Only select process definitions that do not have a tenant id. -
messageEventSubscriptionName
Selects the single process definition which has a start message event with the messageName. -
orderByProcessDefinitionCategory
ProcessDefinitionQuery orderByProcessDefinitionCategory()Order by the category of the process definitions (needs to be followed byQuery.asc()orQuery.desc()). -
orderByProcessDefinitionKey
ProcessDefinitionQuery orderByProcessDefinitionKey()Order by process definition key (needs to be followed byQuery.asc()orQuery.desc()). -
orderByProcessDefinitionId
ProcessDefinitionQuery orderByProcessDefinitionId()Order by the id of the process definitions (needs to be followed byQuery.asc()orQuery.desc()). -
orderByProcessDefinitionVersion
ProcessDefinitionQuery orderByProcessDefinitionVersion()Order by the version of the process definitions (needs to be followed byQuery.asc()orQuery.desc()). -
orderByProcessDefinitionAppVersion
ProcessDefinitionQuery orderByProcessDefinitionAppVersion()Order by the app version of the process definitions (needs to be followed byQuery.asc()orQuery.desc()). -
orderByProcessDefinitionName
ProcessDefinitionQuery orderByProcessDefinitionName()Order by the name of the process definitions (needs to be followed byQuery.asc()orQuery.desc()). -
orderByDeploymentId
ProcessDefinitionQuery orderByDeploymentId()Order by deployment id (needs to be followed byQuery.asc()orQuery.desc()). -
orderByTenantId
ProcessDefinitionQuery orderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).
-