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();
}
Aggregations