public interface Rule extends java.lang.Comparable<Rule>
Rules
in which they must have a unique name.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_DESCRIPTION
Default rule description.
|
static java.lang.String |
DEFAULT_NAME
Default rule name.
|
static int |
DEFAULT_PRIORITY
Default rule priority.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(Facts facts)
This method implements the rule's condition(s).
|
void |
execute(Facts facts)
This method implements the rule's action(s).
|
default java.lang.String |
getDescription()
Getter for rule description.
|
default java.lang.String |
getName()
Getter for rule name.
|
default int |
getPriority()
Getter for rule priority.
|
static final java.lang.String DEFAULT_NAME
static final java.lang.String DEFAULT_DESCRIPTION
static final int DEFAULT_PRIORITY
default java.lang.String getName()
default java.lang.String getDescription()
default int getPriority()
boolean evaluate(Facts facts)
void execute(Facts facts) throws java.lang.Exception
java.lang.Exception
- thrown if an exception occurs when performing action(s)Copyright © 2020. All Rights Reserved.