How to define an array of Events/Concepts/Strings of a specific size.

How to define an array of Events/Concepts/Strings of a specific size.

book

Article ID: KB0093714

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Description:
How to define an array of Events/Concepts/Strings of specific fixed sizes.

Issue/Introduction

How to define an array of Events/Concepts/Strings of a specific size.

Resolution

Syntax follows.

1). Events:

    Events.simpleEve[] test = Events.simpleEve[100]{};
    System.debugOut("Total Number of Events  is "+ test@length);

2). Concepts:
    
    Concepts.Account[] ConceptArray = Concepts.Account[500] {};    
    

3). Strings:

    String[] stringarray = String[100]{};
    for(int i=0;i<100;i++)
            {
                stringarray[i]=String.valueOfInt(i);
                System.debugOut("++++ I ++++"+stringarray[i]);
        
            }