<br> You need to use trunk... that was not available in MR3 I think.<br><br><div><span class="gmail_quote">2007/7/18, Manukyan, Sergey <<a href="mailto:SManukyan@lear.com">SManukyan@lear.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="blue" lang="EN-US">
<div>
<p style=""><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Folks,</span></font></p>
<p style=""><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p style=""><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">I need
to disable shadowing for the facts, trying to</span></font><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> use "</span></font><font color="#2a00ff" face="Courier New" size="2">
<span style="font-size: 10pt; color: rgb(42, 0, 255);">drools.shadowProxyExcludes"</span></font><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> property like this:
</span></font></p>
<p style=""><font color="#2a00ff" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(42, 0, 255);"> </span></font></p>
<p style=""><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">---</span></font></p>
<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> </span></font><b><font color="#7f0055" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(127, 0, 85); font-weight: bold;">
final</span></font></b><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> PackageBuilder builder = </span></font><b><font color="#7f0055" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(127, 0, 85); font-weight: bold;">
new</span></font></b><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> PackageBuilder();</span></font></p>
<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> </span></font></p>
<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> builder.addPackageFromDrl( </span></font><b><font color="#7f0055" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(127, 0, 85); font-weight: bold;">
new</span></font></b><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> InputStreamReader( DroolsTest2.</span></font><b><font color="#7f0055" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(127, 0, 85); font-weight: bold;">
class</span></font></b><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">.getResourceAsStream( </span></font><font color="#2a00ff" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(42, 0, 255);">
"/rules.drl"</span></font><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> ) ) );</span></font></p>
<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> </span></font></p>
<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> <span style="background: yellow none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">
Properties prop = </span></span></font><b><font color="#7f0055" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 50%; font-size: 10pt; color: rgb(127, 0, 85); -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-weight: bold;">
new</span></font></b><font color="black" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 50%; font-size: 10pt; color: black; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">
Properties();</span></font></p>
<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> </span></font></p>
<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> <span style="background: yellow none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">
prop</span>.setProperty(</span></font><font color="#2a00ff" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(42, 0, 255);">"drools.shadowProxyExcludes"</span></font><font color="black" face="Courier New" size="2">
<span style="font-size: 10pt; color: black;">, </span></font><font color="#2a00ff" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(42, 0, 255);">"mypackage.MyClass"</span></font><font color="black" face="Courier New" size="2">
<span style="font-size: 10pt; color: black;">);</span></font></p>
<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> </span></font></p>
<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> RuleBaseConfiguration ruleBaseConfig = </span></font><b><font color="#7f0055" face="Courier New" size="2">
<span style="font-size: 10pt; color: rgb(127, 0, 85); font-weight: bold;">new</span></font></b><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> RuleBaseConfiguration(<span style="background: yellow none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">
prop</span>);</span></font></p>
<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> </span></font></p>
<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> </span></font><b><font color="#7f0055" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(127, 0, 85); font-weight: bold;">
final</span></font></b><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> RuleBase ruleBase = RuleBaseFactory.<i><span style="font-style: italic;">newRuleBase</span></i>(RuleBase.
</span></font><i><font color="#0000c0" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(0, 0, 192); font-style: italic;">RETEOO</span></font></i><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">
, ruleBaseConfig);</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> ruleBase.addPackage( builder.getPackage() );</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;"> </span></font></p>
<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> </span></font><b><font color="#7f0055" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(127, 0, 85); font-weight: bold;">
final</span></font></b><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> StatefulSession session = ruleBase.newStatefulSession();</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;"> </span></font></p>
<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> session.insert(before);</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;"> </span></font></p>
<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;"> session.fireAllRules(new MyClass());</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">---</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Doesn't have any effect, my class gets
still shadowed to become : </span></font><font color="#2a00ff" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(42, 0, 255);">mypackage.MyClassShadowProxy</span></font></p>
<p><font color="#2a00ff" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(42, 0, 255);"> </span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">How can I disable shadowing???</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Thanks,</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">-Sergey</span></font></p>
</div>
</div>
<table><tbody><tr><td bgcolor="#ffffff"><font color="#000000">**********************<br>
** LEGAL DISCLAIMER **<br>
**********************<br>
<br>
This E-mail message and any attachments may contain <br>
legally privileged, confidential or proprietary <br>
information. If you are not the intended recipient(s),<br>
or the employee or agent responsible for delivery of <br>
this message to the intended recipient(s), you are <br>
hereby notified that any dissemination, distribution <br>
or copying of this E-mail message is strictly <br>
prohibited. If you have received this message in <br>
error, please immediately notify the sender and <br>
delete this E-mail message from your computer.<br>
</font></td></tr></tbody></table><br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br></blockquote></div>
<br><br clear="all"><br>-- <br> Edson Tirelli<br> Software Engineer - JBoss Rules Core Developer<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">
www.jboss.com</a>