Class AcquiredExternalWorkerJobImpl

java.lang.Object
org.flowable.job.service.impl.AcquiredExternalWorkerJobImpl
All Implemented Interfaces:
AcquiredExternalWorkerJob, ExternalWorkerJob, Job, JobInfo

public class AcquiredExternalWorkerJobImpl extends Object implements AcquiredExternalWorkerJob
Author:
Filip Hrisafov
  • Field Details

  • Constructor Details

  • Method Details

    • getVariables

      public Map<String,Object> getVariables()
      Specified by:
      getVariables in interface AcquiredExternalWorkerJob
    • getDuedate

      public Date getDuedate()
      Description copied from interface: Job
      Returns the date on which this job is supposed to be processed.
      Specified by:
      getDuedate in interface Job
    • getProcessInstanceId

      public String getProcessInstanceId()
      Description copied from interface: Job
      x Returns the id of the process instance which execution created the job.
      Specified by:
      getProcessInstanceId in interface Job
    • getExecutionId

      public String getExecutionId()
      Description copied from interface: Job
      Returns the specific execution on which the job was created.
      Specified by:
      getExecutionId in interface Job
    • getProcessDefinitionId

      public String getProcessDefinitionId()
      Description copied from interface: Job
      Returns the specific process definition on which the job was created
      Specified by:
      getProcessDefinitionId in interface Job
    • getCategory

      public String getCategory()
      Description copied from interface: Job
      Get the category for this job.
      Specified by:
      getCategory in interface Job
    • getJobType

      public String getJobType()
      Description copied from interface: Job
      Get the job type for this job.
      Specified by:
      getJobType in interface Job
    • getElementId

      public String getElementId()
      Description copied from interface: Job
      Reference to an element identifier or null if none is set.
      Specified by:
      getElementId in interface Job
    • getElementName

      public String getElementName()
      Description copied from interface: Job
      Reference to an element name or null if none is set.
      Specified by:
      getElementName in interface Job
    • getScopeId

      public String getScopeId()
      Description copied from interface: Job
      Reference to a scope identifier or null if none is set.
      Specified by:
      getScopeId in interface Job
    • getSubScopeId

      public String getSubScopeId()
      Description copied from interface: Job
      Reference to a sub scope identifier or null if none is set.
      Specified by:
      getSubScopeId in interface Job
    • getScopeType

      public String getScopeType()
      Description copied from interface: Job
      Reference to a scope type or null if none is set.
      Specified by:
      getScopeType in interface Job
    • getScopeDefinitionId

      public String getScopeDefinitionId()
      Description copied from interface: Job
      Reference to a scope definition identifier or null if none is set.
      Specified by:
      getScopeDefinitionId in interface Job
    • getCorrelationId

      public String getCorrelationId()
      Description copied from interface: Job
      Returns the correlation id of a job. The same job can be moved around and have its technical id changed. This id allows tracking that job.
      Specified by:
      getCorrelationId in interface Job
    • isExclusive

      public boolean isExclusive()
      Description copied from interface: Job
      Is the job exclusive?
      Specified by:
      isExclusive in interface Job
    • getCreateTime

      public Date getCreateTime()
      Description copied from interface: Job
      Returns the create datetime of the job.
      Specified by:
      getCreateTime in interface Job
    • getId

      public String getId()
      Description copied from interface: JobInfo
      Returns the unique identifier for this job.
      Specified by:
      getId in interface JobInfo
    • getRetries

      public int getRetries()
      Description copied from interface: JobInfo
      Returns the number of retries this job has left. Whenever the jobexecutor fails to execute the job, this value is decremented. When it hits zero, the job is supposed to be dead and not retried again (ie a manual retry is required then).
      Specified by:
      getRetries in interface JobInfo
    • getExceptionMessage

      public String getExceptionMessage()
      Description copied from interface: JobInfo
      Returns the message of the exception that occurred, the last time the job was executed. Returns null when no exception occurred. To get the full exception stacktrace, use ManagementService#getJobExceptionStacktrace(String)
      Specified by:
      getExceptionMessage in interface JobInfo
    • getTenantId

      public String getTenantId()
      Description copied from interface: JobInfo
      Get the tenant identifier for this job.
      Specified by:
      getTenantId in interface JobInfo
    • getJobHandlerType

      public String getJobHandlerType()
      Description copied from interface: JobInfo
      Get the job handler type.
      Specified by:
      getJobHandlerType in interface JobInfo
    • getJobHandlerConfiguration

      public String getJobHandlerConfiguration()
      Description copied from interface: JobInfo
      Get the job handler configuration.
      Specified by:
      getJobHandlerConfiguration in interface JobInfo
    • getCustomValues

      public String getCustomValues()
      Description copied from interface: JobInfo
      Get the custom values.
      Specified by:
      getCustomValues in interface JobInfo
    • getLockOwner

      public String getLockOwner()
      Specified by:
      getLockOwner in interface ExternalWorkerJob
    • getLockExpirationTime

      public Date getLockExpirationTime()
      Specified by:
      getLockExpirationTime in interface ExternalWorkerJob