import { Item } from './Item'; import { Token } from './Token'; import { Process } from '../elements/'; import { EXECUTION_STATUS, IDefinition, NODE_ACTION } from '../'; import { IInstanceData, IExecution } from '../'; import { ServerComponent } from '../server'; import { InstanceObject } from './Model'; /** * is accessed two ways: * execute - start process * signal - invoke a node (userTask, event, etc.) * */ declare class Execution extends ServerComponent implements IExecution { instance: InstanceObject; tokens: Map; definition: IDefinition; process: Process; errors: any; item: any; messageMatchingKey: any; worker: any; userName: any; promises: any[]; servicesProvider: any; isLocked: boolean; options: any; operation: any; svg: string; get id(): any; get name(): any; get status(): EXECUTION_STATUS; get execution(): this; action: NODE_ACTION; tillDone(): Promise; get listener(): any; /** * * @param name process name * @param source bpmn source */ constructor(server: any, name: string, source: any, state?: any); getNodeById(id: any): import("../").Node; getToken(id: number): Token; private checkEnd; end(): Promise; /** * * causes the execution to stop from running any further * */ terminate(): void; /** * * causes the execution to stop from running any further * */ stop(): void; execute(startNodeId?: any, inputData?: {}, options?: {}, userName?: any): Promise; /** * @param executionId * @param inputData * */ assign(executionId: any, inputData: any, assignment: {}, userName: any, options?: {}): Promise; /** * * invoke scenarios: * itemId * elementId - but only one is active * elementId - for a startEvent in a secondary process * * @param executionId * @param inputData * */ signalItem(itemId: any, inputData: any, userName: any, options?: {}): Promise; signalItem2(itemId: any): Promise; /** * * restarting an already completed instance at a particular node * * @param itemId * @param inputData * */ restart(itemId: any, inputData: any, userName: any, options?: {}): Promise; signalEvent(executionId: any, inputData: any, userName: any, options?: {}): Promise; signalRepeatTimerEvent(executionId: any, prevItem: any, inputData: any, options?: {}): Promise; save(): Promise; getItems(): Item[]; getItemsData(): any[]; getState(): IInstanceData; private static findSavePoint; /** * re-enstate the execution from db * @param state */ static restore(server: any, state: IInstanceData, itemId?: any): Promise; restored(): Promise; resume(): Promise; reportToken(token: Token, level: any): void; report(): void; formatDate(date: any): string; uids: {}; getNewId(scope: string): number; getUUID(): string; doExecutionEvent(process: any, event: any, eventDetails?: {}): Promise; doItemEvent(item: any, event: any, eventDetails?: {}): Promise; log(...msg: any[]): void; logS(...msg: any[]): void; logE(...msg: any[]): void; info(...msg: any[]): void; error(msg: any): void; appendData(inputData: any, item: Item, dataPath?: any, assignment?: any): void; getData(dataPath: any): any; processQueue(): Promise; } export { Execution };