For example:<br><br>[when]It is raining outside and temperature is {temp}=eval( weatherService.isRaining() &amp;&amp; weatherService.getTemp() == temp )<br><br>Assumes there is a global &quot;service&quot; called weatherService. 
<br><br><div><span class="gmail_quote">On 3/1/07, <b class="gmail_sendername">Michael Neale</b> &lt;<a href="mailto:michael.neale@gmail.com">michael.neale@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
yes, in the mapping use an &quot;eval (... your code here ...)&quot; and you can take the mapping from the DSL sentence. <div><span class="e" id="q_1110c31677c9f980_1"><br><br><div><span class="gmail_quote">On 2/28/07, <b class="gmail_sendername">
kingston</b> &lt;<a href="mailto:raja_kingston@yahoo.co.in" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
raja_kingston@yahoo.co.in</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br><br>Is it possible to write a rule in DSL to check for a value that is returned
<br>by a calls to a java method in the Condition part ?<br><br>Are there any sample codes for using eval in DSL Syntax or for calling java<br>methods ?<br><br><br><br>--<br>View this message in context: <a href="http://www.nabble.com/DSL---Calling-Java-Method-%2C-Eval-functions-tf3307311.html#a9199397" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://www.nabble.com/DSL---Calling-Java-Method-%2C-Eval-functions-tf3307311.html#a9199397</a><br>Sent from the drools - user mailing list archive at <a href="http://Nabble.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Nabble.com</a>.<br><br>_______________________________________________
<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></blockquote></div><br>
</span></div></blockquote></div><br>