Bug 1045423 - Guided Rule Editor: Add support for using formulas\expressions in ActionCallMethodWidget
Summary: Guided Rule Editor: Add support for using formulas\expressions in ActionCallM...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: CR1
: 6.0.0
Assignee: manstis
QA Contact: Zuzana Krejčová
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-20 11:40 UTC by manstis
Modified: 2014-08-06 20:15 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:15:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
JAR with a type that has methods (1.91 KB, application/x-java-archive)
2013-12-20 11:41 UTC, manstis
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 986000 0 high CLOSED DRL-to-RuleModel marshalling improvements 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1042836 0 unspecified CLOSED Guided rule editor should show a selector for literal or bound variable when a method call is used 2021-02-22 00:41:40 UTC

Internal Links: 986000 1042836

Description manstis 2013-12-20 11:40:58 UTC
Description of problem:

Following bug-fix https://bugzilla.redhat.com/show_bug.cgi?id=1042511 the ActionCallMethodWidget in the Guided Rule Editor does not support entry of formulas. The bug that was fixed hid the limitation.. in fact the bug allowed users to enter any text and hence had been used as formulas.

Furthermore the widgets used to enter values in ActionCallMethods were incorrect for the data-type of the method call parameter.

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

6.0.x ER6 (ER5 and before didn't have the mentioned BZ fixed and hence this issue is not reproducable in versions other than ER6).

Steps to Reproduce:
1. Create a Guided Rule
2. Add a type that has methods (e.g. not just getters and setters)
3. Bind type to a variable
4. Add an Action to call a method on the bound type
5. Select a method (that for example is an integer)
6. Enter literal value
7. Any text can be entered. Only numerics should be allowed.
8. Try to define a formula.. the literal value is taken; i.e. enclosed in "" in the DRL

Actual results:

1) Any text can be entered in the parameter value widget.
2) It is impossible to define a formula.

Expected results:

Widgets for Method parameters should be for the correct data-type.

Formulas should be permitted.

Additional info:

Comment 1 manstis 2013-12-20 11:41:43 UTC
Created attachment 839529 [details]
JAR with a type that has methods

Comment 7 Edson Tirelli 2014-01-02 16:28:51 UTC
This fixes are required by and related to the other DRL/RuleModel marshalling errors that have been raised.

Comment 10 Zuzana Krejčová 2014-01-24 13:40:22 UTC
Verified with CR2.


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