How to pass an array in TIBCO BusinessEvents.

How to pass an array in TIBCO BusinessEvents.

book

Article ID: KB0088257

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
==========
How to pass an array in TIBCO BusinessEvents.

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

Resolution:
=========

You can pass arrays as Objects in rule/rulefunction.

Object cloneIntArray(Object intArr) {
     int[] arr = intArr;
     int[] clone = int[intArr@length]{};
     for(int ii = 0; ii < arr@length; ii = ii + 1) {
         clone[ii] = arr[ii];
     }
     return clone;
}

Issue/Introduction

How to pass an array in TIBCO BusinessEvents.