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