|
Drools :: Core 6.0.0.Beta5 | |||||||||
| 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 |
addAgendaItemToGroup(AgendaItem item)
|
void |
addEagerRuleAgendaItem(RuleAgendaItem item)
|
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)
|
AgendaItem |
createAgendaItem(LeftTuple tuple,
int salience,
PropagationContext context,
TerminalNode rtn,
RuleAgendaItem ruleAgendaItem,
InternalAgendaGroup agendaGroup)
|
RuleAgendaItem |
createRuleAgendaItem(int salience,
PathMemory rs,
TerminalNode rtn)
|
ScheduledAgendaItem |
createScheduledAgendaItem(LeftTuple tuple,
PropagationContext context,
TerminalNode rtn,
InternalAgendaGroup agendaGroup)
|
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)
|
long |
getNextActivationCounter()
|
RuleFlowGroup |
getRuleFlowGroup(String name)
|
LinkedList<ScheduledAgendaItem> |
getScheduledActivationsLinkedList()
|
void |
halt()
Stop agenda from firing any other rule. |
void |
insertAndStageActivation(AgendaItem activation)
|
boolean |
isDeclarativeAgenda()
|
boolean |
isFireUntilHalt()
|
boolean |
isRuleInstanceAgendaItem(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()
|
RuleAgendaItem |
peekNextRule()
|
void |
removeActivation(AgendaItem activation)
|
void |
removeEagerRuleAgendaItem(RuleAgendaItem item)
|
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. |
boolean |
setFocus(AgendaGroup agendaGroup)
|
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,
RuleAgendaItem ruleAgendaItem,
InternalAgendaGroup agendaGroup)
ScheduledAgendaItem createScheduledAgendaItem(LeftTuple tuple,
PropagationContext context,
TerminalNode rtn,
InternalAgendaGroup agendaGroup)
boolean createActivation(LeftTuple tuple,
PropagationContext context,
InternalWorkingMemory workingMemory,
TerminalNode rtn)
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 isRuleInstanceAgendaItem(String ruleflowGroupName,
String ruleName,
long processInstanceId)
ruleflowGroupName - ruleName -
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()
RuleAgendaItem createRuleAgendaItem(int salience,
PathMemory rs,
TerminalNode rtn)
RuleAgendaItem peekNextRule()
boolean continueFiring(int fireLimit)
void insertAndStageActivation(AgendaItem activation)
void addAgendaItemToGroup(AgendaItem item)
void addEagerRuleAgendaItem(RuleAgendaItem item)
void removeEagerRuleAgendaItem(RuleAgendaItem item)
long getNextActivationCounter()
boolean setFocus(AgendaGroup agendaGroup)
boolean isFireUntilHalt()
|
Drools :: Core 6.0.0.Beta5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||