<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
only inside an eval or return value.<br>
<br>
Mark<br>
BINET JEAN-BAPTISTE wrote:
<blockquote
cite="mid:55E56F7E72CACC44834A09A34ADEC7A2A03F1A@FRMRSSMBS31.ad2.ad.alcatel.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator"
content="MS Exchange Server version 6.5.7652.24">
<title>Function call in LHS</title>
<!-- Converted from text/rtf format -->
<p><font face="Arial" size="2">Hello,</font>
</p>
<p><font face="Arial" size="2">I am new to Drools. I have downloaded
and installed Drools 4.0.7.</font>
<br>
<font face="Arial" size="2">After having read the documentation, I
saw that it is possible to create function in the .drl file.</font>
<br>
<font face="Arial" size="2">I succeed in creating a function, calling
it in the LHS with eval() instruction or in the RHS.</font>
<br>
<font face="Arial" size="2">But, is it possible to call a function in
the LHS out of an eval() ? For example, I would like to use</font>
<br>
<font face="Arial" size="2">a pattern such as : </font>
<br>
<font face="Arial" size="2">$tmp : MyClass( name == MyFunction() )</font>
</p>
<p><font face="Arial" size="2">Thanks in advance.</font>
</p>
<p><font face="Arial" size="2">Regards.</font>
</p>
<p><font face="Arial" size="2">JB</font>
</p>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>