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 ofProcessDefinitions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProcessDefinitionQueryactive()Only selects process definitions which are activeProcessDefinitionQuerydeploymentId(java.lang.String deploymentId)Only select process definitions that are deployed in a deployment with the given deployment idProcessDefinitionQuerydeploymentIds(java.util.Set<java.lang.String> deploymentIds)Select process definitions that are deployed in deployments with the given set of idsProcessDefinitionQuerylatestVersion()Only select the process definitions which are the latest deployed (ie.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()).ProcessDefinitionQueryprocessDefinitionCategory(java.lang.String processDefinitionCategory)Only select process definitions with the given category.ProcessDefinitionQueryprocessDefinitionCategoryLike(java.lang.String processDefinitionCategoryLike)Only select process definitions where the category matches the given parameter.ProcessDefinitionQueryprocessDefinitionCategoryNotEquals(java.lang.String categoryNotEquals)Only select deployments that have a different category then the given one.ProcessDefinitionQueryprocessDefinitionId(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.ProcessDefinitionQueryprocessDefinitionKey(java.lang.String processDefinitionKey)Only select process definition with the given key.ProcessDefinitionQueryprocessDefinitionKeyLike(java.lang.String processDefinitionKeyLike)Only select process definitions where the key matches the given parameter.ProcessDefinitionQueryprocessDefinitionKeys(java.util.Set<java.lang.String> processDefinitionKeys)Only select process definition with the given keys.ProcessDefinitionQueryprocessDefinitionName(java.lang.String processDefinitionName)Only select process definitions with the given name.ProcessDefinitionQueryprocessDefinitionNameLike(java.lang.String processDefinitionNameLike)Only select process definitions where the name matches the given parameter.ProcessDefinitionQueryprocessDefinitionResourceName(java.lang.String resourceName)Only select process definition with the given resource name.ProcessDefinitionQueryprocessDefinitionResourceNameLike(java.lang.String resourceNameLike)Only select process definition with a resource name like the given .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.ProcessDefinitionQueryprocessDefinitionVersion(java.lang.Integer processDefinitionVersion)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.ProcessDefinitionQuerystartableByUser(java.lang.String userId)Only selects process definitions which given userId is authoriezed to startProcessDefinitionQuerysuspended()Only selects process definitions which are suspended
-
-
-
Method Detail
-
processDefinitionId
ProcessDefinitionQuery processDefinitionId(java.lang.String processDefinitionId)
Only select process definition with the given id.
-
processDefinitionIds
ProcessDefinitionQuery processDefinitionIds(java.util.Set<java.lang.String> processDefinitionIds)
Only select process definitions with the given ids.
-
processDefinitionCategory
ProcessDefinitionQuery processDefinitionCategory(java.lang.String processDefinitionCategory)
Only select process definitions with the given category.
-
processDefinitionCategoryLike
ProcessDefinitionQuery processDefinitionCategoryLike(java.lang.String 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
ProcessDefinitionQuery processDefinitionCategoryNotEquals(java.lang.String categoryNotEquals)
Only select deployments that have a different category then the given one.- See Also:
DeploymentBuilder.category(String)
-
processDefinitionName
ProcessDefinitionQuery processDefinitionName(java.lang.String processDefinitionName)
Only select process definitions with the given name.
-
processDefinitionNameLike
ProcessDefinitionQuery processDefinitionNameLike(java.lang.String 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
ProcessDefinitionQuery deploymentId(java.lang.String deploymentId)
Only select process definitions that are deployed in a deployment with the given deployment id
-
deploymentIds
ProcessDefinitionQuery deploymentIds(java.util.Set<java.lang.String> deploymentIds)
Select process definitions that are deployed in deployments with the given set of ids
-
processDefinitionKey
ProcessDefinitionQuery processDefinitionKey(java.lang.String processDefinitionKey)
Only select process definition with the given key.
-
processDefinitionKeys
ProcessDefinitionQuery processDefinitionKeys(java.util.Set<java.lang.String> processDefinitionKeys)
Only select process definition with the given keys.
-
processDefinitionKeyLike
ProcessDefinitionQuery processDefinitionKeyLike(java.lang.String 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%
-
processDefinitionVersion
ProcessDefinitionQuery processDefinitionVersion(java.lang.Integer processDefinitionVersion)
Only select process definition with a certain version. Particulary useful when used in combination withprocessDefinitionKey(String)
-
processDefinitionVersionGreaterThan
ProcessDefinitionQuery processDefinitionVersionGreaterThan(java.lang.Integer processDefinitionVersion)
Only select process definitions which version are greater than a certain version.
-
processDefinitionVersionGreaterThanOrEquals
ProcessDefinitionQuery processDefinitionVersionGreaterThanOrEquals(java.lang.Integer processDefinitionVersion)
Only select process definitions which version are greater than or equals a certain version.
-
processDefinitionVersionLowerThan
ProcessDefinitionQuery processDefinitionVersionLowerThan(java.lang.Integer processDefinitionVersion)
Only select process definitions which version are lower than a certain version.
-
processDefinitionVersionLowerThanOrEquals
ProcessDefinitionQuery processDefinitionVersionLowerThanOrEquals(java.lang.Integer processDefinitionVersion)
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#groupId(string),#processDefinitionVersion(int)ordeploymentId(String)
-
processDefinitionResourceName
ProcessDefinitionQuery processDefinitionResourceName(java.lang.String resourceName)
Only select process definition with the given resource name.
-
processDefinitionResourceNameLike
ProcessDefinitionQuery processDefinitionResourceNameLike(java.lang.String resourceNameLike)
Only select process definition with a resource name like the given .
-
startableByUser
ProcessDefinitionQuery startableByUser(java.lang.String userId)
Only selects process definitions which given userId is authoriezed to start
-
suspended
ProcessDefinitionQuery suspended()
Only selects process definitions which are suspended
-
active
ProcessDefinitionQuery active()
Only selects process definitions which are active
-
processDefinitionTenantId
ProcessDefinitionQuery processDefinitionTenantId(java.lang.String tenantId)
Only select process definitions that have the given tenant id.
-
processDefinitionTenantIdLike
ProcessDefinitionQuery processDefinitionTenantIdLike(java.lang.String tenantIdLike)
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
ProcessDefinitionQuery messageEventSubscriptionName(java.lang.String messageName)
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()).
-
-