It still looks like a bug... if you can submit the test case, we can fix it.
Edson On Fri, Jun 1, 2012 at 2:07 PM, Matteo Cusmai <[email protected]>wrote: > Hi all, > it seems that i have solved. > > the problem was, as said by Edson, in mvel analyze. > > In following rule: > > rule "VehicleAtRouteStart-event" > dialect "mvel" > no-loop > when > $obs : VehicleMatchedObservation( $vehicle_id : vehicle_id, > $location : location, $road_line : road_line, $vehicle_type : vehicle_type > ) over window:time(15m) from entry-point lowLevelSensorStream > $route : Route( $vehicle_type == type , $location > geoIsWithinDistance[10m] source.getGeometry() , $routeid : id ) > not VehicleAtRouteStart( this before[ 0, 10m ] $obs, vehicleId == > $vehicle_id ) > then > insert ( SituationManager.createVehicleAtRouteStart("Vehicle at > the beginning of route " + $vehicle_type, Event.THREAT_NO, $location, > $obs.getSensorId(), $routeid, $vehicle_id) ); > end > > the problem was in red. > I have solved by inverting object of operator: > > $route : Route( $vehicle_type == type , source.getGeometry() > geoIsWithinDistance[10m] $location , $routeid : id ) > > Is this the update to mvel? > > > > > On Fri, Jun 1, 2012 at 7:00 PM, Matteo Cusmai <[email protected]>wrote: > >> Hi Mario, >> i am trying to extract an example from my project, creating a simple >> drools project under eclipse. >> But when i try to create project with version 5.4 of drools, eclipse is >> not able to use 5.4. I get a compilation error on sample classes. >> >> i have added drools 5.4 as runtime into eclipse, select it for new >> project, but i get a compilation error. >> Do you have an idea? >> >> >> On Fri, Jun 1, 2012 at 6:13 PM, Mario Fusco <[email protected]>wrote: >> >>> Matteo, >>> >>> I don't think the problem is in the resolution of the conf file. More >>> likely >>> the file is loaded and parsed correctly, but then, for some reason, the >>> DRL >>> compiler isn't able to find your custom evaluators. >>> >>> I'd need to reproduce your problem to better figure out what's going >>> wrong. >>> Can you send me the source code of one of your evaluators, the conf file >>> defining it and a DRL with a rule using it? It will be even better if you >>> could open a Jira ticket, assign it to me and attach the failing example >>> I >>> am asking there. >>> >>> Thanks a lot, >>> Mario >>> >>> -- >>> View this message in context: >>> http://drools.46999.n3.nabble.com/rules-users-drools-packagebuilder-conf-tp4017706p4017726.html >>> Sent from the Drools: User forum mailing list archive at Nabble.com. >>> _______________________________________________ >>> rules-users mailing list >>> [email protected] >>> https://lists.jboss.org/mailman/listinfo/rules-users >>> >> >> > > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users > > -- Edson Tirelli JBoss Drools Core Development JBoss by Red Hat @ www.jboss.com
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
