Beispiel #1
0
 private void innerDeactiveRuleFlowGroup(InternalRuleFlowGroup group) {
   group.hasRuleFlowListener(false);
   group.getNodeInstances().clear();
   ((EventSupport) this.workingMemory)
       .getAgendaEventSupport()
       .fireAfterRuleFlowGroupDeactivated(group, this.workingMemory);
 }
Beispiel #2
0
 public void activateRuleFlowGroup(
     final InternalRuleFlowGroup group, long processInstanceId, String nodeInstanceId) {
   ((EventSupport) this.workingMemory)
       .getAgendaEventSupport()
       .fireBeforeRuleFlowGroupActivated(group, this.workingMemory);
   group.setActive(true);
   group.hasRuleFlowListener(true);
   if (!StringUtils.isEmpty(nodeInstanceId)) {
     group.addNodeInstance(processInstanceId, nodeInstanceId);
     group.setActive(true);
   }
   setFocus((InternalAgendaGroup) group);
   ((EventSupport) this.workingMemory)
       .getAgendaEventSupport()
       .fireAfterRuleFlowGroupActivated(group, this.workingMemory);
 }