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.AgendaGroup
getName
in interface org.kie.api.runtime.rule.RuleFlowGroup
public void setWorkingMemory(InternalWorkingMemory workingMemory)
setWorkingMemory
in interface InternalAgendaGroup
public InternalWorkingMemory getWorkingMemory()
getWorkingMemory
in interface InternalAgendaGroup
public void hasRuleFlowListener(boolean hasRuleFlowLister)
hasRuleFlowListener
in interface InternalAgendaGroup
public boolean isRuleFlowListener()
isRuleFlowListener
in interface InternalAgendaGroup
public Activation remove()
remove
in interface InternalAgendaGroup
public Activation peek()
peek
in interface InternalAgendaGroup
public void setActive(boolean active)
setActive
in interface InternalAgendaGroup
public boolean isActive()
public void setAutoFocusActivator(PropagationContext ctx)
public PropagationContext getAutoFocusActivator()
public boolean isAutoDeactivate()
isAutoDeactivate
in interface InternalAgendaGroup
public void setAutoDeactivate(boolean autoDeactivate)
InternalAgendaGroup
setAutoDeactivate
in interface InternalAgendaGroup
public void clear()
clear
in interface org.kie.api.runtime.rule.AgendaGroup
clear
in interface org.kie.api.runtime.rule.RuleFlowGroup
public void reset()
reset
in interface InternalAgendaGroup
public void setFocus()
setFocus
in interface org.kie.api.runtime.rule.AgendaGroup
public Activation[] getAndClear()
getAndClear
in interface InternalAgendaGroup
public void add(Activation activation)
add
in interface InternalAgendaGroup
public void addActivation(Activation activation)
public void remove(Activation activation)
remove
in interface InternalAgendaGroup
public 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 InternalAgendaGroup
public Iterator iterator()
public void addNodeInstance(Long processInstanceId, String nodeInstanceId)
addNodeInstance
in interface InternalAgendaGroup
public void removeNodeInstance(Long processInstanceId, String nodeInstanceId)
removeNodeInstance
in interface InternalAgendaGroup
public Map<Long,String> getNodeInstances()
getNodeInstances
in interface InternalAgendaGroup
public void setActivatedForRecency(long recency)
setActivatedForRecency
in interface InternalAgendaGroup
public long getActivatedForRecency()
getActivatedForRecency
in interface InternalAgendaGroup
public void setClearedForRecency(long recency)
setClearedForRecency
in interface InternalAgendaGroup
public long getClearedForRecency()
getClearedForRecency
in interface InternalAgendaGroup
public void visited()
visited
in interface InternalAgendaGroup
public int size()
public boolean isSequential()
isSequential
in interface InternalAgendaGroup
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.