Automation Engine Script Guide > Ordered by Function > Activation Data > SYS_ACT_ME_NAME

SYS_ACT_ME_NAME

Script Function: Returns the name of the own objectAutomation Engine controlled activities and processes are structured in the form of objects. See also: Task

Syntax

SYS_ACT_ME_NAME()

Return code

Name of the object in which this scriptA particular Automation Engine object type. functionPre-defined run book template in the Automation Engine. One single step only, e.g. Start Windows Service, Copy file,… is called

Example

A jobAn Automation Engine object type for a process that runs on a target system.'s name and statusThis represents the condition of a task (such as active, blocked, generating). 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 (RunIDShort for "run number". It is a number that provides unique information about a task's execution. The RunID can include 7 to 10 digits. It is assigned by the Automation Engine component .) of the own object
SYS_ACT_ME_TYPE Returns the object typeAn individual object is provided for the individual activities: There are User, UserGroup, Notification, Cockpit, CodeTable, Documentation, Event, Agent, FileTransfer, Group, Include, Job, Workflow, Calendar, Login, Client, RemoteTaskManager, Schedule, Script, Server, Sync, Variable and TimeZone objects 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

 


Automic Documentation - Tutorials - Automic Blog - Resources - Training & Services - Automic YouTube Channel - Download Center - Support

Copyright © 2016 Automic Software GmbH