ScriptEigener Objekttyp in der Automation Engine Function: Returns the run number (RunID"Kurzform für ""laufende Nummer"". Hierbei handelt es sich genauer um eine Zahl, welche die Durchführung einer Aufgabe eindeutig kennzeichnet. Die RunID kann zwischen 7 und 10 Stellen aufweisen. Sie wird von der Komponente Automation Engine vergeben.") of an object activated in restart mode.
Syntax
SYS_ACT_RESTART_ME_NR()
Return code |
---|
Run number of the object in which this script function is called. |
Comments
This script function also returns the RunID of the current task when it was activated normally. Thus, it can be used without previous checking for the activation type (normal or restart) being necessary. Please bear in mind that SYS_ACT_ME_NR reacts differently to activation from restart mode.
Example
In the following example, the run number (RunID) of a task is written in the activation report. Additional information shows whether the task was activated normally or in restart mode.
:SET &RUNNR# = SYS_ACT_RESTART_ME_NR()
:IF SYS_ACT_RESTART = "Y"
: PRINT "Job with RunID &RUNNR#
processed in restart mode."
:ELSE
: PRINT "Job with RunID &RUNNR#
processed normally."
:ENDIF
See also:
Script element | Description |
---|---|
This is used to set restart points in an executable object. |
|
Determines if the object was activated in restart mode. |
Script Elements - Activation Data
About Scripts
Script Elements - Alphabetical Listing
Script Elements - Ordered by Function