Search in sources :

Example 1 with MessageEventImpl

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

the class KogitoProcessEventSupportImpl method fireOnMessage.

@Override
public void fireOnMessage(final KogitoProcessInstance instance, KogitoNodeInstance nodeInstance, KieRuntime kruntime, String messageName, Object messageObject) {
    if (hasListeners()) {
        final MessageEvent event = new MessageEventImpl(instance, kruntime, nodeInstance, messageName, messageObject);
        notifyAllListeners(event, ProcessEventListener::onMessage);
    }
}
Also used : MessageEventImpl(org.drools.core.event.MessageEventImpl) MessageEvent(org.kie.api.event.process.MessageEvent) ProcessEventListener(org.kie.api.event.process.ProcessEventListener) KogitoProcessEventListener(org.kie.kogito.internal.process.event.KogitoProcessEventListener)

Aggregations

MessageEventImpl (org.drools.core.event.MessageEventImpl)1 MessageEvent (org.kie.api.event.process.MessageEvent)1 ProcessEventListener (org.kie.api.event.process.ProcessEventListener)1 KogitoProcessEventListener (org.kie.kogito.internal.process.event.KogitoProcessEventListener)1