Bug 1217871 - Non existing imports in "rdrl" files prevents the rule to be opened in Business Central
Summary: Non existing imports in "rdrl" files prevents the rule to be opened in Busine...
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: DR1
: 6.2.0
Assignee: manstis
QA Contact: Tomas David
URL:
Whiteboard:
Depends On:
Blocks: 1218308
TreeView+ depends on / blocked
 
Reported: 2015-05-02 02:19 UTC by William Antônio
Modified: 2020-03-27 20:09 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
: 1218308 (view as bug list)
Environment:
Last Closed: 2020-03-27 20:09:04 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description William Antônio 2015-05-02 02:19:08 UTC
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 08:38:02 UTC
Verified on BRMS 6.2.0.ER3.


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