Class ConditionalTask

  • All Implemented Interfaces:
    sailpoint.object.BaseExecutor, sailpoint.object.TaskExecutor

    public class ConditionalTask
    extends sailpoint.task.AbstractTaskExecutor
    A task executor that will invoke a Rule that returns a boolean indicating that another task should be run.

    This can be used to skip an expensive task, or a task likely to cause problems, such as during externally defined maintenance windows, final exam periods, or other critical times.

    BETA!

    • Field Summary

      • Fields inherited from class sailpoint.task.AbstractTaskExecutor

        ARG_FILTER, ARG_LOCK_MODE, ARG_LOCK_TIMEOUT, ARG_PROFILE, ARG_RESTARTABLE, ARG_TRACE, DEFAULT_LOCK_TIMEOUT, RET_TOTAL
    • Constructor Summary

      Constructors 
      Constructor Description
      ConditionalTask()
      Constructs a new conditional task
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(sailpoint.api.SailPointContext context, sailpoint.object.TaskSchedule taskSchedule, sailpoint.object.TaskResult taskResult, sailpoint.object.Attributes<String,​Object> attributes)  
      boolean terminate()
      Terminates the task
      • Methods inherited from class sailpoint.task.AbstractTaskExecutor

        getMonitor, getSuggestedPartitionCount, getSuggestedPartitionCount, launchPartitions, processCommand, saveRequest, setMonitor, updateProgress, updateProgress
    • Constructor Detail

      • ConditionalTask

        public ConditionalTask()
        Constructs a new conditional task
    • Method Detail

      • execute

        public void execute​(sailpoint.api.SailPointContext context,
                            sailpoint.object.TaskSchedule taskSchedule,
                            sailpoint.object.TaskResult taskResult,
                            sailpoint.object.Attributes<String,​Object> attributes)
                     throws Exception
        Throws:
        Exception
      • terminate

        public boolean terminate()
        Terminates the task
        Returns:
        True, indicating that we have reacted to the termination