Class SlaDueDateJobHandler
java.lang.Object
com.flowable.platform.service.jobhandler.SlaDueDateJobHandler
- All Implemented Interfaces:
JobHandler
A job handler handling SLA based due dates for tasks.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSlaDueDateJobHandler(boolean enableSlaAuditInstance, boolean enableSlaAuditInstanceToElastic) -
Method Summary
Modifier and TypeMethodDescriptionprotected LocalDateTimeconvertToLocalDateTime(Date date) voidexecute(JobEntity job, String configuration, VariableScope variableScope, CommandContext commandContext) protected TaskgetCaseTask(String taskId, CommandContext commandContext) protected ExpressionManagergetExpressionManager(TaskEntity task, CommandContext commandContext) protected JobServiceConfigurationgetJobServiceConfiguration(TaskEntity task, CommandContext commandContext) protected com.fasterxml.jackson.databind.ObjectMappergetObjectMapper(TaskEntity task, CommandContext commandContext) protected PlatformRuntimeServicegetPlatformRuntimeService(TaskEntity task, CommandContext commandContext) protected TaskgetProcessTask(String taskId, CommandContext commandContext) protected StringgetSlaAuditInstanceId(TaskEntity task, CommandContext commandContext) protected TaskgetTask(String taskId, JobEntity job, CommandContext commandContext) getType()protected com.fasterxml.jackson.databind.JsonNodereadConfiguration(JobEntity job, String configuration, boolean isCaseTask, CommandContext commandContext) protected voidupdateSlaAuditInstanceForCompletionSlaBreached(TaskEntity task, CommandContext commandContext) protected voidupdateSlaAuditInstanceForInProgressStartSlaBreached(TaskEntity task, CommandContext commandContext) protected voidupdateSlaAuditInstanceWithBuilder(String slaAuditInstanceId, String tenantId, UpdateSlaAuditInstanceBuilder slaAuditInstanceBuilder, com.fasterxml.jackson.databind.ObjectMapper objectMapper, JobServiceConfiguration jobServiceConfiguration)
-
Field Details
-
HANDLER_TYPE
- See Also:
-
enableSlaAuditInstance
protected boolean enableSlaAuditInstance -
enableSlaAuditInstanceToElastic
protected boolean enableSlaAuditInstanceToElastic
-
-
Constructor Details
-
SlaDueDateJobHandler
public SlaDueDateJobHandler(boolean enableSlaAuditInstance, boolean enableSlaAuditInstanceToElastic)
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceJobHandler
-
execute
public void execute(JobEntity job, String configuration, VariableScope variableScope, CommandContext commandContext) - Specified by:
executein interfaceJobHandler
-
updateSlaAuditInstanceForInProgressStartSlaBreached
protected void updateSlaAuditInstanceForInProgressStartSlaBreached(TaskEntity task, CommandContext commandContext) -
updateSlaAuditInstanceForCompletionSlaBreached
protected void updateSlaAuditInstanceForCompletionSlaBreached(TaskEntity task, CommandContext commandContext) -
updateSlaAuditInstanceWithBuilder
protected void updateSlaAuditInstanceWithBuilder(String slaAuditInstanceId, String tenantId, UpdateSlaAuditInstanceBuilder slaAuditInstanceBuilder, com.fasterxml.jackson.databind.ObjectMapper objectMapper, JobServiceConfiguration jobServiceConfiguration) -
getSlaAuditInstanceId
-
readConfiguration
protected com.fasterxml.jackson.databind.JsonNode readConfiguration(JobEntity job, String configuration, boolean isCaseTask, CommandContext commandContext) -
getTask
-
getProcessTask
-
getCaseTask
-
getExpressionManager
-
getJobServiceConfiguration
protected JobServiceConfiguration getJobServiceConfiguration(TaskEntity task, CommandContext commandContext) -
getPlatformRuntimeService
protected PlatformRuntimeService getPlatformRuntimeService(TaskEntity task, CommandContext commandContext) -
getObjectMapper
protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper(TaskEntity task, CommandContext commandContext) -
convertToLocalDateTime
-