Automation Engine Script Guide > Ordered by Function > Activation Data > SYS_ACT_JP

SYS_ACT_JP

Script Function: Determines if a taskAn executable object that is running. Tasks are also referred to as activities. was activated in a workflowAn object of the Automation Engine that can include several executable objects and which runs them in a specified order. [Formerly called "ProcessFlow" and "JobPlan."].

Syntax

SYS_ACT_JP()

Return codes

"Y" - Task was activated by a workflow
"N" - Task was not activated by a workflow

Example

In this example, a task was started manually. Therefore, the return codeThe value that represents the result of tasks and script functions. is "N" and "Task does not run in a workflow" is printed in the activation reportA report provides more detailed information about a task's execution or a component..

: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:

Script element Description

SYS_ACT_PARENT_NAME

Returns the name of a superordinate taskThere are various ways of activating objects. The originator of the activation is referred to as the superordinate task (parent)..
SYS_ACT_PARENT_NR Returns the run number (RunIDShort for "run number". It is a number that provides unique information about a task's execution. The RunID can include 7 to 10 digits. It is assigned by the Automation Engine component .) of a superordinate task.

Script Elements - Activation Data

About Scripts
Script Elements - Alphabetical Listing

Script Elements - Ordered by Function

 


Automic Documentation - Tutorials - Automic Blog - Resources - Training & Services - Automic YouTube Channel - Download Center - Support

Copyright © 2016 Automic Software GmbH