<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #000000'>Hi Kevin,<br><br>Is your Person() function within in the constraint returning a boolean result?&nbsp; If not, then that could be the issue.&nbsp; From the documentation on Drools Flow:<br><br><span class="emphasis"><a id="d0e1118"><em>"Code constraints</em></a></span><a id="d0e1118"> are boolean expressions,
        evaluated directly whenever they are reached. We currently support two
        dialects for expressing these code constraints: Java and MVEL.
        Both Java and MVEL code constraints have direct access
        to the globals and variables defined in the process."<br><br>You can find it here under section 3.5 if you'd like to read more:<br>http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-flow/html_single/index.html#d0e1118<br></a><br><div>Jeremy Ary<br>
<span style="font-style: italic;">Jr Software Developer</span>, <span style="font-style: italic;">IT</span><br><br>
<img src="https://www.franklinamerican.com/%7Ejary/email_sig_logo.jpg"><br><br>501 Corporate Centre Drive<br>
Franklin, TN 37067<br>
Toll Free: 800.295.1020<br>
Direct: 615.778.2441<br>
email: jary@franklinamerican.com<br>
web: <a href="http://www.franklinamerican.com">www.franklinamerican.com</a></div><br><br>----- Original Message -----<br>From: "Kevin Alonso" &lt;kalonso@vicomtech.org&gt;<br>To: "Rules Users List" &lt;rules-users@lists.jboss.org&gt;<br>Sent: Wednesday, September 23, 2009 3:47:17 AM GMT -06:00 US/Canada Central<br>Subject: [rules-users] Event Wait Nodo in a ruleflow<br><br>Hello,<br>I´m working with a simple flow that has a &nbsp;Event Wait node. This node <br>has the following condition:<br>- Person()<br><br>Being Person a class that is not inserted into the session yet.<br><br>When the flow arrives to the event wait node its execution stops and the <br>test main class execution continues. Here I insert a Person object to <br>the session, so now, the flow can continue. After wait node I have a <br>Split node, which has the followings constraints:<br><br>- Person()<br><br>- not Person()<br><br>The flow always take the not Person() way. But now a Person instance is <br>into the session.<br><br>Why is happening this?<br><br>Could anyone help me?<br><br>Thank you,<br>Kevin<br>_______________________________________________<br>rules-users mailing list<br>rules-users@lists.jboss.org<br>https://lists.jboss.org/mailman/listinfo/rules-users<br></div></body></html>