Survey task

Discuss RoboTask here
Post Reply
Vara04
Posts: 54
Joined: Fri Feb 24, 2012 8:02 pm
Location: France

Survey task

Post 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
Chris
(Robotask v6.4.2 on Win2008 x64)
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Survey task

Post 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.
Oleg Yershov
Vara04
Posts: 54
Joined: Fri Feb 24, 2012 8:02 pm
Location: France

Re: Survey task

Post by Vara04 »

Ok thanks
Chris
(Robotask v6.4.2 on Win2008 x64)
Post Reply