UNPKG

@5minds/processcube_engine

Version:

The ProcessCube Engine. Stores and executes BPMNs.

18 lines (17 loc) 1.53 kB
import { EventInstance, Model } from '@5minds/processcube_engine_sdk'; import { FlowNodeInstanceDatabaseAdapter } from '../../../Tools/DatabaseAdaptersSequelize/index'; import { EventMiddlewareHandler } from '../../../Tools/EventMiddlewareHandler'; import { ProcessInstance } from '../../ProcessInstance'; import { FlowNodeHandlerFactory } from '../FlowNodeHandlerFactory'; import { BoundaryEventHandler, BoundaryEventTriggerCallback } from './BoundaryEventHandler'; export declare class ConditionalBoundaryEventHandler extends BoundaryEventHandler<Model.Events.ConditionalBoundaryEvent> { private eventSubscriptions; constructor(eventMiddlewareHandler: EventMiddlewareHandler, flowNodeInstanceDatabaseAdapter: FlowNodeInstanceDatabaseAdapter, flowNodeHandlerFactory: FlowNodeHandlerFactory, boundaryEventModel: Model.Events.ConditionalBoundaryEvent, 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>; cancel(): Promise<void>; private waitForConditionFulfillment; private cancelEventSubscriptions; private executeAndCheckCondition; private getAdditionalInformationForError; }