How to detect a data change in a tuple with TIBCO BusinessEvents AS Channel without a infinite-event-loop from occuring.

How to detect a data change in a tuple with TIBCO BusinessEvents AS Channel without a infinite-event-loop from occuring.

book

Article ID: KB0086911

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Description:
Using AS Channel in TIBCO BusinessEvents and trying to detect a data change in a tuple, and then update it with a last modified timestamp value. Is there away to do this without an infinite-event-loop from occurring?

Resolution

An update will be triggered when updating a tuple. In this case, every time a modify to the tuple (including the update of the last modified timestamp) will trigger an update event. You may want to add an additional field to your tuple and set that one with a proper value to indicate whether you would like to perform an update based on its value. For example, add a field called external_update. When you do not want an update triggered by the update done by you, update the field value to "false" (and in the listener and have a filter external_update=true;). Or, in your client logic, consume the update event directly if the external_update flag is "false".

Issue/Introduction

How to detect a data change in a tuple with TIBCO BusinessEvents AS Channel without a infinite-event-loop from occuring.