|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IlrRuleEngineEvent
IlrRuleEngineEvent
represents an engine event.
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
String |
getCanonicalRulesetPath()
Returns the canonical form of the ruleset path concerned by this event. |
int |
getCode()
Returns the code for this event. |
Serializable |
getConnectionId()
Returns the id of the CCI connection at the origin of this event. |
IlrContext |
getEngine()
Returns the rule engine that raised this event. |
IlrFunction |
getFunction()
Returns the function associated with this event. |
Object[] |
getObjects()
Returns the objects associated with this event. |
IlrRule |
getRule()
Returns the IlrRule associated with this
event. |
IlrRuleInstance |
getRuleInstance()
Returns the rule instance associated with this event. |
int |
getRulePriority()
Returns the priority of the rule associated with this event. |
Map<String,Object> |
getRulesetParameters()
Returns the ruleset parameters. |
IlrTask |
getTask()
Returns the IlrTask associated with this
event. |
Serializable |
getUserData()
Returns the user data associated with the CCI connection that has raised this event. |
Field Detail |
---|
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
Method Detail |
---|
Map<String,Object> getRulesetParameters()
RULESET_PARAMETERS_CHANGED
events.
null
is returned.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_OBJECT
IlrContext getEngine()
The IlrContext
instance returned should
NOT be used as an identifier for the rule engine event
and must NOT be modified.
An IlrContext
instance can be changed during the
rule session life cycle, for example for transaction rollback.
null
if
the engine is not RCE.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.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:
Object[] getObjects()
BEGIN_SEQUENTIAL_INSTANCE
END_SEQUENTIAL_INSTANCE
INSERT_OBJECT
INSERT_LOGICAL
RETRACT_OBJECT
UPDATE_OBJECT
The returned objects must NOT be modified.
IlrRuleInstance getRuleInstance()
The returned instance must NOT be modified.
IlrRuleInstance
instance
associated with this event.IlrFunction getFunction()
DEFINE_FUNCTION
event.
The returned instance must NOT be modified.
IlrFunction
instance associated
with this event.Serializable getConnectionId()
null
is returned.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.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |