You can simplify the &quot;ignore case&quot; for the keyword:<br>    [keyword][](?i:func checkIfVia)=...<br><br>You should write the entire function as the right hand side. Take care to escape &#39;{&#39; and &#39;}&#39;:<br>
...=function boolean checkIfVia(Route route, String locationCode) \{ if (route != null) \{ Via[] viaArr = route.getViaArray();  for(int i=1; i &lt; viaArr.length; i++)   if ( viaArr[i].getLocationCode().equalsIgnoreCase(locationCode) ) return true;  \} return false; \}<br>
<br>5.2.0 permit line breaks on the right hand side of DSL definitions.<br>-W<br><br><br><div class="gmail_quote">On 31 May 2011 07:43, Bala <span dir="ltr">&lt;<a href="mailto:bala.ganesh@accenture.com">bala.ganesh@accenture.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks Wolfgang..<br>
Should it be the same way, i have splited the function into blocks in DSL<br>
Mapping??<br>
I am more concerned about writing the function mapping in DSL since writing<br>
these functions in java requires compilation and redeployment in server.<br>
<br>
-Bala<br>
<br>
<br>
<br>
<br>
-----<br>
Thanks,<br>
Bala<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Clarification-needed-in-writing-DSL-function-mapping-tp3002064p3004691.html" target="_blank">http://drools.46999.n3.nabble.com/Clarification-needed-in-writing-DSL-function-mapping-tp3002064p3004691.html</a><br>

</font><div><div></div><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<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>
</div></div></blockquote></div><br>