question

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

How to make Task Executers get pushed to a temporary list and get pulled out to another list based on an wait for event activity?

Hi all!

I use a process flow ("Transportation Process Flow") in which the Task Executers are being pulled from a list at first, load and transport the items, and then are being pushed back to the list. The TEs are created using a process flow and are being pushed to the TE List to be used by the first process flow. The TEs are being created one by one and based on the on entry event on Item Ready list (on the queue).

I need that only the newly created TEs load and transport the items, until there are no TEs being created. and I want the TEs that returned back earlier get used again first.

To do so, I added a decide activity at the end of the process flow when it decides to send the returning TEs to a Temporary list if the number of created TEs are less than required (TEs are still being created). The TEs in the temp list then would be pulled out when the tokens (on the TE creation Process flow) start to go to sink. After being pulled out, they should be pushed to the original TE list. I put a Order by age DESC on the pull from list of the Temporary TE list so the TEs that arrived first get pulled first.

If no TEs are being created, then each returning TE gets pushed back to the original TE list.

The push back logic in my process flow doesn't work now. Only 3 TEs are getting pulled out of the Temporary TE list and the model continues using that only 3 TEs. I am also attaching the model you sent with the changes I made to the push back logic. Please let me know if you come up with any suggestions.

eventtriggered-te-creation-return.fsm

FlexSim 16.2.1
push and pull list
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
2 Likes"
Sam Stubbs answered sanaz karamimoghaddam commented

Hello Sanaz, I'm sorry it took a little while to get back to you. I think I resolved your issue. I removed your decision point at the end, and instead, in order to achieve what you were trying to do: First I added a decision point to the TE's logic that says to push it to the list right after unloading if there are more orders. (Rather than travel back to the parking spot first) Otherwise go back to the parking spot. Secondly I created a field on your TE list that references a label on the TE's indicating their rank. Then in your pull from list I just added a query telling your TE pull from list to pull in the ascending order of creation rank.

I've reattached your model below with the changes.

3612-eventtriggered-te-creation-return.fsm


· 1
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 ·
@Sam Stubbs

Thanks for your response.

0 Likes 0 ·