[rules-users] Static Imports
Meeraj Kunnumpurath
mkunnumpurath at googlemail.com
Sun Jul 18 13:33:25 EDT 2010
Hi,
Are static imports as shown below allowed in rule files? It is giving me a
parse exception.
package mypackage;
dialect "mvel"
import mypackage.CreditTransferTransactionInformation10;
import static mypackage.ValidationHelper.invalidate;
global java.util.Set accountNumbers;
rule "Check debtor account number is not null"
salience -1
when
$c : CreditTransferTransactionInformation10 ( eval(
dbtrAcct.?id.?othr.?id == null ) )
then
invalidate($c, "PG003", "Account number is absent");
drools.halt();
end
Ta
Meeraj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100718/7a396a94/attachment.html
More information about the rules-users
mailing list