bpm/src/main/java/org/jboss/pnc/bpm/BpmTask.java
public <T extends BpmNotificationRest> void addListener(BpmEventType eventType, Consumer<T> listener) {
        List<Consumer<?>> consumers = listeners.computeIfAbsent(eventType, (k) -> new ArrayList<>());
        consumers.add(listener);
    }
public <T extends BpmNotificationRest> void addListener(BpmEventType eventType, Consumer<T> listener) {
        List<Consumer<?>> consumers = listeners.computeIfAbsent(eventType, (k) -> new ArrayList<>());
        consumers.add(listener);
    }
Listen to notifications from BPM process for this task.

@param eventType event to follow