Hi!
You could try something like this. I'm not 100% sure that this works:
$player : Player(name == "John")
$roster : TeamRoster($teams : teams, $teams.get("Dodgers") contains $player)
-Jarkko
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-Searching-for-an-obj
Manstis was right, I was trying to access Java class with the API for
accessing declared (DRL) types.
ValidationError class was created with Drools Workbench data modeller. I
thought that data modeller creates declarative classes, like in Drools
Guvnor.
I imported ValidationError as normal Java cla
This ValidationError is created with drools workbench data modeller. It has
only String fields.
I have only couple of rules (which will create two ValidationErrors) and one
query (for the ValidationError) in the knowledgebase.
-Jarkko
--
View this message in context:
http://drools.46999.n3.na
I have this problem also with drools versions 6.0.1.FINAL and 6.1.0.Beta1
org.kie.api.definition.type.FactType.get(Object bean, String field)
gives NullPointerException with default KieBase
KieContainer kContainer =
kieServices.newKieContainer(kieServices.newReleaseId("com.test",
"validationrules
Drools version 6.0.0.FINAL
I create rule package in Drools workbench and use default knowledgebase and
session:
KieServices kieServices = KieServices.Factory.get();
KieContainer kContainer =
kieServices.newKieContainer(kieServices.newReleaseId("com.test",
"validationrules", "1.0-SNAPSHOT"));
We have a program that validates large amount of data. When changing this
program to use drools 6.0.1 instead of 5.5.0, this GC overhead limit
exceeded problem occurred.
Program reads one object to memory, then validate it and then retract it.
This is repeated thousands of times.
java version "1.7