SYS_ACT_PREV_NR

Use the SYS_ACT_PREV_NR script function to return the RunID of the task preceding the current task in a Workflow. The current task is the task that calls the script.

Important! Only use this script function when the following is true:

Syntax

SYS_ACT_PREV_NR()

Return Codes

The script function has the following return codes:

Example

The following script retrieves the RunID of the task that precedes the task in which the script is called. The script prints the retrieved RunID in the activation report.

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

See also:

seealso

Script Elements for Handling Tasks

Script Elements for Workflows and Tasks in Workflows