Details
-
Enhancement
-
Resolution: Won't Do
-
Major
-
None
-
7.11.1.GA
-
None
-
False
-
False
Description
In order to register a DMN listener, the kmodule.xml file in the project settings needs to be modified in order to include the following section:
<configuration>
<property key="org.kie.dmn.runtime.listeners.mylistener" value="com.acm.MyCustomDMNListener"/>
</configuration>
Since there is no way to set up this listener using the UI, it needs to be done "by hand" in Business Central. This works fine, including at deployment and runtime where the listener is properly invoked.
But if some change needs to be made in the project settings, once we save, the additional section in the kmodule.xml file is lost as the file seems to be overwritten at the save.
The workarounds I found were:
- Add again the listener registration after each save of the project settings
- Use the following system property. But this needs to be set at EAP/KieServer level and would be set for all projects.
-Dorg.kie.dmn.runtime.listeners.mylistener=org.acme.MyDMNListener
Note that this issue does not happen for registering a ProcessEventListener or an AgendaEventListener since the UI has dedicated panels for this.