Yes.. that&#39;s because you are using an OR split.. it can not support both constraints to be true. In other words if you use a  type=&quot;3&quot; split you don&#39;t need to put that constraints because just one will be triggered.<br>
If you want an XOR or an AND split change the type of the split node. ( type=&quot;3&quot;)<br><br><br><div class="gmail_quote">On Mon, Aug 10, 2009 at 12:30 PM, Marc Dzaebel <span dir="ltr">&lt;<a href="mailto:mdzaebel@web.de">mdzaebel@web.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hi,<br>
<br>
after creating the standard RuleFlow example with Drools 5 in Eclipse,<br>
adding a gateway with two (true) constraints leads to the following error<br>
&quot;org.drools.compiler.RuleFlowLoadError: Unable to load the rule flow. :<br>
Exception class org.xml.sax.SAXParseException : &lt;constraint&gt; requires a<br>
&#39;toType&#39; attribute&quot;. This seems to be a very basic serious problem.<br>
<br>
Here is my RuleFlow file in which I only added one split node and a trivial<br>
output action.<br>
<br>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>
&lt;process xmlns=&quot;<a href="http://drools.org/drools-5.0/process" target="_blank">http://drools.org/drools-5.0/process</a>&quot;<br>
         xmlns:xs=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&quot;<br>
         xs:schemaLocation=&quot;<a href="http://drools.org/drools-5.0/process%0Adrools-processes-5.0.xsd" target="_blank">http://drools.org/drools-5.0/process<br>
drools-processes-5.0.xsd</a>&quot;<br>
         type=&quot;RuleFlow&quot; name=&quot;ruleflow&quot; id=&quot;com.sample.ruleflow&quot;<br>
package-name=&quot;com.sample&quot; &gt;<br>
  &lt;header&gt;&lt;/header&gt;<br>
  &lt;nodes&gt;<br>
    &lt;start id=&quot;1&quot; name=&quot;Start&quot; x=&quot;16&quot; y=&quot;16&quot; /&gt;<br>
    &lt;actionNode id=&quot;2&quot; name=&quot;Hello&quot; x=&quot;246&quot; y=&quot;138&quot; width=&quot;80&quot; height=&quot;48&quot; &gt;<br>
        &lt;action type=&quot;expression&quot; dialect=&quot;mvel&quot; &gt;System.out.println(&quot;Hello<br>
World&quot;);&lt;/action&gt;<br>
    &lt;/actionNode&gt;<br>
    &lt;end id=&quot;3&quot; name=&quot;End&quot; x=&quot;468&quot; y=&quot;153&quot; width=&quot;48&quot; height=&quot;48&quot; /&gt;<br>
    &lt;split id=&quot;4&quot; name=&quot;Split&quot; x=&quot;100&quot; y=&quot;106&quot; type=&quot;3&quot; &gt;<br>
      &lt;constraints&gt;<br>
        &lt;constraint toNodeId=&quot;2&quot; name=&quot;constraint&quot; priority=&quot;1&quot; type=&quot;rule&quot;<br>
dialect=&quot;mvel&quot; &gt;eval(true)&lt;/constraint&gt;<br>
        &lt;constraint toNodeId=&quot;5&quot; name=&quot;test&quot; priority=&quot;1&quot; type=&quot;rule&quot;<br>
dialect=&quot;mvel&quot; &gt;eval(true)&lt;/constraint&gt;<br>
      &lt;/constraints&gt;<br>
    &lt;/split&gt;<br>
    &lt;actionNode id=&quot;5&quot; name=&quot;Test&quot; x=&quot;228&quot; y=&quot;51&quot; &gt;<br>
        &lt;action type=&quot;expression&quot; dialect=&quot;mvel&quot;<br>
&gt;System.out.println(&quot;Test&quot;);&lt;/action&gt;<br>
    &lt;/actionNode&gt;<br>
    &lt;end id=&quot;6&quot; name=&quot;End&quot; x=&quot;467&quot; y=&quot;71&quot; /&gt;<br>
  &lt;/nodes&gt;<br>
  &lt;connections&gt;<br>
    &lt;connection from=&quot;4&quot; to=&quot;2&quot; /&gt;<br>
    &lt;connection from=&quot;2&quot; to=&quot;3&quot; /&gt;<br>
    &lt;connection from=&quot;1&quot; to=&quot;4&quot; /&gt;<br>
    &lt;connection from=&quot;4&quot; to=&quot;5&quot; /&gt;<br>
    &lt;connection from=&quot;5&quot; to=&quot;6&quot; /&gt;<br>
  &lt;/connections&gt;<br>
&lt;/process&gt;<br>
<br>
Any ideas?<br>
<br>
Thanks in advance<br>
<br>
Marc<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://www.nabble.com/Drools-5-RuleFlow-error-in-constraints-of-simplest-split-node-tp24901923p24901923.html" target="_blank">http://www.nabble.com/Drools-5-RuleFlow-error-in-constraints-of-simplest-split-node-tp24901923p24901923.html</a><br>

Sent from the drools - user mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> - Salatino &quot;Salaboy&quot; Mauricio -<br>