[rules-users] Unexpected global error

Sara Alspaugh alspaugh at virginia.edu
Mon Jun 30 19:39:23 EDT 2008


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 at 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 at 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



More information about the rules-users mailing list