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

Guided Rules does not output parenthesis in DRL

    Details

    • Sprint:
      2019 Week 23-25
    • Steps to Reproduce:
      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:
      Workaround Exists
    • Workaround Description:
      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)
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      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())

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Rikkola Toni Rikkola
                  Reporter:
                  karina.varela Karina Varela
                  Tester:
                  Jozef Marko
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: