org.activiti.engine.repository
接口 ProcessDefinitionQuery

所有超级接口:
Query<ProcessDefinitionQuery,ProcessDefinition>
所有已知实现类:
ProcessDefinitionQueryImpl

public interface ProcessDefinitionQuery
extends Query<ProcessDefinitionQuery,ProcessDefinition>

Allows programmatic querying of ProcessDefinitions.

作者:
Tom Baeyens, Joram Barrez, Daniel Meyer, Saeid Mirzaei

方法摘要
 ProcessDefinitionQuery active()
          Only selects process definitions which are active
 ProcessDefinitionQuery deploymentId(String deploymentId)
          Only select process definitions that are deployed in a deployment with the given deployment id
 ProcessDefinitionQuery latestVersion()
          Only select the process definitions which are the latest deployed (ie. which have the highest version number for the given key).
 ProcessDefinitionQuery messageEventSubscription(String messageName)
          已过时。 
 ProcessDefinitionQuery messageEventSubscriptionName(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 by Query.asc() or Query.desc()).
 ProcessDefinitionQuery orderByProcessDefinitionCategory()
          Order by the category of the process definitions (needs to be followed by Query.asc() or Query.desc()).
 ProcessDefinitionQuery orderByProcessDefinitionId()
          Order by the id of the process definitions (needs to be followed by Query.asc() or Query.desc()).
 ProcessDefinitionQuery orderByProcessDefinitionKey()
          Order by process definition key (needs to be followed by Query.asc() or Query.desc()).
 ProcessDefinitionQuery orderByProcessDefinitionName()
          Order by the name of the process definitions (needs to be followed by Query.asc() or Query.desc()).
 ProcessDefinitionQuery orderByProcessDefinitionVersion()
          Order by the version of the process definitions (needs to be followed by Query.asc() or Query.desc()).
 ProcessDefinitionQuery processDefinitionCategory(String processDefinitionCategory)
          Only select process definitions with the given category.
 ProcessDefinitionQuery processDefinitionCategoryLike(String processDefinitionCategoryLike)
          Only select process definitions where the category matches the given parameter.
 ProcessDefinitionQuery processDefinitionCategoryNotEquals(String categoryNotEquals)
          Only select deployments that have a different category then the given one.
 ProcessDefinitionQuery processDefinitionId(String processDefinitionId)
          Only select process definiton with the given id.
 ProcessDefinitionQuery processDefinitionKey(String processDefinitionKey)
          Only select process definition with the given key.
 ProcessDefinitionQuery processDefinitionKeyLike(String processDefinitionKeyLike)
          Only select process definitions where the key matches the given parameter.
 ProcessDefinitionQuery processDefinitionName(String processDefinitionName)
          Only select process definitions with the given name.
 ProcessDefinitionQuery processDefinitionNameLike(String processDefinitionNameLike)
          Only select process definitions where the name matches the given parameter.
 ProcessDefinitionQuery processDefinitionResourceName(String resourceName)
          Only select process definition with the given resource name.
 ProcessDefinitionQuery processDefinitionResourceNameLike(String resourceNameLike)
          Only select process definition with a resource name like the given .
 ProcessDefinitionQuery processDefinitionVersion(Integer processDefinitionVersion)
          Only select process definition with a certain version.
 ProcessDefinitionQuery startableByUser(String userId)
          Only selects process definitions which given userId is authoriezed to start
 ProcessDefinitionQuery suspended()
          Only selects process definitions which are suspended
 
从接口 org.activiti.engine.query.Query 继承的方法
asc, count, desc, list, listPage, singleResult
 

方法详细信息

processDefinitionId

ProcessDefinitionQuery processDefinitionId(String processDefinitionId)
Only select process definiton with the given id.


processDefinitionCategory

ProcessDefinitionQuery processDefinitionCategory(String processDefinitionCategory)
Only select process definitions with the given category.


processDefinitionCategoryLike

ProcessDefinitionQuery processDefinitionCategoryLike(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(String categoryNotEquals)
Only select deployments that have a different category then the given one.

另请参见:
DeploymentBuilder.category(String)

processDefinitionName

ProcessDefinitionQuery processDefinitionName(String processDefinitionName)
Only select process definitions with the given name.


processDefinitionNameLike

ProcessDefinitionQuery processDefinitionNameLike(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(String deploymentId)
Only select process definitions that are deployed in a deployment with the given deployment id


processDefinitionKey

ProcessDefinitionQuery processDefinitionKey(String processDefinitionKey)
Only select process definition with the given key.


processDefinitionKeyLike

ProcessDefinitionQuery processDefinitionKeyLike(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(Integer processDefinitionVersion)
Only select process definition with a certain version. Particulary useful when used in combination with processDefinitionKey(String)


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 only be used in combination with processDefinitionKey(String) of processDefinitionKeyLike(String). 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.

抛出:
ActivitiIllegalArgumentException - if used in combination with #groupId(string), #processDefinitionVersion(int) or deploymentId(String)

processDefinitionResourceName

ProcessDefinitionQuery processDefinitionResourceName(String resourceName)
Only select process definition with the given resource name.


processDefinitionResourceNameLike

ProcessDefinitionQuery processDefinitionResourceNameLike(String resourceNameLike)
Only select process definition with a resource name like the given .


startableByUser

ProcessDefinitionQuery startableByUser(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


messageEventSubscription

@Deprecated
ProcessDefinitionQuery messageEventSubscription(String messageName)
已过时。 

另请参见:
messageEventSubscriptionName(String)

messageEventSubscriptionName

ProcessDefinitionQuery messageEventSubscriptionName(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 by Query.asc() or Query.desc()).


orderByProcessDefinitionKey

ProcessDefinitionQuery orderByProcessDefinitionKey()
Order by process definition key (needs to be followed by Query.asc() or Query.desc()).


orderByProcessDefinitionId

ProcessDefinitionQuery orderByProcessDefinitionId()
Order by the id of the process definitions (needs to be followed by Query.asc() or Query.desc()).


orderByProcessDefinitionVersion

ProcessDefinitionQuery orderByProcessDefinitionVersion()
Order by the version of the process definitions (needs to be followed by Query.asc() or Query.desc()).


orderByProcessDefinitionName

ProcessDefinitionQuery orderByProcessDefinitionName()
Order by the name of the process definitions (needs to be followed by Query.asc() or Query.desc()).


orderByDeploymentId

ProcessDefinitionQuery orderByDeploymentId()
Order by deployment id (needs to be followed by Query.asc() or Query.desc()).



Copyright © 2013 Alfresco. All rights reserved.