Products | Versions |
---|---|
TIBCO BusinessEvents Enterprise Edition | - |
Not Applicable | - |
Resolution:
Description:
============
How would you return an Array-Valued property of a Concept?
Environment:
============
TIBCO BusinessEvents 5.0
All Operating Systems
Resolution:
============
This can be done using TIBCO BusinessEvents 5.0 HF2 onwards. An example is shown below:
select pc from /Concepts/ParentConcept as pc where pc.name = xxx
Once you have the ParentConcept pc from the resultset, in the rulefunction add /Concepts/ChildConcept[] ccArray = pc.children.
In TIBCO BusinessEvents 5.0 HF2 you can also run this query from the InferenceAgent by making a function call on a dynamic, collocated query session. With those results you can use Cluster.DataGrid.Loadentity(pc) in the calling rulefunction on the Inference side and run rules for it. More details can be found in Event Stream Processing and the CollocatedInferenceAndQuery example.
Note:
------ In a BQL Array Query, it is not possible to query a value somewhere in an Array. For example, the “where” clause cannot be accessed like “where C.answers[5]=42”.