Quantcast
Channel: SCN : Unanswered Discussions - SAP Business Process Automation by Redwood
Viewing all articles
Browse latest Browse all 646

Set job on hold by script

$
0
0

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


Viewing all articles
Browse latest Browse all 646

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>