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
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
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
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
) {
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
)
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
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
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