Yeah, I wrote my own JOBI for this moments ago. :)
UC4.PRINT_TASK_DETAILS.JOBI
Print the details of the currently-running task
:SET &LNR# = SYS_ACT_ME_LNR()
:IF &LNR# <> ""
: SET &LNR# = FORMAT(&LNR#,"000")
:ELSE
: SET &LNR# = " "
:ENDIF
:IF &$ALIAS# <> &$NAME#
: SET &ALIAS# = "(&$ALIAS#)"
: SET &Header# = " Run ID Type Lnr Name (Alias)"
:ELSE
: SET &Header# = " Run ID Type Lnr Name"
:ENDIF
:PRINT "&Header#"
:IF &$IN_PROCESSFLOW# = "Y"
: IF &$TOP_PROCESSFLOW_RUNID# <> &$PROCESSOR_RUNID#
: SET &TOP_PROCESSFLOW_RUNID# = FORMAT(&$TOP_PROCESSFLOW_RUNID#,"0000000000")
: PRINT "Top WF : &TOP_PROCESSFLOW_RUNID# &$PROCESSOR_TYPE# &$TOP_PROCESSFLOW_NAME#"
: ENDIF
:ENDIF
:IF &$PROCESSOR_RUNID# <> ""
: SET &PROCESSOR_RUNID# = FORMAT(&$PROCESSOR_RUNID#,"0000000000")
: PRINT "Processor : &PROCESSOR_RUNID# &$PROCESSOR_TYPE# &$PROCESSOR#"
:ENDIF
:IF &$ACTIVATOR_RUNID# <> ""
: IF &$ACTIVATOR_RUNID# <> &$PROCESSOR_RUNID#
: SET &ACTIVATOR_RUNID# = FORMAT(&$ACTIVATOR_RUNID#,"0000000000")
: PRINT "Activator : &ACTIVATOR_RUNID# &$ACTIVATOR_TYPE# &$ACTIVATOR#"
: ENDIF
:ENDIF
:SET &RUNID# = FORMAT(&$RUNID#,"0000000000")
:PRINT "This task : &RUNID# &$OBJECT_TYPE# &LNR# &$NAME# &ALIAS#"
:IF &$PARTNER_TYPE# <> ""
: PRINT " Partner type : &$PARTNER_TYPE#"
:ENDIF
:IF &$IN_PROCESSFLOW# = "Y"
! Version 12.0 and later only
! : IF &$COMPONENT_NAME# <> ""
! : PRINT "Component name : &$COMPONENT_NAME#"
! : ENDIF
:ENDIF
:SET &ACTIVE# = SYS_STATE_ACTIVE()
:PRINT "Task Active: &ACTIVE#"
Sample output from a task inside a workflow that is also inside a workflow:
Run ID Type Lnr Name (Alias)
Top WF : 0132805241 JOBP UC0.MAL.TASK_DETAILS_TEST_PARENT.JOBP
Processor : 0132809191 JOBP UC0.MAL.TASK_DETAILS_TEST.JOBP
This task : 0132809192 SCRI 002 UC0.MAL.TASK_DETAILS_TEST.SCRI (CHILD_TASK)
Task Active: N
I do not know of a straightforward way to determine the alias or Lnr of the parent workflow within
its parent.