Script Function: Returns the name of the previous job in a workflow
SYS_ACT_PREV_NAME()
Return codes |
---|
Name of the preceding task |
Only tasks running in workflows must use 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.
The name of the previous task within a workflow is printed in the activation protocol.
:SET &NAME# = SYS_ACT_PREV_NAME()
:PRINT "Name of the previous task is &NAME#."
See also:
Script element | Description |
---|---|
Returns the run number (RunID) of a previous task in a workflow. |
Script Elements - Activation Data
About Scripts
Script Elements - Alphabetical Listing
Script Elements - Ordered by Function