We have emails sent thru call.alert.notifications for job failures. It currently has the following at the subject line of the alert: &$activator# on &wf# has A B O R T E D and the body of the alert has the following:
Task: &$activator#
Workflow: &wf#
Return Code: &ret_code#
System: &$system#
Client: &$client#
RunID: &$ACTIVATOR_RUNID#
This call is using the following include in the process tab:
:SET &wf# = GET_STATISTIC_DETAIL(&$ACTIVATOR_RUNID#,PARENT_PRC)
:PRINT wf &wf#
:SET &wf# = GET_STATISTIC_DETAIL(&wf#,NAME)
:SET &ret_code# = GET_STATISTIC_DETAIL(&$ACTIVATOR_RUNID#,RETURN_CODE)
:ADD_ATT RECIPIENT,"&$USER#/&$DEPARTMENT#"
I have a different job that I want an email notification sent when it completes to remind us of a task to manually do.
This job object is in a workflow that is inside several other workflows.
I was using the same notification as above as a base for this notification.
I have added the following under an include in the process tab of the object task needing to send the email:
:INC JOBI.OPENFRAME
:PSET &TNAME# = SYS_ACT_TOP_NAME()
:PRINT "&TNAME#"
The object runs and prints the correct top workflow name.
Then I was simply trying to add &TNAME# to both the subject line and in the body of the notification but it will not populate.
I also tried adding :PSET &TNAME# = SYS_ACT_TOP_NAME() to both the process tab of the notification and I tried putting it in the include of the notification but it doesn't pull the &TNAME
I'm obviously missing something.