Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-4187

Business Central overwrites "hand-made" changes in kmodule.xml

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Do
    • Major
    • None
    • 7.11.1.GA
    • Business Central
    • 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:

      1. Add again the listener registration after each save of the project settings
      2. 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.

      Attachments

        Activity

          People

            kverlaen@redhat.com Kris Verlaenen
            rbourner@redhat.com Richard Bourner (Inactive)
            Barbora Siskova Barbora Siskova
            Barbora Siskova Barbora Siskova
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: