question

Martin C3 avatar image
0 Likes"
Martin C3 asked Braydn T commented

Random Pull from List and Leave Entries on List

Hello,

I am working on a model with ProcessFlow where I need to randomly distribute flowitems to different queues using a Task Executer.

I added the queues to a Global List. For randomly distributing the flowitems I added a "Pull from List" activity with the query "ORDER BY Random ASC". The pulled queue is then assigned to the token.destination-label.

Additionally I would like to keep the queues on the list, as they should be able to be pulled several times (the queue should hold multiple flowitems).

With the checkbox "Leave entries on List" enabled, there is no random pulling. The first queue on the list is always pulled. Disabling the checkbox enables the random pulling, however only five flowitems are transported, because the queues are removed from the list.

How can I randomly pull entries from a list, while having "Leave entries on List" enabled?

I have attached a simplified model that recreates the issue:

pull-random.fsm

Any help would be greatly appreciated.

FlexSim 18.0.10
processflowpull from listrandom
pull-random.fsm (29.4 KiB)
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

·
Braydn T avatar image
0 Likes"
Braydn T answered Braydn T commented

Hi @Martin C3

I am unsure about the scope of your model, but if I am understanding correctly you just want the Queues on the list so that multiple flow items can go to them. In that case, this is a way you can get random distribution in process flow without the list. This is what your process flow will look like when you are done:

First you will add an Assign Labels, and edit the fields so it assigns values 1-4 on a statistical distribution like this:

Then you will change your Unload Station field to Custom Code and put this in:

That way it will look at the randomly assigned label on the flow item, and send it to its respective Queue. Let me know if this works for you, or you have other goals in mind for your model.


· 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.

Braydn T avatar image Braydn T commented ·

Hey @Martin C3

Did this answer work for you? If so, could you please click the accept button, and if not, could you let me know what else we can do to help you?

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.