PDF merge is not happening with ConcatenateEForms activity
User is trying to merge generated PDF file using Out-of-the-box (OOTB) activity ConcatenateEForms.
Merging of PDF happens but in the merged PDF only the first PDF file is shown.
Steps to Reproduce
1.Create a HTML rule and map a Section rule onto HTML rule.
2.Using OOTB HTMLToPDF convert the above HTML rule to PDF. PDF is generated.
4.Repeat the same steps to generate second PDF file for another HTML rule (generating 2 PDF files).
5.Call Code-Pega-eForm. ConcatenateEForms to merge the generated PDF files from step 3,4. PDF is generated but the merged file has only first file content.
As StreamName parameter is being passed for "HTMLToPDF" activity, in that activity this StreamName parameter is inturn converted to Param.Markup.
When a different StreamName parameter is passed for second time activity call, the Markup parameter which was created first time is used in the java step instead of second Markup. So the merged PDF is showing same first PDF content twice.
Perform the following local-change:
Instead of directly passing StreamName Parameter, add a step with Property-Set-HTML method to pass the HTMLstream to Param.Markup and pass Markup to the activity.