code: public <T extends BpmNotificationRest> void addListener(BpmEventType eventType, Consumer<T> listener) {
          List<Consumer<?>> consumers = listeners.computeIfAbsent(eventType, (k) -> new ArrayList<>());
          consumers.add(listener);
      }
docs: Listen to notifications from BPM process for this task.
  
  @param eventType event to follow