Can anybody help?
Assume the following Job sequence jobseqMY:
Code: Select all
JobAct1 ----------> RoutineAct1
| Fail_link1
|OK1
|
v
JobAct2 ----------> RoutineAct2
| Fail_link2
|OK2
|
v
JobAct3 -----------> RoutineAct3
Fail_link3
The underlying routine for all routine activities is rFailure_Handler (The same for all).
The question is:
How can the routine rFailure_Handler obtain the following information:
- The name of the link leading to the routine activity
- The name of the failed job activity
- The name of the underlying job name of the failed job activity.
What I am really after is the last item so I can interogate the failed job info.
I tried DsGetStageInfo , DSGetLinkInfo but they return "DSJE.NOTINSTAGE"
I can pass the job name as a parameter but this is prone to error especially if you want to change the job name later down the line.
Thank you for your help
[/size]