|
Drools :: Core 6.0.0.Beta2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InternalAgenda
| Method Summary | |
|---|---|
boolean |
addActivation(AgendaItem activation)
Adds the activation to the agenda. |
void |
addAgendaGroup(AgendaGroup agendaGroup)
|
void |
addRuleFlowGroupListener(String ruleFlowGroup,
RuleFlowGroupListener listener)
Adds a RuleFlowGroupListerner to the named RuleFlowGroup |
void |
cancelActivation(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory,
Activation activation,
TerminalNode rtn)
|
void |
clear()
|
boolean |
continueFiring(int fireLimit)
|
boolean |
createActivation(LeftTuple tuple,
PropagationContext context,
InternalWorkingMemory workingMemory,
TerminalNode rtn,
boolean reuseActivation)
|
AgendaItem |
createAgendaItem(LeftTuple tuple,
int salience,
PropagationContext context,
TerminalNode rtn,
RuleNetworkEvaluatorActivation ruleNetworkEvaluatorActivation)
|
RuleNetworkEvaluatorActivation |
createRuleNetworkEvaluatorActivation(int salience,
PathMemory rs,
TerminalNode rtn)
|
ScheduledAgendaItem |
createScheduledAgendaItem(LeftTuple tuple,
PropagationContext context,
TerminalNode rtn)
|
void |
fireActivation(Activation activation)
|
int |
fireAllRules(AgendaFilter agendaFilter,
int fireLimit)
Fires all activations currently in agenda that match the given agendaFilter until the fireLimit is reached or no more activations exist. |
int |
fireNextItem(AgendaFilter filter,
int fireCount,
int fireLimit)
|
boolean |
fireTimedActivation(Activation activation,
boolean saveForLater)
|
void |
fireUntilHalt()
Keeps firing activations until a halt is called. |
void |
fireUntilHalt(AgendaFilter agendaFilter)
Keeps firing activations until a halt is called. |
ActivationGroup |
getActivationGroup(String name)
|
ActivationsFilter |
getActivationsFilter()
Returns the current activations filter or null if none is set |
AgendaGroup |
getAgendaGroup(String name)
|
RuleFlowGroup |
getRuleFlowGroup(String name)
|
LinkedList<ScheduledAgendaItem> |
getScheduledActivationsLinkedList()
|
void |
halt()
Stop agenda from firing any other rule. |
void |
insertAndStageActivation(AgendaItem activation)
|
boolean |
isDeclarativeAgenda()
|
boolean |
isRuleActiveInRuleFlowGroup(String ruleflowGroupName,
String ruleName,
long processInstanceId)
Returns true if there is at least one activation of the given rule name in the given ruleflow group name |
void |
modifyActivation(AgendaItem activation,
boolean previouslyActive)
|
void |
notifyHalt()
|
RuleNetworkEvaluatorActivation |
peekNextRule()
|
void |
removeActivation(AgendaItem activation)
|
void |
removeRuleFlowGroupListener(String ruleFlowGroup,
RuleFlowGroupListener listener)
Removes the given RuleFlowGroupListener from the list of listeners of the named RuleFlowGroup |
void |
removeScheduleItem(ScheduledAgendaItem item)
|
void |
scheduleItem(ScheduledAgendaItem item,
InternalWorkingMemory workingMemory)
|
void |
setActivationsFilter(ActivationsFilter filter)
Sets a filter that prevents activations from being added to the agenda. |
void |
setWorkingMemory(InternalWorkingMemory workingMemory)
|
| Method Detail |
|---|
void fireActivation(Activation activation)
throws ConsequenceException
ConsequenceException
boolean fireTimedActivation(Activation activation,
boolean saveForLater)
throws ConsequenceException
ConsequenceExceptionvoid removeScheduleItem(ScheduledAgendaItem item)
LinkedList<ScheduledAgendaItem> getScheduledActivationsLinkedList()
int fireNextItem(AgendaFilter filter,
int fireCount,
int fireLimit)
throws ConsequenceException
ConsequenceException
void scheduleItem(ScheduledAgendaItem item,
InternalWorkingMemory workingMemory)
AgendaItem createAgendaItem(LeftTuple tuple,
int salience,
PropagationContext context,
TerminalNode rtn,
RuleNetworkEvaluatorActivation ruleNetworkEvaluatorActivation)
ScheduledAgendaItem createScheduledAgendaItem(LeftTuple tuple,
PropagationContext context,
TerminalNode rtn)
boolean createActivation(LeftTuple tuple,
PropagationContext context,
InternalWorkingMemory workingMemory,
TerminalNode rtn,
boolean reuseActivation)
void cancelActivation(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory,
Activation activation,
TerminalNode rtn)
boolean addActivation(AgendaItem activation)
activation -
void removeActivation(AgendaItem activation)
void modifyActivation(AgendaItem activation,
boolean previouslyActive)
void addAgendaGroup(AgendaGroup agendaGroup)
boolean isDeclarativeAgenda()
boolean isRuleActiveInRuleFlowGroup(String ruleflowGroupName,
String ruleName,
long processInstanceId)
ruleflowGroupName - ruleName -
void addRuleFlowGroupListener(String ruleFlowGroup,
RuleFlowGroupListener listener)
ruleFlowGroup - listener -
void removeRuleFlowGroupListener(String ruleFlowGroup,
RuleFlowGroupListener listener)
ruleFlowGroup - listener - void clear()
clear in interface org.kie.api.runtime.rule.Agendavoid setWorkingMemory(InternalWorkingMemory workingMemory)
int fireAllRules(AgendaFilter agendaFilter,
int fireLimit)
agendaFilter - the filter on which activations may fire.fireLimit - the maximum number of activations that may fire. If -1, then it will
fire until no more activations exist.limit -
void halt()
void notifyHalt()
void fireUntilHalt()
void fireUntilHalt(AgendaFilter agendaFilter)
agendaFilter - filters the activations that may fireAgendaGroup getAgendaGroup(String name)
getAgendaGroup in interface org.kie.api.runtime.rule.AgendaActivationGroup getActivationGroup(String name)
getActivationGroup in interface org.kie.api.runtime.rule.AgendaRuleFlowGroup getRuleFlowGroup(String name)
getRuleFlowGroup in interface org.kie.api.runtime.rule.Agendavoid setActivationsFilter(ActivationsFilter filter)
filter - ActivationsFilter getActivationsFilter()
RuleNetworkEvaluatorActivation createRuleNetworkEvaluatorActivation(int salience,
PathMemory rs,
TerminalNode rtn)
RuleNetworkEvaluatorActivation peekNextRule()
boolean continueFiring(int fireLimit)
void insertAndStageActivation(AgendaItem activation)
|
Drools :: Core 6.0.0.Beta2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||