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

PredictionConfig is being generated despite the project having a single PMML file

    XMLWordPrintable

Details

    • False
    • False
    • Undefined
    • Hide
      1. Create a new  Kogito SB project
      2. Add a DRL or DMN file to it
      3. Add the Decision or Rule starter in the pom.xml
      4. Compile

      You should see a compilation error in the PredictionConfig file.

      Show
      Create a new  Kogito SB project Add a DRL or DMN file to it Add the Decision or Rule starter in the pom.xml Compile You should see a compilation error in the PredictionConfig file.

    Description

      This looks like a pretty critical bug. On Spring Boot (investigation on Quarkus needed), the file PredictionConfig is being generated despite the project having a PMML file on it. 

      By introducing the new starters (KOGITO-5444), we updated the examples to have a specific engine. So a DMN example, would have only kogito-decisions-spring-boot-starter. See: https://github.com/kiegroup/kogito-examples/tree/1.9.0.Final/decisiontable-springboot-example

      In this example, even though there is no PMML whatsoever, the kogito-pmml dependency still needs to be added to compile the generated PredictionsConfig.

      This file should not be added in this context. If it requires it somehow, the kogito-pmml then should be part of the Decisions/Rules Starter. The same thing happens for the Rules Starter. See https://github.com/kiegroup/kogito-examples/tree/1.9.0.Final/ruleunit-springboot-example

      Attachments

        Issue Links

          Activity

            People

              dzonca@redhat.com Daniele Zonca
              rhn-support-zanini Ricardo Zanini Fernandes
              Marian Macik Marian Macik
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: