Products | Versions |
---|---|
TIBCO BusinessEvents Enterprise Edition | - |
Not Applicable | - |
Resolution:
Description:
===========
How to query container concept instance details by using contained concept property or attribute?
Environment:
===========
TIBCO BusinessEvents 3.0.1
All Operating Systems
Symptoms:
=========
n.a.
Cause:
======
n.a.
Resolution:
========
In containment relationship, where one concept is contained inside another concept, you can use the '@parent' attribute of the contained concept to to query the parent container concept instance.
Lets take the example of "Shop (Name, NoOfCars) contains Car (Make, Model)" containment relationship to understand this query.
"Shop" concept has "Name and NoOfCars" as the properties/attributes - Container concept or Parent "Car" has "Make" adn "Model" as the properties/attributes - Contained concept or child. So the query to retrieve shop concept instance details with the car attribute "Make" is as follows:
Select S.Name, S.NoOfCars from /Shop S, /Car C where C@parent@extId=S@extId and (C.Make=<value for make>)