Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-966

Guided Rules does not output parenthesis in DRL

XMLWordPrintable

    • 1
    • CR1
    • +
    • 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)
    • 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.
    • 2019 Week 23-25, 2019 Week 26-28, 2019 Week 29-31

      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

      Extend a coverage added in the PR. As the changed code checks starting and ending brackets, we should check by tests that user is able to create rule in the form:

      		Car( color in  ("(red)", "(blue)") )
      

        1. GuidedRule.png
          GuidedRule.png
          29 kB
        2. reproducer_gdrl.zip
          12 kB
        3. sourceCode.png
          sourceCode.png
          71 kB
        4. Screenshot from 2019-06-03 16-29-18.png
          Screenshot from 2019-06-03 16-29-18.png
          23 kB
        5. Screenshot from 2019-06-03 16-28-49.png
          Screenshot from 2019-06-03 16-28-49.png
          23 kB
        6. Screenshot from 2019-06-03 16-29-13.png
          Screenshot from 2019-06-03 16-29-13.png
          16 kB

              trikkola Toni Rikkola
              kvarela@redhat.com Karina Varela (Inactive)
              Yevgeniy Fomin Yevgeniy Fomin (Inactive)
              Yevgeniy Fomin Yevgeniy Fomin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: