extra ';' is added just before '#' when value including '#' is set in RHS with mvel dialect

Solution Verified - Updated -

Issue

; is added in the value incorrectly when string containing # is set to fact more than one time with mvel dialect.
For example, when run the following rule,

dialect "mvel"

rule "testRule"

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

end

Incorrect string "B;#" (i.e. ; is added before #) is set to value instead of "B#".

Environment

  • Red Hat Decision Manager(RHDM)
    • 7.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content