Products | Versions |
---|---|
TIBCO BusinessEvents Enterprise Edition | - |
Not Applicable | - |
Resolution:
Description:
===========
Accessing multiple child concepts in a decision table action column in Web Studio or Decision Manager
Environment:
===========
TIBCO BusinessEvents 5.x
All Operating Systems
Cause :
===========
With a regular action column it is only possible to set the value for a property of only one instance of the concept array.
Resolution:
===========
To access the contained child indexes of a parent concept in the action column of a decision table in Web Studio or decision manager use a custom action column. In the custom action column the contained child concepts can be accessed and set as shown below .
parent.childConcepts[0].childName = "xyz"; parent.childConcepts[1].childName = "abc"
To dynamically determine the number of child concepts and assign actions to individual children use the following code snippet in the custom action column of the decision manager table.
Code Snippet :
---------------
int x = parent.ChildConcepts@length;
for (int i = 0;i<x ;i++)
{
parent.ChildConcepts[i].ChildName ="C"+ String.valueOfInt(i);
System.debugOut("DT printing : " + parent.ChildConcepts[i].ChildName);
}
For further reference see thefollowing sections in the Businessevents documents and guides:
Chapter 5 Working With Decision Tables : Working With Decision Table Rules (Rows) and Columns
References :
===========
SR-ID : 1-FA85J9