<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16441" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=153014106-06062007><FONT face=Arial size=2>I'm new to the rules 
syntax and a bit frustrated with trying to learn it. I've reviewed the docs but 
keep running into the same issue. I have a parent object, Message, that contains 
an Order. An Order has a status that I want to test. So looking at the 
documentation and taking my best guess I've created a rule as 
follows:</FONT></SPAN></DIV>
<DIV><SPAN class=153014106-06062007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=153014106-06062007><B><FONT color=#960000>
<P align=left><FONT size=2>rule</FONT></B></FONT><FONT size=2> <FONT 
color=#008000>"Order not Accepted"<SPAN class=153014106-06062007> 
</SPAN></FONT></FONT></P>
<P align=left><FONT size=2><FONT color=#008000><SPAN 
class=153014106-06062007></SPAN></FONT><B><FONT 
color=#960000>when</P></B></FONT></FONT>
<P align=left><FONT size=2>$m : Message( state == MessageState.RELEASING, 
order.requestStatus == RequestStatus.ACCEPT )</FONT></P>
<P align=left><B><FONT color=#960000><FONT size=2>then</FONT></B></FONT><FONT 
size=2> </FONT></P>
<P align=left><STRONG><FONT color=#960000><SPAN class=153014106-06062007><FONT 
size=2>...</FONT></SPAN></FONT></STRONG></P>
<P align=left><STRONG><FONT color=#960000><SPAN 
class=153014106-06062007></SPAN><FONT size=2>end</FONT></FONT></STRONG></P>
<P align=left><SPAN class=153014106-06062007><FONT face=Arial size=2>The problem 
is that when I start my application I get a compilation 
error.</FONT></SPAN></P><SPAN class=153014106-06062007><FONT size=2>
<P align=left>Caused by: </P>
<P align=left>org.drools.rule.InvalidRulePackage: [54,48]: unknown:54:48 
Unexpected token ','[54,70]: unknown:54:70 mismatched token: 
[@427,1915:1916='==',&lt;75&gt;,54:70]; expecting type LEFT_PAREN[54,95]: 
unknown:54:95 mismatched token: [@434,1940:1940=')',&lt;37&gt;,54:95]; expecting 
type LEFT_PAREN</P>
<P align=left>at org.drools.rule.Package.checkValidity(</FONT><U><FONT 
color=#000080 size=2>Package.java:368</U></FONT><FONT 
size=2>)</P></FONT></SPAN></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=153014106-06062007>So what am I 
missing? I know it has to be something simple with my understanding of the 
syntax.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=153014106-06062007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=153014106-06062007>Thanks for the 
help...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV align=left><FONT face=Arial size=2>Chris Mathrusse</FONT></DIV>
<DIV align=left><FONT face=Arial size=2><A 
href="mailto:christopher.mathrusse@sybase.com">christopher.mathrusse@sybase.com</A></FONT></DIV>
<DIV align=left><FONT face=Arial size=2>(925) 236-5553</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>