import { BaseElement } from '../Base/BaseElement'; import { EventType } from '../Constants'; import { BoundaryEvent, EndEvent, Event, EventDefinition, StartEvent } from './EventBase'; /** * Describes a BPMN error used by Error End Events and Error Boundary Events. */ export type Error = BaseElement & { name?: string; code?: string; message?: string; }; /** * Contains the definition for an ErrorEvent. */ export type ErrorEventDefinition = EventDefinition & { name?: string; code?: string; message?: string; }; /** * Describes a Flow Node with an Error Event Definition. */ export type ErrorEvent = Event & { readonly eventType: EventType.errorEvent; errorEventDefinition: ErrorEventDefinition; }; export type ErrorBoundaryEvent = BoundaryEvent & ErrorEvent; export type ErrorStartEvent = StartEvent & ErrorEvent; export type ErrorEndEvent = EndEvent & ErrorEvent;