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
-
Constructor Summary
ConstructorDescriptionSlaDueDateJobHandler
(boolean enableSlaAuditInstance, boolean enableSlaAuditInstanceToElastic) -
Method Summary
Modifier and TypeMethodDescriptionprotected LocalDateTime
convertToLocalDateTime
(Date date) void
execute
(JobEntity job, String configuration, VariableScope variableScope, CommandContext commandContext) protected Task
getCaseTask
(String taskId, CommandContext commandContext) protected ExpressionManager
getExpressionManager
(TaskEntity task, CommandContext commandContext) protected JobServiceConfiguration
getJobServiceConfiguration
(TaskEntity task, CommandContext commandContext) protected com.fasterxml.jackson.databind.ObjectMapper
getObjectMapper
(TaskEntity task, CommandContext commandContext) protected PlatformRuntimeService
getPlatformRuntimeService
(TaskEntity task, CommandContext commandContext) protected Task
getProcessTask
(String taskId, CommandContext commandContext) protected String
getSlaAuditInstanceId
(TaskEntity task, CommandContext commandContext) protected Task
getTask
(String taskId, JobEntity job, CommandContext commandContext) getType()
protected com.fasterxml.jackson.databind.JsonNode
readConfiguration
(JobEntity job, String configuration, boolean isCaseTask, CommandContext commandContext) protected void
updateSlaAuditInstanceForCompletionSlaBreached
(TaskEntity task, CommandContext commandContext) protected void
updateSlaAuditInstanceForInProgressStartSlaBreached
(TaskEntity task, CommandContext commandContext) protected void
updateSlaAuditInstanceWithBuilder
(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:
getType
in interfaceJobHandler
-
execute
public void execute(JobEntity job, String configuration, VariableScope variableScope, CommandContext commandContext) - Specified by:
execute
in 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
-