Michael_Lowry

Get list of child tasks of C_HOSTG task

Discussion created by Michael_Lowry on Aug 15, 2018
Latest reply on Aug 15, 2018 by Michael_Lowry

If you run a job on an agent group, and the agent group mode is all, the Automation Engine will start a task of type C_HOSTG, and then this task will start one child task for each agent in the agent group.

 

I found a straightforward way to find out if a task is a C_HOSTG task.

 

Script:

:SET &JobName# = "UC4.AGENT_GROUP_TEST.JOBS"
:SET &RunID# = ACTIVATE_UC_OBJECT(&JobName#)
:SET &Task_Obj_Type# = GET_STATISTIC_DETAIL(&RunID#,OBJECT_TYPE)
:PRINT "Object type: &Task_Obj_Type#"

 

Output:

U00020408 Object type: C_HOSTG

 

Is there an AE scripting command that will list the child tasks of a C_HOSTG task?

Outcomes