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

If user adds "New formula" on a guided rule editor, the editor doesn't put "," between conditions

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 6.0.2
    • 6.0.1
    • Business Central
    • None
    • ER2
    • Hide
      If the user tried to write multiple conditions with a formula in a Guided Rule Editor, the editor would fail to put a ',' between these multiple conditions. The lack of a ',' caused the system to report the rule as containing an error. This issue has now been fixed the Guided Rule Editor now correctly inserts a ',' between multiple conditions.
      Show
      If the user tried to write multiple conditions with a formula in a Guided Rule Editor, the editor would fail to put a ',' between these multiple conditions. The lack of a ',' caused the system to report the rule as containing an error. This issue has now been fixed the Guided Rule Editor now correctly inserts a ',' between multiple conditions.

    Description

      Description of problem:
      If user adds "New formula" on a guided rule editor, the editor doesn't put "," between conditions.

      Version-Release number of selected component (if applicable):
      Red Hat JBoss BRMS 6.0.1

      How reproducible:
      Write multiple conditions with a formula in a guided rule editor.

      Steps to Reproduce:
      1. Add a condition to this rule and select "Number" in a guided rule
      2. Add a new formula and write true in the text box
      3. Add a restriction on a field and select intValue
      4. Set intValue equal to 0
      5. Check the source and validate it.
      -----------------------------
      1. | package mygroupid.myproject;
      2. |
      3. | import java.lang.Number;
      4. |
      5. | rule "MyGuidedRule"
      6. | dialect "mvel"
      7. | when
      8. | Number( eval( true )intValue == 0 )
      9. | then
      10. | end
      -----------------------------

      6. This pop up error is :
      [ERR 102] Line 8:22 mismatched input 'intValue' in rule "MyGuidedRule"

      Actual results:
      Number( eval( true )intValue == 0 )

      Expected results:
      Number( eval( true ), intValue == 0 )

      Additional info:

      Attachments

        Activity

          People

            manstis@redhat.com Michael Anstis
            rhn-support-ksuzumur Keishi Suzumura
            Archiver:
            rhn-support-ceverson Clark Everson
            Pavel Kralik Pavel Kralik
            Pavel Kralik Pavel Kralik
            Lukáš Petrovický (Inactive), Vikram Goyal (Inactive)

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty