ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
#1
|
|||
|
|||
To get the TE that is involved in the task
Hi
I am using dispatcher to pass the tasks to few TEs. When the task is passed, how do I referenced to the TE that has received the task? Thanks David
__________________
Advent2 Labs David |
#2
|
||||
|
||||
Hello David,
There might exists a smarter approach, but you can insert a message sending task at the first rank of the "passed to" task sequence. If you set the 2nd involved parameter to NULL, the taskexecuter sends a message to the involved 1 parameter object. In the OnMessage trigger of this object you get the msgsendingobject then. There you can delete the message sending task again in the tasksequence when you have a reference sent, too. Jörg |
The Following User Says Thank You to Jörg Vogel For This Useful Post: | ||
David Chan (06-12-2015) |
#3
|
|||
|
|||
Jorg
I have used up(up(up(taskseqence))) to get the TE. Not very smart, but I wonder if there is a command to do tat. Thanks for sharing
__________________
Advent2 Labs David |
#4
|
||||
|
||||
try ownerobject(tasksequence)
Jörg |
The Following 2 Users Say Thank You to Jörg Vogel For This Useful Post: | ||
Sebastian Hemmann (06-16-2015) |
Tags |
dispatcher, taskexecuter |
Thread | Thread Starter | Forum | Replies | Last Post |
How to get number of task sequences in queue for a Task executor? | mearjun | Q&A | 3 | 06-14-2014 12:41 PM |
What is involved in creating new TASKTYPE_ commands | Vadim Fooks | Q&A | 0 | 05-05-2013 03:11 PM |
How to interrupt active task and implement another task? | Ilivid zheng | Q&A | 2 | 01-15-2011 02:30 AM |