import { IEventAggregator, Subscription } from '@essential-projects/event_aggregator_contracts'; import { IIAMService, IIdentity, IIdentityService } from '@essential-projects/iam_contracts'; import { APIs, DataModels, Messages } from '@process-engine/management_api_contracts'; import { FlowNodeInstance, ICorrelationService, IFlowNodeInstanceService, IProcessModelUseCases } from '@process-engine/persistence_api.contracts'; import { IProcessModelFacadeFactory, IProcessTokenFacadeFactory } from '@process-engine/process_engine_contracts'; import { NotificationAdapter } from './adapters/index'; export declare class UserTaskService implements APIs.IUserTaskManagementApi { private readonly correlationService; private readonly eventAggregator; private readonly flowNodeInstanceService; private readonly identityService; private readonly iamService; private readonly notificationAdapter; private readonly processModelFacadeFactory; private readonly processModelUseCase; private readonly processTokenFacadeFactory; private internalIdentity; constructor(correlationService: ICorrelationService, eventAggregator: IEventAggregator, flowNodeInstanceService: IFlowNodeInstanceService, identityService: IIdentityService, iamService: IIAMService, notificationAdapter: NotificationAdapter, processModelFacadeFactory: IProcessModelFacadeFactory, processModelUse: IProcessModelUseCases, processTokenFacadeFactory: IProcessTokenFacadeFactory); initialize(): Promise; onUserTaskWaiting(identity: IIdentity, callback: Messages.CallbackTypes.OnUserTaskWaitingCallback, subscribeOnce?: boolean): Promise; onUserTaskFinished(identity: IIdentity, callback: Messages.CallbackTypes.OnUserTaskFinishedCallback, subscribeOnce?: boolean): Promise; onUserTaskForIdentityWaiting(identity: IIdentity, callback: Messages.CallbackTypes.OnUserTaskWaitingCallback, subscribeOnce?: boolean): Promise; onUserTaskForIdentityFinished(identity: IIdentity, callback: Messages.CallbackTypes.OnUserTaskFinishedCallback, subscribeOnce?: boolean): Promise; removeSubscription(identity: IIdentity, subscription: Subscription): Promise; getUserTasksForProcessModel(identity: IIdentity, processModelId: string, offset?: number, limit?: number): Promise; getUserTasksForProcessInstance(identity: IIdentity, processInstanceId: string, offset?: number, limit?: number): Promise; getUserTasksForCorrelation(identity: IIdentity, correlationId: string, offset?: number, limit?: number): Promise; getUserTasksForProcessModelInCorrelation(identity: IIdentity, processModelId: string, correlationId: string, offset?: number, limit?: number): Promise; getWaitingUserTasksByIdentity(identity: IIdentity, offset?: number, limit?: number): Promise; finishUserTask(identity: IIdentity, processInstanceId: string, correlationId: string, userTaskInstanceId: string, userTaskResult?: DataModels.UserTasks.UserTaskResult): Promise; filterAndConvertUserTaskList(identity: IIdentity, suspendedFlowNodes: Array, offset?: number, limit?: number): Promise; private convertFlowNodeInstancesToUserTasks; private checkIfIsFlowNodeIsUserTask; private checkIfIdentityUserIDsMatch; private filterInacessibleFlowNodeInstances; private checkIfUserCanAccessFlowNodeInstance; private ensureHasClaim; private checkIfUserIsSuperAdmin; private convertToManagementApiUserTask; private getProcessModelForFlowNodeInstance; private getProcessModelHashForProcessInstance; private convertToManagementApiFormField; private evaluateExpressionWithOldToken; private getUserTaskTokenInOldFormat; private getFlowNodeInstanceForCorrelationInProcessInstance; private createUserTaskResultForProcessEngine; private publishFinishUserTaskEvent; }