Skip to Content
DocsEngineExtensionsNotification Handler

Notification Handler

Der Notification Handler ermöglicht es, auf Benachrichtigungen der Engine zu reagieren.

Auf Notifications subscriben

Mit der Engine können Sie auf verschiedene Ereignisse subscriben und entsprechend reagieren:

import { Engine } from '@5minds/processcube_engine_sdk'; export function onLoad(engineObject: Engine) { // Subscribe auf Notifications engineObject.notifications.onProcessStarted((notification) => { console.log('Prozess gestartet:', notification); }); engineObject.notifications.onProcessFinished((notification) => { console.log('Prozess beendet:', notification); }); engineObject.notifications.onProcessError((notification) => { console.error('Prozess-Fehler:', notification); }); engineObject.notifications.onUserTaskWaiting((notification) => { console.log('User Task wartet:', notification); }); engineObject.notifications.onUserTaskFinished((notification) => { console.log('User Task beendet:', notification); }); }

Die Notification Handler Extension ermöglicht es, auf diese Ereignisse zu reagieren und eigene Logik zu implementieren.