Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

MultiLine append not working in BPM

$
0
0

Hi experts,

 

 

I am working on a BPM that can merge multiple files in to single file. So far I have developed following

 

Untitled.jpg

Receive step: receives input xml messages of same type.

Container variable 1: has target as a multiline abstract interface variable and operation as Append and expression as normal abstract interface variable.

 

Container variable 2: contains counter variable to repeat the loop.

 

Issue: Even though I am giving multiple files as input, only one file is coming as output after transformation(one to one mapping).

 

Input files:

file 1:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:Header xmlns:ns0="http://www.DummySimulation">

   <Recordset>

      <Header>

         <count>2</count>

         <ID>123</ID>

  <MSBOL>000001</MSBOL>

      </Header>   

   </Recordset>

</ns0:Header>

 

file2:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:Header xmlns:ns0="http://www.DummySimulation">

   <Recordset>

      <Header>

         <count>2</count>

         <ID>123</ID>

  <MSBOL>000002</MSBOL>

      </Header>   

   </Recordset>

</ns0:Header>

 

 

output:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:Header xmlns:ns0="http://www.DummySimulation">

   <Recordset>

      <Header>

         <count>2</count>

         <ID>123</ID>

  <MSBOL>000002</MSBOL>

      </Header>   

   </Recordset>

</ns0:Header>

 

 

 

Expected output:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:Header xmlns:ns0="http://www.DummySimulation">

   <Recordset>

      <Header>

         <count>2</count>

         <ID>123</ID>

  <MSBOL>000001</MSBOL>

      </Header>   

   </Recordset>

<Recordset>

      <Header>

         <count>2</count>

         <ID>123</ID>

  <MSBOL>000002</MSBOL>

      </Header>   

   </Recordset>

</ns0:Header>

 

 

Can anyone help me with this.

 

 

Thanks.


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>