[jboss-jira] [JBoss JIRA] Commented: (JBRULES-2218) Unknown error while parsing. This is a bug. Please contact the Development team.

Scott Burrows (JIRA) jira-events at lists.jboss.org
Mon Mar 29 10:28:37 EDT 2010


    [ https://jira.jboss.org/jira/browse/JBRULES-2218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12522589#action_12522589 ] 

Scott Burrows commented on JBRULES-2218:
----------------------------------------

Eclipse 3.5.2, Drools 5.0.1

I was getting that message, which I finally traced down to not having both sets of quotes on element 58 of the trantype field below.  

It took forever to track it down, requiring me to comment all the rules, recompile them, then half the rules, then recompile again, then half again etc, until I found the one that had the issue.   Please show the rule name at least for this error.

The drools rule outline in eclipse gets hosed if this error appears.

		t1 : CardTransaction(
				status			== CardTransaction.REVERSAL,					
				mti				== RulesConstants.REVERSAL_FORCEPOST_0420, 		
				$origmti		        : orig_mti,	
				$rplamt			: rplamt,			
				$cardnum		: cardnum, 		
				$amount			: amount,	
				$acqcode		: acqcode,	
				$mcc			: mcc,			
				$ramtsettlefee	: ramtsettlefee,		
				$accttype		: accttype,		
				//$trantype		: trantype in ("20", "28", "56", "58),
				$systemrev		: systemrev == "Y",
				$surcharge		: surcharge,			
				$tot_fee		: tot_fee,
				$orphan			: orphanbaseiflag,
				$detailid		: detailexternalactsource_id)	


> 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: Edson Tirelli
>            Priority: Minor
>             Fix For: 5.1.0.M2
>
>
> 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