How to create multiple concepts with the iterate node of event payload.

How to create multiple concepts with the iterate node of event payload.

book

Article ID: KB0090295

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
=============
I have an Event contains information about the instances to create of Concept. For example:
event@payload="&ltdata>&ltCategory&gtCatA</Category>&ltCategory&gtCatB</Category></data>"

From this, I want to create two Concepts - Category@CatA and Category@CatB.

Environment:
=============
TIBCO BusinessEvents 5.x

Resolution:
===========
You may achieve the requirement in the following approach:

Step 1: Use XPath.evalAsInt to get the number of Category nodes

Step 2: Create Concepts in a loop(i from 1 to count) for each Category node(Category[i])

Attached to this Solution is a simple test case for your reference.

Attachements:
=============
testCreateMultipleConceptsFromPayload.rar

Issue/Introduction

How to create multiple concepts with the iterate node of event payload.

Attachments

How to create multiple concepts with the iterate node of event payload. get_app