SYS_ACT_PREV_NAME

Use the SYS_ACT_PREV_NAME script function to return the name 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:

  • The task that calls the script is running in a Workflow.
  • There is exactly one previous task. If there is more than one predecessor, a runtime error occurs and the script aborts.

Syntax

SYS_ACT_PREV_NAME()

Return Codes

The script function has the following return codes:

  • Name of the preceding task
  • START
    Task is the first task in the Workflow

Example

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

:SET &NAME# = SYS_ACT_PREV_NAME()
:
PRINT "Name of the previous task is &NAME#."

See also: