Class NotificationListenerManager


  • public class NotificationListenerManager
    extends Object
    Manages broadcasting of notification events to all found listeners
    • Method Detail

      • reset

        public void reset()
      • registerAdditionalNotificationListener

        public void registerAdditionalNotificationListener​(List<NotificationListener> additionalNotificationListener)
      • broadcast

        public void broadcast​(org.kie.internal.task.api.TaskContext taskContext,
                              org.kie.internal.task.api.model.NotificationEvent event,
                              org.kie.internal.task.api.UserInfo userInfo)
      • broadcast

        public void broadcast​(org.kie.internal.task.api.model.NotificationEvent event,
                              org.kie.internal.task.api.UserInfo userInfo)
        Broadcast given event to all listeners independently meaning catches possible exceptions to avoid breaking notification by listeners
        Parameters:
        event - notification event to be sent
        params - additional parameters see NotificationListener.onNotification for details.
        See Also:
        NotificationListener#onNotification(NotificationEvent, Object...)