Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
General Discussion
 RoboTask Forum : General Discussion
Subject Topic: Which Event was trigger ? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
igimax
Newbie
Newbie
Avatar

Joined: 07 July 2010
Location: Iran
Online Status: Offline
Posts: 7
Posted: 07 July 2010 at 6:59pm | IP Logged Quote igimax

Hi

.  I wonder! how we can know which event was trigger at "Triggering Events" tab?

. I'm writing a task and its job are to dial two network connections base on some conditions and after one of them get disconnected. Therefor, I have 2 events for monitoring their disconnections.! Now, I need to know, which event was trigger so i can log its time and connection name at a file?

. In fact, sometimes we may need more than 2 or 3 "Trigger Events" for a task and it is very good idea to have some variables that show us the name of Trigger and other details about it! (if such thing there are not exists yet!)

Thanks for your great program
Best Regards
IgImAx


Edited by igimax on 07 July 2010 at 7:05pm


__________________
Teach others to Learn more yourself
Back to Top View igimax's Profile Search for other posts by igimax Visit igimax's Homepage
 
igimax
Newbie
Newbie
Avatar

Joined: 07 July 2010
Location: Iran
Online Status: Offline
Posts: 7
Posted: 12 July 2010 at 4:23pm | IP Logged Quote igimax

Hi

.  After long deep search!! at RT guide I found these methods and Properties:
RoboTaskApp.EventInfo(ByVal TaskNum as Long, ByVal EventNum as Long, EventID as String, Enabled as Boolean)
RoboTaskApp.EventParameters(ByVal TaskNum as Long, ByVal EventNum as Long)
RoboTask.EventsCount(ByVal TaskNum as Long)

. Then, I write a basic program for them, but all of them return some infoz about current Event settings!! none of them show which one is triggered!

. Is there anyway to find which one is trigger or not? (I can use each "Trigger Event" at separate task then set a variable at each task by the name of Trigger name of that task and then it call the main task, but this is not the good way!! but it seems the only way for now!!!)

Good Luck
IgImAx



__________________
Teach others to Learn more yourself
Back to Top View igimax's Profile Search for other posts by igimax Visit igimax's Homepage
 
Oleg
Admin Group
Admin Group
Avatar

Joined: 16 April 2004
Online Status: Offline
Posts: 1133
Posted: 13 July 2010 at 3:40am | IP Logged Quote Oleg

You are correct, if you attach several events to the task you can't say what event starts the task.
But if this is critical you may do the simple trick:

Suppose you have the "main task" that do necessary actions. This task must be without events and it must be started from another task.
Also create several task with one trigger only. All these tasks are similar:

task1 whith trigger1

this task have only one step:
Start "Main Task" with parameter Trigger = trigger1

task2 whith trigger2

this task have only one step:
Start "Main Task" with parameter Trigger = trigger2

and etc.

Of course the main task should process the variable "Trigger"

Thus, you can say what trigger has started "Main Task".

__________________
Oleg Yershov
Back to Top View Oleg's Profile Search for other posts by Oleg Visit Oleg's Homepage
 
igimax
Newbie
Newbie
Avatar

Joined: 07 July 2010
Location: Iran
Online Status: Offline
Posts: 7
Posted: 16 July 2010 at 8:59am | IP Logged Quote igimax

Hi Oleg

.  Thanks for reply, but I did not get "Email Notification for Replies!" anyway, Is it possible to add a Method for next RT version, that can show us the name of event that trigger a task?!

Good Luck
IgImAx


__________________
Teach others to Learn more yourself
Back to Top View igimax's Profile Search for other posts by igimax Visit igimax's Homepage
 
Oleg
Admin Group
Admin Group
Avatar

Joined: 16 April 2004
Online Status: Offline
Posts: 1133
Posted: 16 July 2010 at 9:40am | IP Logged Quote Oleg

What is the problem? You can add "Send email" action to the task. Also add information about fired trigger to the message body.

__________________
Oleg Yershov
Back to Top View Oleg's Profile Search for other posts by Oleg Visit Oleg's Homepage
 
igimax
Newbie
Newbie
Avatar

Joined: 07 July 2010
Location: Iran
Online Status: Offline
Posts: 7
Posted: 16 July 2010 at 10:53am | IP Logged Quote igimax

Hi Oleg

.  Oh! no! When I said "Email Notification for Replies!", I mean, when you reply to my post at forum, I did not get any email notification from Forum! but now! i check my gmail account and I found that they go to my Spam folder! the problem is solved!

. Still! It will be very handy if there is a Method for showing us which Event was trigger a task? (at multi triggers task)...

Good Luck
IgImAx


__________________
Teach others to Learn more yourself
Back to Top View igimax's Profile Search for other posts by igimax Visit igimax's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.1099 seconds.