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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 7.14.0.Final
    • core engine
    • None
    • 2019 Week 08-10
    • NEW
    • NEW

      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
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: