Further to Mauricio's reply you need to understand that rules do not activate in serial but indeed parallel, the execution of which is handled by the engine's agenda.

In addition to the solution given you could consider jBPM (Rule flow) if you need to consider "dependant" execution.

With kind regards,

Mike

2011/2/16 Mauricio Salatino <salaboy@gmail.com>
you can do something like:

rule "Error Check"
salience 100

when
error condition check
then
System.Out.Println("Response has errors");
XXXXXXXXXXXXXXXXXXXXXXXX to exit from rule execution
insert(Stop())
end


rule "Rule-01"
salience 99
when
not(Stop())
repsonse.getxx()

then 

end.


2011/2/16 Sathya Prakash <prakashagarval@gmail.com>
Hi,

How to stop rule execution in  technical rule, 
Example 

rule "Error Check"
salience 100

when
error condition check
then
System.Out.Println("Response has errors");
XXXXXXXXXXXXXXXXXXXXXXXX to exit from rule execution
end


rule "Rule-01"
salience 99
when
repsonse.getxx()

then 

end.

if first rule then part executed means the response is error hence we should not execute second.
Is there any way to exit rule execution.


Regards,
Sathya Prakash.

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




--
 - CTO @ http://www.plugtree.com 
 - MyJourney @ http://salaboy.wordpress.com
 - Co-Founder @ http://www.jbug.com.ar
 
 - Salatino "Salaboy" Mauricio -

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