Bug 1042836

Summary: Guided rule editor should show a selector for literal or bound variable when a method call is used
Product: [Retired] JBoss BRMS Platform 6 Reporter: Toni Rikkola <trikkola>
Component: Business CentralAssignee: manstis
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Locker <jlocker>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: mwinkler, rrajasek, rzhang
Target Milestone: ER 7   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:16:38 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:
Attachments:
Description Flags
Models for testing none

Description Toni Rikkola 2013-12-13 13:50:03 UTC
Created attachment 836331 [details]
Models for testing

Steps to Reproduce:
1. Import two models in a jar. For example the drools-core.jar
2. Import org.drools.workbench.models.datamodel.rule.RuleModel and org.drools.workbench.models.datamodel.rule.RuleMetadata
3. Add the two models as patters to a Guided Rule Editor WHEN-section and declare them to variables "model" and "meta"
3. Call a method "addMetadata" from model

Actual results:
Gives a literal text box with a value "0".

Expected results:
Should give the pen icon and the ability to either pick a bound variable (the "meta") or a literal value.

Comment 2 Toni Rikkola 2013-12-13 13:53:22 UTC
Fix is here 
master: https://github.com/droolsjbpm/drools-wb/commit/07ae521de

Comment 3 Toni Rikkola 2013-12-19 13:16:00 UTC
The fix in https://bugzilla.redhat.com/show_bug.cgi?id=1042511
depended on this so I cherry-picked this to 6.0.x

6.0.x
https://github.com/droolsjbpm/drools-wb/commit/158e0418c

Comment 4 Jiri Locker 2014-01-29 16:05:40 UTC
Pen icon is in place. I cannot select bound variable but that is a different issue, I think. I will investigate.