Class PriorityTask

  • All Implemented Interfaces:
    Task

    public abstract class PriorityTask
    extends AbstractTask
    Represents a task that includes a priority level, allowing tasks to be prioritized during selection or execution in workflows or script logic.

    This class extends AbstractTask, inheriting capabilities such as access to a Context instance for task configuration and runtime behavior. It introduces an additional abstract method for retrieving the priority of the task.

    Key Characteristics:

    • Must be subclassed to implement priority-based behavior.
    • Integrates with the task execution framework through inheritance from AbstractTask and the Task interface.

    Priority Management:

    Subclasses are required to define the getPriority() method, which returns an integer value representing the priority level of the task. Higher priority values generally indicate tasks that should be executed earlier or given precedence over those with lower values. The specific interpretation of priority values is determined by the execution context in which this task is used.
    • Field Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      PriorityTask()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract int getPriority()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PriorityTask

        public PriorityTask()
    • Method Detail

      • getPriority

        public abstract int getPriority()