So, I am used to creating one child job and using send to data, though now I have encountered something I am not sure how to accomplish.
I have a job "Input Job" but then I need to create two child jobs from that one each with their own Private Data.
What would the syntax be for this? Just not sure how two create Multiple new childjobs then send thoses jobs to send to data.
Any help on this would be appreciated!
Code: Select all
Input job = await job.get(AccessLevel.ReadWrite);
<----Customize Input job With Imagemagick---->
<----Customize Input job With Imagemagick---->
let New_Job_1 = await job.createChild(Input job);
await New_Job_1.setPrivateData(Set_Private_Data(PD1));
await New_Job_1.sendToData(Connection.Level.Success)
<----Customize Input job With Imagemagick---->
let New_Job_2 = await job.createChild(Input job);
await New_Job_2.setPrivateData(Set_Private_Data(PD2));
await New_Job_2.sendToData(Connection.Level.Success)
await job.sendToNull();