Bug 1217871
| Summary: | Non existing imports in "rdrl" files prevents the rule to be opened in Business Central | |||
|---|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | William Antônio <wsiqueir> | |
| Component: | Business Central | Assignee: | manstis | |
| Status: | CLOSED EOL | QA Contact: | Tomas David <tdavid> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | high | |||
| Version: | 6.1.0 | CC: | ahoffer, kverlaen, lpetrovi, tdavid | |
| Target Milestone: | DR1 | |||
| Target Release: | 6.2.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1218308 (view as bug list) | Environment: | ||
| Last Closed: | 2020-03-27 20:09:04 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1218308 | |||
Verified on BRMS 6.2.0.ER3. |
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.