Bug 724723 (BRMS-585) - Rules uploaded from JBDS get an extra package statement
Summary: Rules uploaded from JBDS get an extra package statement
Keywords:
Status: CLOSED NEXTRELEASE
Alias: BRMS-585
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: BRM (Guvnor)
Version: 5.1.0 GA
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: 5.1.0.PostGA
Assignee: Tihomir Surdilovic
QA Contact:
URL: http://jira.jboss.org/jira/browse/BRM...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-04 20:56 UTC by Rick Wagner
Modified: 2011-05-05 18:32 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
BRMS 5.1, JBDS4
Last Closed: 2011-05-05 18:32:24 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker BRMS-585 0 None Closed Rules uploaded from JBDS get an extra package statement 2011-09-06 10:59:02 UTC

Description Rick Wagner 2011-05-04 20:56:59 UTC
Help Desk Ticket Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A0000006njO2IAI&sfdc.override=1
Steps to Reproduce: Follow steps above.  Note:  If we write rules without a package in JBDS, it works differently (not quite sure it's correct, though.)  Also, this is against what the 'sample' rule shows. (It has a package.)
securitylevel_name: Public

1) Fresh installed BRMS Server.
2) Enable admin user so that you can log into the web console.
3) Go to http://10.10.108.197:8080/jboss-brms.
4) Authenticate
5) Click "Knowledge Bases" on "Navigate" to bring up the list of "Packages" and "Global Area"
6) Click "Create New"
7) A "Create a new package" dialog will appear.
8) Type "com.sample" in the Name.
9) Click "Create package"
10) Go to JBDS where you have Sample.drl.
11) Right click the Sample.drl file from the "Navigator". 
12) Click "Guvnor"--> "Add"
13) A dialog will appear to select the repository. If you do not have repository in the list, then create a new Guvnor repository. Once you finish this. Click Next.
14) Expand "packages". You should see com.sample package that you created in step 8.   // NOTE.  This is exactly the canned rule from JBDS sample rule. 
15) Select com.sample package, and click Finish.
16) Go to "http://10.10.108.197:8080/jboss-brms/org.drools.guvnor.Guvnor/package/com.sample/LATEST.drl"
17) You will be prompted for authentication. 
18) Authenticate with admin credentials.
19) Download the file if prompted.
20) Open the file, you should see two "package com.sample" there.

Comment 1 Tihomir Surdilovic 2011-05-05 17:52:02 UTC
Link: Added: This issue depends GUVNOR-1354


Comment 2 Tihomir Surdilovic 2011-05-05 18:32:24 UTC
Release Notes Text: Added: fix committed to 5.1.x branch



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