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

[GSS] (6.4.z) Unexpected results in GDST when using enumerations with commas

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: Major Major
    • 6.4.10
    • 6.4.1.GA
    • Business Central
    • None

      When using enumerations where the values itself contain a comma, the rules generated by a GDST are unexpected, as the "contains in" operator splits those values in the enumerations. Example enumeration:

         fact: person
         field: city
         context: ['paris','london','new york,boston']
      

      Note: see the 'new york, boston' sample.

      The code generated will be:

      rule "Row 1 personGDT"
          dialect "mvel"
          when
              p : person( city in ( "new york", "boston" ) )
          then
      end
      

      Basically "paris" and "new york,boston" will be treated by the DSL parser as 3 strings in the DRL generation and will produce someting simiular to
      p : person( city in ( "paris", "new york", "boston" ) )
      But what the customer expects is the following
      p : person( city in ( "paris", "new york,boston" ) )

        1. Screenshot from 2018-02-26 14-59-56.png
          40 kB
          Jozef Marko
        2. Screenshot from 2018-02-26 15-00-23.png
          32 kB
          Jozef Marko
        3. Screenshot from 2018-02-26 15-00-30.png
          24 kB
          Jozef Marko
        4. Screenshot from 2018-03-15 09-57-52.png
          39 kB
          Jozef Marko
        5. Screenshot from 2018-03-15 09-58-01.png
          32 kB
          Jozef Marko
        6. Screenshot from 2018-03-15 09-58-10.png
          24 kB
          Jozef Marko
        7. Screenshot from 2018-03-15 09-58-17.png
          25 kB
          Jozef Marko

              trikkola Toni Rikkola
              rhn-support-mputz Martin Weiler (Inactive)
              Archiver:
              rhn-support-ceverson Clark Everson
              Jozef Marko Jozef Marko (Inactive)
              Jozef Marko Jozef Marko (Inactive)

                Created:
                Updated:
                Resolved:
                Archived: