[jboss-jira] [JBoss JIRA] Resolved: (JBRULES-762) error recognizing an element oustide the accumulate statement in the "init" part of the "accumulate"

Edson Tirelli (JIRA) jira-events at lists.jboss.org
Fri Mar 30 13:10:18 EDT 2007


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

Edson Tirelli resolved JBRULES-762.
-----------------------------------

    Fix Version/s: 3.1-m2
       Resolution: Done

Fixed and commited. Test case updated.

Thank you for reporting and providing the test case. Let me know if you face any other problem.


> error recognizing an element oustide the accumulate statement in the "init" part of the "accumulate"
> ----------------------------------------------------------------------------------------------------
>
>                 Key: JBRULES-762
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-762
>             Project: JBoss Rules
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 3.1-m1
>         Environment: Win Xp Pro Sp2, Eclipse, java version 1.5.0.11-b03
>            Reporter: Nicolas Dery
>         Assigned To: Edson Tirelli
>             Fix For: 3.1-m2
>
>
> rule "RULE_MAX_HOURS_BY_WEEK"
> 	when
> 		$test : ITest()
> 		
> 		$horizons : IHorizon() from $test.getHorizons()
> 		
> 		$test2 : IValueContainer(observedValue > 40) from accumulate( $shift : IShift(employeeKey == 10),
>             init(IValueContainer valueAccessor = new ValueContainer("NB_HOURS",$horizons); ),
>           	action( valueAccessor.addEvent( $shift ); ),
>          	result( valueAccessor ) );	
> 	then 
> 		System.out.println("somethin");
> end

-- 
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