<font face="verdana,sans-serif">Try \\n.  <br clear="all"></font>
<br><br><div class="gmail_quote">On Mon, Apr 25, 2011 at 5:48 PM, Faisal Shafique <span dir="ltr">&lt;<a href="mailto:just_faisal@yahoo.com">just_faisal@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
I want to know if following is a valid use of &#39;\n&#39; i.e new line character in a DSL to put different patterns on different lines in resulting DRL?<br>
<br>
[when]There is an instance of RulesContext=$rc:RulesContext()\n$ce:CaseEligibility()\n$cp:CertificationPeriod(startDate &lt;= $rc.calculationDate, endDate &gt;= $rc.calculationDate, caseId == $rc.caseId)<br>
<br>
which results in following DRL<br>
<br>
<br>
when<br>
<br>
$rc:RulesContext()<br>
$ce:CaseEligibility()<br>
$cp:CertificationPeriod(startDate &lt;= $rc.calculationDate, endDate &gt;= $rc.calculationDate, caseId == $rc.caseId)<br>
<br>
<br>
DSL parser expands this correctly but the question is whether this is a supported behavior or just works because of the way parsing works and hence may change in future?<br>
<br>
Thanks,<br>
<br>
Faisal Shafique<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br>