Page 1 of 1

Survey task

Posted: Fri May 13, 2016 10:13 am
by Vara04
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 :

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
With "RoboTaskApp.TaskInfoState", I can have state (Runing)

but how can I get the "Start date" of the task ?


Thanks
Christophe

Re: Survey task

Posted: Fri May 13, 2016 12:07 pm
by Oleg
You can't retrieve the of last start now.
I added this into our ToDo. We will implement this at next release.

You can see this in the log only.

Re: Survey task

Posted: Fri May 13, 2016 12:23 pm
by Vara04
Ok thanks