org.camunda.bpm.engine.management
Interface JobDefinitionQuery

All Superinterfaces:
Query<JobDefinitionQuery,JobDefinition>
All Known Implementing Classes:
JobDefinitionQueryImpl

public interface JobDefinitionQuery
extends Query<JobDefinitionQuery,JobDefinition>

Allows programmatic querying of JobDefinitions.

Author:
roman.smirnov

Method Summary
 JobDefinitionQuery active()
          Only selects job definitions which are active
 JobDefinitionQuery activityIdIn(String... activityIds)
          Only select job definitions which exist for the listed activity ids
 JobDefinitionQuery includeJobDefinitionsWithoutTenantId()
          Select job definitions which have no tenant id.
 JobDefinitionQuery jobConfiguration(String jobConfiguration)
          Only select job definitions which contain the configuration.
 JobDefinitionQuery jobDefinitionId(String jobDefinitionId)
          Only select job definitions with the given id
 JobDefinitionQuery jobType(String jobType)
          Only select job definitions which have the given job type.
 JobDefinitionQuery orderByActivityId()
          Order by activty id (needs to be followed by Query.asc() or Query.desc()).
 JobDefinitionQuery orderByJobConfiguration()
          Order by job configuration (needs to be followed by Query.asc() or Query.desc()).
 JobDefinitionQuery orderByJobDefinitionId()
          Order by id (needs to be followed by Query.asc() or Query.desc()).
 JobDefinitionQuery orderByJobType()
          Order by job type (needs to be followed by Query.asc() or Query.desc()).
 JobDefinitionQuery orderByProcessDefinitionId()
          Order by process defintion id (needs to be followed by Query.asc() or Query.desc()).
 JobDefinitionQuery orderByProcessDefinitionKey()
          Order by process definition key (needs to be followed by Query.asc() or Query.desc()).
 JobDefinitionQuery orderByTenantId()
          Order by tenant id (needs to be followed by Query.asc() or Query.desc()).
 JobDefinitionQuery processDefinitionId(String processDefinitionId)
          Only select job definitions which exist for the given process definition id.
 JobDefinitionQuery processDefinitionKey(String processDefinitionKey)
          Only select job definitions which exist for the given process definition key.
 JobDefinitionQuery suspended()
          Only selects job definitions which are suspended
 JobDefinitionQuery tenantIdIn(String... tenantIds)
          Only select job definitions that belong to one of the given tenant ids.
 JobDefinitionQuery withoutTenantId()
          Only select job definitions which have no tenant id.
 JobDefinitionQuery withOverridingJobPriority()
          Only selects job definitions which have a job priority defined.
 
Methods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult
 

Method Detail

jobDefinitionId

JobDefinitionQuery jobDefinitionId(String jobDefinitionId)
Only select job definitions with the given id


activityIdIn

JobDefinitionQuery activityIdIn(String... activityIds)
Only select job definitions which exist for the listed activity ids


processDefinitionId

JobDefinitionQuery processDefinitionId(String processDefinitionId)
Only select job definitions which exist for the given process definition id.


processDefinitionKey

JobDefinitionQuery processDefinitionKey(String processDefinitionKey)
Only select job definitions which exist for the given process definition key.


jobType

JobDefinitionQuery jobType(String jobType)
Only select job definitions which have the given job type.


jobConfiguration

JobDefinitionQuery jobConfiguration(String jobConfiguration)
Only select job definitions which contain the configuration.


active

JobDefinitionQuery active()
Only selects job definitions which are active


suspended

JobDefinitionQuery suspended()
Only selects job definitions which are suspended


withOverridingJobPriority

JobDefinitionQuery withOverridingJobPriority()
Only selects job definitions which have a job priority defined.

Since:
7.4

tenantIdIn

JobDefinitionQuery tenantIdIn(String... tenantIds)
Only select job definitions that belong to one of the given tenant ids.


withoutTenantId

JobDefinitionQuery withoutTenantId()
Only select job definitions which have no tenant id.


includeJobDefinitionsWithoutTenantId

JobDefinitionQuery includeJobDefinitionsWithoutTenantId()
Select job definitions which have no tenant id. Can be used in combination with tenantIdIn(String...).


orderByJobDefinitionId

JobDefinitionQuery orderByJobDefinitionId()
Order by id (needs to be followed by Query.asc() or Query.desc()).


orderByActivityId

JobDefinitionQuery orderByActivityId()
Order by activty id (needs to be followed by Query.asc() or Query.desc()).


orderByProcessDefinitionId

JobDefinitionQuery orderByProcessDefinitionId()
Order by process defintion id (needs to be followed by Query.asc() or Query.desc()).


orderByProcessDefinitionKey

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


orderByJobType

JobDefinitionQuery orderByJobType()
Order by job type (needs to be followed by Query.asc() or Query.desc()).


orderByJobConfiguration

JobDefinitionQuery orderByJobConfiguration()
Order by job configuration (needs to be followed by Query.asc() or Query.desc()).


orderByTenantId

JobDefinitionQuery orderByTenantId()
Order by tenant id (needs to be followed by Query.asc() or Query.desc()). Note that the ordering of job definitions without tenant id is database-specific.



Copyright © 2018 camunda services GmbH. All rights reserved.