cancel
Showing results for 
Search instead for 
Did you mean: 

Searching: Guide for scheduling jobs with Redwood scripting

Former Member
0 Kudos

Hello,

I search for a good guide to scheduling Jobs in SAP CPS with Redwood Scripting, because I starts with this Topic.

Do somebody know a good guide and can tell me, where I can download it?

Best Regards,

Jan

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Gerben,

Thx for your advice, but I don't found an good example. I want to schedule jobs like (Mo-Fr. 5:00 PM) and found only script like this:

{

Partition part = jcsSession.getPartitionByName("ICR");

JobDefinition jobdef=jcsSession.getJobDefinitionByName("JAN_TEST_BCDELMAILQUEUE");

SubmitFrame sf = jcsSession.getSubmitFrameByName("Hauni_Stuendlich");

TimeWindow tw = jcsSession.getTimeWindowByName("System_Week_WorkingHours");

DateTimeZone dtz = new DateTimeZone(2015, 10, 18, 15, 0, 0, 0);

Queue SystemQ=jcsSession.getQueueByName(part, "ICR_Queue");

Job infoJob=jobdef.prepare();

infoJob.setQueue(SystemQ);

infoJob.setSubmitFrame(sf);

infoJob.setTimeWindow(tw);

infoJob.setRequestedStartTime(dtz);

jcsOut.println(infoJob.getJobId());

jcsSession.persist();

}

Could you me write, which the right method for periods like (Mo-Fr. 5:00 PM) is?

Best regards,

Jan

gmblom
Active Contributor
0 Kudos

Hello,

The online help contains some samples to submit jobs. Have a look at those.

Regards Gerben