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.