Package io.automatiko.engine.api.event
Interface DataEvent<T>
-
- Type Parameters:
T- type of the body of the event
- All Known Implementing Classes:
AbstractDataEvent
public interface DataEvent<T>Represents top level data event structure that can be emitted from within running process, decision or rule. It's main aim is to be transferred over the wire but the event itself is not meant to do transformation to be "wire-friendly" Main point of the event is to be compatible with cloud events specification and thus comes with main fields that the spec defines. Classes implementing can provide more information to be considered extensions of the event - see cloud event extension elements.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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
-
getSpecversion
String getSpecversion()
Returns specification version of the cloud event- Returns:
- specification version
-
getId
String getId()
Returns unique id of the event- Returns:
- unique event id
-
getType
String getType()
Returns type of the event this instance represents e.g. ProcessInstanceEvent- Returns:
- type of the event
-
getSource
String getSource()
Returns source of the event that is in URI syntax- Returns:
- uri source
-
getTime
String getTime()
Returns returns time when the event was created- Returns:
- time of the event
-
getData
T getData()
Returns actual body of the event- Returns:
-
-