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:
- CallAPI
- Java Application Interface
- Continuous Delivery Automation
- Automic Web Interface
More Information:
Syntax
SYS_ACT_PTTYP ()
Return Codes
The script function has the following return codes:
-
C
Task was activated through the CallAPI -
A
Task was activated through one of the following interfaces:-
Java Application Interface
-
Deployment Descriptor
-
-
W
Task was activated through the Automic Web Interface
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:
- Defining the Process Pages in Jobs
- Executing Objects: Generating Task at Activation Time vs Generating Task at Runtime
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: