-
Bug
-
Resolution: Done
-
Critical
-
6.0.0
-
None
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:
- is related to
-
RHBRMS-1764 Guided rule editor should show a selector for literal or bound variable when a method call is used
- Closed
-
RHBRMS-529 DRL-to-RuleModel marshalling improvements
- Closed
- relates to
-
RHBRMS-1764 Guided rule editor should show a selector for literal or bound variable when a method call is used
- Closed
-
RHBRMS-529 DRL-to-RuleModel marshalling improvements
- Closed