I am looking to see if we can do batch processing (printing and file) of forms using Output. In any given batch we can have multiple envelopes with multiple forms in each envelope. AEM 6.2 Forms Help | Output Service mentions the generatePDFOutputBatch and generatePrintedOutputBatch operations of the Output service but I do not see those operations in Workbench services or in the wsdl. The methods that I do see all take a single form as one of the input parameters? Am I missing something or is the documentation wrong? Is there a way to process multiple forms in a batch into a single pdf or print file?
So, the documentation is incorrect (something I am finding a lot of with AEM), generatePDFOutputBatch and generatePrintedOutputBatch do not exist as operations of the Output service. Any batch processing has to be custom built.
When you send a file to watch folder this calls a workflow. You should check the payload i.e input XML for the value and have two different path for the output service to process the data. These paths would have different xdp and can be merged with XML to process the final results. Consider it like if-else .