This workflow was written for customers who want to be notified if any scheduled background jobs fail, but flexible enough for any background job search requirements. It works very similar to the SM37 transaction in SAP. You can request job statuses for any or all the same simple selection screen parameters as in the transaction.
Job Name – Search by a specific job names or job name patterns.
Background User – Search by the user id the job was run under.
Job Status – Select jobs by the current status of the jobs.
|
STATUS
|
DESCR
|
|
R
|
RUNNING
|
|
Y
|
READY
|
|
P
|
SCHEDULED
|
|
S
|
RELEASED
|
|
A
|
ABORTED
|
|
F
|
FINISHED
|
|
Z
|
ACTIVE
|
|
X
|
UNKNOWN
|
Event – Search by events that were created to trigger the release of background jobs.
Job Start Date and Time – Search by start date and time.
You can also change the condition, based on status, that controls whether an email is sent or not. Just change the parameter called “Job Statuses”
|
STATUS
|
DESCR
|
EMAIL
|
|
R
|
RUNNING
|
Y
|
|
Y
|
READY
|
Y
|
|
P
|
SCHEDULED
|
Y
|
|
S
|
RELEASED
|
Y
|
|
A
|
ABORTED
|
Y
|
|
F
|
FINISHED
|
Y
|
|
Z
|
ACTIVE
|
N
|
|
X
|
UNKNOWN
|
Y
|
Send Email – You will need to change the name of the email server in the Send Email properties. For more help on how to customize this action, right-click on the Send Email action in the workflow and select “Help on Send Email”
HTML Report - is also created which can be used to distribute the list of jobs found based on your selection criteria. The workflow is currently configured to send the URL in the email.
The workflow can be found here http://comsrv.intellicorp.com/cs/media/p/212.aspx
Please let us know if you find other useful and creative ways of using this workflow.