Object: SubTaskInfo <Analysis Automation>
- Updated2024-09-12
- 2 minute(s) read
(ContextFinalize
Object: SubTaskInfo <Analysis Automation>
The SubTaskInfo <Analysis Automation> object provides information on the subtask being executed.
The following example writes the IDs of the current task, the ID of the executed subtask, and the IDs and names of the analysis automation procedure and the executable task to the results of current and completed analysis automation tasks:
| VBScript | Python |
Sub On_Run_AnalysisProcedure(oContext) Dim sReturn sReturn = "ID of current task: " & oContext.TaskExecution.Id & VBCrLf sReturn = sReturn & "Subtask ID of current task: " & oContext.TaskExecution.SubTask.Id & VBCrLf sReturn = sReturn & "Procedure ID of excecutable task in the Tasks list: " & oContext.TaskExecution.Procedure.Id & VBCrLf sReturn = sReturn & "Procedure name of excecutable task in the Tasks list: " & oContext.TaskExecution.Procedure.Name & VBCrLf sReturn = sReturn & "Task ID of excecutable task in the Tasks list: " & oContext.TaskExecution.Task.Id & VBCrLf sReturn = sReturn & "Task name of excecutable task in the Tasks list: " & oContext.TaskExecution.Task.Name Call oContext.LogResult(sReturn) End Sub