atom feed11 messages in org.codehaus.esper.devRe: [esper-dev] Accessing an array in...
FromSent OnAttachments
Gavin1234Oct 3, 2008 1:36 am 
Thomas BernhardtOct 3, 2008 3:56 am 
Thomas BernhardtOct 3, 2008 6:39 am 
Gavin1234Oct 3, 2008 7:06 am 
Thomas BernhardtOct 3, 2008 4:52 pm 
Gavin1234Oct 6, 2008 8:45 am 
Thomas BernhardtOct 7, 2008 3:52 am 
Gavin1234Oct 7, 2008 4:50 am 
Thomas BernhardtOct 7, 2008 5:00 am 
Gavin1234Oct 7, 2008 6:46 am 
Thomas BernhardtOct 7, 2008 7:31 am 
Subject:Re: [esper-dev] Accessing an array in EPL
From:Thomas Bernhardt (bern@yahoo.com)
Date:Oct 7, 2008 7:31:16 am
List:org.codehaus.esper.dev

Hi Gavin,

the reply was a proposal to what we can do, not what the current verion does.

Best regards, Tom

----- Original Message ---- From: Gavin1234 <g.ch@btinternet.com> To: de@esper.codehaus.org Sent: Tuesday, October 7, 2008 9:46:45 AM Subject: Re: [esper-dev] Accessing an array in EPL

Hi, just tried the suggestion but get the following exception with the example code below:

com.espertech.esper.client.EPException: Nestable map type configuration encountered an unexpected property type of 'String' for property 'route', expected java.lang.Class or java.util.Map

<snip>         HashMap<String, Object> routeNodeMap = new HashMap<String, Object>();         routeNodeMap.put("location", String.class);       epService.getEPAdministrator().getConfiguration().addNestableEventTypeAlias("RouteNode", routeNodeMap);         HashMap<String, Object> routeMap = new HashMap<String, Object>();         routeMap.put("route", "RouteNode[]");         routeMap.put("name", String.class);       epService.getEPAdministrator().getConfiguration().addNestableEventTypeAlias("RouteIn", routeMap); </snip>

Have I misinterpreted your reply? Thanks, G