public interface IlrRuleEngineEvent
extends ilog.rules.res.xu.event.internal.IlrXUEvent
IlrRuleEngineEvent represents an engine event.| Modifier and Type | Field and Description |
|---|---|
static int |
ADD_INSTANCE
The event code when a rule instance has been added to the
agenda.
|
static int |
ADD_RULE
The event code when a rule is added in the ruleset.
|
static int |
BEGIN_INSTANCE
The event code when a rule instance has been selected to fire,
and the first action is about to be executed.
|
static int |
BEGIN_SEQUENTIAL_INSTANCE
The event code when a sequential instance:
Has been added and selected to fire.
Its first action is about to be executed.
|
static int |
BEGIN_TASK
The event code when a task is about to be executed.
|
static int |
CONNECT
The event code when an
IlrTool is
connected to the rule engine. |
static int |
DEFINE_FUNCTION
The event code when a function is defined in the ruleset.
|
static int |
DISCONNECT
The event code when an
IlrTool is
disconnected. |
static int |
END_INSTANCE
The event code when a rule instance has finished executing the
action part.
|
static int |
END_RULEFLOW
The event code when a flow is about to finish its execution.
|
static int |
END_SEQUENTIAL_INSTANCE
The event code when a rule instance has finished executing the
action part.
|
static int |
END_TASK
The event code when a task is about to finish execution.
|
static int |
INSERT_LOGICAL
The event code when a logical object has been added into the
working memory.
|
static int |
INSERT_OBJECT
The event code when an object has been added to the working
memory.
|
static int |
REINITIALIZATION_BEGIN
The event code when the engine is about to be reinitialized.
|
static int |
REINITIALIZATION_END
The event code when engine reinitialization is finished.
|
static int |
REMOVE_ALL_INSTANCES
The event code when all rule instances have been removed from
the agenda without having been fired.
|
static int |
REMOVE_INSTANCE
The event code when a rule instance has been removed from the
agenda without having been fired.
|
static int |
REMOVE_RULE
The event code when a rule is removed from the ruleset.
|
static int |
RESET
The event code when the
IlrContext has been reset. |
static int |
RETRACT_ALL
The event code when all objects have been removed from the working
memory.
|
static int |
RETRACT_OBJECT
The event code when an object has been removed from the working
memory.
|
static int |
RULESET_PARAMETERS_CHANGED
The event code when ruleset parameter values have been
changed.
|
static int |
START_RULEFLOW
The event code when a flow is about to be executed.
|
static int |
UPDATE_OBJECT
The event code when an object has been updated in the working
memory.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCanonicalRulesetPath()
Returns the canonical form of the ruleset path concerned by this
event.
|
int |
getCode()
Returns the code for this event.
|
java.io.Serializable |
getConnectionId()
Returns the id of the CCI connection at the origin of this event.
|
ilog.rules.engine.IlrContext |
getEngine()
Returns the rule engine that raised this event.
|
ilog.rules.engine.IlrFunction |
getFunction()
Returns the function associated with this event.
|
java.lang.Object[] |
getObjects()
Returns the objects associated with this event.
|
ilog.rules.engine.IlrRule |
getRule()
Returns the
IlrRule associated with this
event. |
ilog.rules.engine.IlrRuleInstance |
getRuleInstance()
Returns the rule instance associated with this event.
|
int |
getRulePriority()
Returns the priority of the rule associated with this event.
|
java.util.Map<java.lang.String,java.lang.Object> |
getRulesetParameters()
Returns the ruleset parameters.
|
ilog.rules.engine.IlrTask |
getTask()
Returns the
IlrTask associated with this
event. |
java.io.Serializable |
getUserData()
Returns the user data associated with the CCI connection that
has raised this event.
|
static final int DISCONNECT
IlrTool is
disconnected.static final int ADD_RULE
static final int REMOVE_RULE
static final int DEFINE_FUNCTION
static final int INSERT_OBJECT
static final int INSERT_LOGICAL
static final int RETRACT_OBJECT
static final int UPDATE_OBJECT
static final int RETRACT_ALL
static final int RESET
IlrContext has been reset.static final int ADD_INSTANCE
static final int REMOVE_INSTANCE
static final int REMOVE_ALL_INSTANCES
static final int BEGIN_INSTANCE
static final int END_INSTANCE
static final int BEGIN_TASK
static final int END_TASK
static final int START_RULEFLOW
static final int END_RULEFLOW
static final int BEGIN_SEQUENTIAL_INSTANCE
static final int END_SEQUENTIAL_INSTANCE
static final int CONNECT
IlrTool is
connected to the rule engine.static final int RULESET_PARAMETERS_CHANGED
static final int REINITIALIZATION_BEGIN
static final int REINITIALIZATION_END
java.util.Map<java.lang.String,java.lang.Object> getRulesetParameters()
RULESET_PARAMETERS_CHANGED events.null is returned.java.lang.String getCanonicalRulesetPath()
int getCode()
ADD_INSTANCE,
ADD_RULE,
BEGIN_INSTANCE,
BEGIN_SEQUENTIAL_INSTANCE,
BEGIN_TASK,
CONNECT,
DEFINE_FUNCTION,
DISCONNECT,
END_INSTANCE,
END_RULEFLOW,
END_SEQUENTIAL_INSTANCE,
END_TASK,
INSERT_LOGICAL,
INSERT_OBJECT,
REMOVE_ALL_INSTANCES,
REMOVE_INSTANCE,
REMOVE_RULE,
RESET,
RETRACT_ALL,
RETRACT_OBJECT,
START_RULEFLOW,
UPDATE_OBJECTilog.rules.engine.IlrContext getEngine()
The IlrContext instance that is returned should
NOT be used as an identifier for the rule engine event
and must NOT be modified.
The returned instance of IlrContext and its members
must be used only in the callback of the plug-in
providing it. Storing or reusing the IlrContext instance
outside the call of the plug-in callback can lead to wrong behavior.
null if
the engine is not RCE.ilog.rules.engine.IlrTask getTask()
IlrTask associated with this
event.
This method is only valid for the following subset of events:
The returned instance must NOT be modified.
IlrTask instance.ilog.rules.engine.IlrRule getRule()
IlrRule associated with this
event.
This method is only valid for the following events:
The returned instance must NOT be modified.
IlrRule associated with
this event.int getRulePriority()
This method is only valid for the following events:
java.lang.Object[] getObjects()
BEGIN_SEQUENTIAL_INSTANCEEND_SEQUENTIAL_INSTANCEINSERT_OBJECTINSERT_LOGICALRETRACT_OBJECTUPDATE_OBJECTThe returned objects must NOT be modified.
ilog.rules.engine.IlrRuleInstance getRuleInstance()
The returned instance must NOT be modified.
IlrRuleInstance instance
associated with this event.ilog.rules.engine.IlrFunction getFunction()
DEFINE_FUNCTION event.
The returned instance must NOT be modified.
IlrFunction instance associated
with this event.java.io.Serializable getConnectionId()
null is returned.java.io.Serializable getUserData()
A userData object represents an Execution Unit (XU)
connection. Use the Session API to set
userData. Each rule session instance has an underlying XU
connection. Typically, userData should be used to
identify a rule session.
userData object:
== the check the equality of two
userData objects.userData can be used in
transactions.© Copyright IBM Corp. 1987, 2017