SYS_ACT_JP
Use the SYS_ACT_JP script function to determine whether the task that contains the script was activated by a Workflow.
Syntax
SYS_ACT_JP ()
Return Codes
The script function has the following return codes:
- Y
The task that contains the script was activated by a Workflow - N
The task was not activated by a Workflow
Example
A user starts a task manually. The task contains the following script. Because the task was not started by a Workflow, SYS_ACT_JP returns N, and the script prints the phrase Task does not run in a Workflow in the activation report of the task.
:SET &RET# = SYS_ACT_JP()
:IF &RET# = "Y"
: PRINT "Task runs in a Workflow"
:ELSE
: PRINT "Task does not run
in a Workflow"
:ENDIF
See also:
seealso