Issue getting multiple reports to print from one BPM

Hello,

I’m currently encountering an issue with report printing in a Standard BPM directive on PkgControlHead.

The BPM is enabled via an In-Transaction directive which passes the PCID number through to the standard directive via a BPM data field when there is an added record and not an updated one.

This works fine when only one report needs to be printed, but when several rows are added at the same time I receive the following error from the EDGE printing agent.

It then only prints the most recently added record. My assumption was that the in transaction directive would run once per record, pass the data through to the standard directive and the print operation would be ran once per row.

After putting some basic debugging messages within the BPM it seems that what is instead happening is that the in transaction directive is running 4 times (for 2 added records), passing it’s conditions twice but then the standard directive only runs once. I would have thought that this would mean there is only one print operation and thus no way of generating two reports but clearly the print operation is being triggered twice.

Clearly I’m misunderstanding the basic workings of BPM’s here somewhat and I’ve tried several different ways to get this to work without any luck.

Does anyone know of some way to resolve this issue?

Thanks

You did the tell, now do the show.

In Transaction Directive Here.

Standard Directive Here.

image

I’ve added visuals of the BPM’s which I’m going to assume is what you were suggesting but I don’t know that it helps provide any more information than was already available.