@5minds/processcube_engine
Version:
The ProcessCube Engine. Stores and executes BPMNs.
22 lines (21 loc) • 1.67 kB
TypeScript
import { EventInstance, Model } from '@5minds/processcube_engine_sdk';
import { FlowNodeInstanceDatabaseAdapter } from '../../../Tools/DatabaseAdaptersSequelize/index';
import { EventMiddlewareHandler } from '../../../Tools/EventMiddlewareHandler';
import { TimerFacade } from '../../Facades/TimerFacade';
import { ProcessInstance } from '../../ProcessInstance';
import { FlowNodeHandlerFactory } from '../FlowNodeHandlerFactory';
import { BoundaryEventHandler, BoundaryEventTriggerCallback } from './BoundaryEventHandler';
export declare class TimerBoundaryEventHandler extends BoundaryEventHandler<Model.Events.TimerBoundaryEvent> {
private readonly timerFacade;
protected boundaryEventModel: Model.Events.TimerBoundaryEvent;
private timerSubscription;
constructor(eventMiddlewareHandler: EventMiddlewareHandler, flowNodeInstanceDatabaseAdapter: FlowNodeInstanceDatabaseAdapter, flowNodeHandlerFactory: FlowNodeHandlerFactory, timerFacade: TimerFacade, boundaryEventModel: Model.Events.TimerBoundaryEvent, processInstance: ProcessInstance, processTokenOfAttachedFlowNode: Record<string, any>);
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 validateTimer;
private executeTimer;
private parseTimerValue;
private removeTimer;
}