Restore metadata from XML in another workflow

Post Reply
dimadev
Newbie
Posts: 10
Joined: Sat Dec 17, 2016 4:00 pm

Restore metadata from XML in another workflow

Post 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 :D
sander
Advanced member
Posts: 228
Joined: Wed Oct 01, 2014 8:58 am
Location: The Netherlands

Re: Restore metadata from XML in another workflow

Post 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.
Image
Part of my playground:
- HP Indigo 10k, HP Indigo 7600's (full options), Highcon Euclid III, Zünd S3
- HP Production Pro 6.0.1, HP Production Center 2.5.1 beta, Apogee 9.1, Enfocus Switch 13u1 & PitStop Server 13u2.

Chat: open-automation @ gitter
dimadev
Newbie
Posts: 10
Joined: Sat Dec 17, 2016 4:00 pm

Re: Restore metadata from XML in another workflow

Post 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
sander
Advanced member
Posts: 228
Joined: Wed Oct 01, 2014 8:58 am
Location: The Netherlands

Re: Restore metadata from XML in another workflow

Post by sander »

You don't have to ;)
Just use a static output and input folder and don't strip the unique name!
Part of my playground:
- HP Indigo 10k, HP Indigo 7600's (full options), Highcon Euclid III, Zünd S3
- HP Production Pro 6.0.1, HP Production Center 2.5.1 beta, Apogee 9.1, Enfocus Switch 13u1 & PitStop Server 13u2.

Chat: open-automation @ gitter
sander
Advanced member
Posts: 228
Joined: Wed Oct 01, 2014 8:58 am
Location: The Netherlands

Re: Restore metadata from XML in another workflow

Post 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.
Image

Flow 2. Set your input folder Path static to the same value:
Image
Part of my playground:
- HP Indigo 10k, HP Indigo 7600's (full options), Highcon Euclid III, Zünd S3
- HP Production Pro 6.0.1, HP Production Center 2.5.1 beta, Apogee 9.1, Enfocus Switch 13u1 & PitStop Server 13u2.

Chat: open-automation @ gitter
dimadev
Newbie
Posts: 10
Joined: Sat Dec 17, 2016 4:00 pm

Re: Restore metadata from XML in another workflow

Post 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?
sander
Advanced member
Posts: 228
Joined: Wed Oct 01, 2014 8:58 am
Location: The Netherlands

Re: Restore metadata from XML in another workflow

Post by sander »

I route jobs which need manual approval via a Checkpoint, most efficient way I think!
Part of my playground:
- HP Indigo 10k, HP Indigo 7600's (full options), Highcon Euclid III, Zünd S3
- HP Production Pro 6.0.1, HP Production Center 2.5.1 beta, Apogee 9.1, Enfocus Switch 13u1 & PitStop Server 13u2.

Chat: open-automation @ gitter
dimadev
Newbie
Posts: 10
Joined: Sat Dec 17, 2016 4:00 pm

Re: Restore metadata from XML in another workflow

Post 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 :)
sander
Advanced member
Posts: 228
Joined: Wed Oct 01, 2014 8:58 am
Location: The Netherlands

Re: Restore metadata from XML in another workflow

Post 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
Part of my playground:
- HP Indigo 10k, HP Indigo 7600's (full options), Highcon Euclid III, Zünd S3
- HP Production Pro 6.0.1, HP Production Center 2.5.1 beta, Apogee 9.1, Enfocus Switch 13u1 & PitStop Server 13u2.

Chat: open-automation @ gitter
dimadev
Newbie
Posts: 10
Joined: Sat Dec 17, 2016 4:00 pm

Re: Restore metadata from XML in another workflow

Post 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 :D
sander wrote: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
I have download the file .sscript. How i insert in my flow?

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

Re: Restore metadata from XML in another workflow

Post 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.
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Post Reply