SYS_ACT_ME_NAME

Script Function: Returns the name of the own object

Syntax

SYS_ACT_ME_NAME ()

Return code

Name of the object in which this script function is called

Example

A job's name and status are queried in its Post-Process tab. If the job does not end normally (ENDED_OK - 1900), an email message will be sent to the support team.

:SET &NAME#   = SYS_ACT_ME_NAME()
:
SET &STATUS# = GET_UC_OBJECT_STATUS()
:
IF &STATUS#  < "1900"
:   
SET &OUT# = SEND_MAIL("smith@automic.at",,"Job aborts!","Job: &NAME# is canceled!")
:
ENDIF

See also:

Script element Description

SYS_ACT_ME_NR

Returns the run number (RunID) of the own object
SYS_ACT_ME_TYPE Returns the object type of the own object

Script Elements - Activation Data

Sample Collection:
Retrieving Error Message and Number

About Scripts
Script Elements - Alphabetical Listing

Script Elements - Ordered by Function