<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<pre wrap="">rule A
<span class="moz-txt-citetags">         </span>Salience 10
<span class="moz-txt-citetags"> </span>when
<span class="moz-txt-citetags">         </span> $anotherObject: MyFact(discard != true)
<span class="moz-txt-citetags"> </span>then
         modify($anotherObj){
                 setDiscard(true)        
         }
"Modify" update your fact in the current working memory.
</pre>
<br>
<br>
sridhar123 escreveu:
<blockquote cite="mid:17213122.post@talk.nabble.com" type="cite">
<pre wrap="">
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:
</pre>
<blockquote type="cite">
<pre wrap="">You need upate() the fact $anotherObj in Working Memory.
sridhar123 escreveu:
</pre>
<blockquote type="cite">
<pre wrap="">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
</pre>
</blockquote>
<pre wrap="">_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>