Afternoon Cendric,<br><br>on DRL files you can use single backslash, that means, forget my last email ;) <br> <br>This compiling error is caused by a bug in drools parser, fixed for 3.0.7 <a href="http://jira.jboss.com/jira/browse/JBRULES-757">
http://jira.jboss.com/jira/browse/JBRULES-757</a> <br><br>You can checkout branches/3.0.x from subversion repository (<a href="http://anonsvn.labs.jboss.com/labs/jbossrules/">http://anonsvn.labs.jboss.com/labs/jbossrules/
</a>) to correct this problem.<br><br>regards<br><br><div><span class="gmail_quote">On 4/24/07, <b class="gmail_sendername">Fernando Meyer</b> <<a href="mailto:fmcamargo@gmail.com">fmcamargo@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
Good morning Cendric<br><br>you must use \\ instead \, because the single backslah is used as escape character. <br><br>regards <br><br><div><div><span class="e" id="q_11224b25897452c5_1"><span class="gmail_quote">On 4/24/07,
<b class="gmail_sendername">Cédric D'Inca </b> <<a href="mailto:animageo@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">animageo@gmail.com</a>> wrote:</span></span></div><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
<div><span class="e" id="q_11224b25897452c5_3"><div><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial"><p>Hi everyone,</p><p>I am currently experimentating troubles compiling a DRL file with a \" character in it.
<br>I am using Drools libraries 3.0.4.<br>I used a XLS decision table that, once compiled, gave me a DRL. The following lines are extracted from it. </p><p>#From row number: 14</p><p>rule "Exemple 1 2006 10 10_14"
</p><p> salience 65522<br> when<br> Ctx:MyObject()<br> eval(Ctx.GetPrp("TEST").getValue().equals("GER"))<br> then<br> Ctx.SetPrp("TRUC").setValue("test char \" test");
<br>end<br> <br>#From row number: 15<br> <br>The problem is that when compiled, an error is generated </p><p>Unknown:0-1 mismatched token: [@0,0,0='<no text>',<-1>,0:-1]; expecting type 'end'</p>
<p>If I modify the decision table to put<br> <br> Ctx.SetPrp("TRUC").setValue("test char " test"); </p><p>The result is the same </p><p>Unknown:0-1 mismatched token: [@0,0,0='<no text>',<-1>,0:-1]; expecting type 'end'
</p><p><br>So it means that \" is not understood, however, if I put \z, I get the following error: </p><p>Rule compilation error Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\) </p><p>Where it is written that \" should be understood.
<br>Any idea? </p><p>Greetings, </p><p>Cédric D'INCA<br></p></span></font></div><br></span></div>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.jboss.org/mailman/listinfo/rules-users
</a><br><br></blockquote></div><br><br clear="all"><br>-- <br><span class="sg">Fernando Meyer </span></blockquote></div><br><br clear="all"><br>-- <br>Fernando Meyer