Page 1 of 1

Assemble Files with XML

Posted: Mon Jun 01, 2015 8:13 am
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.

Re: Assemble Files with XML

Posted: Mon Jun 01, 2015 3:19 pm
by loicaigon
Hi,

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

Loic

Re: Assemble Files with XML

Posted: Tue Jun 02, 2015 5:10 am
by gabrielp
Would you share an example XML file?

Re: Assemble Files with XML

Posted: Fri Jun 05, 2015 9:20 pm
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.