Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 895505

Summary: Guvnor: Guided rule editor doesn't display any option to binding variable of a object's field on RHS
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Luan Cestari <lcestari>
Component: BRM (Guvnor)Assignee: manstis
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: BRMS 5.3.0.GA, future, BRMS 5.3.1CC: alazarot, manstis, nraghava
Target Milestone: ---   
Target Release: One Off Releases   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:27:17 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: 873846    
Attachments:
Description Flags
A repository with just a rule and two fact to reproduce the case
none
Rule + Source
none
RHS actions none

Description Luan Cestari 2013-01-15 11:33:45 UTC
Created attachment 678726 [details]
A repository with just a rule and two fact to reproduce the case

Description of problem:
Guided rule editor doesn't display any option to binding variable of a object's field on RHS. It's look like you didn't bind that variable.

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


How reproducible:
Creating a fact that have other object as dependency and then try to bind that dependency in a rule. You can't use the variable created.

Steps to Reproduce:
1.Create two facts, X and Y, with a text field for each one
2.Create a field in the X with the type of Y
3.Create a Rule and bind the Y field to a variable
4.Try to use in the RHS the variable
  
Actual results:
There is a workaround in this case. It is required to use "free form drl" option to manually write the RHS.

Expected results:
No workaround required

Additional info:
Jira link: https://issues.jboss.org/browse/GUVNOR-1988
Salesforce link: https://c.na7.visual.force.com/apex/Case_View?id=500A000000CRQbv&sfdc.override=1

Comment 1 Luan Cestari 2013-01-15 20:13:31 UTC
Example of a rule that cab be created using free form and not with the guided editor of guvnor:

rule "Example"
 dialect "mvel"
when
 $A : ApplicantVO( age > 23 , $B : address != null )
then
 $B.setCity( "New York" ); //this can not be made by guided editor

Comment 3 JBoss JIRA Server 2013-01-16 09:36:32 UTC
Michael Anstis <michael.anstis> updated the status of jira GUVNOR-1988 to Coding In Progress

Comment 4 manstis 2013-01-16 10:02:05 UTC
This requires a very simple fix. Applying to 5.4.x, 5.5.x and master branches. Please advise if you require the same applied to 5.3.x branch (this BZ does not have the applicable authorization flags set to apply to 5.3.x at the moment).

Comment 7 JBoss JIRA Server 2013-01-16 10:55:12 UTC
Michael Anstis <michael.anstis> updated the status of jira GUVNOR-1988 to Resolved

Comment 8 JBoss JIRA Server 2013-01-16 10:55:12 UTC
Michael Anstis <michael.anstis> made a comment on jira GUVNOR-1988

Fix also applied to 5.3.x, 5.4.x and 5.5.x branches.

Comment 9 Julian Coleman 2013-03-20 12:42:11 UTC
Included in roll-up #1: BZ-873846

Comment 10 manstis 2013-03-21 15:12:33 UTC
Created attachment 713933 [details]
Rule + Source

Screenshot taken with 5.3.x branch @ 21-Mar-2013

Comment 11 manstis 2013-03-21 15:12:58 UTC
Created attachment 713935 [details]
RHS actions

Screenshot taken with 5.3.x branch @ 21-Mar-2013

Comment 12 manstis 2013-03-21 15:15:44 UTC
Hi Jira, I re-tried with 5.3.x branch code and could not replicate the problem we discussed. I have attached screen-shots. I am about to try with repository export attached to this BZ and will report back...

Comment 13 manstis 2013-03-21 17:07:09 UTC
Cloned http://git.app.eng.bos.redhat.com/git/droolsjbpm/guvnor.git/ What branch am I meant to be using to test this issue? Thanks.

Comment 15 Jiri Locker 2013-04-02 08:55:36 UTC
Fix verified in BRMS_5.3.1_1_2013.

Comment 18 Red Hat Bugzilla 2025-02-10 03:27:17 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.