Survey task
Posted: Fri May 13, 2016 10:13 am
Hello,
I would like to create a task to list all running tasks and know when they started.
Then according to a timeout, I want to send an email to alert me.
Can I do this with Robotask ?
I see, in Basic, this sample :
With "RoboTaskApp.TaskInfoState", I can have state (Runing)
but how can I get the "Start date" of the task ?
Thanks
Christophe
I would like to create a task to list all running tasks and know when they started.
Then according to a timeout, I want to send an email to alert me.
Can I do this with Robotask ?
I see, in Basic, this sample :
Code: Select all
Sub Main
Dim cnt As Long
Dim nam As String
Dim extNam As String
Dim id As Long
Dim i As Long
cnt = RoboTaskApp.TaskCount
RoboTaskApp.WriteToLog(1,"Total "+Str(cnt)+" tasks",RoboTaskApp.ThreadID)
For i = 0 To cnt - 1
extNam = RoboTaskApp.TaskInfoExtName(i)
nam = RoboTaskApp.TaskInfoName(i)
id = RoboTaskApp.TaskInfoID(i)
RoboTaskApp.WriteToLog(3,extNam+"; "+nam+"; "+Str(id),RoboTaskApp.ThreadID)
Next
End Sub
but how can I get the "Start date" of the task ?
Thanks
Christophe