Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-2002

Hot-reload fails when adding a new RuleUnit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 0.11.0
    • 0.9.1
    • Core Engine
    • None
    • Hide

      1) Create a new Kogito project.
      2) Add a new RuleUnit java impl and a new RuleUnit DRL.
      3) Hit the endpoint that should have been generated by Kogito or open the Swagger-UI.

      Show
      1) Create a new Kogito project. 2) Add a new RuleUnit java impl and a new RuleUnit DRL. 3) Hit the endpoint that should have been generated by Kogito or open the Swagger-UI.
    • 2020 Week 19-21 (from May 4)

      Hot-reload fails when you start an empty project in "mvn quarkus:dev" mode, and after that add a RuleUnit and DRL.

      The error you will get is the following:

      2020-04-23 15:12:26,970 ERROR [org.kie.kog.cod.ApplicationGenerator] (vert.x-worker-thread-0) Unknown rule unit: PersonUnit
      

      When I try to hit the endpoint that should have been generated, you will get a 404.

      Restarting the application makes the endpoint available.

            mfusco@redhat.com Mario Fusco
            rhn-gps-ddoyle Duncan Doyle (Inactive)
            Marian Macik Marian Macik
            Marian Macik Marian Macik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: