Restart a step in a Job Chain when complete

Hi,
I want to restart a step when complete but I don't see where I can choose how many times I want to restart.
I see the Final Status Handlers : restart step on complete, but this restart the step unlimitedly.
Could someone help, please ?
Re.
Clement.

You can create a precondition expression on the step next to the restart on completed to limit the amount of restarts:
'=stepIterations <= 3' to restart the step 3 times.
Regards Gerben

Similar Messages

  • Steps max limit  in a Job Chain

    Hello experts,
    The SAP recommanded that the minimum number of steps in Job Chain for performance purpose.
    Can anybody tell , Is there any max limit on the number of steps in a Job chain?
    Thanks ,
    Suresh Bavisetti

    Can you reference the documentation where you see a minimum number of steps in a job chain recommended? I think there is no upper limit for the number of steps in a chain. How many steps are you thinking of adding?
    Or are you talking about nesting job chains within other job chains? Pleas eclarify if this is the case.
    Rgds,
    David Glynn

  • SAP CS 8.0 - question to parallel tasks in one job chain

    Dear all,
    I have a question about job chains in SAP CPS/Redwood
    We have a job chain like this:
    Job 1
         Job 1.1
                   Job 1.1.1
                   Job 1.1.2
         Job 1.2
                    Job 1.2.1
    The Jobs 1.1.1 and 1.1.2 should start  when the Job 1.1 is compled and don't have to wait until Job 1.2 is complete.
    How could I release it in Redwood in one job chain? Should I use a precondition in the job definition of 1.1 and 1.2?
    Thank you for your help.
    Best regards,
    Hans

    Assumptions :
    Job 1.1.1 and Job 1.1.2 are running in parallel.
    Job 1.1, job 1.2 are also running in parallel.
    Chain A -
    Step 1 - Job 1.1
    Step 2 - Job 1.1.1, Job 1.1.2 (these both will start as soon as Job 1.1 completes)
    Chain B -
    Step 1 - Job 1.2
    Step 2 - Job 1.2.1
    Chain C
    Step 1 - Job 1
    Step 2 - Chain A, Chain B (Chain A and Chain B will start as soon as Job 1 completes).
    Submit Chain C.
    Preconditions are usually  used to check the timewindow, for example , if you want to execute a step in a job chain, only if it is a Friday.
    thanks
    Nanda

  • Restart/resubmit job chain waiting of a file event

    Hi Experts,
    how can I restart/resubmit a job chain waiting of a file event?
    In my case the variables OriginalPath and FinalPath are used in job chain parameters as an Default Expression (waitEvents...). If I restart the job chain I get the message "Could not evaluate default value for parameter...".
    We are using SAP-CPS Build M28.20-37214.
    Regards
    Mathias

    Hi,
    You probably want to restart it because there was a failure somewhere in the chain. In this case it is easier to not let the chain end in error, but to let it go to status Console using the "Request Restart" postcondition.
    Then when the step is restarted, or the chain is restarted from the beginning, it is restarted within the original chain and it reuses the already determined parameter values.
    Regards,
    Anton.

  • Job Chain Restart Behaviour

    If a Job Chain with 3 steps fails in the second step - we would like the restart to resume execution with the second step, bypassing execution of the first step.   What are the correct settings to enable restarting the chain with the failed step? Thanks

    Hi Noel,
    For now, you could put an "on completed" "request restart" on the SendMessage step. If the SendMessage runs, there was an error so you would want to restart, but the restart options have some restrictions then because they don't take the step of the error but the SendMessage step as a reference now (you have the request restart on the send message step).
    Last but not least: if you already inform someone, you can also simply right click a step in the monitor and choose restart, this should restart the chain but from the step you selected. This is the same as submitting a new chain but specifying the step where it should start (on the same page in the submit wizard where you specify the queue).
    There also is an add-on available from Redwood called "active alerting" which allows you to do rule-based alerting (depending on source of the error send message to different teams) as well as escalation (if no reply within x minutes, send to next team) very easily.
    Regards,
    Anton.

  • Restart in Job chains and managing DST

    Hi,
    1) Given a 5 step job chain, if step 3 fails how is this handled in CPS? The following steps are chained but can the errored step be fixed and rerun to continue the job chain processing?
    2) How is day light saving handled for particular jobs. Is there anywhere this is captured in the detailed job request form solman?
    Regards,
    Esha

    Hi,
    1) Given a 5 step job chain, if step 3 fails how is this handled in CPS? The following steps are chained but can the errored step be fixed and rerun to continue the job chain processing?
       -- Yes, you can restart at any step of Job chain. (Not not at call level, remember one step might have multiple call inside it)
    2) How is day light saving handled for particular jobs. Is there anywhere this is captured in the detailed job request form solman?
    -- Use GMT timezone to submit jobs. There is nothing on redwood which can solve day light saving. It alwasy has to be at OS level. But redwood has all timezones availabe and you can submits job in any timezone.
    Regards,
    Sunil Rohit

  • Can we schedule steps in Job Chain to run at a particular time of the Day.

    Hi ,
    We have created a Job chain for 3 steps.our requirement is we want to step 1 to run as per the schedule of Job chain but we want  step2 to run on fri 2 gmt and step 3 to run on saturday 1 gmt.
    is ther any setting in Job chain so that we can schedule subsequent steps to run at a particular time.
    Regards
    Rajesh

    Hi,
    You can add a timewindow to the jobdefinitions that you call in step 2 and 3, to restrict the start times for these jobs to the desired time.
    Regards,
    Anton.

  • How to setup job chain with time dependant steps

    Hi
    I need to setup the following job chain with next job step waiting until specified time before starting
    Step 1 Job A Time 07:30 if complete go to job step 2
    Step 2 Job B start time 09:00 if complete go to job step 3
    Step 3 Job C start time 09:30 (end job)
    Have tried to use a pre-condition in step 2 and 3 but that just caused thoes steps to be skipped.
    can somebody point me in the right direction
    Thanks in advance
    Jon

    Hi Anton/Babu
    Thanks for your help, I managed to set this up by embedding multiple Job Chains with their own time window in a master job chain.
    As we continue our roll out not sure how scalable the solution will be as you have to create multiple job chains for essentially the same job with the only difference being a specific time window.
    I guess only time will tell.
    Thanks for you help again guys
    Jon

  • Is a save step neccessary in a Process Chain when loading hierarchies with an ABAP program?

    We are loading hierarchies using the ABAP routine found here in the SDN. 
    We have come accross the issue where the process chain loads successfully, but does not update the hierarchy (this problem is documented in the SDN).  It is not a consistent issue, but it causes problems when it does occur.
    OSS note 652856 points out that a SAVE HIERARCHY step is needed after the load and before the Change Attribute run.
    We have added the step to the process chain, which leads me to the question.
         In using the ABAP program to load hierarchies is the addition of the Save Hierarchy step necessary?
         Will that resolve the issue with hierarchies not updating?

    Hi Bill,
    Yes, SAVE HIERARCHY step is required when hierarchies are loaded as part of process chain. This step ensures that the hierarchy data loaded to BW has been saved. Then we have to run ACR so that these hierarchies will be activated and adjusted.
    This is the reason why even the hierarchy data loaded using infopackage needs this step. This step is not required if the Infopackage is triggered manually.
    This link will help you in better understanding
    http://help.sap.com/saphelp_nw04/helpdata/en/3d/320e3d89195c59e10000000a114084/content.htm
    Regards
    Chandu

  • Passing parameter value from one script to another in job chain steps

    Hi all,
    We have a scenario where in we have a job chain with two steps
    1-Step 1 contains a script which fetches value from database to the script parameter(in/out) - PAR_DB_VALUE
    2-Step 2 contains another script which uses the value of the parameter PAR_DB_VALUE and has to assign to another parameter in the script 2 called PAR_FETCHED_VALUE(in)
    How to pass the value of PAR_DB_VALUE to PAR_FETCHED_VALUE which are parameters in two different steps
    Please help
    Thanks and Regards
    Raj

    Hi,
    You can achieve this as follows (CPS version 6 & 7):
    - Edit the chain
    - Go to the second step, to the parameters of the script call in that step
    - Go to the parameter (PAR_FETCHED_VALUE) that you want to be filled by the parameter of the first step
    - choose "Chain value" in the detail screen for the parameter, and select the desired out parameter from the drop down
    Note that both parameters need to be of the same type for this to work.
    Regards,
    Anton.

  • Error while scheduling the Email Alert JOB chain

    Hi All,
    I have defined a job chain in CPS and when i am going to schedule it then it is giving me error message.We have taken the trial version.
    Please find the log attached below.
    11:18:31 PM:
    JCS-111004: Queue ETD.sapetd00_Queue has no ProcessServer with the required JobDefinitionType/Service/Resource for Job 932 (submitted from ETD.Z_MONI_BATCH_DP copy from 2009/12/30 18:22:23,113 Australia/Sydney) (submitted from Job Definition ETD.Z_MONI_BATCH_DP (Copy from 2009/12/30 18:22:23,113 Australia/Sydney)): Job Definition Type CSH/Service PlatformAgentService/"Empty"
    JCS-102064: Job 934 (submitted from System_Mail_Send copy from 2009/12/29 17:54:16,608 Australia/Sydney) is global but refers (via Job) to an object in an isolation group
    JCS-102064: Job 934 (submitted from System_Mail_Send copy from 2009/12/29 17:54:16,608 Australia/Sydney) is global but refers (via Chain Step) to an object in an isolation group
    JCS-102064: Job 934 (submitted from System_Mail_Send copy from 2009/12/29 17:54:16,608 Australia/Sydney) is global but refers (via Parent Job) to an object in an isolation group Show error details
    Thanks
    Rishi Abrol

    Hi
    Are you logged into the correct isolation group ?
    Ensure the process server is also assigned to the queue.
    Regards

  • SQL Developer 3.1: Job Chains - 2 Bugs.

    Hi.
    Just having a play with defining job chains in SQL Developer 3.1 and I came across these bugs...
    1) When you try to define a new chain using SQL Developer you get, "ORA-01741: illegal zero-length identifier"
    If you look on the SQL tab you can see that it is messing up the double quotes, placing two sets of double quotes around the chain_name.
    BEGIN
        sys.dbms_scheduler.create_chain(
            comments => '',
            chain_name => '"TEST".""test_chain_3""'
          sys.dbms_scheduler.enable(name=>'"TEST".""test_chain_3""');
    END;If you remove the extra quotes and run the code it works fine.
    2) The job chain diagram seems to be case sensitive as far as the rule definitions are concerned.
    If you follow the chain setup in SQL*Plus described here (http://www.oracle-base.com/articles/10g/SchedulerEnhancements_10gR2.php#job_chains), then check the associated diagram in SQL Developer it is displayed properly.
    Now repeat the chain definition from SQL*Plus, but this time define the conditions and actions of the rules in lower case (which is valid and functions as expected).
    BEGIN
      DBMS_SCHEDULER.define_chain_rule (
        chain_name => 'test_chain_1',
        condition  => 'TRUE',
        action     => 'start chain_step_1',
        rule_name  => 'chain_rule_1',
        comments   => 'First link in the chain.');
      DBMS_SCHEDULER.define_chain_rule (
        chain_name => 'test_chain_1',
        condition  => 'chain_step_1 completed',
        action     => 'start chain_step_2',
        rule_name  => 'chain_rule_2',
        comments   => 'Second link in the chain.');
      DBMS_SCHEDULER.define_chain_rule (
        chain_name => 'test_chain_1',
        condition  => 'chain_step_2 completed',
        action     => 'start chain_step_3',
        rule_name  => 'chain_rule_3',
        comments   => 'Third link in the chain.');
      DBMS_SCHEDULER.define_chain_rule (
        chain_name => 'test_chain_1',
        condition  => 'chain_step_3 completed',
        action     => 'END',
        rule_name  => 'chain_rule_4',
        comments   => 'End of the chain.');
    END;
    /Now check the diagram again in SQL Developer and you will see that all the steps are present, but the links (rules) are not correctly displayed. Seems like it is case sensitive...
    If you need any more info, please ask.
    Cheers
    Tim...
    Edited by: TimHall on Feb 10, 2012 4:23 PM

    I have confirmed your two test cases are indeed bugs and I have raised them. The first seems to be if you have a mixture of _ and lowercase characters in the name but we will look at other cases too. The second is that the parsing of the condition/action does not uppercase unquoted ids. The second can be cirumvented by using quotes etc.

  • Need informations about dependency scenario with job chains

    Hi,
    I created several job chains containing one ora mor scripts.
    Now I want to create dependencies between this job chains. For example : job chain 2 must begin when job chain 1 is finished, job chain 3 must begin when job chain 2 is finished etc...
    So my first question : how can I do that ? (create dependencies between job chains)
    Second point : all this job chains have not the same time periods : example : job chain 1 must execute every day, job chain 2 every monday, job chain 3 every day...... so if i take the example of tuesday : job chain 1 must execute and when it is finished then job chain 3 must execute. On Monday : job chain1, then job chain 2 and for finish job chain 3. How can I do that ?
    Edited by: kennel yves on Aug 19, 2009 12:27 PM

    Hi Yves,
    If your chains are not dependent on each other, you should submit them as separate jobs.
    So if you have a chain that runs every workday at 18:00, and another chain that runs on Tuesday and Friday at 14:00, and there are no dependencies between the chains, then you should:
    - submit the first chain at 18:00, time window "Workdays", submit frame "EveryDay"
    - submit the second chain at 14:00, time window "TuesdaysAndFridays", submit frame "EveryDay" (it will skip the days that the time window is closed anyway)
    Same for the other independent chains with different schedules. If there are no dependencies, there is no need to combine chains together.
    The first reply was for the scenario where you have chain A and B, A starts at some time and B starts after A. Additionally, B only runs on Tuesdays, while A runs every workday. In that case there are dependencies between the two chains, and then a parent chain is very convenient:
    - chain "RunAandB", with two steps
    - step 1: call chain A
    - step 2: call chain B, with a precondition so that B only runs on Tuesdays.
    Regards,
    Anton Goselink.

  • Grafical overview of Job chains with dependencies by event

    Hi,
    we want to activate/monitor various process chains in APO and BW SAP systems which are dependent of each other.
    We intend to handle this with Events (wait events and raise events).
    For this reason we have created a job chain for each process chain. In the first and only step the job definition 'SAP_BW_ProcessChainRun' is started and activates the 'Technical Name of SAP BW Process Chain:
    Do we have a chance to get a graphical overview over all with event sceduling realized dependent job chains?
    Thanks
    Br
    Günter

    Hi,
    If there are dependencies between your BW Process Chains, you can use something like a master Job Chain definition in CPS to set up your dependencies between them (with failure or success outcomes, based on the step statuses). For chains that can run in parallel you can have multiple jobs (that can be other job chains) in a job chain step, and depedent jobs can be other steps that are triggered when a previous step completes / fails. Just check of course that thes jobs are your process chain jobs and not just event triggers.
    [link to SAP help for BW chains and CPS|http://help.sap.com/saphelp_nw04s/helpdata/de/bb/033b3c9f8c4b5ca34045688c6a9f7b/content.htm]

  • Job Chain question

    Hi,
    i want to schedule a job chain.
    I 've created 4 chain steps.
    The first perform an action and the second must be executed only if the first completed successfully.
    The third must be executed only if the second ends successfully, etc.
    The Chain_rule_2 is
    CHAIN_STEP_1 Completed and CHAIN_STEP_1 SUCCEEDED
    The chain_rule_3 is
    CHAIN_STEP_2 Completed and CHAIN_STEP_2 SUCCEEDED
    But the job is actually running because there isn't an end steps (I suppose).
    End step must be done if all steps works fine or if only one failed.
    Any ideas?
    Thanks.

    You can add rules in Chains:
    Chain rules define when steps run, and define dependencies between steps. Each rule has a condition and an action. Whenever rules are evaluated, if a rule's condition evaluates to TRUE, its action is performed. The condition can contain Scheduler chain condition syntax or any syntax that is valid in a SQL WHERE clause. The syntax can include references to attributes of any chain step, including step completion status. A typical action is to run a specified step or to run a list of steps.
    All chain rules work together to define the overall action of the chain. When the chain job starts and at the end of each step, all rules are evaluated to see what action or actions occur next. If more than one rule has a TRUE condition, multiple actions can occur. You can cause rules to also be evaluated at regular intervals by setting the evaluation_interval attribute of a chain.
    Conditions are usually based on the outcome of one or more previous steps. For example, you might want one step to run if the two previous steps succeeded, and another to run if either of the two previous steps failed.
    Scheduler chain condition syntax takes one of the following two forms:
    stepname [NOT] SUCCEEDED
    stepname ERROR_CODE {comparision_operator|[NOT] IN} integer
    You can combine conditions with boolean operators AND, OR, and NOT() to create conditional expressions. You can employ parentheses in your expressions to determine order of evaluation.

Maybe you are looking for

  • ADF Table dynamic rendering issue with Transient VO

    Hello All, JDeveloper : Studio Edition Version 11.1.1.2.0 Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536 ADF Business Components     11.1.1.55.36 Java(TM) Platform     1.6.0_11 Oracle IDE     11.1.1.2.36.55.36 SOA Composite Editor     11.1.1.2.0.1

  • How to transfer photo with 2 accounts

    hi, could somebody tells me how i can transfer photos (from iphoto) from one account to another? (i have created two accounts on my mac book pro. many thanks.

  • SMS count for 5230

    how do i get the SMS count for Nokia 5230. In my earlier mobile i could go to Log>Message Log and get the count for Sent SMS's and Recieved SMS and for MMS's also. I could not find the option in the 5230. Is there any way of finding the number of SMS

  • WebLogic RMI UNIX Performance problem

    Hi. I'm experiencing problems with the performance of RMI calls from within session beans to external RMI services. I have a system running 4 RMI services in separate JVMs to weblogic 6.1 instance on Solaris 2.6 on SPARC boxes with 1+ Gb of RAM. The

  • Can't Understand ADF example code

    Hi All, I am trying to learn ADF from the Oracle Tutorial, but I can't understand this loop: public Integer getNextLineItem() { int maxLineNo = 0; for (ServiceHistories svh:getServiceRequests().getServiceHistoriesCollection()){ if (svh.getLineNo() !=