SYS_ACT_PTTYP

Use the SYS_ACT_PTTYP script function to return information on the partner type of the user who activated the task that contains the script. The partner type indicates which interface the task was activated from. Tasks can be activated through the following interfaces:

More Information:

Syntax

SYS_ACT_PTTYP ()

Return Codes

The script function has the following return codes:

Note: The system supplies an empty return code when you use this script function on the Post Process page of the task, or when then task is generated at runtime.

More Information:

Example

A task contains the following script. If the task is activated through a CallAPI, the script writes a message in the activation report of the task accordingly.

:SET &PTTYP# = SYS_ACT_PTTYP()
:
IF &PTTYP#  = "C"
:   
PRINT "Task was activated through CallAPI."
:
ENDIF

See also:

seealso

Script Elements for User Interaction and User Data

Script Elements for Handling Tasks

Script Elements for Workflows and Tasks in Workflows