question

sanaz karamimoghaddam avatar image
0 Likes"
sanaz karamimoghaddam asked sanaz karamimoghaddam commented

How to put Task executers to an state like allocated idle or unhired when pushed to a list and keep them in that state until they get pulled from that list again?

Hi!

I create TEs and push them to a List (TE Pool), then I want to pull them out of that list and "hire" them as needed. At some point the process flow, I might need to unhire some TEs after they have completed a job and send them to the TE Pool again. Later, I need to hire them again based on need. Since I want to get information about the TEs idle time when they are hired, I need to separate the time that they are idle and unhired from the time that they are hired and sitting idle. For that I thought of putting them in a state other than idle, when they are in that TE Pool. But when I push them to the list, I can't get the token to pass the push activity and go to the next activity which is custom task and is supposed to keep it in that state, since the token remains in the push activity until it is pulled again. I would appreciate any suggestion on how to do this.

FlexSim 16.2.1
push and pull listte states
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Sam Stubbs avatar image
0 Likes"
Sam Stubbs answered sanaz karamimoghaddam commented

I'm not sure I entirely follow what it is you're asking, however, your Push to List activity will not go on to the next activity until it has been "Pulled" from the List (unless you tell it otherwise in the options, but that sounds like it would mess up the logic in the other parts of the model) If you want a different state to measure TEs who have been pulled from the list and are "idle vs those who are still on the list waiting and are idle: I would add a Custom Code activity after you Pull the TE from the list, but before the other logic of that TE. And then in the custom code set the state of the TE to "Busy." Would that work? Or am I not understanding your question correctly?

· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

sanaz karamimoghaddam avatar image sanaz karamimoghaddam commented ·

Hi @Sam Stubbs, Thanks for responding. In regard to token staying in the push activity, I did add use max timer with time time to be 0.01, and the option that keeps info on the list even after the token leaves and I haven't noticed a problem yet because after the push activity, the subflow usually finishes. I would appreciate it if you could let me know if there is a way that it can mess up the logic of the model.

Regarding the state of the TEs, I wanted the TEs to have a separate and different state when they are in that list because I wanted to use the default statistics to report idle time, traveling time, and utilization when the TE are pulled and working. However, because the time that the TEs are in that list waiting to be pulled, is also considered idle time I cannot use those stats.

0 Likes 0 ·
Sam Stubbs avatar image Sam Stubbs ♦ sanaz karamimoghaddam commented ·

Like I said, you should be able to set a Custom Code that sets the state of the TE before they are pushed onto the list. And then have a Custom Code that switches it back to Idle or whatever AFTER they are pulled again from the list. That way, their state will be whatever you set it to while they are on the list, and then it will be reset back to default after they are pulled. Does this work as a solution?

1 Like 1 ·
sanaz karamimoghaddam avatar image sanaz karamimoghaddam Sam Stubbs ♦ commented ·

Yes it does. Thanks.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.