Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-4186

Guided Rules does not output parenthesis in DRL

XMLWordPrintable

    • 2019 Week 23-25
    • 3
    • Hide

      Reproducer attached.

      How to reproduce:

      1. Import the project
      2. Open the guided rule
      3. Open the source tab and check the lines 6 and 16.

      Show
      Reproducer attached. How to reproduce: 1. Import the project 2. Open the guided rule 3. Open the source tab and check the lines 6 and 16.
    • Workaround Exists
    • Hide

      When user wants to construct constraint Person ( name in ( "John", "John (jr)" ) ) hee needs to type value ( John, John (jr) ) instead of John, John (jr)

      Show
      When user wants to construct constraint Person ( name in ( "John", "John (jr)" ) ) hee needs to type value ( John, John (jr) ) instead of John, John (jr)
    • NEW
    • NEW

      The Guided Rule is omitting one parenthesis from the generated DRL source. This behavior only happens on LHS.

      No errors are raised on the server logs.

      Expected source code:

      		Silverware( type in  ("Spoon", "Spoon (fancy)") )
      

      Generated source code:

      		Silverware( type in  ("Spoon", "Spoon (fancy") )
      

      Acceptance test

      Set up column with is contained in operator and type value

      • a, b ,c
      • (a, b, c)
      • a(), b(), c()
      • (a(), b(), c())

              trikkola Toni Rikkola
              kvarela@redhat.com Karina Varela (Inactive)
              Jozef Marko Jozef Marko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: