2011/7/21 Christian Heupel <christian.heupel@fluidops.com>
-----------------
rule "Total Costs"
when
$person : Person( eval ($person.maxMoney != null ) )
$totalCost : Number()
from accumulate( $trip : Trip( $cost : $trip.getCost() ) from $person.getTrips(),
sum( $cost )
)
then
// take action
end
-------------------
I have tried it with and without the $trip-variable (since I thought I might have to use it to call its function).
The error I get looks like this:
Error INTERNAL_ERROR: Error: unknown:70:54 Unexpected token ')'
java.lang.Exception: Error: unknown:70:54 Unexpected token ')'
at com.fluidops.coremgmt.ruleengine.PolicyTask.readRule(PolicyTask.java:489)
at com.fluidops.coremgmt.ruleengine.PolicyTask.readRule(PolicyTask.java:419)
I would be very thankful if one of you could help me out here :)
Best regards,
Christian
PS: I already had this question in the drools forum, it was, however not forwarded to this mailing list, so please forgive me if it is a double post.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users