Package io.automatiko.engine.api.event
Class AbstractDataEvent<T>
- java.lang.Object
-
- io.automatiko.engine.api.event.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 theDataEventthat 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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAutomatikAddons()StringgetAutomatikProcessId()StringgetAutomatikProcessinstanceId()StringgetAutomatikRootProcessId()StringgetAutomatikRootProcessinstanceId()TgetData()Returns actual body of the eventStringgetId()Returns unique id of the eventStringgetSource()Returns source of the event that is in URI syntaxStringgetSpecversion()Returns specification version of the cloud eventStringgetTime()Returns returns time when the event was createdStringgetType()Returns type of the event this instance represents e.g.
-
-
-
Method Detail
-
getSource
public String getSource()
Description copied from interface:DataEventReturns source of the event that is in URI syntax
-
getSpecversion
public String getSpecversion()
Description copied from interface:DataEventReturns specification version of the cloud event- Specified by:
getSpecversionin interfaceDataEvent<T>- Returns:
- specification version
-
getId
public String getId()
Description copied from interface:DataEventReturns unique id of the event
-
getType
public String getType()
Description copied from interface:DataEventReturns type of the event this instance represents e.g. ProcessInstanceEvent
-
getTime
public String getTime()
Description copied from interface:DataEventReturns returns time when the event was created
-
getData
public T getData()
Description copied from interface:DataEventReturns actual body of the event
-
getAutomatikProcessinstanceId
public String getAutomatikProcessinstanceId()
-
getAutomatikRootProcessinstanceId
public String getAutomatikRootProcessinstanceId()
-
getAutomatikProcessId
public String getAutomatikProcessId()
-
getAutomatikRootProcessId
public String getAutomatikRootProcessId()
-
getAutomatikAddons
public String getAutomatikAddons()
-
-