Get and Set PropertyAtom Value With User-Specified Time
PropertyAtom can be set for the rule language grammar.
You can get and set PropertyAtom values as follows:
- Specify a time and get the PropertyAtom value stored in the history at that time using one of the standard functions:
type Instance.PropertyAtom.gettype(PropertyAtom propertyAtomName, \ long time)
where type is the type of the PropertyAtom, propertyAtomName is the name of the PropertyAtom, and time is the time from which you want to retrieve the value.
- Set a value in the PropertyAtom History using one of the standard functions:
Instance.PropertyAtom.settype(PropertyAtom propertyAtomName, \ type value, long time)
where type is the type of the PropertyAtom and the type of the new value, propertyAtomName is the name of the PropertyAtom, value is the value to store in the ring buffer, and time is the timestamp for the new entry.
TIBCO BusinessEvents manages these requests as follows:
- If the ring buffer has vacancies, TIBCO BusinessEvents inserts the new entry into the correct place based on its timestamp, shifts the older values out one place, and returns True.
- If the ring buffer is full, and the new value has a more recent timestamp than the oldest value, TIBCO BusinessEvents inserts the new value into the correct place, shifts older values if necessary, drops the oldest value, and returns True.
- If the ring buffer is full, and the new value has a timestamp that is older than the oldest value in the ring buffer, TIBCO BusinessEvents does not insert the new value into the ring buffer, and it returns False.
Copyright © TIBCO Software Inc. All rights reserved.