Uploaded image for project: 'JBoss BRMS Platform'
  1. JBoss BRMS Platform
  2. RHBRMS-888

Guided Rule Editor: Add support for using formulas\expressions in ActionCallMethodWidget

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 6.0.0
    • 6.0.0
    • Business Central
    • 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:

              manstis@redhat.com Michael Anstis
              manstis@redhat.com Michael Anstis
              Archiver:
              rhn-support-ceverson Clark Everson
              Zuzka Krejčová Zuzka Krejčová (Inactive)
              Zuzka Krejčová Zuzka Krejčová (Inactive)
              Cheng Zhang (Inactive), etirelli, Lukáš Petrovický (Inactive), Rajesh Rajasekaran

                Created:
                Updated:
                Resolved:
                Archived: