public abstract class Action
extends java.lang.Object
ruleengine.registerActionHandlerClass("nameofaction", ClientAction.Class);Whenever an action of the specified type is encountered during rule evaluation the action handler class will be instantiated and called by rule engine.
Constructor and Description |
---|
Action(RuleSession ruleSession,
IRule rule,
int actionNode)
Creates an action with the given ruleSession, IRule and Action *
|
Modifier and Type | Method and Description |
---|---|
abstract void |
execute()
Execute the given rule action based on rules condition.
|
int |
getActionNode()
Returns the action node as int Node
|
IRule |
getRule()
Returns the rule to which the action belongs to
|
RuleSession |
getRuleSession()
Returns the session to which the rule belongs to
|
void |
setActionNode(int actionNode)
Sets the action node int
|
void |
setRule(IRule rule)
Sets the rule for the action
|
void |
setRuleSession(RuleSession ruleSession)
Sets the rule session
|
public Action(RuleSession ruleSession, IRule rule, int actionNode)
public void setRuleSession(RuleSession ruleSession)
public void setActionNode(int actionNode)
public void setRule(IRule rule)
public RuleSession getRuleSession()
public int getActionNode()
public IRule getRule()
IRule
public abstract void execute() throws RuleActionException
actionNode
- the xml representation of the actionrule
- the Rule
in which the action is presentRuleActionException