Download Automation Engine Script Guide

Transcript
48
Chapter 3 Ordered by Function
Script Element
Description
:EXIT
Terminates the processing of a script with a return code.
:ON_ERROR
Determines the reaction to certain errors and messages of script elements.
:SEND_MSG
Sends messages to the user of the UserInterface.
:SEND_SNMP_TRAP
Sends an SNMP trap.
:SET_LAST_ERR
Sets error number and text.
:STOP
Terminates the activation of a script and can display error messages.
GET_MSG_TXT
Retrieves the message text of the latest occurred error.
GET_MSG_TYPE
Retrieves the type of a message number.
SEND_MAIL
Sends email to a user.
SYS_LAST_ERR_INS
Supplies the variable message part of the error that has last occurred.
SYS_LAST_ERR_NR
Returns the number of the error that has last occurred.
SYS_LAST_ERR_
SYSTXT
Retrieves the last-occurred error message from the operating system.
Activation Data
[Handling Objects] [Activating Objects] [Reading or Modifying Objects] [Script Structure and Processing] [Error
Handling and Messages] [Activation Data] [User Data] [Data Sequences] [Event Handling] [System Conditions
and Settings] [Date and Time] [Arithmetic] [Strings]
Script Element
Description
GET_PARENT_NAME
Returns the name of the superordinate task
(Parent).
GET_PARENT_NR
Returns the run number of the superordinate task
(Parent).
GET_PARENT_TYPE
Returns the object type of the superordinate task
(Parent).
GET_UC_OBJECT_NR
Returns the RunID of an activated object.
Predefined
Variable
GET_UC_OBJECT_STATUS This returns the status of an activated object.
SYS_ACT_HOST
Returns the name of the host.
SYS_ACT_JP
Determines if a task was activated in a workflow. &$IN_
PROCESSFLOW#
SYS_ACT_ME_NAME
Returns the name of the own object.
&$NAME#
SYS_ACT_ME_NR
Returns the run number (RunID) of the own
object.
&$RUNID#
SYS_ACT_ME_TYPE
Returns the object type of the own object.
&$OBJECT_
TYPE#
SYS_ACT_PARENT_NAME
Supplies the name of a superordinate task.
&$ACTIVATOR#
&$PROCESSOR#