Skip to Content
author's profile photo Former Member
Former Member

Searching: Guide for scheduling jobs with Redwood scripting

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Aug 31, 2015 at 07:01 AM

    Hello,

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

    Regards Gerben

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2015 at 12:09 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.