[rules-users] Else condition in drl file

FrankVhh frank.vanhoenshoven at agserv.eu
Wed Jun 13 08:08:10 EDT 2012


Hi,

You could put them all in the same activation-group and give low salience to
the default rule.

See documentation for more details. It seems they are doing a bit of
maintenance on the website, so you might have to be patient for a while.

Regards,
Frank


learner wrote
> 
> Hi,
> 
> I have a scenario like
> 
> if(value == 200){
>   // then do something
> }else if(value == 100){
> // then do something
> }else{
> value = 0
> }
> 
> I created drl with 3 rules
> Rule 1 : value  equal 200
> Rule 2 : value  equal 100
> Rule 3 : value not equal to 100 or 200(ie by value!=200 & value!=100 ).
> 
> Is there a way by which I can simplify the condition in rule 3.
> 


--
View this message in context: http://drools.46999.n3.nabble.com/Else-condition-in-drl-file-tp4017903p4017909.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list