Yes.. that'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="3" split you don'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="3")<br><br><br><div class="gmail_quote">On Mon, Aug 10, 2009 at 12:30 PM, Marc Dzaebel <span dir="ltr"><<a href="mailto:mdzaebel@web.de">mdzaebel@web.de</a>></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>
"org.drools.compiler.RuleFlowLoadError: Unable to load the rule flow. :<br>
Exception class org.xml.sax.SAXParseException : <constraint> requires a<br>
'toType' attribute". 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>
<?xml version="1.0" encoding="UTF-8"?><br>
<process xmlns="<a href="http://drools.org/drools-5.0/process" target="_blank">http://drools.org/drools-5.0/process</a>"<br>
xmlns:xs="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"<br>
xs:schemaLocation="<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>"<br>
type="RuleFlow" name="ruleflow" id="com.sample.ruleflow"<br>
package-name="com.sample" ><br>
<header></header><br>
<nodes><br>
<start id="1" name="Start" x="16" y="16" /><br>
<actionNode id="2" name="Hello" x="246" y="138" width="80" height="48" ><br>
<action type="expression" dialect="mvel" >System.out.println("Hello<br>
World");</action><br>
</actionNode><br>
<end id="3" name="End" x="468" y="153" width="48" height="48" /><br>
<split id="4" name="Split" x="100" y="106" type="3" ><br>
<constraints><br>
<constraint toNodeId="2" name="constraint" priority="1" type="rule"<br>
dialect="mvel" >eval(true)</constraint><br>
<constraint toNodeId="5" name="test" priority="1" type="rule"<br>
dialect="mvel" >eval(true)</constraint><br>
</constraints><br>
</split><br>
<actionNode id="5" name="Test" x="228" y="51" ><br>
<action type="expression" dialect="mvel"<br>
>System.out.println("Test");</action><br>
</actionNode><br>
<end id="6" name="End" x="467" y="71" /><br>
</nodes><br>
<connections><br>
<connection from="4" to="2" /><br>
<connection from="2" to="3" /><br>
<connection from="1" to="4" /><br>
<connection from="4" to="5" /><br>
<connection from="5" to="6" /><br>
</connections><br>
</process><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 "Salaboy" Mauricio -<br>