Bug 1042836 - Guided rule editor should show a selector for literal or bound variable when a method call is used
Summary: Guided rule editor should show a selector for literal or bound variable when ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ER 7
: 6.0.0
Assignee: manstis
QA Contact: Jiri Locker
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-13 13:50 UTC by Toni Rikkola
Modified: 2014-08-06 20:16 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:16:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Models for testing (3.22 MB, application/java-archive)
2013-12-13 13:50 UTC, Toni Rikkola
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1042511 0 high CLOSED Guided Editor - adding method calls to consequence of a rule does not persist change 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1045423 0 high CLOSED Guided Rule Editor: Add support for using formulas\expressions in ActionCallMethodWidget 2021-02-22 00:41:40 UTC

Internal Links: 1042511 1045423

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.


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