Bug 1045423

Summary: Guided Rule Editor: Add support for using formulas\expressions in ActionCallMethodWidget
Product: [Retired] JBoss BRMS Platform 6 Reporter: manstis
Component: Business CentralAssignee: manstis
Status: CLOSED CURRENTRELEASE QA Contact: Zuzana Krejčová <zkrejcov>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: etirelli, lpetrovi, rrajasek, rzhang
Target Milestone: CR1   
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:15:22 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
JAR with a type that has methods none

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.