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

Nicolas Dery (JIRA) jira-events at lists.jboss.org
Fri Mar 30 11:28:38 EDT 2007


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: Mark Proctor


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