Enum RuleStatus

  • All Implemented Interfaces:
    Serializable, Comparable<RuleStatus>

    public enum RuleStatus
    extends Enum<RuleStatus>
    This enumeration is used to present the main status of a Rule.
    Rule Status transitions
    From/To UNINITIALIZED INITIALIZING IDLE RUNNING
    UNINITIALIZED N/A
  • Add: Rule, ModuleHandler, ModuleType, Template
  • Update: Rule
  • N/A N/A
    INITIALIZING Resolving fails, Disable rule N/A Resolving succeeds N/A
    IDLE
  • Remove: Rule, ModuleHandler
  • Update: ModuleType
  • Disable: Rule
  • N/A N/A
  • Triggered
  • runNow
  • RUNNING
  • Remove: Rule, ModuleHandler
  • Update: ModuleType
  • Disable: Rule
  • N/A Execution finished N/A
    Author:
    Yordan Mihaylov - Initial contribution, Kai Kreuzer - Refactored to match ThingStatus implementation, Ana Dimova - add java doc
    • Enum Constant Detail

      • UNINITIALIZED

        public static final RuleStatus UNINITIALIZED
      • INITIALIZING

        public static final RuleStatus INITIALIZING
    • Method Detail

      • values

        public static RuleStatus[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RuleStatus c : RuleStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RuleStatus valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • getValue

        public int getValue()
        Gets the value of a rule status.
        Returns:
        the value