Interface JobDefinition
-
- All Known Implementing Classes:
JobDefinitionEntity
public interface JobDefinition
A Job Definition provides details about asynchronous background processing ("Jobs") performed by the process engine.
Each Job Definition corresponds to a Timer or Asynchronous continuation job installed in the process engine. Jobs definitions are installed when BPMN 2.0 processes containing timer activities or asynchronous continuations are deployed.
- Author:
- Daniel Meyer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getActivityId()
The Id of the activity (from BPMN 2.0 Xml) this Job Definition is associated with.java.lang.String
getDeploymentId()
The id of the deployment this job definition is related to.java.lang.String
getId()
java.lang.String
getJobConfiguration()
The configuration of a job definition provides details about the jobs which will be created.java.lang.String
getJobType()
The Type of a job.java.lang.Long
getOverridingJobPriority()
Returns the execution priority for jobs of this definition, if it was set using theManagementService
API.java.lang.String
getProcessDefinitionId()
java.lang.String
getProcessDefinitionKey()
java.lang.String
getTenantId()
The id of the tenant this job definition belongs to.boolean
isSuspended()
Indicates whether this job definition is suspended.
-
-
-
Method Detail
-
getId
java.lang.String getId()
- Returns:
- the Id of the job definition.
-
getProcessDefinitionId
java.lang.String getProcessDefinitionId()
- Returns:
- the id of the
ProcessDefinition
this job definition is associated with.
-
getProcessDefinitionKey
java.lang.String getProcessDefinitionKey()
- Returns:
- the key of the
ProcessDefinition
this job definition is associated with.
-
getJobType
java.lang.String getJobType()
The Type of a job. Asynchronous continuation, timer, ...- Returns:
- the type of a Job.
-
getJobConfiguration
java.lang.String getJobConfiguration()
The configuration of a job definition provides details about the jobs which will be created. For timer jobs this method returns the timer configuration.- Returns:
- the configuration of this job definition.
-
getActivityId
java.lang.String getActivityId()
The Id of the activity (from BPMN 2.0 Xml) this Job Definition is associated with.- Returns:
- the activity id for this Job Definition.
-
isSuspended
boolean isSuspended()
Indicates whether this job definition is suspended. If a job Definition is suspended, No Jobs created form the job definition will be acquired by the job executor.- Returns:
- true if this Job Definition is currently suspended.
-
getOverridingJobPriority
java.lang.Long getOverridingJobPriority()
Returns the execution priority for jobs of this definition, if it was set using the
ManagementService
API. When a job is assigned a priority, the job definition's overriding priority (if set) is used instead of the values defined in the BPMN XML.- Returns:
- the priority that overrides the default/BPMN XML priority or
null
if no overriding priority is set - Since:
- 7.4
-
getTenantId
java.lang.String getTenantId()
The id of the tenant this job definition belongs to. Can benull
if the definition belongs to no single tenant.
-
getDeploymentId
java.lang.String getDeploymentId()
The id of the deployment this job definition is related to. In a deployment-aware setup, this leads to all jobs of the same definition being executed on the same node.
-
-