<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hello<br><br>I created a ruleflow like this one:<br>http://i41.tinypic.com/2efmctx.jpg<br><br>And this is the rule package (rules are demonstrative only and one per group, but later on more will be added in each group.<br><br>package package1<br><br>#list any import classes here.<br>...<br><br><br>#declare any global variables here<br>...<br><br><br>rule "start workflow"<br>&nbsp;&nbsp;&nbsp; salience 1000<br>&nbsp;&nbsp;&nbsp; when<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; eval (true)<br>&nbsp;&nbsp;&nbsp; then <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.out.println("matchata regola start");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; drools.getWorkingMemory().startProcess("rf_main");<br><br>end&nbsp;&nbsp;&nbsp; <br><br>rule "Preferenza"<br>&nbsp;&nbsp;&nbsp; ruleflow-group "modParams"<br>&nbsp;&nbsp;&nbsp; when<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; nRound : NumeroRound( n : numeroRound)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pw : PreferenceWrapper(round == n ,pref : preference)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; then <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pw.setRound(n+1);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.out.println("matchata regola pref");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.out.println("preferenza: "+ pref.getName());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>end<br><br>rule "query for results"<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; ruleflow-group "queryResult"<br>&nbsp;&nbsp;&nbsp; when<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #conditions<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; nRound : NumeroRound(n : numeroRound)<br>&nbsp;&nbsp;&nbsp; then <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #actions<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.out.println("matchata regola query");<br><blockquote>...<br></blockquote>end<br><br>rule "fasulla"<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; ruleflow-group "fasullo"<br>&nbsp;&nbsp;&nbsp; when<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; eval (true)<br>&nbsp;&nbsp;&nbsp; then <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #actions<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.out.println("sei fasullo1");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>end<br><br><br><br>In the ruleflow, the join node is XOR type.<br>Split node is XOR type and checks with the object NumeroRound and the variable numeroRound which is an int. If it is big enough it exits, else continue to "fasullo" group<br><br>the issue is that the matching goes through "modParams" group, then "queryResult" group, then "fasullo" group, but after that it freezes, instead of going angain in group "modParams". Note that it doesnt finish the execution, it waits something.<br><br>What is wrong with this ruleflow?<br><br>thanks in advance,<br>Alessandro Terrinoni<br><br /><hr />Scegli fra pił di 30 stazioni!  <a href='http://clk.atdmt.com/GBL/go/140630364/direct/01/' target='_new'>Ascolta la radio su Messenger</a></body>
</html>