Package org.drools.core.common
Interface InternalAgenda
- All Superinterfaces:
ActivationsManager,Agenda
-
Field Summary
Fields inherited from interface org.drools.core.common.ActivationsManager
ON_AFTER_ALL_FIRES_CONSEQUENCE_NAME, ON_BEFORE_ALL_FIRES_CONSEQUENCE_NAME, ON_DELETE_MATCH_CONSEQUENCE_NAME -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()voidactivateRuleFlowGroup(String name) Activates theRuleFlowGroupwith the given name.voidactivateRuleFlowGroup(String name, String processInstanceId, String nodeInstanceId) Activates theRuleFlowGroupwith the given name.voidClears all Activations from the AgendavoidClears all Activations from an Activation-Group.voidClears all Activations from an Agenda Group.voidvoidbooleanvoidintfireAllRules(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.voidKeeps firing activations until a halt is called.voidfireUntilHalt(AgendaFilter agendaFilter) Keeps firing activations until a halt is called.Returns the name of the agenda group that currently has the focusReturns the WorkignMemory for this Agendavoidhalt()Stop agenda from firing any other rule.booleanbooleanisAlive()booleanbooleanbooleanisRuleActiveInRuleFlowGroup(String ruleflowGroupName, String ruleName, String processInstanceId) voidvoidreset()voidSets a filter that prevents activations from being added to the agenda.booleanSets the Agenda's focus to the specified AgendaGroupintbooleanMethods inherited from interface org.drools.core.common.ActivationsManager
addEagerRuleAgendaItem, addItemToActivationGroup, addPropagation, addQueryAgendaItem, cancelActivation, clearAndCancelActivationGroup, createAgendaItem, createRuleAgendaItem, evaluateEagerList, evaluateQueriesForRule, executeTask, flushPropagations, getActivationsFilter, getAgendaEventSupport, getAgendaGroupsManager, getKnowledgeHelper, getPartitionedAgenda, getPartitionedAgendaForNode, getReteEvaluator, haltGroupEvaluation, handleException, isFiring, peekNextRule, registerExpiration, removeEagerRuleAgendaItem, removeQueryAgendaItem, resetKnowledgeHelper, stageLeftTupleMethods inherited from interface org.kie.api.runtime.rule.Agenda
clear, getActivationGroup, getAgendaGroup, getRuleFlowGroup
-
Method Details
-
getWorkingMemory
InternalWorkingMemory getWorkingMemory()Returns the WorkignMemory for this Agenda- Returns:
- The WorkingMemory
-
setFocus
Sets the Agenda's focus to the specified AgendaGroup- Returns:
- true if the AgendaGroup is changed
-
activateRuleFlowGroup
Activates theRuleFlowGroupwith the given name. All activations in the givenRuleFlowGroupare added to the agenda. As long as theRuleFlowGroupremains active, its activations are automatically added to the agenda. -
activateRuleFlowGroup
Activates theRuleFlowGroupwith the given name. All activations in the givenRuleFlowGroupare added to the agenda. As long as theRuleFlowGroupremains active, its activations are automatically added to the agenda. The given processInstanceId and nodeInstanceId define the process context in which thisRuleFlowGroupis used. -
clearAndCancel
void clearAndCancel()Clears all Activations from the Agenda -
clearAndCancelAgendaGroup
Clears all Activations from an Agenda Group. Any Activations that are also in an Xor Group are removed the the Xor Group. -
clearAndCancelActivationGroup
Clears all Activations from an Activation-Group. Any Activations that are also in an Agenda Group are removed from the Agenda Group.- Specified by:
clearAndCancelActivationGroupin interfaceActivationsManager
-
clearAndCancelRuleFlowGroup
-
getFocusName
String getFocusName()Returns the name of the agenda group that currently has the focus -
isDeclarativeAgenda
boolean isDeclarativeAgenda() -
fireAllRules
Fires all activations currently in agenda that match the given agendaFilter until the fireLimit is reached or no more activations exist.- Specified by:
fireAllRulesin interfaceActivationsManager- Parameters:
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.- Returns:
- the number of rules that were actually fired
-
halt
void halt()Stop agenda from firing any other rule. It will finish the current rule execution though. -
fireUntilHalt
void fireUntilHalt()Keeps firing activations until a halt is called. If in a given moment, there is no activation to fire, it will wait for an activation to be added to an active agenda group or rule flow group. -
fireUntilHalt
Keeps firing activations until a halt is called. If in a given moment, there is no activation to fire, it will wait for an activation to be added to an active agenda group or rule flow group.- Parameters:
agendaFilter- filters the activations that may fire
-
dispose
-
isAlive
boolean isAlive() -
reset
void reset() -
setActivationsFilter
Sets a filter that prevents activations from being added to the agenda. -
executeFlush
void executeFlush() -
activate
void activate() -
deactivate
void deactivate() -
tryDeactivate
boolean tryDeactivate() -
getActivationGroupsMap
Map<String,InternalActivationGroup> getActivationGroupsMap() -
sizeOfRuleFlowGroup
-
isRuleActiveInRuleFlowGroup
-
notifyWaitOnRest
void notifyWaitOnRest() -
getActionsIterator
Iterator<PropagationEntry> getActionsIterator() -
hasPendingPropagations
boolean hasPendingPropagations() -
isParallelAgenda
boolean isParallelAgenda()
-