public static enum Rule.State extends java.lang.Enum<Rule.State>
| Enum Constant and Description |
|---|
DEFINED
The Rule enters this state right after it is created (see
RuleEngine.createRule(String),
RuleEngine.createRule(String, Scope, Trigger, ExecOptions, String), RuleBuilder.buildRule()),
or modified (see Rule.modify(String), Rule.modify(String, Scope, Trigger, ExecOptions, String)). |
DISABLED
Marks that Rule is deactivated (see
Rule.disable()) and no more triggers may happen in this state. |
ENABLED
Marks that Rule is activated (see
Rule.enable()) and might be triggered whenever the respective fires and conditions happen. |
FAILED_TO_ENABLE
Marks that Rule has failed to be enabled.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue()
Returns an integer value corresponding to the predefined status.
|
static Rule.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Rule.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Rule.State DEFINED
RuleEngine.createRule(String),
RuleEngine.createRule(String, Scope, Trigger, ExecOptions, String), RuleBuilder.buildRule()),
or modified (see Rule.modify(String), Rule.modify(String, Scope, Trigger, ExecOptions, String)).public static final Rule.State ENABLED
Rule.enable()) and might be triggered whenever the respective fires and conditions happen.public static final Rule.State DISABLED
Rule.disable()) and no more triggers may happen in this state.public static final Rule.State FAILED_TO_ENABLE
Rule.getStateDescription() method should bring a detail
description of what exactly has failed and prevented the Rule from activation.public static Rule.State[] values()
for (Rule.State c : Rule.State.values()) System.out.println(c);
public static Rule.State valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getValue()
Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.