import { CronjobEventMessage, ProcessDeploymentMessage, ProcessIsExecutableChangedMessage } from '@5minds/processcube_engine_sdk'; import { KillProcessInstanceMessage } from './Payloads/KillProcessInstanceMessage'; import { EventMessageInternal, ExternalTaskCreatedMessageInternal, ExternalTaskExpiredMessageInternal, ExternalTaskLockedMessageInternal, ExternalTaskUnlockedMessageInternal, ProcessDeploymentMessageInternal, UserTaskFinishedMessageInternal } from './Payloads/index'; export type OnProcessDeployedCallback = (message: ProcessDeploymentMessageInternal) => void | Promise; export type OnProcessIsExecutableChangedCallback = (message: ProcessIsExecutableChangedMessage) => void | Promise; export type OnProcessUndeployedCallback = (message: ProcessDeploymentMessage) => void | Promise; export type OnBoundaryEventTriggeredCallback = (boundaryEventTriggered: EventMessageInternal) => void | Promise; export type OnBoundaryEventFinishedCallback = (boundaryEventFinished: EventMessageInternal) => void | Promise; export type OnIntermediateThrowEventTriggeredCallback = (intermediateThrowEventTriggered: EventMessageInternal) => void | Promise; export type OnIntermediateCatchEventReachedCallback = (intermediateCatchEventReached: EventMessageInternal) => void | Promise; export type OnIntermediateCatchEventFinishedCallback = (intermediateCatchEventFinished: EventMessageInternal) => void | Promise; export type OnActivityReachedCallback = (activityReached: EventMessageInternal) => void | Promise; export type OnActivityFinishedCallback = (activityFinished: EventMessageInternal) => void | Promise; export type OnActivityCanceledCallback = (activityCanceled: EventMessageInternal) => void | Promise; export type OnUntypedTaskWaitingCallback = (taskWaiting: EventMessageInternal) => void | Promise; export type OnUntypedTaskFinishedCallback = (taskFinished: EventMessageInternal) => void | Promise; export type OnManualTaskWaitingCallback = (manualTaskWaiting: EventMessageInternal) => void | Promise; export type OnManualTaskFinishedCallback = (manualTaskFinished: EventMessageInternal) => void | Promise; export type OnUserTaskWaitingCallback = (userTaskWaiting: EventMessageInternal) => void | Promise; export type OnUserTaskFinishedCallback = (userTaskFinished: UserTaskFinishedMessageInternal) => void | Promise; export type OnUserTaskReservedCallback = (userTaskReserved: EventMessageInternal) => void | Promise; export type OnUserTaskReservationCanceledCallback = (reservationCanceled: EventMessageInternal) => void | Promise; export type OnProcessStartingCallback = (processStarting: EventMessageInternal) => void | Promise; export type OnProcessStartedCallback = (processStarted: EventMessageInternal) => void | Promise; export type OnProcessErrorCallback = (processError: EventMessageInternal) => void | Promise; export type OnProcessEndedCallback = (processEnded: EventMessageInternal) => void | Promise; export type OnProcessOwnerChangedCallback = (processEnded: EventMessageInternal) => void | Promise; export type OnProcessKilledCallback = (processKilled: EventMessageInternal) => void | Promise; export type OnKillProcessCallback = (processKilled: KillProcessInstanceMessage) => void | Promise; export type OnCronjobExecutedCallback = (cronjobExecuted: CronjobEventMessage) => void | Promise; export type OnCronjobStoppedCallback = (cronjobStopped: CronjobEventMessage) => void | Promise; export type OnCronjobUpdatedCallback = (cronjobUpdated: CronjobEventMessage) => void | Promise; export type OnCronjobCreatedCallback = (cronjobCreated: CronjobEventMessage) => void | Promise; export type OnCronjobRemovedCallback = (cronjobRemoved: CronjobEventMessage) => void | Promise; export type OnExternalTaskCreatedCallback = (externaTaskData: ExternalTaskCreatedMessageInternal) => void | Promise; export type OnExternalTaskLockedCallback = (externaTask: ExternalTaskLockedMessageInternal) => void | Promise; export type OnExternalTaskUnlockedCallback = (externaTask: ExternalTaskUnlockedMessageInternal) => void | Promise; export type OnExternalTaskExpiredCallback = (externaTask: ExternalTaskExpiredMessageInternal) => void | Promise;