01: package org.drools.common;
02:
03: import org.drools.ruleflow.instance.RuleFlowProcessInstance;
04: import org.drools.spi.Activation;
05: import org.drools.spi.RuleFlowGroup;
06:
07: public interface InternalRuleFlowGroup extends RuleFlowGroup {
08:
09: void setWorkingMemory(InternalWorkingMemory workingMemory);
10:
11: InternalWorkingMemory getWorkingMemory();
12:
13: void addActivation(Activation activation);
14:
15: void removeActivation(final Activation activation);
16:
17: void clear();
18:
19: /**
20: * Activates or deactivates this <code>RuleFlowGroup</code>.
21: * When activating, all activations of this <code>RuleFlowGroup</code> are added
22: * to the agenda.
23: * As long as the <code>RuleFlowGroup</code> remains active,
24: * its activations are automatically added to the agenda.
25: * When deactivating, all activations of this <code>RuleFlowGroup</code> are removed
26: * to the agenda.
27: * As long as the <code>RuleFlowGroup</code> remains deactive,
28: * its activations are not added to the agenda.
29: */
30: void setActive(boolean active);
31:
32: boolean isActive();
33:
34: void triggerCompleted();
35:
36: RuleFlowProcessInstance getProcessInstance();
37:
38: }
|