Class JobConfigurationUtil

java.lang.Object
com.aquima.interactions.process.scheduler.utility.JobConfigurationUtil

public final class JobConfigurationUtil extends Object
Utility class to create quartz job configurations corresponding to the task
Author:
Robert P.
  • 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 type
      processEngineId - needed to be set on the quartz job
      task - 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 type
      processEngineId - needed to be set on the quartz job
      task - 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 created
      processEngine - used to determine the job type
      processEngineId - needed to be set on the quartz job
      task - the task for which the quartz job configuration will be created
      recalculate - if true, the evaluation date is recalculated
      Returns:
      the job configuration which will be scheduled in quartz
    • determineJobType

      public static ScheduledJobType determineJobType(IProcessEngine processEngine, ITaskModel task)
      Determines the quartz job type for a given task
      Parameters:
      processEngine - the process engine
      task - the task from the database
      Returns:
      the scheduler job type