I have casetype with pagelist in work class. Need to generate PDF for each page in the pagelist.

I have casetype with pagelist in work class. Need to generate PDF for each page in the pagelist.

I tried calling pxCreatePDF by looping pagelist in a activity , also tried calling calling createPDF shape in split for each in a flow.

PDF is not generated in either scenario.

However when I call them outside the loop - it works.

I see inshandle is not getting passed per my initial analysis. Please suggest any other approach to generate multiple PDFs using a pagelist.

Hi @RhanjhaniP: What is the class of pagelist property which is the embedded in your work object?

Thanks.

@ArulDevan Pagelist is in work class as well. I had to pass pzInsKey as param to pxCreatePDF activity that is called in loop.On doing that , it works.

Hi @RhanjhaniP: I read this as the issue is resolved. Are you looking for any further details from community?

Thanks.

@ArulDevan want to check if I have a way to use Create PDF shape in a subflow inside split for each to generate pdf as that didnt work yet.

Hi @RhanjhaniP: Is there any specific requirement to make use of the smart shape in a flow? In this use-case, loop components in Flow is limited to OOTB split for each. When you use split for each, and if your pages iterated through is in data class, then you cannot make use of the smart shape. Even if you are planning to iterate through a embedded page in work class, it may not work because the smart shape is designed to work on case level.

Alternatively you may design your own loop in the flow, prepare a temp / additional embedded page with data of each iteration and call the smart shape in the case context. I would prefer to handle this in a utility rather than embedding complex logic in the flow.

Thanks.

@ArulDevan Thank you for the response. Wanted to check on usage of shape rather than Utility. Anyways , understood the limitation