Page 1 of 1
Restore metadata from XML in another workflow
Posted: Wed Mar 01, 2017 6:10 pm
by dimadev
Hello
I have a workflow begins by Submit Point, where users (in Switch Client) enter data in metadata job (dataset: job_info).
The workflow ends with the export of PDF files and an XML file containing the dataset metadata.
How do I import these PDF and XML into another workflow, inserting the XML metadata in this second workflow dataset?
I tried using "XML Pickup" but when PDF and XML come to this, the workflow freezes (remains frozen).
Thx for help!
PS: Sorry for my english

Re: Restore metadata from XML in another workflow
Posted: Wed Mar 01, 2017 6:18 pm
by sander
Make your output and input folder of your flows static, pointing to the same folder.
Make sure strip unique name is set to no, this preserves your metadata.

Re: Restore metadata from XML in another workflow
Posted: Wed Mar 01, 2017 6:28 pm
by dimadev
With these settings, in the second workflow, I have to use XML Pickup?
Edit: The two workflow work in different mode.
First workflow use Switch Client for set the dataset. Second workflow use input folder, where i put the PDF and XML (whit dataset data) of first workflow.
Thx
Re: Restore metadata from XML in another workflow
Posted: Wed Mar 01, 2017 6:31 pm
by sander
You don't have to

Just use a static output and input folder and don't strip the unique name!
Re: Restore metadata from XML in another workflow
Posted: Wed Mar 01, 2017 6:36 pm
by sander
You don't have to export the XML as metadata. Maybe I can be more clear with a better example.
Flow 1. Make your output folder Path static (not automanaged) and set Strip unique name to: No.
Flow 2. Set your input folder Path static to the same value:

Re: Restore metadata from XML in another workflow
Posted: Wed Mar 01, 2017 6:38 pm
by dimadev
I copy the files manually, because i need the approval before sending it to the second workflow.
If the output folder of first workflow is same of the input folder of second workflow, the second workflow start immediately. How can I put the break that comes in the second workflow?
Re: Restore metadata from XML in another workflow
Posted: Thu Mar 02, 2017 11:48 am
by sander
I route jobs which need manual approval via a Checkpoint, most efficient way I think!
Re: Restore metadata from XML in another workflow
Posted: Thu Mar 02, 2017 5:01 pm
by dimadev
Hi sander.
Yes, Checkpoint is good, but is terribly slow.
I see the alert in checkpoint after 5-10 minutes that the file has arrived.
Is normal? Or there is a setting for that?
Thanks for your help
PS: New question. If i have 2 field in metadata, how i change the value of this field during the flow? Not whit users input.
Example. I have "abc" in field 1 and "def" in field 2. Can i change field 2 in "ghi" during the flow?
Very thanks

Re: Restore metadata from XML in another workflow
Posted: Thu Mar 02, 2017 6:14 pm
by sander
I recall 5 minutes is the default settings. In your Switch Client preferences you can set the refresh interval to 1 minute.
You can't change metadata, most of us use PrivateData for that which you can overwrite with ease. Forum user gabrielp has written a little script/app for that:
https://github.com/open-automation/swit ... data-write
Re: Restore metadata from XML in another workflow
Posted: Thu Mar 02, 2017 7:03 pm
by dimadev
sander wrote:I recall 5 minutes is the default settings. In your Switch Client preferences you can set the refresh interval to 1 minute.
Ok, i have set the interval of refresh. Tomorrow i test if the Checkpoint response quickly
I have download the file .sscript. How i insert in my flow?
Thx for help

Re: Restore metadata from XML in another workflow
Posted: Thu Mar 02, 2017 8:38 pm
by gabrielp
dimadev wrote:
I have download the file .sscript. How i insert in my flow?
Add a script configurator from the elements pane and browse to the sscript file. You need the scripting module to use this. If you don't have the scripting module you would have to buy an app like Meta Tagger from the app store.
You can also transfer jobs between flows with Portals (in the app store for free) and it will keep all datasets and metadata between flows.