Previous Topic: Adapter Configuration File with Event SingularityNext Topic: Aggregate Transaction Data


Adapter Listener Behavior with Event Singularity

When receiving a new Event from the Adapter, the Listener checks the value of the OnDuplication field. When the value is "add", the regular insertion process is performed. When the value is not "add", the Listener checks for the existence of an Event with the same UniqueKey and the same reader ID in the database. If the database already contains an Event as described, the new Event is not be inserted into the database when the OnDuplication value is "ignore".

When the OnDuplication value is "update", a check for changes in the Event is performed. If all fields are identical, the new Event is not be inserted into the database.

When the OnDuplication value is "updateAlways", the previous check is skipped and an update occurs regardless.

In both update and updateAlways modes, the following steps are taken: