Script Function: Returns the name of the previous jobAn Automation Engine object type for a process that runs on a target system. 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."]
SYS_ACT_PREV_NAME()
Return codes |
---|
Name of the preceding taskAn executable object that is running. Tasks are also referred to as activities. |
Only tasks running in workflows must use this scriptA particular Automation Engine object type. functionPre-defined run book template in the Automation Engine. One single step only, e.g. Start Windows Service, Copy file,….
Only use this script function if there is exactly one previous task. If there is more than one predecessor, a runtimeThe duration of a task's execution. It refers to the period between a task's start and end. It does not include its activation period (see also: activation and start). error occurs and the script is aborted.
The name of the previous task within a workflow is printed in the activation protocol.
:SET &NAME# = SYS_ACT_PREV_NAME()
:PRINT "Name of the previous task is &NAME#."
See also:
Script element | Description |
---|---|
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 previous task in a workflow. |
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 |