Interface JobDefinition

  • All Known Implementing Classes:

    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.

    Daniel Meyer
    • Method Detail

      • getId

        java.lang.String getId()
        the Id of the job definition.
      • getProcessDefinitionId

        java.lang.String getProcessDefinitionId()
        the id of the ProcessDefinition this job definition is associated with.
      • getProcessDefinitionKey

        java.lang.String getProcessDefinitionKey()
        the key of the ProcessDefinition this job definition is associated with.
      • getJobType

        java.lang.String getJobType()
        The Type of a job. Asynchronous continuation, timer, ...
        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.
        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.
        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.
        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.

        the priority that overrides the default/BPMN XML priority or null if no overriding priority is set
      • getTenantId

        java.lang.String getTenantId()
        The id of the tenant this job definition belongs to. Can be null 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.