Hi experts,
I am working on a BPM that can merge multiple files in to single file. So far I have developed following
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.