Why don't you move
$y: Year( ) from $o.data
up in front of the accumulate?
-W
On 28/11/2013, braveheart85 <andrea.pacifico.85(a)gmail.com> wrote:
Hello guys,
I have just obtained this DroolsRuntimeException when i perform this rule:
$result : Number( ) from accumulate
(
($y: Year( ) from $o.data) &&
(Family( $relatives : relative ) from $y.familyEntity),
init( double total = 0; ),
action( total += $relatives.size(); ),
reverse( total -= $relatives.size(); ),
result( total ) )
I saw that this is a known bug in version 5.3.0. I'm developing with 5.5.0
Final.
Exists any workaround or version 5.6.0 resolve this bug?
Best regards
Andrea
--
View this message in context:
http://drools.46999.n3.nabble.com/BUG-Can-t-build-a-rete-network-with-an-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users