Hi,
for creation of private Data (Job.PrivateData) it is necessary to use a script element, right?
Kind regards,
Jörg
insert private Data
insert private Data
Yes. Or a script expression.
Freddy
Freddy
-
- Member
- Posts: 30
- Joined: Mon Mar 21, 2011 2:30 pm
insert private Data
Thanks, Freddy.
Do you have an example for a script expression?
Do you have an example for a script expression?
-
- TOP CONTRIBUTOR
- Posts: 628
- Joined: Mon Nov 29, 2010 8:45 pm
- Location: Alpharetta GA USA
- Contact:
insert private Data
job.setPrivateData("key", "value");
insert private Data
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 would need a script element for this, correct?
Thank you!
insert private Data
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
insert private Data
Works perfect. That's exactly what I was trying to do. Thank you very much!