Search in sources :

Example 1 with SignalEventImpl

use of org.drools.core.event.SignalEventImpl in project kogito-runtimes by kiegroup.

the class KogitoProcessEventSupportImpl method fireOnSignal.

@Override
public void fireOnSignal(final KogitoProcessInstance instance, KogitoNodeInstance nodeInstance, KieRuntime kruntime, String signalName, Object signalObject) {
    if (hasListeners()) {
        final SignalEvent event = new SignalEventImpl(instance, kruntime, nodeInstance, signalName, signalObject);
        notifyAllListeners(event, ProcessEventListener::onSignal);
    }
}
Also used : SignalEventImpl(org.drools.core.event.SignalEventImpl) ProcessEventListener(org.kie.api.event.process.ProcessEventListener) KogitoProcessEventListener(org.kie.kogito.internal.process.event.KogitoProcessEventListener) SignalEvent(org.kie.api.event.process.SignalEvent)

Aggregations

SignalEventImpl (org.drools.core.event.SignalEventImpl)1 ProcessEventListener (org.kie.api.event.process.ProcessEventListener)1 SignalEvent (org.kie.api.event.process.SignalEvent)1 KogitoProcessEventListener (org.kie.kogito.internal.process.event.KogitoProcessEventListener)1