Page 1 of 1

Submit point Pitstop Action

Posted: Tue May 07, 2019 6:22 pm
by Penguin
I have a submit point that asks for my CSR's to choose a customer. Based on that choice I would like for the Pitstop configurator to run the normal digital preflight but also run the applicable action. How can I make it do this without xml?

Thanks in advance

Re: Submit point Pitstop Action

Posted: Wed May 08, 2019 7:33 am
by LasseThid
All information entered in the Submit point is accessible as Metadata in Switch.
If you put a hold in the flow and then submit a file and waits until it reaches the hold, you can then stop the flow and use Define condition with variables and the go to Metadata - Text - Build location path and select Submit to find the metadata you need.

To make it easier for yourself to know what metadata you use for your selection you should use a path like this: [Metadata.Text:Path="//field[tag='Material']/value",Dataset="Submit",Model="XML"] rather than the standard /field-list/field[2]/field-list/field[1]/field-list/field/value. The tag is the name of the metadata field you want, which in my example is Material.

Skärmavbild 2019-05-08 kl. 07.29.32.png
Skärmavbild 2019-05-08 kl. 07.29.32.png (210.77 KiB) Viewed 4003 times
This value can then be used for whatever purpose you need. For instance, say you have three different action lists you use depending on what was selected in the Submit point. You could then do a branch using that value and set a Private Data key that you use to select your action list.
This metadata can either be the name of an action list you already have in pitstop server or you can build a dynamic name using metadata to point to a file on a server somewhere in your network or on your Switch server. I.e. you set the metadata to Action=Adshel_4+0 or Action=D:/Switch/Acrobat Action lists/[Metadata.Text:Path="/order/product/artno",Dataset="Xml",Model="XML",Before="-"]-XX[Metadata.Text:Path="/order/product/artno",Dataset="Xml",Model="XML",After="-",Segment="3-4"]_[Metadata.Text:Path="/order/product/orientation",Dataset="Xml",Model="XML"].eal

Re: Submit point Pitstop Action

Posted: Wed May 08, 2019 5:01 pm
by Penguin
Thank you! The hold is what I couldn't figure out to add. How long do you think I should make the hold for?

Re: Submit point Pitstop Action

Posted: Wed May 08, 2019 7:03 pm
by LasseThid
I'm talking about the hold you can put on a connection in order to set up your condition with variable, not a Hold job.
If you put a hold on a connection, wait until the file reach that point in the flow and then stop the flow you have a sample job in the flow that you can use for setting up conditions.

Re: Submit point Pitstop Action

Posted: Wed May 08, 2019 8:10 pm
by Penguin
Oh ok thanks.