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

    • 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

      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.

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

                Created:
                Updated:
                Resolved: