invoke

operator fun invoke(eventId: Long = -1L, objectId: Long = -1L, props: Map<String, Any?> = emptyMap(), masterRefs: Map<String, Long> = emptyMap()): EitherNel<InstanceError, Event>

This method enables creating instances of this EventType (called Events).

Return

If the provided property values are valid, returns a new Event of this EventType with the provided property values (props).

A NonEmptyList of InstanceErrors if one of the provided property values is invalid.

Parameters

eventId

The id of the Event to create. It must be unique in a given set of Events.

objectId

The id of the BusinessObject targeted by the Event.

props

A map of property names and values to set on the Event.