Class TaskUtil


  • public class TaskUtil
    extends Object
    Utility methods related to the Task objects. The ones that refer only to `TaskType` objects are located in the schema module, e.g. in TaskTypeUtil class.
    • Constructor Detail

      • TaskUtil

        public TaskUtil()
    • Method Detail

      • findByIdentifier

        public static Task findByIdentifier​(@NotNull
                                            @NotNull String identifier,
                                            @NotNull
                                            @NotNull Collection<Task> tasks)
      • isDryRun

        public static boolean isDryRun​(Task task)
      • isPreview

        public static boolean isPreview​(Task task)
      • isExecute

        public static boolean isExecute​(Task task)
      • findExtensionItemValueInThisOrParent

        public static boolean findExtensionItemValueInThisOrParent​(Task task,
                                                                   QName path,
                                                                   boolean defaultValue)
                                                            throws SchemaException
        Throws:
        SchemaException
      • getLeafTasks

        public static List<? extends Task> getLeafTasks​(List<? extends Task> allSubtasksInTree)