Editing metadata
Editing metadata
I have a flow where I embed an xml file in a pdf using XML Pickup.
At a later stage I would like to change one parameter in the embedded xml data from one value to another. Is that possible? If so, how do I do it?
Thanks
At a later stage I would like to change one parameter in the embedded xml data from one value to another. Is that possible? If so, how do I do it?
Thanks
Enfocus Switch 2017, Enfocus PitStop Server 13u2, HP SmartStream 12 & Kodak Prinergy 7.5 with Rules Based Automation
MAN Roland R705 & R708, KBA Rapida 205, HP Indigo 7600, 7800 & 10000, Inca OnsetX2, Durst P10 among other things
MAN Roland R705 & R708, KBA Rapida 205, HP Indigo 7600, 7800 & 10000, Inca OnsetX2, Durst P10 among other things
Re: Editing metadata
I'm not sure about the answer to your question, but I'd also like to know.
But the way I have got around this problem is to not rely on datasets for flow logic in cases where the flow itself might want to change a value (or where the data is not static). In my flows, I'll use XML datasets but once I initially have the dataset, I'll set the values which dictate flow logic to private data. For example, I might take a CSR's email from /aob:manifest/aob:Order/aob:csr_email and set it to Job.PrivateData:Key="CSREmail". Then, maybe later on during the flow, I might have some logic which changes who the email notification goes to or who the CSR is, so I'll send the job into a private data configurator to overwrite PD key CSREmail, allowing me to send the file back into the flow to handle the job like normal, which simplifies the flow a bit.
But the way I have got around this problem is to not rely on datasets for flow logic in cases where the flow itself might want to change a value (or where the data is not static). In my flows, I'll use XML datasets but once I initially have the dataset, I'll set the values which dictate flow logic to private data. For example, I might take a CSR's email from /aob:manifest/aob:Order/aob:csr_email and set it to Job.PrivateData:Key="CSREmail". Then, maybe later on during the flow, I might have some logic which changes who the email notification goes to or who the CSR is, so I'll send the job into a private data configurator to overwrite PD key CSREmail, allowing me to send the file back into the flow to handle the job like normal, which simplifies the flow a bit.
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Re: Editing metadata
That sounds like it should work for me.
Thanks for the tip.
Edit: Works like a charm. Thanks a bunch Gabriel!
Thanks for the tip.
Edit: Works like a charm. Thanks a bunch Gabriel!
Enfocus Switch 2017, Enfocus PitStop Server 13u2, HP SmartStream 12 & Kodak Prinergy 7.5 with Rules Based Automation
MAN Roland R705 & R708, KBA Rapida 205, HP Indigo 7600, 7800 & 10000, Inca OnsetX2, Durst P10 among other things
MAN Roland R705 & R708, KBA Rapida 205, HP Indigo 7600, 7800 & 10000, Inca OnsetX2, Durst P10 among other things
Re: Editing metadata
Ha, how cool. I was just thinking about how to do this and the only way I could think of is using PrivateData.
So let's look at the forum for some tips, same question asked a day ago, and same thoughts
Before I go into using PrivateData, is any of you guys running Switch 13 yet? Can it be done easier with 13?
So let's look at the forum for some tips, same question asked a day ago, and same thoughts

Before I go into using PrivateData, is any of you guys running Switch 13 yet? Can it be done easier with 13?
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
- 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
Re: Editing metadata
Here's a simple PD script that makes it easy to write values to private data from element properties: https://github.com/dominickp/SwitchWriteToPrivateData
It would be nice, since scripts like these are damn near essential to many workflows, if we all used and improved the same ones over time.
It would be nice, since scripts like these are damn near essential to many workflows, if we all used and improved the same ones over time.
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Re: Editing metadata
I agree.
I have a couple of simple scripts which have been very useful, like you say damn essential. For sure a lot of Switch users have done the same scripting lately, it can't be otherwise.
I'm not a great scripter, but most of my scripts successful passed hundreds/thousands of jobs already haha.
More people interested? Maybe we can start easy and just simple list what we have (by name), to see if there's any more interest.
Edit: forgot to thank you for the PrivateData script, so easy and so extremely useful! Thank you!
I have a couple of simple scripts which have been very useful, like you say damn essential. For sure a lot of Switch users have done the same scripting lately, it can't be otherwise.
I'm not a great scripter, but most of my scripts successful passed hundreds/thousands of jobs already haha.
More people interested? Maybe we can start easy and just simple list what we have (by name), to see if there's any more interest.
Edit: forgot to thank you for the PrivateData script, so easy and so extremely useful! Thank you!
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
- 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
-
- Advanced member
- Posts: 230
- Joined: Thu Aug 07, 2014 10:04 am
Re: Editing metadata
you are all so lucky - on projects with Scripting module this is the way I handle things also.
I have initiated another thread which tries to accomplish same functionality without Scripting Module capabilities.
Any ideas?
Ariel
I have initiated another thread which tries to accomplish same functionality without Scripting Module capabilities.
Any ideas?
Ariel
Re: Editing metadata
When I started my job (with Switch) a year ago I was not well known with Javascript / Scripting Module.
Since I know other scripting languages I started easy and used Powershell via Execute Command.
You can pass arguments to it, that way we can update/create a XML file and use it in a XML pickup.
Export XML » Powershell pickup / change values » XML pickup.
It takes some time to create, but I guess we need to think in such a way if there's no Scripting Module.
Since I know other scripting languages I started easy and used Powershell via Execute Command.
You can pass arguments to it, that way we can update/create a XML file and use it in a XML pickup.
Export XML » Powershell pickup / change values » XML pickup.
It takes some time to create, but I guess we need to think in such a way if there's no Scripting Module.
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
- 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
-
- Advanced member
- Posts: 230
- Joined: Thu Aug 07, 2014 10:04 am
Re: Editing metadata
Thank you, Sanders.
I think I will try to perl me out of the problem
I think I will try to perl me out of the problem
Re: Editing metadata
I am using Switch 13 on our Developer Server and I'm going to upgrade our Production Server as soon as I see there are no big issues, so far it's only been a couple of minor things due to changes in the configurators.
Perhaps we should ask Enfocus for a Metadata editor?
Since we can embed an xml file via XML Pickup I guess it should be possible to edit the metadata as well.
Perhaps we should ask Enfocus for a Metadata editor?
Since we can embed an xml file via XML Pickup I guess it should be possible to edit the metadata as well.
Enfocus Switch 2017, Enfocus PitStop Server 13u2, HP SmartStream 12 & Kodak Prinergy 7.5 with Rules Based Automation
MAN Roland R705 & R708, KBA Rapida 205, HP Indigo 7600, 7800 & 10000, Inca OnsetX2, Durst P10 among other things
MAN Roland R705 & R708, KBA Rapida 205, HP Indigo 7600, 7800 & 10000, Inca OnsetX2, Durst P10 among other things
Re: Editing metadata
Sounds as feature request #1!
I'll ask Enfocus to see if there's anything in the pipeline.
I'll ask Enfocus to see if there's anything in the pipeline.
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
- 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
Re: Editing metadata
I would get behind that as well. Would also be nice if there was a quicker way to inspect metadata of a job, rather than stopping a flow and editing a connector.LasseThid wrote:Perhaps we should ask Enfocus for a Metadata editor?
Since we can embed an xml file via XML Pickup I guess it should be possible to edit the metadata as well.
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Re: Editing metadata
I don't stop my flows to check metadata.
Right click the jobs column » Show columns » Custom 1/5.

Next right click your column » Set column value » Define condition with variables, and go to your metadata as normal.

It's not the most elegant way, but at least you don't have to stop the flow. I use the custom columns a lot when building flows so I can quickly check what's going on with the metadata.
Right click the jobs column » Show columns » Custom 1/5.

Next right click your column » Set column value » Define condition with variables, and go to your metadata as normal.

It's not the most elegant way, but at least you don't have to stop the flow. I use the custom columns a lot when building flows so I can quickly check what's going on with the metadata.
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
- 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
Re: Editing metadata
Very cool. Did not know you could do that. Thanks for sharing.sander wrote:I don't stop my flows to check metadata.
Right click the jobs column » Show columns » Custom 1/5.
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix