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

Guided Rule Template removes quotation marks in concatenated String

    XMLWordPrintable

Details

    • 1
    • CR1
    • +
    • Hide

      Add leading / trailing whitespace to the input data.

      Show
      Add leading / trailing whitespace to the input data.
    • Hide

      1. Create New: Guided Rule Template
      2. Data Objects -> New Item: java.lang.String
      3. WHEN: There is a String with: this equal to $default
      THEN: System.out.println("test");
      4. Data: $default="test" + ", " + "test2"
      5. Check the source tab:

      rule "simpletest_0"
              dialect "mvel"
              when
                      String( this == test" + ", " + "test2 )
              then
                      System.out.println("test");
      end
      

      (Note the missing quotation marks!)

      Show
      1. Create New: Guided Rule Template 2. Data Objects -> New Item: java.lang.String 3. WHEN: There is a String with: this equal to $default THEN: System.out.println("test"); 4. Data: $default="test" + ", " + "test2" 5. Check the source tab: rule "simpletest_0" dialect "mvel" when String( this == test" + ", " + "test2 ) then System.out.println("test"); end (Note the missing quotation marks!)
    • 2019 Week 26-28, 2019 Week 29-31

    Description

      When Strings are concatenated in the WHEN clause of a Guided Rule Template, the leading and trailing quotation marks are removed, resulting in invalid syntax.

      Attachments

        Issue Links

          Activity

            People

              trikkola Toni Rikkola
              rhn-support-mputz Martin Weiler (Inactive)
              Jozef Marko Jozef Marko
              Jozef Marko Jozef Marko
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: