Interface ProcessDefinitionQuery

    • 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%
      • 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 with processDefinitionKey(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) or deploymentId(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
      • 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.