Alarm Active Tag Event Script

We have recently upgraded to 7.9.6 and some of our existing alarm active/cleared/ack scripts have started to fail.

It appears that the alarm event object no longer has a id parameter. example:

putting
print “zzzzzzzzzzz” + str(alarmEvent)

into the alarmActive Tag event script prints the following in the wrapper log:

INFO | jvm 1 | 2018/03/09 10:50:12 | zzzzzzzzzzzEvent[name=Alarm, source=prov:default:/tag:Quarry Rd/alarmTest:/alm:Alarm, priority=Low, desc=null]

You need to specify the property of alarmEvent you want.

print 'zzzzzzzzzzzzzz '+ str(alarmEvent.id)

Hi yes that is what I was doing however this now returns none I.e. alarmEvent.id does not exist. The script above just shows what parameters still exist.

Turns out that its now alarmEvent.eventId not alarmEvent.id