-
Bug
-
Resolution: Done
-
Blocker
-
7.39.0.Final
-
2020 Week 25-27 (from Jun 15), 2020 Week 28-30 (from Jul 6)
-
-
-
NEW
-
NEW
For a Scenario Simulation that tests DRL rule and facts having an enum property a seemingly class-loading issue occurs in Business Central.
The ultimate error is in the DRL file validation:
DRL file
package org.jboss.qa.ba.scesim; rule "child ticket" when t: Ticket ( type==TicketType.CHILD) then t.setPrice(5.0); end
Validation error
[KBase: defaultKieBase]: Unable to Analyse Expression type == TicketType.CHILD: [Error: Comparison operation requires compatible types. Found class org.jboss.qa.ba.scesim.TicketType and class org.jboss.qa.ba.scesim.TicketType] [Near : {... type == TicketType.CHILD ....}] ^
The issue happens in given scenario:
- import project
- go to DRL file and run validation - succeeds
- go to scenario simulation and run - succeeds
- go back to DRL file and run validation - fails with the error above
- go to scenario simulation and run again - fails due to the rule not being evaluated for given facts
The issue disappears when running Build of the project in the Project perspective.