...
The Monitors (also called Pre-/Post-Processing Monitors) are used with jobs to provide pre-processing and post-processing capabilities by scripting. The pre-/post-processing monitors are executed before a Task is being executed by the JobScheduler. Similarly the Post-processing monitors are executed once a Task is finished.
A Job can have multiple pre/post processing Pre-/Post-Processing Monitors ordered starting from 0 onward to be executed by the JobScheduler. The pre-/post-processing monitors can A Pre-Processing Monitor can be created to validate a required condition for a particular task to be stated started or set a parameter value e.g. today's date etc. At the same time post-processing monitors a Post-Processing Monitor can check the job's execution status return code. total execution time etc. The Monitors can Pre-/Post-Processing Monitors can be programmed independent from the job's execution programming language e.g. a Shell Script job can have a pre-processing monitor written Pre-/Post-Processing Monitor written in the Java ScriptJavascript.
Issues
The Named Monitor feature is subject to the following issues
Jira | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Pre-/Post
...
-ProcessingMonitor
The Pre-/Post Monitor are generic pre/post Monitors -Processing Monitors are generic block of code stored in the separate file with file extension *.monitor.xml
e.g. MyMonitor.monitor.xml
. A prePre-/post Monitor can Post-Processing Monitor can be included in multiple jobs. A Pre-/Post-Processing
In following example we will create a pre-processing monitor to show all all the order parameters just before any job stated.
Create Pre-/Post Monitor
...