SYS_ACT_PREV_NAME

Script Function: Returns the name of the previous job in a workflow

Syntax

SYS_ACT_PREV_NAME ()

Return codes

Name of the preceding task
"START" - The task is the first one in the workflow as the predecessor is the starting point.

Comments

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.

Example

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

SYS_ACT_PREV_NR

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