java - Is it possible to unexpose a Rule in Drools? -


let's i've drools file this,

rule "test rule 1" salience 10  when     $data : map( this["amount"] >= 1000 && this["quantity"] >=3 )     system.out.println("you've met criteria"); end  ===========================================================================================  rule "test rule 2" salience 9  when     $data : map( this["amount"] >= 1000 )     system.out.println("quantity criteria not met"); end  ===========================================================================================  rule "test rule 3" salience 8  when     $data : map( this["quantity"] >= 3 )     system.out.println("amount criteria not met"); end 

all these present in single .drl file. in rule, order of rule based on highest salience number. need like,

1) if test rule 1 satisfied, dont want further rules executed.

2) if test rule 1 not satisfied, dont have worry, it'll execute other rules in order of highest salience.

is there option hiderule("test rule 2", "test rule 3") or hiderules() - should unexpose rules waiting executed

i know can alter when condition meet criteria, know if there option unexpose rule in drools?

add drools.halt(); @ end of test rule 1


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -