task executer pick priority item

task executer pick priority item

SRmariog09
Not applicable
82 Views
3 Replies
Message 1 of 4

task executer pick priority item

SRmariog09
Not applicable

[ FlexSim 24.0.4 ]

I want the taskexecuter to load specific items if available. The items type 2 are the most important item to pick. If in the queue there are items type 2, the task executer must load it besides there were items type 1 waiting for long.


priorityitems.fsm

0 Likes
Accepted solutions (1)
83 Views
3 Replies
Replies (3)
Message 2 of 4

moehlmann_fe
Enthusiast
Enthusiast
Accepted solution

This is easiest if you pull the items/task sequences from a list which allows to use a query to filter and/or order them.

In the attached model I order the items by the expression "Type*100 + age DESC". This means items with type 2 will be preferred, as long as any type 1 item didn't wait for more than 100s longer than them.

itemlist-fm.fsm

0 Likes
Message 3 of 4

SRmariog09
Not applicable

Thank you so mutch for the answer! But I am trying to include the process flow with a network node path and it's not working. I have added two different paths with load/unload triggers in the model. Thanks!

itemlistpath.fsm

0 Likes
Message 4 of 4

moehlmann_fe
Enthusiast
Enthusiast
Queue1 is not connected to Queue2 and thus not sending the items anywhere. You can of course also push the items to the list in a different manner (for example in the On Entry trigger or the Send to Port field) but then you will have to set the destination in Process Flow differently as well, since the "destination" label won't exist on the items.
0 Likes