Class RuleFlowLogEvent

  • Direct Known Subclasses:
    RuleFlowNodeLogEvent, RuleFlowVariableLogEvent

    public class RuleFlowLogEvent
    extends LogEvent
    A ruleflow event logged by the WorkingMemoryLogger. It is a snapshot of the event as it was thrown by the working memory. It contains the process name and id.
    • Constructor Detail

      • RuleFlowLogEvent

        public RuleFlowLogEvent​(int type,
                                org.kie.api.runtime.process.ProcessInstance processInstance)
      • RuleFlowLogEvent

        public RuleFlowLogEvent​(int type,
                                java.lang.String processId,
                                java.lang.String processName,
                                java.lang.Object processInstanceId)
        Create a new ruleflow log event.
        Parameters:
        type - The type of event. This can only be RULEFLOW_CREATED, RULEFLOW_COMPLETED, RULEFLOW_NODE_START or RULEFLOW_NODE_END.
        processId - The id of the process
        processName - The name of the process
    • Method Detail

      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Overrides:
        readExternal in class LogEvent
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Overrides:
        writeExternal in class LogEvent
        Throws:
        java.io.IOException
      • getProcessId

        public java.lang.String getProcessId()
      • getProcessName

        public java.lang.String getProcessName()
      • getProcessInstanceId

        public java.lang.Object getProcessInstanceId()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object