Class TaskUtil


  • public class TaskUtil
    extends Object
    Utilities for TaskDefinitions and TaskResults
    • Method Detail

      • withLockedMasterResult

        public static void withLockedMasterResult​(sailpoint.task.TaskMonitor monitor,
                                                  TaskUtil.TaskResultConsumer consumer)
                                           throws sailpoint.tools.GeneralException
        Executes the given action with a locked master result
        Parameters:
        monitor - The TaskMonitor used to retrieve the locked result
        consumer - An action to run against the locked partition result
        Throws:
        sailpoint.tools.GeneralException - if anything fails
      • withLockedPartitionResult

        public static void withLockedPartitionResult​(sailpoint.task.TaskMonitor monitor,
                                                     TaskUtil.TaskResultConsumer consumer)
                                              throws sailpoint.tools.GeneralException
        Executes the given action with a locked partition result
        Parameters:
        monitor - The TaskMonitor used to retrieve the locked result
        consumer - An action to run against the locked partition result
        Throws:
        sailpoint.tools.GeneralException - if anything fails