Class JobConfigurationUtil
java.lang.Object
com.aquima.interactions.process.scheduler.utility.JobConfigurationUtil
Utility class to create quartz job configurations corresponding to the task
- Author:
- Robert P.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ScheduledJobType
determineJobType
(IProcessEngine processEngine, ITaskModel task) Determines the quartz job type for a given taskstatic SchedulerJobConfiguration
getSchedulerJobConfiguration
(IProcessEngine processEngine, ProcessEngineID processEngineId, ITaskModel task, String tenantId) Determines the task type required for task and creates the corresponding job configurationstatic SchedulerJobConfiguration
getSchedulerJobConfiguration
(ScheduledJobType jobType, IProcessEngine processEngine, ProcessEngineID processEngineId, ITaskModel task, IEvaluationContext context, boolean recalculate, String tenantId) Creates the corresponding configuration for the specified job typestatic SchedulerJobConfiguration
getSchedulerJobConfiguration
(ScheduledJobType jobType, IProcessEngine processEngine, ProcessEngineID processEngineId, ITaskModel task, String tenantId) Determines the task type required for task and creates the corresponding job configuration
-
Method Details
-
getSchedulerJobConfiguration
public static SchedulerJobConfiguration getSchedulerJobConfiguration(IProcessEngine processEngine, ProcessEngineID processEngineId, ITaskModel task, String tenantId) Determines the task type required for task and creates the corresponding job configuration- Parameters:
processEngine
- used to determine the job typeprocessEngineId
- needed to be set on the quartz jobtask
- the task for which the quartz job configuration will be created- Returns:
- the job configuration which will be scheduled in quartz
-
getSchedulerJobConfiguration
public static SchedulerJobConfiguration getSchedulerJobConfiguration(ScheduledJobType jobType, IProcessEngine processEngine, ProcessEngineID processEngineId, ITaskModel task, String tenantId) Determines the task type required for task and creates the corresponding job configuration- Parameters:
processEngine
- used to determine the job typeprocessEngineId
- needed to be set on the quartz jobtask
- the task for which the quartz job configuration will be created- Returns:
- the job configuration which will be scheduled in quartz
-
getSchedulerJobConfiguration
public static SchedulerJobConfiguration getSchedulerJobConfiguration(ScheduledJobType jobType, IProcessEngine processEngine, ProcessEngineID processEngineId, ITaskModel task, IEvaluationContext context, boolean recalculate, String tenantId) Creates the corresponding configuration for the specified job type- Parameters:
jobType
- the job type for which the configuration will be createdprocessEngine
- used to determine the job typeprocessEngineId
- needed to be set on the quartz jobtask
- the task for which the quartz job configuration will be createdrecalculate
- if true, the evaluation date is recalculated- Returns:
- the job configuration which will be scheduled in quartz
-
determineJobType
Determines the quartz job type for a given task- Parameters:
processEngine
- the process enginetask
- the task from the database- Returns:
- the scheduler job type
-