Enum Class ExecutionQualification

java.lang.Object
java.lang.Enum<ExecutionQualification>
com.inet.taskplanner.server.api.action.ExecutionQualification
All Implemented Interfaces:
Serializable, Comparable<ExecutionQualification>, Constable

public enum ExecutionQualification extends Enum<ExecutionQualification>
Execution qualifications are used to determine whether actions should process job results. Decision is based on number of executed jobs and number of executed jobs with fulfilled conditions.
Since:
taskplanner 3.0
  • Enum Constant Details

  • Method Details

    • values

      public static ExecutionQualification[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ExecutionQualification valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • mustHandleResults

      public abstract boolean mustHandleResults(int numberOfJobsWithFulfilledConditions, int numberOfJobs)
      Determine whether an action with this Qualification must run based of number of executed jobs and number of executed jobs with fulfilled conditions.
      Parameters:
      numberOfJobsWithFulfilledConditions - how many jobs have fulfilled conditions.
      numberOfJobs - how many jobs were executed.
      Returns:
      true if a action with this qualification must run.
      Since:
      taskplanner 3.0