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.
If you want an XOR or an AND split change the type of the split node. ( type="3")


On Mon, Aug 10, 2009 at 12:30 PM, Marc Dzaebel <mdzaebel@web.de> wrote:

Hi,

after creating the standard RuleFlow example with Drools 5 in Eclipse,
adding a gateway with two (true) constraints leads to the following error
"org.drools.compiler.RuleFlowLoadError: Unable to load the rule flow. :
Exception class org.xml.sax.SAXParseException : <constraint> requires a
'toType' attribute". This seems to be a very basic serious problem.

Here is my RuleFlow file in which I only added one split node and a trivial
output action.

<?xml version="1.0" encoding="UTF-8"?>
<process xmlns="http://drools.org/drools-5.0/process"
        xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
        xs:schemaLocation="http://drools.org/drools-5.0/process
drools-processes-5.0.xsd
"
        type="RuleFlow" name="ruleflow" id="com.sample.ruleflow"
package-name="com.sample" >
 <header></header>
 <nodes>
   <start id="1" name="Start" x="16" y="16" />
   <actionNode id="2" name="Hello" x="246" y="138" width="80" height="48" >
       <action type="expression" dialect="mvel" >System.out.println("Hello
World");</action>
   </actionNode>
   <end id="3" name="End" x="468" y="153" width="48" height="48" />
   <split id="4" name="Split" x="100" y="106" type="3" >
     <constraints>
       <constraint toNodeId="2" name="constraint" priority="1" type="rule"
dialect="mvel" >eval(true)</constraint>
       <constraint toNodeId="5" name="test" priority="1" type="rule"
dialect="mvel" >eval(true)</constraint>
     </constraints>
   </split>
   <actionNode id="5" name="Test" x="228" y="51" >
       <action type="expression" dialect="mvel"
>System.out.println("Test");</action>
   </actionNode>
   <end id="6" name="End" x="467" y="71" />
 </nodes>
 <connections>
   <connection from="4" to="2" />
   <connection from="2" to="3" />
   <connection from="1" to="4" />
   <connection from="4" to="5" />
   <connection from="5" to="6" />
 </connections>
</process>

Any ideas?

Thanks in advance

Marc

--
View this message in context: http://www.nabble.com/Drools-5-RuleFlow-error-in-constraints-of-simplest-split-node-tp24901923p24901923.html
Sent from the drools - user mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



--
- http://salaboy.wordpress.com
- http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -