[rules-users] Using 'in' operator to find objects inside a list
FrankVhh
frank.vanhoenshoven at agserv.eu
Fri Mar 9 09:17:28 EST 2012
As documented:
Use 'memberOf' instead of 'in'.
Regards,
Frank
purna wrote
>
> drl file looks like this..
> global ArrayList<Long> accountNumberBlackList
> .
> .
> .
> rule blackListToCheck
> when
> "$transaction : Transaction(accountTo.number in
> (accountNumberBlackList))"
>
> then
> $transaction.setStatus(Transaction.Status.DENIED);
> //.. do something else?
> end
>
> I want to use 'in' operator to find numbers that are stored in global
> variable accountNumberBlackList.
> Is the above syntax(in double quotes) correct?
> is there any alternative to look inside a list?
>
--
View this message in context: http://drools.46999.n3.nabble.com/Using-in-operator-to-find-objects-inside-a-list-tp3812727p3812768.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list