Restarting Process Chains
Process chains can be restarted from within Redwood Server at chain-level as well as on process level. This allows you to only restart the processes that require a restart without starting the whole chain again. When a job of a process chain reaches an error state, the parent job of the process chain is put to console and an operator message is generated allowing you to restart the chain at a desired point. You can choose to make a process chain restartable when you submit the process chain. There are three options:
- the entire chain is restartable
- only failed processes are restartable
- the chain is not restartable
This is governed by the CHAIN_RESTARTABLE
parameter on the SAP_BW_ProcessChainRun process definition. Once you have selected a restart option in the operator message, SAP_BW_RestartProcess or SAP_BW_RestartProcessChain are submitted for you, depending on your reply to the operator message. To restart process chains, you should first import and run a process chain, this is outlined in the Running Process Chains section.
Failed processes of monitored process chains can also be restarted, by default; this setting can be customized with Redwood Server registry entries, see the section below.
Restarting process chains requires the ProcessServerService.SAP.ProcessChainRestart license key.
note
Process chains can also be restarted automatically, without human intervention. Although it is always best to have human intervention when something goes wrong, your process chain might only fail in a predictable manner, for example, when dependent data has not yet been processed. If this is the case, you can have one or more processes of your process chain restart a number of times after a certain delay, waiting for the data to be processed, for example. Each process can have different settings, delays and maximal restart counts.
note
It is not possible to use Redwood Server to balance the load of process chains across SAP application servers. As far as scheduling is concerned, you can only influence the parent job. You can, however, restart certain child jobs.
Restarting Monitored Chains
By default, monitored BW chains have the restart option set to (F)ailed
, this can be overridden using the following registry entries, the first applicable value will be used:
/configuration/sap/<Partition.SAPSystem>/bw/restart/RestartMode
/configuration/sap/bw/restart/RestartMode
Allowed values:
N
- monitored BW chains are not restartableF
- monitored BW chains are restartable, only failed processes are shown (default)A
- monitored BW chains are restartable, all processes are shown
note
This applies only to monitored BW chains, so those that were started in BW. BW chains started in Redwood Server have a parameter that defines the restart behavior.
Prerequisites
- SAP System with all required Support Packages installed
- Process chains have already been imported into Redwood Server
- The SAP transport files must be loaded, see the Enhanced SAP Interfaces with Redwood Transports section for more information on loading the transport files.
Procedure
Restarting a process chain from the console
- Expand the top-most parent process of the process chain, which has the status console.
- Locate the operator message Restart process chain? and choose reply from the context-menu.
- Choose a level at which you want to restart the process chain and choose Save & Close.
Automatically restarting a process chain
- Navigate to "Environment > SAP".
- Choose Maintain Objects from the context-menu of your SAP System.
- Expand Process Chains and choose the process you would like to restart automatically.
- Fill in Max Number Of Restarts as well as Restart Delay, change the Restart Delay Units if appropriate.
- Choose Save & Close.
Result
In the first procedure, a copy of the process chain is created in the processes monitor, only the selected processes have been restarted; you can locate them under the failed processes.
In the second procedure, the process(es) you configured to restart automatically will be the next time you submit a process chain against that SAP System.