Description of problem: If a rule of type "rdrl" uses a class that can't be found, we will not be able to open it in business central edit. A error will be displayed instead opening the rule. Version-Release number of selected component (if applicable): N/A. How reproducible: Always. Must clone the repo locally to create the bad rule. Steps to Reproduce: 1. Start a new BRMS installation locally; 2. Clone the repository locally; $ git clone ssh://jesuino@localhost:8001/repository1 3. Create a rdrl file that uses a dependency that can't be found, for example: CODE 4. Push the changes back to BRMS; 5. Go to business central and using Project Authoring to navigate to the rule and try to open it. Actual results: Error message in the web interface: --------------------------- rule "test" dialect "mvel" when obj : MyClass( ) from my.package then System.out.println("Test") end --------------------------- In the messages pane: --------------------------- Unable to resolve ObjectType 'MyClass' test.rdrl --------------------------- And error in the logs: 23:14:52,795 ERROR [org.drools.compiler.kie.builder.impl.AbstractKieModule] (http-localhost.localdomain/127.0.0.1:8080-4) Unable to build KieBaseModel:defaultKieBase Unable to resolve ObjectType 'MyClass' : [Rule name='test'] Expected results: The rule should be opened using the editor and the missing dependency error should be showed only in the messages console.
Verified on BRMS 6.2.0.ER3.