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 .