A code example of how to retrieve the index of the contained concept.

A code example of how to retrieve the index of the contained concept.

book

Article ID: KB0087517

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
===========
A code example of how to retrieve the index of the contained concept.

Environment:
===========
TIBCO BusinessEvents 5.x
All Operating Systems

Resolution:
===========

We can use Instance.PropertyArray.toArrayContainedConcept to achieve all child indexes. Example:

declare {    

    Concepts.ConceptA concepta;

    }

    when {

        

    }

    then {

        ConceptB[] conceptbs = Instance.PropertyArray.toArrayContainedConcept(concepta.ConceptBs);

        for( int i=0; i< conceptbs@length;i++){

        Concepts.ConceptB testb = conceptbs[0];

        String NewField1 = testb. NewField1;

                                String NewField2 = testb. NewField2;

                                ......

        }
……

Issue/Introduction

A code example of how to retrieve the index of the contained concept.