Batch processing in AEM

Avatar

Avatar
Ignite 1
Level 2
GPhillips58
Level 2

Likes

2 likes

Total Posts

29 posts

Correct reply

4 solutions
Top badges earned
Ignite 1
Validate 1
Give Back
Boost 1
Affirm 3
View profile

Avatar
Ignite 1
Level 2
GPhillips58
Level 2

Likes

2 likes

Total Posts

29 posts

Correct reply

4 solutions
Top badges earned
Ignite 1
Validate 1
Give Back
Boost 1
Affirm 3
View profile
GPhillips58
Level 2

15-08-2017

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Ignite 1
Level 2
GPhillips58
Level 2

Likes

2 likes

Total Posts

29 posts

Correct reply

4 solutions
Top badges earned
Ignite 1
Validate 1
Give Back
Boost 1
Affirm 3
View profile

Avatar
Ignite 1
Level 2
GPhillips58
Level 2

Likes

2 likes

Total Posts

29 posts

Correct reply

4 solutions
Top badges earned
Ignite 1
Validate 1
Give Back
Boost 1
Affirm 3
View profile
GPhillips58
Level 2

05-09-2017

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.

Answers (6)

Answers (6)

Avatar

Avatar
Ignite 5
Employee
workflowuser
Employee

Likes

143 likes

Total Posts

446 posts

Correct reply

70 solutions
Top badges earned
Ignite 5
Ignite 3
Ignite 1
Give Back 50
Give Back 5
View profile

Avatar
Ignite 5
Employee
workflowuser
Employee

Likes

143 likes

Total Posts

446 posts

Correct reply

70 solutions
Top badges earned
Ignite 5
Ignite 3
Ignite 1
Give Back 50
Give Back 5
View profile
workflowuser
Employee

26-07-2019

Everything is possible

you will Have to write some custom code

if you can post a sample of xml I can give you paeudo code

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

328 likes

Total Posts

1,153 posts

Correct reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

328 likes

Total Posts

1,153 posts

Correct reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

26-07-2019

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 .

Avatar

Avatar
Level 1
SK007
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
SK007
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
View profile
SK007
Level 1

26-07-2019

for example,

if i have customer a, customer b, with records such as name, phone, email etc for both.

i have developed 2 forms. if rule 1 matches then form1 should be picked up and if rule 1 doesnt match then form2 should be picked up.

my assumption is xml can be run automatically thru watch folders and once xml is picked up ,

i will have to get 2 pdf outputs, 1 with custa (in form1 since it matched rule1) and 2nd pdf with custb (form2 since rule 1 didnt match)

is this possible ?

Question 2, if this is possible, then i believe we will be able to send the pdfs to customer as mail or prints.

Avatar

Avatar
Level 1
SK007
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
SK007
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
View profile
SK007
Level 1

26-07-2019

yes thats correct.

i have one/multiple large xml with multiple records of multiple customers.

so when i execute the xml file, respective templates should be selected and need to get pdf files for all the customers where the rules matches.

Avatar

Avatar
Ignite 5
Employee
workflowuser
Employee

Likes

143 likes

Total Posts

446 posts

Correct reply

70 solutions
Top badges earned
Ignite 5
Ignite 3
Ignite 1
Give Back 50
Give Back 5
View profile

Avatar
Ignite 5
Employee
workflowuser
Employee

Likes

143 likes

Total Posts

446 posts

Correct reply

70 solutions
Top badges earned
Ignite 5
Ignite 3
Ignite 1
Give Back 50
Give Back 5
View profile
workflowuser
Employee

25-07-2019

One large xml with multiple records

each record will be merged with xdp to generate pdf file?

Avatar

Avatar
Level 1
SK007
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
SK007
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
View profile
SK007
Level 1

25-07-2019

Hi,

1) is on demand batch processing available in AEM Forms ?

For example , if i have a input file with 1000s of input entires and i need to generate pdf ouputs with multiple envelops & forms vice versa.