Details
-
Bug
-
Resolution: Done
-
Critical
-
None
-
None
-
Workaround Exists
-
-
Low
Description
Consider a java bean or POJO with a public String FOO; and these accessors:
public String getFOO()
{ return FOO; }public void setFOO(String foo)
{ FOO = foo; }---------------------------------------
The
rule "relation existance"
when
r : MyBean ( FOO == "" )
then
System.out.println("Found " + r.getName() + ".");
end
...will cause:
org.drools.rule.InvalidRulePackage: Unable to create Field Extractor for 'FOO'
at org.drools.rule.Package.checkValidity(Unknown Source)
at org.drools.common.AbstractRuleBase.addPackage(Unknown Source)
...
Possible a quick fix only.
I've marked it BLOCKING, because it prevents me and possibly others of using Drools together with Jena, the Ontology API.
Best regards,
Andy