Accessing Concept and Event PropertiesThis section describes how to access concept properties and event properties using the TIBCO BusinessEvents language.where instanceName is the identifier of the concept instance, and propertyName is the name of the concept property that you want to access.
• You can specify a time and get the PropertyAtom value stored in the history at that time using one of the standard functions:where type is the type of the PropertyAtom and propertyAtomName is the name of the PropertyAtom, and time is the time from which you want to retrieve the value.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.
− 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.where instanceName is the identifier of the concept instance, and propertyName is the name of the concept property that you want to access.instanceName.propertyName[indexPosition]This gets the current value of the first property atom in the array, lineItem, and assigns it to the local variable, x.
Array index difference In the TIBCO BusinessEvents language, array indexes start from zero (0). However, in XSLT and XPath languages, they start from one (1). It’s important to remember this difference when using the rule language in the rule editor, and when working in the XSLT mapper and the XPath builder.You can append a value to the end of a property array. You cannot, however, add a value to any other position in an array. This is the syntax:To use the syntax shown above you must know the index position of the end of the array. You can append a value to the end of an array without knowing the index position of the end of the array using the @length attribute as shown:where eventName is the identifier of the concept instance and propertyName is the name of the event property that you want to access.
Copyright © TIBCO Software Inc. All Rights Reserved.