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

MVELConcequenceBuilder treats '#' within String incorrectly as a comment at 2nd appearance

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.4.0.GA
    • 7.2.1.GA, 7.1.1.GA
    • BRE
    • RHDM 7.2.0
      dialect mvel

    • CR1
    • +

      The rule below expects that "B#" is set to value of the fact. However, "B;#"(i.e. ';' added before '#") is set incorrectly

      dialect "mvel"
       
      rule "testRule"
          when
              $fact : Fact();
          then
              $fact.name = "A#";
              $fact.value = "B#";
              System.out.println( $fact );
      end
      

      Here is output.

      Fact [name=A#, value=B;#]
      

      '#' within the value at 2nd appearance is treated as a start of comment.

              mfusco@redhat.com Mario Fusco
              rhn-support-hmiura Hiroko Miura
              Tibor Zimányi Tibor Zimányi
              Tibor Zimányi Tibor Zimányi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: