public interface RuleContext
This interface defines methods provided by all environments in which a (set of) action(s) are executed. Usually instances of this class are set-up for each user-context for a given event and all rules are executed/evaluated within this context. This allows rules to set variables and transport information to rules being fired later on.
| Modifier and Type | Field and Description |
|---|---|
static String |
EVENT_PROCESSED |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(String var)
This method allows to retrieve an object from the context by some variable name.
|
void |
log(int level,
String msg)
Add a log message to the rule processing context.
|
void |
set(String var,
Object o)
This method allows for setting a specific object in the context.
|
static final String EVENT_PROCESSED
void set(String var, Object o)
var - o - Object get(String var)
var - void log(int level,
String msg)
level - The log-level of the message.msg - The message to log.Copyright © 2014 jwall.org. All Rights Reserved.