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
object Id
The id of the BusinessObject targeted by the Event.
props
A map of property names and values to set on the Event.