Class BEvent

    • Constructor Detail

      • BEvent

        public BEvent​(String processName,
                      String caseId,
                      String activityName,
                      Date time,
                      Collection<org.apache.commons.lang3.tuple.Pair<String,​String>> eventAttributes)
               throws EventException
        Creates a new BEvent referring to one event
        Parameters:
        processName - the name of the process
        activityName - the name of the activity
        caseId - the identifier of the process instance
        time - the time when the event has happened
        eventAttributes - a collection of string attributes for the event
        Throws:
        EventException - this exception is thrown is incomplete information is provided
      • BEvent

        public BEvent​(String processName,
                      String caseId,
                      String activityName,
                      Date time)
               throws EventException
        Creates a new BEvent referring to one event
        Parameters:
        processName - the name of the process
        activityName - the name of the activity
        caseId - the identifier of the process instance
        time - the time when the event has happened
        Throws:
        EventException - this exception is thrown is incomplete information is provided
      • BEvent

        public BEvent​(String processName,
                      String caseId,
                      String activityName)
               throws EventException
        Creates a new BEvent referring to one event
        Parameters:
        processName - the name of the process
        activityName - the name of the activity
        caseId - the identifier of the process instance
        Throws:
        EventException - this exception is thrown is incomplete information is provided
    • Method Detail

      • setProcessName

        public void setProcessName​(String name)
        Sets the process name
        Parameters:
        name - the process name
      • getProcessName

        public String getProcessName()
        Gets the process name
        Returns:
        the process name
      • setTraceName

        public void setTraceName​(String name)
        Sets the trace name (a.k.a. case id)
        Parameters:
        name - the trace name
      • getTraceName

        public String getTraceName()
        Gets the trace name (a.k.a. case id)
        Returns:
        the trace name
      • setEventName

        public void setEventName​(String name)
        Sets the event name (a.k.a. activity name)
        Parameters:
        name - the event name
      • getEventName

        public String getEventName()
        Gets the event name (a.k.a. activity name)
        Returns:
        the event name
      • setTimestamp

        public void setTimestamp​(Date timestamp)
        Sets the event time
        Parameters:
        timestamp - the event time
      • getEventTime

        public Date getEventTime()
        Gets the event time
        Returns:
        the event time
      • getEventAttributes

        public Map<String,​Serializable> getEventAttributes()
        Gets all event level attributes
        Returns:
        the attributes
      • getTraceAttributes

        public Map<String,​Serializable> getTraceAttributes()
        Gets all trace level attributes
        Returns:
        the attributes
      • getProcessAttributes

        public Map<String,​Serializable> getProcessAttributes()
        Gets all process level attributes
        Returns:
        the attributes
      • setEventAttribute

        public void setEventAttribute​(String name,
                                      Serializable value)
        Sets a event level attribute
        Parameters:
        name - the attribute name
        value - the attribute value
      • setEventAttribute

        public void setEventAttribute​(String name,
                                      org.deckfour.xes.model.XAttribute value)
        Sets a event level attribute
        Parameters:
        name - the attribute name
        value - the attribute value
      • setTraceAttribute

        public void setTraceAttribute​(String name,
                                      Serializable value)
        Sets a trace level attribute
        Parameters:
        name - the attribute name
        value - the attribute value
      • setTraceAttribute

        public void setTraceAttribute​(String name,
                                      org.deckfour.xes.model.XAttribute value)
        Sets a trace level attribute
        Parameters:
        name - the attribute name
        value - the attribute value
      • setProcessAttribute

        public void setProcessAttribute​(String name,
                                        Serializable value)
        Sets a process level attribute
        Parameters:
        name - the attribute name
        value - the attribute value
      • setProcessAttribute

        public void setProcessAttribute​(String name,
                                        org.deckfour.xes.model.XAttribute value)
        Sets a process level attribute
        Parameters:
        name - the attribute name
        value - the attribute value
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object