Object: TaskInfo <Analysis Automation>
- 更新日2024-09-12
- 5分で読める
(ContextFinalize
Object: TaskInfo <Analysis Automation>
The TaskInfo <Analysis Automation> object provides information about a task from the list of executable tasks. The TaskExecution object contains information on the executed task. The ProcedureInfo object contains information on the analysis automation procedure of a task.
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