[rules-users] Accessing items in a list
mkhan
mushtaq.khan at alstom.com
Tue Dec 10 12:02:50 EST 2013
Hi,
I am new to doorls so please can you help me.
I am trying to access an ietm from a list in a rule like ...
$data: List(this != null, size > 9) from accumulate(
$obj1 : FwVehicle(
notchCodingWire1 != null,
lineVoltage != null
)
over window:time(10s)
from entry-point "DataStream",
collectList($obj1)
)
$first : $data.get(0)
but i get an error ...
[ERR 102] Line 164:19 mismatched input '0' expecting ')' in rule "test1" in
pattern $data.get
Does anyone have any ideas what I am doing wrong please?
--
View this message in context: http://drools.46999.n3.nabble.com/Accessing-items-in-a-list-tp4027194.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list