Class SlaDueDateJobHandler

java.lang.Object
com.flowable.platform.service.jobhandler.SlaDueDateJobHandler
All Implemented Interfaces:
org.flowable.job.service.JobHandler

public class SlaDueDateJobHandler extends Object implements org.flowable.job.service.JobHandler
A job handler handling SLA based due dates for tasks.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     
    protected boolean
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SlaDueDateJobHandler(boolean enableSlaAuditInstance, boolean enableSlaAuditInstanceToElastic)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected LocalDateTime
     
    void
    execute(org.flowable.job.service.impl.persistence.entity.JobEntity job, String configuration, org.flowable.variable.api.delegate.VariableScope variableScope, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
     
    protected org.flowable.task.api.Task
    getCaseTask(String taskId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
     
    protected org.flowable.common.engine.impl.el.ExpressionManager
    getExpressionManager(org.flowable.task.service.impl.persistence.entity.TaskEntity task, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
     
    protected org.flowable.job.service.JobServiceConfiguration
    getJobServiceConfiguration(org.flowable.task.service.impl.persistence.entity.TaskEntity task, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
     
    protected com.fasterxml.jackson.databind.ObjectMapper
    getObjectMapper(org.flowable.task.service.impl.persistence.entity.TaskEntity task, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
     
    getPlatformRuntimeService(org.flowable.task.service.impl.persistence.entity.TaskEntity task, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
     
    protected org.flowable.task.api.Task
    getProcessTask(String taskId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
     
    protected String
    getSlaAuditInstanceId(org.flowable.task.service.impl.persistence.entity.TaskEntity task, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
     
    protected org.flowable.task.api.Task
    getTask(String taskId, org.flowable.job.service.impl.persistence.entity.JobEntity job, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
     
     
    protected com.fasterxml.jackson.databind.JsonNode
    readConfiguration(org.flowable.job.service.impl.persistence.entity.JobEntity job, String configuration, boolean isCaseTask, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
     
    protected void
    updateSlaAuditInstanceForCompletionSlaBreached(org.flowable.task.service.impl.persistence.entity.TaskEntity task, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
     
    protected void
    updateSlaAuditInstanceForInProgressStartSlaBreached(org.flowable.task.service.impl.persistence.entity.TaskEntity task, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
     
    protected void
    updateSlaAuditInstanceWithBuilder(String slaAuditInstanceId, String tenantId, UpdateSlaAuditInstanceBuilder slaAuditInstanceBuilder, com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.flowable.job.service.JobServiceConfiguration jobServiceConfiguration)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • HANDLER_TYPE

      public static final String HANDLER_TYPE
      See Also:
    • enableSlaAuditInstance

      protected boolean enableSlaAuditInstance
    • enableSlaAuditInstanceToElastic

      protected boolean enableSlaAuditInstanceToElastic
  • Constructor Details

    • SlaDueDateJobHandler

      public SlaDueDateJobHandler(boolean enableSlaAuditInstance, boolean enableSlaAuditInstanceToElastic)
  • Method Details

    • getType

      public String getType()
      Specified by:
      getType in interface org.flowable.job.service.JobHandler
    • execute

      public void execute(org.flowable.job.service.impl.persistence.entity.JobEntity job, String configuration, org.flowable.variable.api.delegate.VariableScope variableScope, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
      Specified by:
      execute in interface org.flowable.job.service.JobHandler
    • updateSlaAuditInstanceForInProgressStartSlaBreached

      protected void updateSlaAuditInstanceForInProgressStartSlaBreached(org.flowable.task.service.impl.persistence.entity.TaskEntity task, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • updateSlaAuditInstanceForCompletionSlaBreached

      protected void updateSlaAuditInstanceForCompletionSlaBreached(org.flowable.task.service.impl.persistence.entity.TaskEntity task, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • updateSlaAuditInstanceWithBuilder

      protected void updateSlaAuditInstanceWithBuilder(String slaAuditInstanceId, String tenantId, UpdateSlaAuditInstanceBuilder slaAuditInstanceBuilder, com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.flowable.job.service.JobServiceConfiguration jobServiceConfiguration)
    • getSlaAuditInstanceId

      protected String getSlaAuditInstanceId(org.flowable.task.service.impl.persistence.entity.TaskEntity task, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • readConfiguration

      protected com.fasterxml.jackson.databind.JsonNode readConfiguration(org.flowable.job.service.impl.persistence.entity.JobEntity job, String configuration, boolean isCaseTask, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • getTask

      protected org.flowable.task.api.Task getTask(String taskId, org.flowable.job.service.impl.persistence.entity.JobEntity job, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • getProcessTask

      protected org.flowable.task.api.Task getProcessTask(String taskId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • getCaseTask

      protected org.flowable.task.api.Task getCaseTask(String taskId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • getExpressionManager

      protected org.flowable.common.engine.impl.el.ExpressionManager getExpressionManager(org.flowable.task.service.impl.persistence.entity.TaskEntity task, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • getJobServiceConfiguration

      protected org.flowable.job.service.JobServiceConfiguration getJobServiceConfiguration(org.flowable.task.service.impl.persistence.entity.TaskEntity task, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • getPlatformRuntimeService

      protected PlatformRuntimeService getPlatformRuntimeService(org.flowable.task.service.impl.persistence.entity.TaskEntity task, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • getObjectMapper

      protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper(org.flowable.task.service.impl.persistence.entity.TaskEntity task, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • convertToLocalDateTime

      protected LocalDateTime convertToLocalDateTime(Date date)