]
B Brown updated DROOLS-5955:
----------------------------
Attachment: RunTest.java
KieScanner not properly updating model assets (classes) on
incremental updates
------------------------------------------------------------------------------
Key: DROOLS-5955
URL:
https://issues.redhat.com/browse/DROOLS-5955
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 7.48.0.Final
Reporter: B Brown
Assignee: Mario Fusco
Priority: Major
Attachments: LogFile.txt, RunTest.java, TestScannerUpdate-1.0.0-SNAPSHOT.jar
KieScanner is not correctly applying incremental kjar updates to KieContainer when those
updates include changes to "Model" assets authored in Business Central.
Adding a new field to a model in business central, then updating a rule to reference that
value will work the first time. If you repeat this again, adding another new field and new
reference in a rule, after updating the KieContainer using KieScanner, executing
fireAllRules on a new session will fail with an exception, claiming it cannot find the
setter method for the new attribute.
It is expected that the KieScanner should be able to take new kjars produced from BC and
consistently update KieContainers with their updates. There is no workaround for this.
Please refer to the "Steps to Reproduce". I've also attached the final kjar
that caused the error, the main method that ran the test as well as the log file.