public static enum Rule.State extends Enum<Rule.State>
Enum Constant and Description |
---|
DEFINED
The Rule enters this state right after it is created with
MassManagementEngine.createRule(String) ,
MassManagementEngine.createRule(RuleParameters) , MassManagementEngine.createRule(String, Scope, TriggerList, ExecOptions, Action) and
RuleBuilder.buildRule() ),
or modified (see Rule.modify(String) , Rule.modify(String, Scope, TriggerList, ExecOptions, Action) ). |
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(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
MassManagementEngine.createRule(String)
,
MassManagementEngine.createRule(RuleParameters)
, MassManagementEngine.createRule(String, Scope, TriggerList, ExecOptions, Action)
and
RuleBuilder.buildRule()
),
or modified (see Rule.modify(String)
, Rule.modify(String, Scope, TriggerList, ExecOptions, Action)
).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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
Copyright © 2022 Bosch.IO GmbH. All rights reserved.