Hello,
I want to set a certain cycle job on hold and release it by script because the action should take place in the night (no office hours).
Is this possible? I cannot use the Jobgroup-End-Option because I don't know before when the maintenance will be started.
I think to schedule a job for the hold-time, which has a parameter "Job". The parameter will be filled by choosing a Jobdefinition from the "Query filter All Jobdefinitons".
How I get the Job I want to hold from the Jobdefinition by script?
...
JobDefinition jd = jcsSession.getJobDefinitionByName(strJobName);
Long ID = jd.getUniqueId();
??? how I get the Job j from the UniqueId ???
j.hold();
Thanks for your help!
Best regards,
Dana Ullrich