Before the lastest snapshot I had rules like:
rule "Device is NotOperating" dialect "mvel"
when
device: Device(connected == true)
...
then
insertLogical(
DeviceOperatingStateTimeline.start(new DeviceOperatingState(device.id,
NotOperating()))
)
end
Now I get the error:
Caused by: [Error: unable to access property (null parent): device]
[Near : {... Unknown ....}]
If I simply reference the 'device' variable before the insertLogical then
the rule compiles and works:
then
Device d = device // System.out.println(device) works as well
insertLogical(
DeviceOperatingStateTimeline.start(new DeviceOperatingState(device.id,
NotOperating()))
)
end
I don't even know where to begin to look for such a cause. I've debugged
deep in the MVEL compilation but no joy.
Also, many of my other rules no longer compiler, also seemingly mvel
related. I've thunked back to 5.0.1 and now I have green bars again.
-barry
--
View this message in context:
http://n3.nabble.com/Problems-with-latests-5-1-SNAPSHOT-tp140043p140043.html
Sent from the Drools - Dev mailing list archive at
Nabble.com.