Package org.drools.audit.event

Examples of org.drools.audit.event.ActivationLogEvent


    /**
     * @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

    switch (logEvent.getType()) {
    case LogEvent.ACTIVATION_CANCELLED:
    case LogEvent.ACTIVATION_CREATED:
      break;
    case LogEvent.BEFORE_ACTIVATION_FIRE:
      ActivationLogEvent ae = (ActivationLogEvent) logEvent;
      String msg = "FIRING rule: [" + ae.getRule() + "] activationId:" + ae.getActivationId() + " declarations: " + ae.getDeclarations() + (ae.getRuleFlowGroup() == null ? "" : " ruleflow-group: " + ae.getRuleFlowGroup());
      ls.add(new String[] {Integer.toString(logEvent.getType()), msg});
      break;
    default:
      ls.add(new String[] {Integer.toString(logEvent.getType()), logEvent.toString()});
      break;
View Full Code Here

        switch (logEvent.getType()) {
        case LogEvent.ACTIVATION_CANCELLED:
        case LogEvent.ACTIVATION_CREATED:
            break;
        case LogEvent.BEFORE_ACTIVATION_FIRE:
            ActivationLogEvent ae = (ActivationLogEvent) logEvent;
            String msg = "FIRING rule: [" + ae.getRule() + "] activationId:" + ae.getActivationId() + " declarations: " + ae.getDeclarations() + (ae.getRuleFlowGroup() == null ? "" : " ruleflow-group: " + ae.getRuleFlowGroup());
            ls.add(new String[] {Integer.toString(logEvent.getType()), msg});
            break;
        default:
            ls.add(new String[] {Integer.toString(logEvent.getType()), logEvent.toString()});
            break;
View Full Code Here

    switch (logEvent.getType()) {
    case LogEvent.ACTIVATION_CANCELLED:
    case LogEvent.ACTIVATION_CREATED:
      break;
    case LogEvent.BEFORE_ACTIVATION_FIRE:
      ActivationLogEvent ae = (ActivationLogEvent) logEvent;
      String msg = "FIRING rule: [" + ae.getRule() + "] activationId:" + ae.getActivationId() + " declarations: " + ae.getDeclarations() + (ae.getRuleFlowGroup() == null ? "" : " ruleflow-group: " + ae.getRuleFlowGroup());
      ls.add(new String[] {Integer.toString(logEvent.getType()), msg});
      break;
    default:
      ls.add(new String[] {Integer.toString(logEvent.getType()), logEvent.toString()});
      break;
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.