[rules-users] Salience not working
Alessandro Lazarotti
alessandro at siq.com.br
Mon May 12 19:14:12 EDT 2008
You need upate() the fact $anotherObj in Working Memory.
sridhar123 escreveu:
> rule A
> Salience 10
> when
> $data : MyFact( $anotherObj )
> then
> $anotherObj.setDiscard(true)
>
> rule B
> Salience 5
> when
> eval ($anotherObj.isDiscard() == true)
> then
> ...
>
>
> I am trying to get Rule A executed before Rule B. So when condition in Rule
> B is valid. However i dont see "Saliene" has any effect. How else i can do
> the above?
>
> thank you
>
>
More information about the rules-users
mailing list