[rules-users] got error "unterminated string literal" only with mvel dialect
Wolfgang Laun
wolfgang.laun at gmail.com
Fri Dec 6 04:00:07 EST 2013
Are you sure that you use the mvel jar that comes with these versions?
I can't reproduce this particular error using similar (if not exactly
identical) calls.
However, the MVEL parser has been exhibiting a number of weird bugs,
and I wouldn't be surprised if some particular arrangement of tokens
(down to line breaks!) confuses it.
FWIW, the simple DRL given below crashes MVEL (using 5.[45].0-Final).
Cheers
-W
dialect "mvel"
function String combine( String x, String y ){
return x + y;
}
rule findinlist
when
$l1: List()
$l2: List( this contains $l1 )
then
System.out.println( $l2 + combine( " contains ", $l1.toString() ) );
end
On 05/12/2013, brachi <brachi.w at sapiens.com> wrote:
> That is because the ";", if I remove it, the drl is valid.
> drools version: 5.4.0.Final also on 5.5.0.Final
>
> any idea?
>
> example:
> rule "1"
> @RuleType(RuleRow)
> salience -1
> agenda-group "aaa"
> when
> $conclusion: FT()
> then
> addMessage($conclusion.getMessages(), "that is ;message", "1",
> "Category2");
> end
>
>
> function void addMessage(Map messages, String message, String rowId, String
> category) {
> ...
>
> }
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/got-error-unterminated-string-literal-only-with-mvel-dialect-tp4027116.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
More information about the rules-users
mailing list