Search in sources :

Example 1 with EventBatch

use of org.kie.kogito.event.EventBatch in project kogito-runtimes by kiegroup.

the class CollectingUnitOfWork method end.

@Override
public void end() {
    checkStarted();
    EventBatch batch = eventManager.newBatch();
    for (WorkUnit<?> work : sorted()) {
        batch.append(work.data());
        work.perform();
    }
    eventManager.publish(batch);
    done();
}
Also used : EventBatch(org.kie.kogito.event.EventBatch)

Aggregations

EventBatch (org.kie.kogito.event.EventBatch)1