Class ConditionalTask
- java.lang.Object
-
- sailpoint.task.AbstractTaskExecutor
-
- com.identityworksllc.iiq.common.task.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!
-
-
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
-
-
-
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
-
-