Package org.drools.audit.event

Examples of org.drools.audit.event.RuleFlowLogEvent


                event.getProcessInstance().getProcessName(),
                event.getProcessInstance().getId()) );
    }

    public void afterProcessStarted(ProcessStartedEvent event) {
        filterLogEvent(new RuleFlowLogEvent(LogEvent.AFTER_RULEFLOW_CREATED,
                event.getProcessInstance().getProcessId(),
                event.getProcessInstance().getProcessName(),
                event.getProcessInstance().getId()) );
    }
View Full Code Here


                event.getProcessInstance().getProcessName(),
                event.getProcessInstance().getId()) );
    }

    public void beforeProcessCompleted(ProcessCompletedEvent event) {
        filterLogEvent( new RuleFlowLogEvent( LogEvent.BEFORE_RULEFLOW_COMPLETED,
                event.getProcessInstance().getProcessId(),
                event.getProcessInstance().getProcessName(),
                event.getProcessInstance().getId()) );
    }
View Full Code Here

                event.getProcessInstance().getProcessName(),
                event.getProcessInstance().getId()) );
    }
   
    public void afterProcessCompleted(ProcessCompletedEvent event) {
        filterLogEvent(new RuleFlowLogEvent(LogEvent.AFTER_RULEFLOW_COMPLETED,
                event.getProcessInstance().getProcessId(),
                event.getProcessInstance().getProcessName(),
                event.getProcessInstance().getId()) );
    }
View Full Code Here

                    break;
                case LogEvent.AFTER_ACTIVATION_FIRE:
                    beforeEvents.pop();
                    break;
                case LogEvent.BEFORE_RULEFLOW_CREATED:
                    RuleFlowLogEvent inRuleFlowEvent = (RuleFlowLogEvent) inEvent;
                    event.setString("Process started: " + inRuleFlowEvent.getProcessName() + "[" + inRuleFlowEvent.getProcessId() + "]");
                    if (!beforeEvents.isEmpty()) {
                        ((Event) beforeEvents.peek()).addSubEvent(event);
                    } else {
                        events.add(event);
                    }
                    beforeEvents.push(event);
                    break;
                case LogEvent.AFTER_RULEFLOW_CREATED:
                    beforeEvents.pop();
                    break;
                case LogEvent.BEFORE_RULEFLOW_COMPLETED:
                    inRuleFlowEvent = (RuleFlowLogEvent) inEvent;
                    event.setString("Process completed: " + inRuleFlowEvent.getProcessName() + "[" + inRuleFlowEvent.getProcessId() + "]");
                    if (!beforeEvents.isEmpty()) {
                        ((Event) beforeEvents.peek()).addSubEvent(event);
                    } else {
                        events.add(event);
                    }
View Full Code Here

                    break;
                case LogEvent.AFTER_ACTIVATION_FIRE:
                    currentBeforeActivationEvent = null;
                    break;
                case 8:
                    RuleFlowLogEvent inRuleFlowEvent = (RuleFlowLogEvent) inEvent;
                    event.setString("RuleFlow started: " + inRuleFlowEvent.getProcessName() + "[" + inRuleFlowEvent.getProcessId() + "]");
                    if (currentBeforeActivationEvent != null) {
                        currentBeforeActivationEvent.addSubEvent(event);
                    } else {
                        events.add(event);
                    }
                    break;
                case 9:
                    inRuleFlowEvent = (RuleFlowLogEvent) inEvent;
                    event.setString("RuleFlow completed: " + inRuleFlowEvent.getProcessName() + "[" + inRuleFlowEvent.getProcessId() + "]");
                    if (currentBeforeActivationEvent != null) {
                        currentBeforeActivationEvent.addSubEvent(event);
                    } else {
                        events.add(event);
                    }
View Full Code Here

    }

    public void logEventCreated(LogEvent logEvent) {
        switch (logEvent.getType()) {
            case LogEvent.BEFORE_RULEFLOW_CREATED:
                RuleFlowLogEvent processEvent = (RuleFlowLogEvent) logEvent;
                addProcessLog(processEvent.getProcessInstanceId(), processEvent.getProcessId());
                break;
            case LogEvent.AFTER_RULEFLOW_COMPLETED:
              processEvent = (RuleFlowLogEvent) logEvent;
                updateProcessLog(processEvent.getProcessInstanceId());
                break;
            case LogEvent.BEFORE_RULEFLOW_NODE_TRIGGERED:
              RuleFlowNodeLogEvent nodeEvent = (RuleFlowNodeLogEvent) logEvent;
              addNodeEnterLog(nodeEvent.getProcessInstanceId(), nodeEvent.getProcessId(), nodeEvent.getNodeInstanceId(), nodeEvent.getNodeId());
                break;
View Full Code Here

    }

    public void logEventCreated(LogEvent logEvent) {
        switch (logEvent.getType()) {
            case LogEvent.BEFORE_RULEFLOW_CREATED:
                RuleFlowLogEvent processEvent = (RuleFlowLogEvent) logEvent;
                addProcessLog(processEvent.getProcessInstanceId(), processEvent.getProcessId());
                break;
            case LogEvent.AFTER_RULEFLOW_COMPLETED:
              processEvent = (RuleFlowLogEvent) logEvent;
                updateProcessLog(processEvent.getProcessInstanceId());
                break;
            case LogEvent.BEFORE_RULEFLOW_NODE_TRIGGERED:
              RuleFlowNodeLogEvent nodeEvent = (RuleFlowNodeLogEvent) logEvent;
              addNodeEnterLog(nodeEvent.getProcessInstanceId(), nodeEvent.getProcessId(), nodeEvent.getNodeInstanceId(), nodeEvent.getNodeId());
                break;
View Full Code Here

        // we don't audit this yet       
    }
   
    public void beforeRuleFlowStarted(RuleFlowStartedEvent event,
                            WorkingMemory workingMemory) {
        filterLogEvent( new RuleFlowLogEvent( LogEvent.BEFORE_RULEFLOW_CREATED,
            event.getProcessInstance().getProcessId(),
                event.getProcessInstance().getProcessName(),
                event.getProcessInstance().getId()) );
    }
View Full Code Here

                event.getProcessInstance().getId()) );
    }

    public void afterRuleFlowStarted(RuleFlowStartedEvent event,
                                     WorkingMemory workingMemory) {
        filterLogEvent(new RuleFlowLogEvent(LogEvent.AFTER_RULEFLOW_CREATED,
                event.getProcessInstance().getProcessId(),
                event.getProcessInstance().getProcessName(),
                event.getProcessInstance().getId()) );
    }
View Full Code Here

                event.getProcessInstance().getId()) );
    }

    public void beforeRuleFlowCompleted(RuleFlowCompletedEvent event,
                          WorkingMemory workingMemory) {
        filterLogEvent( new RuleFlowLogEvent( LogEvent.BEFORE_RULEFLOW_COMPLETED,
            event.getProcessInstance().getProcessId(),
                event.getProcessInstance().getProcessName(),
                event.getProcessInstance().getId()) );
    }
View Full Code Here

TOP

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

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.