Script Function: Returns the name of the superordinate taskThere are various ways of activating objects. The originator of the activation is referred to as the superordinate task (parent). (Parent)
GET_PARENT_NAME(RunID, [Activation Type])
Syntax |
Description/Format |
---|---|
RUN number of the current taskAn executable object that is running. Tasks are also referred to as activities. |
|
Activation Type |
Allowed values: |
Return codes |
---|
Name of the superordinate task |
With 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,…, the name of the superordinate task of an objectAutomation Engine controlled activities and processes are structured in the form of objects. See also: Task that is part of the object classThere are four classes of objects: executable, active, passive and system objects. executable objects may be retrieved. With manual activation, this is the name of the User object (e.g. SMITH/DEV).
If no activation type is indicated, this script function supplies the processor.
If the name of a groupAn Automation Engine object type that integrates tasks so that they can be processed together. is to be retrieved, "Generate at Runtime" (in the Attributes tab) must be activated in the task that is used with this script function. Otherwise, the name can only be retrieved for jobs in post script.
The following example retrieves the running number of a task and then its Activator.
:SET &RunID = GET_UC_OBJECT_NR(MM.END.PROCESSING)
:SET &RET# = GET_PARENT_NAME(&RunID, ACT)
:PRINT "The name of the superordinate task is: &RET#"
See also:
Script element | Description |
---|---|
Returns the run number (RunID) of the superordinate task (Parent) | |
Returns the object typeAn individual object is provided for the individual activities: There are User, UserGroup, Notification, Cockpit, CodeTable, Documentation, Event, Agent, FileTransfer, Group, Include, Job, Workflow, Calendar, Login, Client, RemoteTaskManager, Schedule, Script, Server, Sync, Variable and TimeZone objects of the superordinate task (Parent) |
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 |