Creating child jobs
0 min
Creating child jobs
To create a child job in Activate:
//Create new job objectJob newJob = new Job();
//Set tasknewJob.Task = Evaluator.GetObject(“=//Tasks/User/Create User”) as Task;
//Set argumentsnewJob.Arguments.SetValue(“..”,...)
//Submit job as child, Job in this context is the parent jobJob.Submit(newJob);
NOTE: Calling newJob.SetInfo() will create the job without some important attributes set and job will not be executed. Call submit as above instead of using SetInfo();