AnsweredAssumed Answered

How to map multiple fields on a single node

Question asked by samuele.vigano020435 on May 31, 2017
Latest reply on May 31, 2017 by koushik.saha297727

Hi community!

I have an issue related to a process flow that I'm developing. I have two different fields in my XML document and I need to map them to one single node in a JSON profile that has molteplicity 0.... unbounded.  

 

My input file is like:

 

<id>4000</id>

<manager2>4001</manager2>

<manager3>4002</manager3>

.....

 

My output node is like

 

"id": "num"

"validator_user": [
{
"username": "num",
"first_name": "string",
"middle_name": "string",
"last_name": "string"
}]

 

I need to map to this node both manager2 and manager3 in order to have in output this situation:

 

"id": "4000"

"validator_user": [
{
"username": "4001",
"first_name": "John",
"middle_name": "Long",
"last_name": "Smith"
}]

"validator_user": [
{
"username": "4002",
"first_name": "Mario",
"middle_name": "",
"last_name": "Rossi",
}]

 

Can anyone help me to solve this issue?

 

Thanks in advance

 

Samuele

Outcomes