UNPKG

@5minds/processcube_engine

Version:

The ProcessCube Engine. Stores and executes BPMNs.

195 lines (194 loc) • 9.5 kB
import { INotificationExtensionAdapter, Identity, Messages, Subscription } from '@5minds/processcube_engine_sdk'; import { NotificationService } from '../../../Api/Services'; import { IdentityService } from '../../Iam'; export declare class NotificationExtensionAdapter implements INotificationExtensionAdapter { private readonly identityService; private readonly logger; private readonly notificationService; constructor(notificationService: NotificationService, identityService: IdentityService); removeSubscription(subscription: Subscription): void; onActivityError(callback: Messages.CallbackTypes.OnActivityErrorCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onProcessDeployed(callback: Messages.CallbackTypes.OnProcessDeployedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onProcessUndeployed(callback: Messages.CallbackTypes.OnProcessUndeployedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onProcessIsExecutableChanged(callback: Messages.CallbackTypes.OnProcessIsExecutableChangedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onCronjobEnabledChanged(callback: Messages.CallbackTypes.OnCronjobEnabledChangedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onProcessStarting(callback: Messages.CallbackTypes.OnProcessStartingCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onProcessStarted(callback: Messages.CallbackTypes.OnProcessStartedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onProcessResumed(callback: Messages.CallbackTypes.OnProcessStartedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onProcessEnded(callback: Messages.CallbackTypes.OnProcessEndedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onProcessOwnerChanged(callback: Messages.CallbackTypes.OnProcessOwnerChangedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onProcessTerminated(callback: Messages.CallbackTypes.OnProcessTerminatedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onProcessError(callback: Messages.CallbackTypes.OnProcessErrorCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onProcessInstancesDeleted(callback: Messages.CallbackTypes.OnProcessInstancesDeletedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onCronjobCreated(callback: Messages.CallbackTypes.OnCronjobCreatedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onCronjobStopped(callback: Messages.CallbackTypes.OnCronjobStoppedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onCronjobUpdated(callback: Messages.CallbackTypes.OnCronjobUpdatedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onCronjobExecuted(callback: Messages.CallbackTypes.OnCronjobExecutedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onCronjobRemoved(callback: Messages.CallbackTypes.OnCronjobRemovedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onActivityReached(callback: Messages.CallbackTypes.OnActivityReachedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onActivityFinished(callback: Messages.CallbackTypes.OnActivityFinishedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onActivityCanceled(callback: Messages.CallbackTypes.OnActivityCanceledCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onUntypedTaskWaiting(callback: Messages.CallbackTypes.OnUntypedTaskWaitingCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onUntypedTaskFinished(callback: Messages.CallbackTypes.OnUntypedTaskFinishedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onManualTaskWaiting(callback: Messages.CallbackTypes.OnManualTaskWaitingCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onManualTaskFinished(callback: Messages.CallbackTypes.OnManualTaskFinishedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onUserTaskWaiting(callback: Messages.CallbackTypes.OnUserTaskWaitingCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onUserTaskFinished(callback: Messages.CallbackTypes.OnUserTaskFinishedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onUserTaskReserved(callback: Messages.CallbackTypes.OnUserTaskReservedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onUserTaskReservationCanceled(callback: Messages.CallbackTypes.OnUserTaskReservationCanceledCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onBoundaryEventWaiting(callback: Messages.CallbackTypes.OnBoundaryEventWaitingCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onBoundaryEventTriggered(callback: Messages.CallbackTypes.OnBoundaryEventTriggeredCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onBoundaryEventFinished(callback: Messages.CallbackTypes.OnBoundaryEventFinishedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onIntermediateThrowEventTriggered(callback: Messages.CallbackTypes.OnIntermediateThrowEventTriggeredCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onIntermediateCatchEventReached(callback: Messages.CallbackTypes.OnIntermediateCatchEventReachedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onIntermediateCatchEventFinished(callback: Messages.CallbackTypes.OnIntermediateCatchEventFinishedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onFlowNodeEventRetrySending(callback: Messages.CallbackTypes.OnFlowNodeEventRetrySendingCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onMessageTriggered(callback: Messages.CallbackTypes.OnMessageTriggeredCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onSignalTriggered(callback: Messages.CallbackTypes.OnSignalTriggeredCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onStartEventFinished(callback: Messages.CallbackTypes.OnStartEventFinishedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onEndEventFinished(callback: Messages.CallbackTypes.OnEndEventFinishedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onExternalTaskCreated(callback: Messages.CallbackTypes.OnExternalTaskCreatedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onExternalTaskLocked(callback: Messages.CallbackTypes.OnExternalTaskLockedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onExternalTaskUnlocked(callback: Messages.CallbackTypes.OnExternalTaskUnlockedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onProcessInstanceMetadataChanged(callback: Messages.CallbackTypes.OnProcessInstanceMetadataChangedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onCorrelationMetadataChanged(callback: Messages.CallbackTypes.OnCorrelationMetadataChangedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; onGatewayFinished(callback: Messages.CallbackTypes.OnActivityFinishedCallback, options?: { subscribeOnce?: boolean; identity?: Identity; }): Promise<Subscription>; }