Package org.drools.audit.event

Examples of org.drools.audit.event.ActivationLogEvent


    /**
     * @see org.drools.event.AgendaEventListener
     */
    public void beforeActivationFired(final BeforeActivationFiredEvent event,
                                      final WorkingMemory workingMemory) {
        filterLogEvent( new ActivationLogEvent( LogEvent.BEFORE_ACTIVATION_FIRE,
                                                getActivationId( event.getActivation() ),
                                                event.getActivation().getRule().getName(),
                                                extractDeclarations( event.getActivation(), workingMemory ),
                                                event.getActivation().getRule().getRuleFlowGroup() ) );
    }
View Full Code Here


    /**
     * @see org.drools.event.AgendaEventListener
     */
    public void afterActivationFired(final AfterActivationFiredEvent event,
                                     final WorkingMemory workingMemory) {
        filterLogEvent( new ActivationLogEvent( LogEvent.AFTER_ACTIVATION_FIRE,
                                                getActivationId( event.getActivation() ),
                                                event.getActivation().getRule().getName(),
                                                extractDeclarations( event.getActivation(), workingMemory ),
                                                event.getActivation().getRule().getRuleFlowGroup() ) );
    }
View Full Code Here

                    if (assertEvent != null) {
                        event.setCauseEvent(assertEvent);
                    }
                    break;
                case LogEvent.ACTIVATION_CREATED:
                    ActivationLogEvent inActivationEvent = (ActivationLogEvent) inEvent;
                    event.setString("Activation created: Rule " + inActivationEvent.getRule() + " " + inActivationEvent.getDeclarations());
                    newActivations.add(event);
                    activationMap.put(((ActivationLogEvent) inEvent).getActivationId(), event);
                    break;
                case LogEvent.ACTIVATION_CANCELLED:
                    inActivationEvent = (ActivationLogEvent) inEvent;
                    event.setString("Activation cancelled: Rule " + inActivationEvent.getRule() + " " + inActivationEvent.getDeclarations());
                    newActivations.add(event);
                    event.setCauseEvent((Event) activationMap.get(((ActivationLogEvent) inEvent).getActivationId()));
                    break;
                case LogEvent.BEFORE_ACTIVATION_FIRE:
                    inActivationEvent = (ActivationLogEvent) inEvent;
                    event.setString("Activation executed: Rule " + inActivationEvent.getRule() + " " + inActivationEvent.getDeclarations());
                    events.add(event);
                    beforeEvents.push(event);
                    event.setCauseEvent((Event) activationMap.get(((ActivationLogEvent) inEvent).getActivationId()));
                    break;
                case LogEvent.AFTER_ACTIVATION_FIRE:
View Full Code Here

                    if (assertEvent != null) {
                        event.setCauseEvent(assertEvent);
                    }
                    break;
                case LogEvent.ACTIVATION_CREATED:
                    ActivationLogEvent inActivationEvent = (ActivationLogEvent) inEvent;
                    event.setString("Activation created: Rule " + inActivationEvent.getRule() + " " + inActivationEvent.getDeclarations());
                    newActivations.add(event);
                    activationMap.put(((ActivationLogEvent) inEvent).getActivationId(), event);
                    break;
                case LogEvent.ACTIVATION_CANCELLED:
                    inActivationEvent = (ActivationLogEvent) inEvent;
                    event.setString("Activation cancelled: Rule " + inActivationEvent.getRule() + " " + inActivationEvent.getDeclarations());
                    newActivations.add(event);
                    event.setCauseEvent((Event) activationMap.get(((ActivationLogEvent) inEvent).getActivationId()));
                    break;
                case LogEvent.BEFORE_ACTIVATION_FIRE:
                    inActivationEvent = (ActivationLogEvent) inEvent;
                    event.setString("Activation executed: Rule " + inActivationEvent.getRule() + " " + inActivationEvent.getDeclarations());
                    events.add(event);
                    currentBeforeActivationEvent = event;
                    event.setCauseEvent((Event) activationMap.get(((ActivationLogEvent) inEvent).getActivationId()));
                    break;
                case LogEvent.AFTER_ACTIVATION_FIRE:
View Full Code Here

    /**
     * @see org.drools.event.AgendaEventListener
     */
    public void activationCreated(final ActivationCreatedEvent event,
                                  final WorkingMemory workingMemory) {
        filterLogEvent( new ActivationLogEvent( LogEvent.ACTIVATION_CREATED,
                                                getActivationId( event.getActivation() ),
                                                event.getActivation().getRule().getName(),
                                                extractDeclarations( event.getActivation(), workingMemory ),
                          event.getActivation().getRule().getRuleFlowGroup() ) );
  }
View Full Code Here

    /**
     * @see org.drools.event.AgendaEventListener
     */
    public void activationCancelled(final ActivationCancelledEvent event,
                                    final WorkingMemory workingMemory) {
        filterLogEvent( new ActivationLogEvent( LogEvent.ACTIVATION_CANCELLED,
                                                getActivationId( event.getActivation() ),
                                                event.getActivation().getRule().getName(),
                                                extractDeclarations( event.getActivation(), workingMemory ),
                          event.getActivation().getRule().getRuleFlowGroup() ) );
    }
View Full Code Here

    /**
     * @see org.drools.event.AgendaEventListener
     */
    public void beforeActivationFired(final BeforeActivationFiredEvent event,
                                      final WorkingMemory workingMemory) {
        filterLogEvent( new ActivationLogEvent( LogEvent.BEFORE_ACTIVATION_FIRE,
                                                getActivationId( event.getActivation() ),
                                                event.getActivation().getRule().getName(),
                                                extractDeclarations( event.getActivation(), workingMemory ),
                          event.getActivation().getRule().getRuleFlowGroup() ) );
    }
View Full Code Here

    /**
     * @see org.drools.event.AgendaEventListener
     */
    public void afterActivationFired(final AfterActivationFiredEvent event,
                                     final WorkingMemory workingMemory) {
        filterLogEvent( new ActivationLogEvent( LogEvent.AFTER_ACTIVATION_FIRE,
                                                getActivationId( event.getActivation() ),
                                                event.getActivation().getRule().getName(),
                                                extractDeclarations( event.getActivation(), workingMemory ),
                          event.getActivation().getRule().getRuleFlowGroup() ) );
    }
View Full Code Here

    /**
     * @see org.drools.event.AgendaEventListener
     */
    public void activationCreated(final ActivationCreatedEvent event,
                                  final WorkingMemory workingMemory) {
        filterLogEvent( new ActivationLogEvent( LogEvent.ACTIVATION_CREATED,
                                                getActivationId( event.getActivation() ),
                                                event.getActivation().getRule().getName(),
                                                extractDeclarations( event.getActivation(), workingMemory ),
                          event.getActivation().getRule().getRuleFlowGroup() ) );
  }
View Full Code Here

    /**
     * @see org.drools.event.AgendaEventListener
     */
    public void activationCancelled(final ActivationCancelledEvent event,
                                    final WorkingMemory workingMemory) {
        filterLogEvent( new ActivationLogEvent( LogEvent.ACTIVATION_CANCELLED,
                                                getActivationId( event.getActivation() ),
                                                event.getActivation().getRule().getName(),
                                                extractDeclarations( event.getActivation(), workingMemory ),
                          event.getActivation().getRule().getRuleFlowGroup() ) );
    }
View Full Code Here

TOP

Related Classes of org.drools.audit.event.ActivationLogEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.