• Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • None
    • None
    • None
    • 2022 Week 17-19 (from Apr 25), 2022 Week 20-22 (from May 16), 2022 Week 23-25 (from Jun 6), 2022 Week 26-28 (from Jun 27), MGDOBR - Sprint 220, 2022 Week 29-31 (from Jul 18), 2022 Week 32-34 (from Aug 8), 2022 Week 35-37 (from Aug 29)
    • NEW
    • NEW
    • ---
    • ---

      Currently, kie-drl/kie-drl-compilation-common is broken for "RuleUnit" drl due to the way used to retrieve the fqdn of the class to be instantiated at runtime.
      Inside

      DrlCompilerHelper.pkgDescrToExecModel()
      List<String> generatedRulesModels... 
      

      generatedRulesModels contains the list of classes to be instantiated at runtime

      Here:

      generatedRulesModels.add(pkgSources.getPackageName() + "." + pkgSources.getRulesFileName());
      

      the FQDN is created with packageName + rulesFileName.
      This works for "legacy" drl (e.g. org.example.Rules02c669e1982345b29c0aacd9084cd409 ) but not for ruleunits, where the class name is org.example.Rules02c669e1982345b29c0aacd9084cd409_ (unit_name)

              gcardosi Gabriele Cardosi (Inactive)
              gcardosi Gabriele Cardosi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: