Hi,
for creation of private Data (Job.PrivateData) it is necessary to use a script element, right?
Kind regards,
Jörg
insert private Data
-
Joerg Schober
- Member
- Posts: 30
- Joined: Mon Mar 21, 2011 2:30 pm
Thanks, Freddy.
Do you have an example for a script expression?
Do you have an example for a script expression?
Danny wrote: I'm trying to set the private data to the current job state. Could you please give an example of this?
I would need a script element for this, correct?
Thank you!
I think so. This should do it:
var jobstate = job.getJobState();
job.setPrivateData('YourKey', jobstate);
job.sendToSingle( job.getPath() );
I would need a script element for this, correct?
Thank you!
I think so. This should do it:
var jobstate = job.getJobState();
job.setPrivateData('YourKey', jobstate);
job.sendToSingle( job.getPath() );
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