rule A
	 Salience 10
 when
	  $anotherObject: MyFact(discard != true)
 then 
	  modify($anotherObj){ 
		   setDiscard(true)	
	  } 


"Modify" update your fact in the current working memory.


sridhar123 escreveu:
It means, I can not fire all rules at once, I need to groups and change
focus in my java code? 

I couldn't find any docs or examples to properly use Salience - could you
please share an example (if you have one)

thx



Alessandro Lazarotti wrote:
  
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

  
      
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users