Hello Everyone,
We have selected one script to get triggered by the job plan's External Dependency property ( more details on the screenshot ).
That script prints the "main job plan Name" & it's "RUNID" saying it is running long as one of the external is waiting for long.
SCRIPT NAME : SYSTEM.SCRIPT.X.UC4.X.EXTDEP_RUNNING_TOO_LONG
Codes :
---------------------------------------------------------------------------------------------
:SET &OBJNAME = SYS_ACT_PARENT_NAME(ACT)
:SET &RUNNO = SYS_ACT_PARENT_NR(ACT)
:PRINT 'External Dependency inside jobplan &OBJNAME, (Run # &RUNNO) has been executing longer than expected; Please investigate.'
---------------------------------------------------------------------------------------------Actually we want to print following for better clarity -
- The main job plan Name ( with Run ID )
- The task name - which is waiting to get satisfied inside the job plan.
The problem is both of 2 function
SYS_ACT_PARENT_NAME(ACT) & SYS_ACT_PARENT_NR(ACT) returns the main job plan name NOT THE TASK NAME from which property it was called.
Anyone has any idea - instead of printing only job plan name,
how to set up a process to print "Main Job Plan Name ( with RUNID )" & "The external Task Name" which one is actually waiting to get satisfied ?