Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-2345

It is not possible to define parent and child service in the same kie.conf

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 7.7.0.Final
    • 7.6.0.Final
    • core engine
    • None
    • 2018 Week 07-08
    • 1
    • NEW
    • NEW

      When using just one kie.conf file for all services, it is not possible to define parent and child service in the same file. This is mainly the case when having an uberjar with all kie dependencies bundled in. In such case such kie.conf file is needed for service registry to work.

      E.g. a user wants to add DMNAssemblerService to kie.conf,
      org.kie.api.internal.assembler.KieAssemblers = +org.kie.dmn.core.assembler.DMNAssemblerService

      In such case service discovery fails with an exception
      java.lang.RuntimeException: Child services [org.kie.api.internal.assembler.KieAssemblers] have no parent

      I have a proposed fix ready. Will create a PR with it and a reproducer.

              tzimanyi@redhat.com Tibor Zimányi
              tzimanyi@redhat.com Tibor Zimányi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: