Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1217871 - Non existing imports in "rdrl" files prevents the rule to be opened in Business Central
Non existing imports in "rdrl" files prevents the rule to be opened in Busine...
Status: VERIFIED
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central (Show other bugs)
6.1.0
Unspecified Unspecified
high Severity unspecified
: DR1
: 6.2.0
Assigned To: manstis
Tomas David
:
Depends On:
Blocks: 1218308
  Show dependency treegraph
 
Reported: 2015-05-01 22:19 EDT by William Antônio
Modified: 2015-12-08 10:19 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1218308 (view as bug list)
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description William Antônio 2015-05-01 22:19:08 EDT
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.
Comment 5 Tomas David 2015-10-14 04:38:02 EDT
Verified on BRMS 6.2.0.ER3.

Note You need to log in before you can comment on or make changes to this bug.