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