EventType

data class EventType(val name: String, var ownerType: BusinessObjectType, val ownerEffect: EventType.OwnedEffect, val attributes: Set<Attribute> = ownerType.attributes)

Represents an EventType in a Merode Model. These types can be instantiated as Events. The Events can be applied to BusinessObjects of the EventType.ownerType using the BusinessObject.handleEvent method.

Parameters

name

The name of the EventType.

ownerType

The BusinessObjectType that participates in the EventType with an owned method.

attributes

The Attributes of the EventType. These are the properties of the Events that can be created from this EventType.

ownerEffect

The effect of the EventType on the ownerType. This can be OwnedEffect.Create, OwnedEffect.Modify or OwnedEffect.End.

Constructors

Link copied to clipboard
constructor(name: String, ownerType: BusinessObjectType, ownerEffect: EventType.OwnedEffect, attributes: Set<Attribute> = ownerType.attributes)

Types

Link copied to clipboard

Properties

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

Functions

Link copied to clipboard
Link copied to clipboard
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).