I had a similar problem and I think it has to do with the fact that
you declare in the drl that service is a HashMap but in the Java class
it is a HashMap<String, AIObject>. I could be wrong, but you might
try making them match. I think that's what worked for me, if my
memory serves me correctly.
Sara
On Mon, Jun 30, 2008 at 9:37 AM, thomas kukofka <thomaskukofka(a)web.de> wrote:
Hello,
I get this exception: Exception in thread "main" java.lang.RuntimeException:
Unexpected global [service]
That's the global declaration in the drl: global java.util.HashMap service
And ther I set teh global in teh Java-class:
HashMap<String, AIOObject> service = new HashMap<String, AIOObject>();
workingMemory.setGlobal("service", service);
Appreciate your help!
Kind Regards
Thomas
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
Sara Alspaugh
Undergraduate Student
Computer Science Department
University of Virginia
www.cs.virginia.edu/alspaugh