public class RuleFlowGroupImpl extends Object implements InternalRuleFlowGroup, InternalAgendaGroup
RuleFlowGroup that collects activations
of rules of this ruleflow-group.
If this group is activated, all its activations are added to the agenda.
As long as this group is active, its activations are added to the agenda.
Deactivating the group removes all its activations from the agenda and
collects them until it is activated again.
By default, RuleFlowGroups are automatically deactivated when there are no more
activations in the RuleFlowGroup. However, this can be configured.| Modifier and Type | Class and Description |
|---|---|
static class |
RuleFlowGroupImpl.DeactivateCallback |
MAIN| Constructor and Description |
|---|
RuleFlowGroupImpl() |
RuleFlowGroupImpl(String name,
boolean active,
boolean autoDeactivate) |
RuleFlowGroupImpl(String name,
InternalKnowledgeBase kBase)
Construct a
RuleFlowGroupImpl with the given name. |
public RuleFlowGroupImpl()
public RuleFlowGroupImpl(String name, InternalKnowledgeBase kBase)
RuleFlowGroupImpl with the given name.name - The RuleFlowGroup name.public RuleFlowGroupImpl(String name, boolean active, boolean autoDeactivate)
public String getName()
getName in interface org.kie.api.runtime.rule.AgendaGroupgetName in interface org.kie.api.runtime.rule.RuleFlowGrouppublic void setWorkingMemory(InternalWorkingMemory workingMemory)
setWorkingMemory in interface InternalAgendaGrouppublic InternalWorkingMemory getWorkingMemory()
getWorkingMemory in interface InternalAgendaGrouppublic void hasRuleFlowListener(boolean hasRuleFlowLister)
hasRuleFlowListener in interface InternalAgendaGrouppublic boolean isRuleFlowListener()
isRuleFlowListener in interface InternalAgendaGrouppublic Activation remove()
remove in interface InternalAgendaGrouppublic Activation peek()
peek in interface InternalAgendaGrouppublic void setActive(boolean active)
setActive in interface InternalAgendaGrouppublic boolean isActive()
public void setAutoFocusActivator(PropagationContext ctx)
public PropagationContext getAutoFocusActivator()
public boolean isAutoDeactivate()
isAutoDeactivate in interface InternalAgendaGrouppublic void setAutoDeactivate(boolean autoDeactivate)
InternalAgendaGroupsetAutoDeactivate in interface InternalAgendaGrouppublic void clear()
clear in interface org.kie.api.runtime.rule.AgendaGroupclear in interface org.kie.api.runtime.rule.RuleFlowGrouppublic void reset()
reset in interface InternalAgendaGrouppublic void setFocus()
setFocus in interface org.kie.api.runtime.rule.AgendaGrouppublic Activation[] getAndClear()
getAndClear in interface InternalAgendaGrouppublic void add(Activation activation)
add in interface InternalAgendaGrouppublic void addActivation(Activation activation)
public void remove(Activation activation)
remove in interface InternalAgendaGrouppublic void removeActivation(Activation activation)
public void deactivateIfEmpty()
public void addRuleFlowGroupListener(RuleFlowGroupListener listener)
public void removeRuleFlowGroupListener(RuleFlowGroupListener listener)
public void notifyRuleFlowGroupListeners()
public boolean isEmpty()
public Activation[] getActivations()
getActivations in interface InternalAgendaGrouppublic Iterator iterator()
public void addNodeInstance(Long processInstanceId, String nodeInstanceId)
addNodeInstance in interface InternalAgendaGrouppublic void removeNodeInstance(Long processInstanceId, String nodeInstanceId)
removeNodeInstance in interface InternalAgendaGrouppublic Map<Long,String> getNodeInstances()
getNodeInstances in interface InternalAgendaGrouppublic void setActivatedForRecency(long recency)
setActivatedForRecency in interface InternalAgendaGrouppublic long getActivatedForRecency()
getActivatedForRecency in interface InternalAgendaGrouppublic void setClearedForRecency(long recency)
setClearedForRecency in interface InternalAgendaGrouppublic long getClearedForRecency()
getClearedForRecency in interface InternalAgendaGrouppublic void visited()
visited in interface InternalAgendaGrouppublic int size()
public boolean isSequential()
isSequential in interface InternalAgendaGroupCopyright © 2001–2015 JBoss by Red Hat. All rights reserved.