<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I&#8217;ve done it both with setting the value and forcing salience to evaluate in a certain order and using the update a value with and without salience.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>It&#8217;s odd because when I was doing this on a standalone machine in Eclipse it all seemed to work fine, but now that I&#8217;ve moved rules into Guvnor I&#8217;m having issues with it.&nbsp; Could there be something I did in calling agenda groups that could have removed the working of salience?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Also, I was using no-loop to make sure I didn&#8217;t run the same rule over and over.&nbsp; It only effects things if the rule has fired for one specific instance, correct?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thank you!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] <b>On Behalf Of </b>Michael Anstis<br><b>Sent:</b> Friday, March 18, 2011 10:43 AM<br><b>To:</b> Rules Users List<br><b>Subject:</b> Re: [rules-users] Agenda Groups and Salience<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Do you inform the engine that values have changed in your RHS:-<br><br>then<br>&nbsp;&nbsp;&nbsp; modify( incomingClaim ) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setMedicare(true);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; ...<br>end<o:p></o:p></p><div><p class=MsoNormal>On 18 March 2011 14:16, Dean Whisnant &lt;<a href="mailto:dean@basys.com">dean@basys.com</a>&gt; wrote:<o:p></o:p></p><p class=MsoNormal>Hello,<br><br>Are there any conflicts in 5.1 between using salience and agenda groups?<br><br>I have three sets of rules 1) base software, 2) Trading Partner Specific, 3) &nbsp;Customer Specific.<br><br>These three sets are split into different Guvnor packages and all of #1 have an agenda group of &quot;base&quot;, all of #2 have an agenda group of &quot;tradingpartner&quot; and all of #3 have no agenda group assigned.<br><br>We load all the rules to the knowledge session, letting it know to fire them in that order.<br><br>In my #1 set I have a few hundred rules. &nbsp;About 10 of those rules it matters what individual order they fire in so I was setting up salience for them as well.<br><br>Rule #1 has a salience of 21000 and it's job is to see if this is the first line item of a claim and if so to instantiate a new object, hasCOB.<br><br>Rule #2 has a salience of 20900 and checks to see if the incoming claim is medicare and if so, sets a Boolean, hasMedicare, to true and then does some output so I know if it set it<br><br>Rule #3 has a salience of 20900 and checks to see if the incoming claim is other insurance and if so, sets a Boolean, hasOther, to true and then does some output so i know if it set it<br><br>Rule #4 has a salience of 20800 and looks to see if there is a hasCOB object with hasMedicare = to true and then does output so I know if it worked<br><br>Rule #5 has a salience of 20800 and looks to see if there is a hasCOB object with hasOther = to true and then does output so I know if it worked<br><br>So I run a sample file through that hasCOB and should set hasOther to true.<br><br>Rule #1 fires and creates hasCOB<br>Rule #3 fires and sets hasOther to true and gives me output<br>Rule #5 doesn't fire???<br><br>Whether or not salience is the best method to accomplish this, shouldn't this work? &nbsp;DO you see a better way to accomplish this? &nbsp;Rules 4 and 5 are dummy rules here for testing, but what comes next is calculations based upon the existence of hasOther and/or hasMedicare.<br><br>I'm at a loss here and any thoughts/help would be welcomed...<br><br>Thank you!<br><br>Dean<br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><o:p></o:p></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>