use of org.kie.kogito.internal.process.event.HumanTaskDeadlineEvent.DeadlineType in project kogito-runtimes by kiegroup.
the class KogitoProcessEventSupportImpl method fireTaskNotification.
private void fireTaskNotification(KogitoProcessInstance instance, HumanTaskWorkItem workItem, Map<String, Object> notification, DeadlineType type, KieRuntime kruntime) {
final HumanTaskDeadlineEvent event = new HumanTaskDeadlineEventImpl(instance, workItem, notification, type, kruntime);
unitOfWorkManager.currentUnitOfWork().intercept(WorkUnit.create(event, e -> notifyAllListeners(event, KogitoProcessEventListener::onHumanTaskDeadline)));
}
Aggregations