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
you can do something like:rule "Error Check"
salience 100
whenerror condition checkthenSystem.Out.Println("Response has errors");XXXXXXXXXXXXXXXXXXXXXXXX to exit from rule executioninsert(Stop())endnot(Stop())
rule "Rule-01"
salience 99
whenrepsonse.getxx()thenend.2011/2/16 Sathya Prakash <prakashagarval@gmail.com>_______________________________________________Hi,How to stop rule execution in technical rule,Examplerule "Error Check"
salience 100
whenerror condition checkthenSystem.Out.Println("Response has errors");XXXXXXXXXXXXXXXXXXXXXXXX to exit from rule executionend
rule "Rule-01"
salience 99
whenrepsonse.getxx()thenend.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