Event

data class Event(val type: EventType, val eventId: Long, val objectId: Long, val properties: Set<Property> = emptySet(), val masterRefs: Map<String, Long> = emptyMap()) : JsonSerializable

Events are instances of EventTypes.

Parameters

type

The EventType of this Event.

eventId

The unique id of this Event.

objectId

The id of the BusinessObject to which this Event is targeted.

properties

The set of Property of this Event. There is one Property for each Attribute of the type. By default, all Propertys are set to null.

Constructors

Link copied to clipboard
constructor(type: EventType, eventId: Long, objectId: Long, properties: Set<Property> = emptySet(), masterRefs: Map<String, Long> = emptyMap())

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
operator fun <T> get(propertyName: String): Either<InstanceError, T?>
Link copied to clipboard
open override fun toJsonString(): String
Link copied to clipboard
open override fun toString(): String