That worked - thanks!
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On
Behalf Of Wolfgang Laun
Sent: 26 April 2010 12:53
To: Rules Users List
Subject: Re: [rules-users] Can I use not and from in same condition?
At first glance, I'd use parens after not and at the end:
not ( GsmCell( lac==$extgsmcell.lac, cellid==$extgsmcell.cellid)
from $extutrancell.getIncomingGsmCells($extutrancell.fdn) )
-W
2010/4/26 Ryan Fitzgerald <ryan.fitzgerald(a)ericsson.com>:
Hi,
I get an error with the following rule that appears only when I use
the not keyword. If I remove the not keyword, it seems ok:
rule "WCDMA->GSM Bidirectional Relations Evaluation Rule - Version 4"
salience 10
dialect "java"
when
$extgsmcell : ExternalGsmCell()
$utrancell : UtranCell() from
$extgsmcell.getIncomingUtranCells($extgsmcell.fdn)
$extutrancell : ExternalUtranCell (
rncid==$utrancell.rncid, cellid==$utrancell.cellid )
not GsmCell( lac==$extgsmcell.lac,
cellid==$extgsmcell.cellid) from
$extutrancell.getIncomingGsmCells($extutrancell.fdn)
then
System.out.println("Version 3: Missing Cell Relation from "
+ $utrancell.getFdn() + " to " + $extgsmcell.getFdn());
End
Any suggestions?
Thanks,
Ryan.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users