[jboss-jira] [JBoss JIRA] Commented: (JBRULES-2218) Unknown error while parsing. This is a bug. Please contact the Development team.
Jevon Wright (JIRA)
jira-events at lists.jboss.org
Thu Aug 20 00:32:26 EDT 2009
[ https://jira.jboss.org/jira/browse/JBRULES-2218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12481875#action_12481875 ]
Jevon Wright commented on JBRULES-2218:
---------------------------------------
I got this error as well in Drools 5.0.1 in Eclipse 3.5, Windows XP. It is because reserved words are being used as part of the rule definition (position?). My rule was:
rule "Name"
when
...
run : RunInstanceWire( eContainer == sw, from == operation, name == "run" )
...
then
...
end
Removing the "from" keyword resolved the error. This is a critical bug for me, however the previous engine (4.0.7) was working fine in Eclipse 3.5, so I will be reverting back until this is resolved.
> Unknown error while parsing. This is a bug. Please contact the Development team.
> --------------------------------------------------------------------------------
>
> Key: JBRULES-2218
> URL: https://jira.jboss.org/jira/browse/JBRULES-2218
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-eclipse
> Affects Versions: 5.0.0.FINAL
> Environment: Eclipse 3.5 (Galileo), Mac OS X
> Reporter: Udo Klinkmüller
> Assignee: Mark Proctor
>
> rule "Arrival-Delayed-Upd"
> salience 1000
> when
> #conditions
> VisitPair( $ov: oldVisit != null, $nv: visit )
> $oaf: ArrivalFlight( onBlock == null, $ost: scheduledTime != null, $op: position != null ) from $ov.arrivalFlight
> $naf: ArrivalFlight( onBlock == null, (($nst: scheduledTime != null, != $ost) || ($np: position != null, != $op)) ) from $nv.arrivalFlighT
>
> then
> #actions
> Date vf = addMinutes($nst, 15);
> ResourceEvent re = eventBuilderFactory.getResourceVisitEventBuilder(EventType.ARRIVAL_DELAYED, $naf.getPositionKey(), vf)
> .visitKey($nv.getKey())
> .build();
> eventHandler.handleEvent(re);
> end
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list