Bug 819095 - BRL Editor: "from" should show bound Facts and Fields
BRL Editor: "from" should show bound Facts and Fields
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: BRM (Guvnor) (Show other bugs)
BRMS 5.3.0.GA
Unspecified Unspecified
urgent Severity urgent
: ER7
: BRMS 5.3.0.GA
Assigned To: manstis
Sona Mala
Depends On:
  Show dependency treegraph
Reported: 2012-05-04 16:04 EDT by manstis
Modified: 2012-05-27 21:35 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
JBoss Issue Tracker GUVNOR-1889 Critical Resolved BRL Editor: "from" should show bound Facts and Fields 2012-11-25 20:57:41 EST

  None (edit)
Description manstis 2012-05-04 16:04:32 EDT
Description of problem:

"From" constructs only show bound Patterns to select from. Bound fields should be included too.

Version-Release number of selected component (if applicable):


How reproducible:

Steps to Reproduce:
1. Create a new BRL rule
2. Add a new Pattern. Bind the pattern.
3. Add a field on the Pattern. Bind the field.
4. Add a "from" construct.
5. In the "from" drop-down only the Pattern is listed. The field should too.
Actual results:

Only the Pattern is listed.

Expected results:

The Pattern and Field should be listed.

Additional info:
Comment 1 JBoss JIRA Server 2012-05-04 16:13:00 EDT
Michael Anstis <michael.anstis@gmail.com> updated the status of jira GUVNOR-1889 to Coding In Progress
Comment 2 Edson Tirelli 2012-05-04 16:19:01 EDT
Setting the flags as this is also part of the Khol's customer support case 00612957.
Comment 3 manstis 2012-05-04 16:48:58 EDT
There appears to be another problem too, for which there is no workaround. Using the BRL editor in 5.3 it is impossible to select a sub-field of "offer" which is a direct field of LIDDiscount. It is also impossible to use an Expression to navigate to the sub-field.
Comment 4 manstis 2012-05-05 07:29:53 EDT
master and 5.4.x community branches are not affected.
Comment 5 manstis 2012-05-09 11:39:41 EDT
Pushed to 5.3.x branch @ Prakash's request.
On 9 May 2012 16:20, Prakash Aradhya <xxx@redhat.com> wrote:

    It should be.  I just asked it.  Please go ahead an include the fix.
Comment 6 JBoss JIRA Server 2012-05-09 11:40:50 EDT
Michael Anstis <michael.anstis@gmail.com> updated the status of jira GUVNOR-1889 to Resolved
Comment 7 JBoss JIRA Server 2012-05-09 11:40:50 EDT
Michael Anstis <michael.anstis@gmail.com> made a comment on jira GUVNOR-1889

Actual fix is not in 5.3.0.Final (but that's the closest release number to the 5.3.x branch - possibly now at 5.3.2).
Comment 8 Ryan Zhang 2012-05-14 04:17:02 EDT
The fixed for this issue should be included in ER7. Please do verification on it.
Comment 10 Sona Mala 2012-05-22 06:11:42 EDT
 - created simple declarative model (Pattern "Fact", field Integer "field")
 - new rule
 - when 
    -> add pattern "Fact", bind variable "f"
       -> add field "field", bind variable "fi"
    -> add "From", options are "f","fi"

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