UNPKG

@5minds/processcube_engine

Version:

The ProcessCube Engine. Stores and executes BPMNs.

19 lines (18 loc) 1.66 kB
import { EventInstance, Model } from '@5minds/processcube_engine_sdk'; import { FlowNodeInstanceDatabaseAdapter } from '../../../Tools/DatabaseAdaptersSequelize/index'; import { EventMiddlewareHandler } from '../../../Tools/EventMiddlewareHandler'; import { EscalationEventService } from '../../EscalationEventService'; import { ProcessInstance } from '../../ProcessInstance'; import { FlowNodeHandlerFactory } from '../FlowNodeHandlerFactory'; import { BoundaryEventHandler, BoundaryEventTriggerCallback } from './BoundaryEventHandler'; export declare class EscalationBoundaryEventHandler extends BoundaryEventHandler<Model.Events.EscalationBoundaryEvent> { protected boundaryEventModel: Model.Events.EscalationBoundaryEvent; private escalationEventService; private onEscalationSubscriptionId; constructor(eventMiddlewareHandler: EventMiddlewareHandler, flowNodeInstanceDatabaseAdapter: FlowNodeInstanceDatabaseAdapter, flowNodeHandlerFactory: FlowNodeHandlerFactory, boundaryEventModel: Model.Events.EscalationBoundaryEvent, processInstance: ProcessInstance, processTokenOfAttachedFlowNode: Record<string, any>, escalationEventService: EscalationEventService); execute(onTriggeredCallback: BoundaryEventTriggerCallback, attachedFlowNodeInstanceId: string, decoratedFlowNodeRejectFunc: Function): Promise<void>; resume(boundaryEventInstance: EventInstance, onTriggeredCallback: BoundaryEventTriggerCallback, attachedFlowNodeInstanceId: string, decoratedFlowNodeRejectFunc: Function, flowNodeInstances?: Array<EventInstance>): Promise<void>; finish(): Promise<void>; cancel(): Promise<void>; private waitForEscalation; }