コード例 #1
0
 public void beforeRuleFlowGroupDeactivated(
     RuleFlowGroupDeactivatedEvent event, WorkingMemory workingMemory) {
   listener.afterRuleFlowGroupDeactivated(
       new RuleFlowGroupDeactivatedEventImpl(
           event.getRuleFlowGroup(),
           ((InternalWorkingMemory) workingMemory).getKnowledgeRuntime()));
 }
コード例 #2
0
 public void beforeActivationFired(
     BeforeActivationFiredEvent event, WorkingMemory workingMemory) {
   listener.beforeMatchFired(
       new BeforeActivationFiredEventImpl(
           event.getActivation(),
           ((InternalWorkingMemory) workingMemory).getKnowledgeRuntime()));
 }
コード例 #3
0
    public void activationCancelled(ActivationCancelledEvent event, WorkingMemory workingMemory) {

      listener.matchCancelled(
          new ActivationCancelledEventImpl(
              event.getActivation(),
              ((InternalWorkingMemory) workingMemory).getKnowledgeRuntime(),
              event.getCause()));
    }
コード例 #4
0
 /**
  * Since this is a class adapter for API compatibility, the equals() and hashCode() methods
  * simply delegate the calls to the wrapped instance. That is implemented this way in order for
  * them to be able to match corresponding instances in internal hash-based maps and sets.
  */
 @Override
 public int hashCode() {
   return listener != null ? listener.hashCode() : 0;
 }
コード例 #5
0
 public void agendaGroupPushed(AgendaGroupPushedEvent event, WorkingMemory workingMemory) {
   listener.agendaGroupPushed(
       new AgendaGroupPushedEventImpl(
           event.getAgendaGroup(),
           ((InternalWorkingMemory) workingMemory).getKnowledgeRuntime()));
 }
コード例 #6
0
 public void afterActivationFired(AfterActivationFiredEvent event, WorkingMemory workingMemory) {
   listener.afterMatchFired(
       new AfterActivationFiredEventImpl(
           event.getActivation(),
           ((InternalWorkingMemory) workingMemory).getKnowledgeRuntime()));
 }