Assemble Files with XML

Post Reply
Chrissigge
Newbie
Posts: 19
Joined: Mon Jun 01, 2015 8:05 am
Location: Switzerland

Assemble Files with XML

Post by Chrissigge »

Good Morning,

I try to assemble Files Based on an "order XML", the Order XML for example contains 8 Products (Number depends on how many Files have been ordered...) the Assemble-Configurator should now know that he needs wait for 8 Files before he can assemble the job.

Is this somehow possible?

Thank you very much for your help.
loicaigon
Member
Posts: 147
Joined: Wed Jul 10, 2013 10:22 am

Re: Assemble Files with XML

Post by loicaigon »

Hi,

I gave this a try but couldn't get the expected results. Have you considered using a script element ?

Loic
User avatar
gabrielp
Advanced member
Posts: 577
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Assemble Files with XML

Post by gabrielp »

Would you share an example XML file?
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
User avatar
andrea mahoney
Newbie
Posts: 19
Joined: Tue Jan 25, 2011 8:53 pm

Re: Assemble Files with XML

Post by andrea mahoney »

First you need to pass the count of Products to the Assembler Number of Files.

In the Assembler start with the Custom Scheme.
Job Identifier is your order. Pull that from the metadata
Number of files is this type of xpath from the metadata count(//ProductItem) - Do this inside a switch calculation as the it is expecting a number.

This will assemble the items of the order and the proper number.
Post Reply