[rules-users] Multiple bindings with the same type
Gabor Szokoli
szocske at gmail.com
Wed Dec 8 15:19:03 EST 2010
Hi,
2010/12/8 Robert Miyashiro <robert at mercedsystems.com>:
> Is there some kind of evaluation mode or setting that will make
> Drools pay attention to the order in which objects are inserted into the
> session?
Not that I know of, but here's a way to externally supply the pairs of
objects to fire on:
rule
when
$list1 : ArrayList()
$list2 : ArrayList()
Pair(first==$list1, second==$list2)
then
If you find yourself reasoning about the order and timing of insertion
events, you may want to look into drools fusion instead.
Gabor
More information about the rules-users
mailing list