Context
Change Type: Improvement
Product area: Analytics
Component: Streaming Analytics
Deployed at: eu.latest.cumulocity.com, apj.cumulocity.com, jp.cumulocity.com, cumulocity.com, us.cumulocity.com, emea.cumulocity.com
Technical details
Build artifact: apama-in-c8y (25.54.0)
Internal ID: PAM-34463
Description
The Alarm
, Event
, ManagedObject
and Operation
events now no longer throw exceptions from the isCreate()
and isUpdate()
actions. If the event being checked was generated in EPL code, these two actions now simply return false. try ... catch
blocks around these calls are no longer necessary if the event being checked was generated in EPL code.
EPL code that uses these actions therefore behaves more robustly because it no longer throws exceptions that, if not caught properly, cause the monitor or app to terminate.
In the unlikely case that the try ... catch
block is used to intentionally check for internally generated events, you need to change the check to the following:
if not (evt.isCreate() or evt.isUpdate()) { ... }