<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>You could use RuleFlow, sure. But you don&#39;t have to. <br><br>Consider the following:-<br><br></div><div><b>1) Intermediate facts<br>
</b><br></div>when<br></div>    $p : Person( age &lt; 18 )<br></div>then<br></div>    insertLogical( new Juvenile( $p ) );<br>end<br><br>when<br></div>    $p : Person( age &gt;= 18 )<br></div>then<br></div>    insertLogical( new Adult( $p ) );<br>
end<br><br></div>when<br></div>    Juvenile()<br></div>then<br></div>    //Whatever<br>end<br><br></div>when<br></div>    Adult()<br></div>then<br></div>    //Whatever<br></div>end<br><br></div>Both Juvenile and Adult could be declared types.<br>
<br><div><b>2) Multiple patterns<br>
</b><br>
</div>when<br>
    $p : Person( age &lt; 18 )<br></div>    WhateverCheckYouNeedForJuveniles( )<br><div>
then<br></div><div>    //Whatever<br></div><div>end<br>
<br>
when<br>
    $p : Person( age &gt;= 18 )<br>
    WhateverCheckYouNeedForAdults( )<br>

then<br>    //Whatever<br>
end</div><div>
<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 23 September 2013 07:24, ashish6276 <span dir="ltr">&lt;<a href="mailto:ashishkumarec010@gmail.com" target="_blank">ashishkumarec010@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You can do this.<br>
<br>
There is a property called ruleflowGroup. Associate this propert with all 3<br>
of your rule. So now your Rule 1 has ruleflowgroup 1, Rule 2 has ruleFlow<br>
group2 and rule3 has ruleflowgroup3.<br>
<br>
Now create a rule flow.<br>
create rule task 1. go to property tab. associate the ruleflowgroup1 with<br>
this task so your rule 1 is associated here.<br>
Then create a diverge node. diverge based on condition if age is greater<br>
than or less than 18.<br>
so you have 2 flow from here. create 2 more rule task. associate ruleflow<br>
group 2 and rule flowgroup3 with these. now add sequence flow based on your<br>
converge. then have a converge node. join flow coming from both way here.<br>
create end node.<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/How-To-Implement-Rule-Flow-tp4025932p4026084.html" target="_blank">http://drools.46999.n3.nabble.com/How-To-Implement-Rule-Flow-tp4025932p4026084.html</a><br>

<div class="im HOEnZb">Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div>