SYS_ACT_ME_NAME
Use the SYS_ACT_ME_NAME script function to retrieve the name of the current task (the task that calls the script). You can use the name to identify a particular task, for example in notifications to users.
Syntax
SYS_ACT_ME_NAME ()
Example
The following script is written on the Post Process page of a Job. The script queries the name and status of the Job. If the Job does not end normally with an ENDED OK - 1900 status, then the system sends an email to a specific recipient such as a support team member.
:SET &NAME# =
SYS_ACT_ME_NAME()
:SET &STATUS# = GET_UC_OBJECT_STATUS()
:IF &STATUS# <
"1900"
: SET &OUT# = SEND_MAIL("smith@automic.at",,"Job aborted!","The following Job did not end OK: &NAME#")
:ENDIF
See also: