Process Runner DB offers Pre-run or Post-run execution of other programs, scripts or stored procedure.
Process Runner DB offers many advanced SAP automation capabilities. However, if you want to further extend these capabilities with external processes, you can do so with Pre and Post run integration that Process Runner DB offers.
With Pre/Post Run integration feature, any external .Exe (standard Executable), .Bat (Batch file), .VBS (VB script) or .JS (Java Script) file can be executed before or after each run.
Externally called process can also receive important parameters from Process Runner DB that can be utilized to execute its own logic.
The called processes can also communicate back to Process Runner DB at the end to provide end to end integration.
Additionally there is an option to store VB or Java scripts internally with the process file using convenient iScript option.
Below is how Pre and Post run configuration looks like. You can write and store VB/Java scripts in Pre-Run iScript tab and Post-Run iScript tab. Scripts stored inside iScript tabs will be saved inside your Process file and will always be available.
You can individually set either pre-run or post-run process or both. If you want any external process to run BEFORE regular Process Runner DB task, you can that set by checking “Pre-Run Process Settings” box. Similarly if you want any external process to run AFTER regular Process Runner DB task, you can set by checking “Post-Run Process Settings” box. External process could be an externally stored Executable (.EXE), Batch (.BAT), Visual Basic scripts (.VBS), Java Scripts (.JS) or internally stored Visual Basic or Java scripts. Internally stored scripts are known as iScripts. For External file, you can select file that you want to execute as well as pass the necessary parameters to that file as follows: 1.Select File: Here you can choose file you wish to run before/after Process Runner DB task. You can choose from .Exe, .Bat, .VBS or .JS file. 2.Parameters: If the external file requires any command line parameters, you can provide them here. You can also choose standard parameters for the context menu there or by clicking ellipse at the end of the text box to get list. Each parameter must be separated by comma. Next is execution flow setting for controlling Process Runner DB task run when external process is busy or terminated? The settings are: 1.Wait options: This setting is done when you want Process Runner DB task to wait or continue without waiting for external process to terminate. Options are: •1-No Wait: By setting this, the Process Runner DB task will not wait for the external process to finish and proceed. •2-Wait until terminated: By setting this, Process Runner DB task waits till the external process finishes completely. •3-Wait until second: By setting this, Process Runner DB tasks wait for that seconds given and then proceed further. If the external process finishes by given time, the exit code is trapped else ignored. 2.Stop on error: When you check this box, the Process Runner DB task stops as the external process return error exit code (non-zero). This box is disabled when you select “1-No Wait” as wait option. For transaction (TX) module only, you can also control behavior for additional run types as follows: 1.Run with normal run: The process will be executed in normal run mode. 2.Test Run: The process will be executed in Test Run mode also. 3.Run with Debug: The process will be executed in Run – Debug All and Run – Debug Error mode also. 4.Run with Error Processing: The process will be executed in Error Processing Run mode also. |
Process Runner DB also facilitates iScript feature where you can write and store your own VB script or Java Script and execute it before or after regular Process Runner DB tasks. You can maintain independent scripts for pre-run and post-run. To enable Pre-Run iScript/Post-Run iScript, you need to select option as mentioned below: Pre-Run iScript Post-Run iScript |
‘Stored Procedure’ can be defined as a set of multiple SQL queries. This ‘Stored Procedure’ is already stored in your database and you can also create a new ‘Stored Procedure’. You can create new ‘Stored Procedure’ as follows: To enable Pre-Run Stored Procedure/Post-Run Stored Procedure, you need to select option as mentioned below:
Pre-Run Stored Procedure:
Post-Run Stored Procedure:
|