SYS_ACT_PREV_NR
            Script Function: Returns the run number (RunID) of a previous task in a workflow.
Syntax
SYS_ACT_PREV_NR ()
| 
                         Return codes  | 
                
|---|
| 
                         RunID of the preceding task  | 
                
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 | 
|---|---|
| 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