use of org.drools.core.event.SLAViolatedEventImpl in project kogito-runtimes by kiegroup.
the class KogitoProcessEventSupportImpl method fireBeforeSLAViolated.
@Override
public void fireBeforeSLAViolated(final KogitoProcessInstance instance, KieRuntime kruntime) {
final SLAViolatedEvent event = new SLAViolatedEventImpl(instance, kruntime);
unitOfWorkManager.currentUnitOfWork().intercept(WorkUnit.create(event, e -> {
if (hasListeners()) {
notifyAllListeners(event, (l, e1) -> l.beforeSLAViolated(e1));
}
}));
}
use of org.drools.core.event.SLAViolatedEventImpl in project kogito-runtimes by kiegroup.
the class KogitoProcessEventSupportImpl method fireBeforeSLAViolated.
@Override
public void fireBeforeSLAViolated(final KogitoProcessInstance instance, KogitoNodeInstance nodeInstance, KieRuntime kruntime) {
final SLAViolatedEvent event = new SLAViolatedEventImpl(instance, nodeInstance, kruntime);
unitOfWorkManager.currentUnitOfWork().intercept(WorkUnit.create(event, e -> {
if (hasListeners()) {
notifyAllListeners(event, (l, e1) -> l.beforeSLAViolated(e1));
}
}));
}
use of org.drools.core.event.SLAViolatedEventImpl in project kogito-runtimes by kiegroup.
the class KogitoProcessEventSupportImpl method fireAfterSLAViolated.
@Override
public void fireAfterSLAViolated(final KogitoProcessInstance instance, KogitoNodeInstance nodeInstance, KieRuntime kruntime) {
final SLAViolatedEvent event = new SLAViolatedEventImpl(instance, nodeInstance, kruntime);
unitOfWorkManager.currentUnitOfWork().intercept(WorkUnit.create(event, e -> {
if (hasListeners()) {
notifyAllListeners(event, (l, e1) -> l.afterSLAViolated(e1));
}
}));
}
use of org.drools.core.event.SLAViolatedEventImpl in project kogito-runtimes by kiegroup.
the class KogitoProcessEventSupportImpl method fireAfterSLAViolated.
@Override
public void fireAfterSLAViolated(final KogitoProcessInstance instance, KieRuntime kruntime) {
final SLAViolatedEvent event = new SLAViolatedEventImpl(instance, kruntime);
unitOfWorkManager.currentUnitOfWork().intercept(WorkUnit.create(event, e -> {
if (hasListeners()) {
notifyAllListeners(event, (l, e1) -> l.afterSLAViolated(e1));
}
}));
}
Aggregations