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

DSL sentence with multiselect produces invalid DRL until the selected value changes

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: Minor Minor
    • 6.2.0
    • 6.1.0
    • Business Central
    • None

      Description of problem:
      After adding such a sentence in Guided rule with DSL, the first value is preselected and also appears in translated DRL, however it is there unquoted and without surrounding braces, that are expected after "in" operator. E.g. adding a sentence defined by:

      [when]There is an Applicant with the name of

      {name} whose CR is any of {rating:ENUM:Applicant.creditRating}=applicant:Applicant(name=="{name}

      ", creditRating in

      {rating}

      )

      results in:

      > applicant:Applicant(name=="name", creditRating in AA)

      which is incorrect. After clicking any value in the multiselect (other than AA), the DRL result is:

      > applicant:Applicant(name=="name", creditRating in ( "OK" ))

      Note: in an extreme case where the enumeration constraint on the creditRating field only allows a single value, it is only possible to produce a valid rule by de-selecting the value with Ctrl-MouseClick and selecting it again.

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

      How reproducible:
      -

      Steps to Reproduce:
      1. Use DSL definition from description in mortgages example.
      2. Add the sentence and check rule source.

      Actual results:
      The source contains
      > applicant:Applicant(name=="name", creditRating in AA)
      which is invalid.

      Expected results:
      The source should contain
      > applicant:Applicant(name=="name", creditRating in ( "AA" ))

      Additional info:

            manstis@redhat.com Michael Anstis
            jlocker Jiří Locker
            Archiver:
            rhn-support-ceverson Clark Everson
            Jakub Schwan Jakub Schwan
            Jakub Schwan Jakub Schwan

              Created:
              Updated:
              Resolved:
              Archived: