How to retrieve all historical values of a concept property when history property set to value 0?

How to retrieve all historical values of a concept property when history property set to value 0?

book

Article ID: KB0088125

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
============
We have a concept with history enabled for property. How can we retrieve all the historical values of the concept property?

Environment:
===========
TIBCO BusinessEvents 4.0

Resolution:
==========
Instance.PropertyAtom.get***HistoryValue() functions can be used to get the value of given Property at a specified index in the ring buffer. The oldest value is at index 0.

Temporal functions allow you to examine and perform calculations on values stored in a property’s history. For example, Temporal.History.howMany(PropertyAtom pa, long stime, long etime, boolean bound_by_stime) returns how many values exist in interval [stime, etime].

You may determine how many history values are there for the property with temporal function and then retrieve  them by Instance.PropertyAtom.get***HistoryValue() function in a loop.

Attachments:
===========
Find /Rules/Print.rule in attached SampleCase for your reference

Issue/Introduction

How to retrieve all historical values of a concept property when history property set to value 0?

Attachments

How to retrieve all historical values of a concept property when history property set to value 0? get_app