[rules-users] Writing rules against derived facts.

2008-01-31 Thread Faron Dutton
Hi, I am having trouble understanding why the following does not work in 4.0.4. rule A when foo : Foo( bar == true ) then insertLogical( new DerivedFact( relationName, foo, Boolean.TRUE ) ); end rule B when tuple : DerivedFact( name == relationName ) then

Re: [rules-users] Embedding Drools in Eclipse

2008-12-05 Thread Faron Dutton
I proposed a solution in your other thread. http://lists.jboss.org/pipermail/rules-users/2008-December/007316.html On Wed, Dec 3, 2008 at 12:04 PM, keithnielsen [EMAIL PROTECTED] wrote: Edson, Thanks for your response. I will try your suggestions as well try (again) to upgrade to M3. Having

Re: [rules-users] NoClassDefFoundError: BaseObjectClassFieldReader

2008-12-05 Thread Faron Dutton
automagically in OSGi deployments? []s Edson 2008/12/5 Faron Dutton [EMAIL PROTECTED] I have successfully loaded rules and facts from other bundles in Eclipse 3.4. I encountered the same issue, which is due to the ClassLoader behavior defined by OSGi v4. Eclipse 3.3 introduced the new

[rules-users] Reasoning over hierarchies.

2009-01-21 Thread Faron Dutton
I know this has probably been asked before but I cannot find any mention of it. How does one reason over a transitive (recursive) relation in Drools? --- The classic example from Prolog: -- The relation parent(P,C) says that P is a parent

Re: [rules-users] Reasoning over hierarchies.

2009-01-21 Thread Faron Dutton
) { ancestors.add(currentAncestor); currentAncestor = currentAncestor.getParent(); } } } query isAncestor(String a, String b) p: Person(name = a) c: Person(name = b, ancestors contains p) end that should do it dave On Wed, Jan 21, 2009 at 8:54 AM, Faron

Re: [rules-users] Reasoning over hierarchies.

2009-01-21 Thread Faron Dutton
) end that should do it dave On Wed, Jan 21, 2009 at 8:54 AM, Faron Dutton fgdut...@gmail.com wrote: I know this has probably been asked before but I cannot find any mention of it. How does one reason over a transitive (recursive) relation in Drools

RE: [rules-users] Drools 5 m4 in IRAD/Websphere

2009-02-03 Thread Faron Dutton
Take a look at Retroweaver (http://retroweaver.sourceforge.net/). It compiles Java 5 source to JRE 1.4 classes. I remember there being several open-source tools like this but I could not find them with a quick search. I have not used this myself but have plans to integrate it into my build

RE: [rules-users] OSGI, classloading, and imports in KnowledgeBuilder

2009-06-19 Thread Faron Dutton
to add * comments and declarations for generic types. * * @author Simon Kaegi * @author Faron Dutton */ public class BundleProxyClassLoader extends ClassLoader implements DroolsClassLoader { private final Bundle bundle; /** * Initializes a new instance of this class