ATTENTION

This 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

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 06-12-2015
David Chan David Chan is offline
Flexsim Distributor
 
Join Date: Sep 2007
Posts: 326
Downloads: 74
Uploads: 0
Thanks: 217
Thanked 73 Times in 44 Posts
Rep Power: 218
David Chan has a spectacular aura aboutDavid Chan has a spectacular aura aboutDavid Chan has a spectacular aura about
Default 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  
Old 06-12-2015
Jörg Vogel's Avatar
Jörg Vogel Jörg Vogel is offline
Flexsim User
 
Join Date: Sep 2007
Location: Hannover, Germany
Posts: 643
Downloads: 35
Uploads: 0
Thanks: 802
Thanked 665 Times in 410 Posts
Rep Power: 642
Jörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond repute
Default

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  
Old 06-12-2015
David Chan David Chan is offline
Flexsim Distributor
 
Join Date: Sep 2007
Posts: 326
Downloads: 74
Uploads: 0
Thanks: 217
Thanked 73 Times in 44 Posts
Rep Power: 218
David Chan has a spectacular aura aboutDavid Chan has a spectacular aura aboutDavid Chan has a spectacular aura about
Default

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  
Old 06-12-2015
Jörg Vogel's Avatar
Jörg Vogel Jörg Vogel is offline
Flexsim User
 
Join Date: Sep 2007
Location: Hannover, Germany
Posts: 643
Downloads: 35
Uploads: 0
Thanks: 802
Thanked 665 Times in 410 Posts
Rep Power: 642
Jörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond repute
Default

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


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.