public enum Phase extends Enum<Phase>
An event variable that binds listener methods to a specific lifecycle event:
BUILD event happens when a new Knowledge is created from Java
sources, classes or archives. Unlike the rest of the events, the BUILD event can be
referenced by static methods only.
CREATE event happens immediately after a new session is created off the given ruleset
FIRE event happens before any of the StatefulSession.fire(), StatefulSession.fireAsync(Object),
or StatefulSession.fireAsync() are called on a session instance.
CLOSE event happens right before the session's StatefulSession.close() method is called.
| Modifier and Type | Method and Description |
|---|---|
static Phase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Phase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Phase[] values()
for (Phase c : Phase.values()) System.out.println(c);
public static Phase 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 nullCopyright © 2021. All rights reserved.