@5minds/processcube_engine
Version:
The ProcessCube Engine. Stores and executes BPMNs.
34 lines (33 loc) • 1.7 kB
TypeScript
import { DataModels, IFlowNodeInstanceExtensionAdapter, Identity } from '@5minds/processcube_engine_sdk';
import { FlowNodeInstanceService } from '../../../Api/Services';
import { IdentityService } from '../../Iam';
export declare class FlowNodeInstanceExtensionAdapter implements IFlowNodeInstanceExtensionAdapter {
private readonly flowNodeInstanceService;
private readonly identityService;
private readonly logger;
constructor(flowNodeInstanceService: FlowNodeInstanceService, identityService: IdentityService);
query(query: DataModels.FlowNodeInstances.GenericFlowNodeInstanceQuery, options?: {
identity?: Identity;
offset?: number;
limit?: number;
sortSettings?: DataModels.FlowNodeInstances.FlowNodeInstanceSortSettings;
includeCount?: boolean;
}): Promise<DataModels.FlowNodeInstances.FlowNodeInstanceList>;
finishUntypedTask(taskInstanceId: string, identity?: Identity): Promise<void>;
finishManualTask(manualTaskInstanceId: string, identity?: Identity): Promise<void>;
finishUserTask(userTaskInstanceId: string, userTaskResult: DataModels.FlowNodeInstances.UserTaskResult, identity?: Identity): Promise<void>;
triggerMessageEvent<TPayload>(messageName: string, options?: {
customCorrelationId?: string;
processInstanceId?: string;
payload?: TPayload;
identity?: Identity;
messageChannel?: string;
}): Promise<void>;
triggerSignalEvent<TPayload>(signalName: string, options?: {
customCorrelationId?: string;
processInstanceId?: string;
payload?: TPayload;
identity?: Identity;
signalChannel?: string;
}): Promise<void>;
}