import { EventType } from '../Constants'; import { BoundaryEvent, EndEvent, Event, EventDefinition, IntermediateCatchEvent, IntermediateThrowEvent, StartEvent } from './EventBase'; /** * Describes a global BPMN Escalation object. */ export type Escalation = { id: string; escalationCode: string; name?: string; }; /** * Contains the definition for an EscalationEvent. */ export type EscalationEventDefinition = EventDefinition & Escalation; /** * Describes a Flow Node with a Escalation Event Definition. */ export type EscalationEvent = Event & { readonly eventType: EventType.escalationEvent; escalationEventDefinition: EscalationEventDefinition; }; export type EscalationBoundaryEvent = BoundaryEvent & EscalationEvent; export type EscalationStartEvent = StartEvent & EscalationEvent; export type EscalationEndEvent = EndEvent & EscalationEvent; export type EscalationIntermediateCatchEvent = IntermediateCatchEvent & EscalationEvent; export type EscalationIntermediateThrowEvent = IntermediateThrowEvent & EscalationEvent;