[rules-users] disable shadowing facts in MR3

Edson Tirelli tirelli at post.com
Wed Jul 18 17:05:21 EDT 2007


   You need to use trunk... that was not available in MR3 I think.

2007/7/18, Manukyan, Sergey <SManukyan at lear.com>:
>
>  Folks,
>
>
>
> I need to disable shadowing for the facts, trying to use "
> drools.shadowProxyExcludes" property like this:
>
>
>
> ---
>
>             *final* PackageBuilder builder = *new* PackageBuilder();
>
>
>
>             builder.addPackageFromDrl( *new* InputStreamReader(
> DroolsTest2.*class*.getResourceAsStream( "/rules.drl" ) ) );
>
>
>
>             Properties prop = *new* Properties();
>
>
>
>             prop.setProperty("drools.shadowProxyExcludes", "
> mypackage.MyClass");
>
>
>
>             RuleBaseConfiguration ruleBaseConfig = *new*RuleBaseConfiguration(
> prop);
>
>
>
>             *final* RuleBase ruleBase = RuleBaseFactory.*newRuleBase*
> (RuleBase.*RETEOO*, ruleBaseConfig);
>
>
>
>             ruleBase.addPackage( builder.getPackage() );
>
>
>
>             *final* StatefulSession session = ruleBase.newStatefulSession
> ();
>
>
>
>             session.insert(before);
>
>
>
>             session.fireAllRules(new MyClass());
>
>
>
> ---
>
>
>
> Doesn't have any effect, my class gets still shadowed to become :
> mypackage.MyClassShadowProxy
>
>
>
> How can I disable shadowing???
>
>
>
> Thanks,
>
>
>
> -Sergey
>  **********************
> ** LEGAL DISCLAIMER **
> **********************
>
> This E-mail message and any attachments may contain
> legally privileged, confidential or proprietary
> information. If you are not the intended recipient(s),
> or the employee or agent responsible for delivery of
> this message to the intended recipient(s), you are
> hereby notified that any dissemination, distribution
> or copying of this E-mail message is strictly
> prohibited. If you have received this message in
> error, please immediately notify the sender and
> delete this E-mail message from your computer.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070718/d44477cd/attachment.html 


More information about the rules-users mailing list