SYS_ACT_PREV_NR

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 a previous task in a workflow.

Syntax

SYS_ACT_PREV_NR()

Return codes

RunID of the preceding task
"0" - The task is the first one in the workflow as its predecessor is the starting point.

Comments

Only tasks running in workflows must contain this script function.

Only use this script function if there is exactly one previous task. If there is more than one predecessor, a runtime error occurs and the script is aborted.

Example

The activation report shows the run number (RunID) of the previous task in a workflow.

:SET &NR# = SYS_ACT_PREV_NR()
:
PRINT "RunID of the previous task is &NR#."

See also:

Script element Description

SYS_ACT_PREV_NAME

Returns the name of the previous job in a workflow.

Script Elements - Activation Data

About Scripts
Script Elements - Alphabetical Listing

Script Elements - Ordered by Function