[jboss-jira] [JBoss JIRA] Assigned: (JBRULES-860) Eclipse IDE takes only last bound value for evaluation to create RETE Tree

Edson Tirelli (JIRA) jira-events at lists.jboss.org
Fri Jun 29 16:11:58 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBRULES-860?page=all ]

Edson Tirelli reassigned JBRULES-860:
-------------------------------------

    Assignee: Edson Tirelli  (was: Mark Proctor)

> Eclipse IDE takes only last bound value for evaluation to create RETE Tree
> --------------------------------------------------------------------------
>
>                 Key: JBRULES-860
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-860
>             Project: JBoss Rules
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Eclipse IDE
>    Affects Versions: 3.0.6
>         Environment: Windows 2000, Eclipse 3.2.2, Drools 3.0.6, JDK1.4.2
>            Reporter: Thomas Joseph
>         Assigned To: Edson Tirelli
>
> Eclipse IDE would not take bound variables created earlier for same type of Facts. The following code shows Parse errer for RETE Tree in the Eclipse IDE
> rule "rule_demo"
> 	no-loop
> 	agenda-group "SPECIAL_AGENDA"
> 	when
> 		$ruleStatus: RuleStatus(  )
> 		$mapEntryBugCreated: MapEntry( key  "bugCreated", valueAsString == "Y" )
> 		MapEntry( key == "bugCreatedDate", $bugCreatedDate: valueAsCalDate )
> 		MapEntry( key == "fixedDate", $fixedDate: valueAsCalDate  )
> 		eval($bugCreatedDate.getYear() > 2007)
> 	then
> 		System.out.println("Bug Created Date is Invalid");
> end
> where getValueAsCalDate returns a java.util.Date object. I have used the Deprecated method getYear(), for ease. Otherwise too, this wont work.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list