<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16525" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>You should also use the parentheses for functions,
as in normal Java code:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> eval ( teste() )</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Of course you can add parameters etc. to your
functions like this as well.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Kris</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=rafael.alcemar@gmail.com
href="mailto:rafael.alcemar@gmail.com">Rafael Alcemar</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=rules-users@lists.jboss.org
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, August 17, 2007 4:02
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [rules-users] Function Call in
LHS</DIV>
<DIV><BR></DIV>Hello guys! This is my first question for the list. I've
defined a function in my DRL file to evaluate if a user can do a specific
operation in my system. This function returns a boolean result. My question is
if I can use this function in the test of LHS. <BR><BR>For
example:<BR><BR>rule "Cliente pode alugar"<BR>
when<BR>
eval(teste)<BR> then<BR>
System.out.println("XXXXXX");<BR> end<BR><BR><BR>function boolean teste(
) {<BR> return true; <BR>}<BR><BR><BR>Please, if anybody has
some help, send me.<BR><BR>Thanks!<BR>Rafael Alcemar<BR>
<P>
<HR>
<P></P>_______________________________________________<BR>rules-users mailing
list<BR>rules-users@lists.jboss.org<BR>https://lists.jboss.org/mailman/listinfo/rules-users<BR></BLOCKQUOTE></BODY></HTML>