Class AbstractDataEvent<T>

  • Type Parameters:
    T - the payload
    All Implemented Interfaces:
    DataEvent<T>

    public abstract class AbstractDataEvent<T>
    extends Object
    implements DataEvent<T>
    This is an abstract implementation of the DataEvent that contains basic common attributes referring to automatik processes metadata. This class can be extended mainly by Services that need to publish events to be indexed by the Data-Index service.
    • Constructor Detail

      • AbstractDataEvent

        public AbstractDataEvent​(String type,
                                 String source,
                                 T body,
                                 String automatikProcessinstanceId,
                                 String automatikRootProcessinstanceId,
                                 String automatikProcessId,
                                 String automatikRootProcessId,
                                 String automatikAddons)
    • Method Detail

      • getSource

        public String getSource()
        Description copied from interface: DataEvent
        Returns source of the event that is in URI syntax
        Specified by:
        getSource in interface DataEvent<T>
        Returns:
        uri source
      • getSpecversion

        public String getSpecversion()
        Description copied from interface: DataEvent
        Returns specification version of the cloud event
        Specified by:
        getSpecversion in interface DataEvent<T>
        Returns:
        specification version
      • getId

        public String getId()
        Description copied from interface: DataEvent
        Returns unique id of the event
        Specified by:
        getId in interface DataEvent<T>
        Returns:
        unique event id
      • getType

        public String getType()
        Description copied from interface: DataEvent
        Returns type of the event this instance represents e.g. ProcessInstanceEvent
        Specified by:
        getType in interface DataEvent<T>
        Returns:
        type of the event
      • getTime

        public String getTime()
        Description copied from interface: DataEvent
        Returns returns time when the event was created
        Specified by:
        getTime in interface DataEvent<T>
        Returns:
        time of the event
      • getData

        public T getData()
        Description copied from interface: DataEvent
        Returns actual body of the event
        Specified by:
        getData in interface DataEvent<T>
        Returns:
      • getAutomatikProcessinstanceId

        public String getAutomatikProcessinstanceId()
      • getAutomatikRootProcessinstanceId

        public String getAutomatikRootProcessinstanceId()
      • getAutomatikProcessId

        public String getAutomatikProcessId()
      • getAutomatikRootProcessId

        public String getAutomatikRootProcessId()
      • getAutomatikAddons

        public String getAutomatikAddons()