Class SlaModelUtil
java.lang.Object
com.flowable.platform.service.task.SlaModelUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static Date
calculateDueDate
(int dueDateValue, String timeUnit, Date currentDate, SlaDefinitionModel slaDefinitionModel) protected static Date
calculateDueDateBackwards
(int dueDateValue, String timeUnit, Date currentDate, SlaDefinitionModel slaDefinitionModel) static TimerJobEntity
createDueDateTimerJob
(String type, JobServiceConfiguration jobServiceConfiguration) static TimerJobEntity
createEscalationTimerJob
(EscalationDefinition escalationDefinition, String slaDefinitionId, JobServiceConfiguration jobServiceConfiguration) static void
createInProgressStartActionInstance
(DelegateTask delegateTask, String actionDefinitionKey, EntityCache entityCache, ActionEngineConfiguration actionEngineConfiguration) static void
createSlaAuditInstance
(DelegateTask delegateTask, SlaDefinitionModel slaDefinitionModel, Clock clock, boolean enableSlaAuditInstanceToElastic) protected static String
getDefaultMailFrom
(TaskEntity taskEntity) protected static FlowableMailClient
getMailClient
(TaskEntity taskEntity) static SlaDefinition
getSlaDefinition
(String slaDefinitionKey, TaskEntity taskEntity) static void
handleActionDefinition
(String action, com.fasterxml.jackson.databind.JsonNode actionConfig, String condition, TaskEntity taskEntity, ExpressionManager expressionManager, ApplicationContext applicationContext) protected static void
handleInitializationDefinitions
(TaskEntity taskEntity, SlaDefinitionModel slaDefinitionModel, ExpressionManager expressionManager, ApplicationContext applicationContext) static SlaDefinitionModel
handleSlaDefinitionConfig
(SlaDefinition slaDefinition, TaskEntity taskEntity, ExpressionManager expressionManager, Clock clock, ApplicationContext applicationContext) static SlaDefinitionModel
resolveSlaDefinitionModel
(String slaDefinitionKey, TaskEntity taskEntity) static void
scheduleDueDateTimerJob
(TimerJobEntity timerJob, Date dueDate, JobServiceConfiguration jobServiceConfiguration) static void
scheduleEscalationTimerJob
(TimerJobEntity timerJob, EscalationDefinition escalationDefinition, SlaDefinitionModel slaDefinitionModel, DelegateTask delegateTask, JobServiceConfiguration jobServiceConfiguration) transformToList
(com.fasterxml.jackson.databind.JsonNode staticValues, Object expressionValue)
-
Constructor Details
-
SlaModelUtil
public SlaModelUtil()
-
-
Method Details
-
resolveSlaDefinitionModel
public static SlaDefinitionModel resolveSlaDefinitionModel(String slaDefinitionKey, TaskEntity taskEntity) -
getSlaDefinition
-
handleSlaDefinitionConfig
public static SlaDefinitionModel handleSlaDefinitionConfig(SlaDefinition slaDefinition, TaskEntity taskEntity, ExpressionManager expressionManager, Clock clock, ApplicationContext applicationContext) -
createInProgressStartActionInstance
public static void createInProgressStartActionInstance(DelegateTask delegateTask, String actionDefinitionKey, EntityCache entityCache, ActionEngineConfiguration actionEngineConfiguration) -
createSlaAuditInstance
public static void createSlaAuditInstance(DelegateTask delegateTask, SlaDefinitionModel slaDefinitionModel, Clock clock, boolean enableSlaAuditInstanceToElastic) -
createEscalationTimerJob
public static TimerJobEntity createEscalationTimerJob(EscalationDefinition escalationDefinition, String slaDefinitionId, JobServiceConfiguration jobServiceConfiguration) -
scheduleEscalationTimerJob
public static void scheduleEscalationTimerJob(TimerJobEntity timerJob, EscalationDefinition escalationDefinition, SlaDefinitionModel slaDefinitionModel, DelegateTask delegateTask, JobServiceConfiguration jobServiceConfiguration) -
createDueDateTimerJob
public static TimerJobEntity createDueDateTimerJob(String type, JobServiceConfiguration jobServiceConfiguration) -
scheduleDueDateTimerJob
public static void scheduleDueDateTimerJob(TimerJobEntity timerJob, Date dueDate, JobServiceConfiguration jobServiceConfiguration) -
handleActionDefinition
public static void handleActionDefinition(String action, com.fasterxml.jackson.databind.JsonNode actionConfig, String condition, TaskEntity taskEntity, ExpressionManager expressionManager, ApplicationContext applicationContext) -
handleInitializationDefinitions
protected static void handleInitializationDefinitions(TaskEntity taskEntity, SlaDefinitionModel slaDefinitionModel, ExpressionManager expressionManager, ApplicationContext applicationContext) -
calculateDueDate
protected static Date calculateDueDate(int dueDateValue, String timeUnit, Date currentDate, SlaDefinitionModel slaDefinitionModel) -
calculateDueDateBackwards
protected static Date calculateDueDateBackwards(int dueDateValue, String timeUnit, Date currentDate, SlaDefinitionModel slaDefinitionModel) -
getMailClient
-
getDefaultMailFrom
-
transformToList
-