- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi folks,
I’m following the FlexSim “Tasks using Lists” tutorial (Tasks using List section, v22.2) and adapting it to my model:
I’m using Process Flow with a List to manage items.
A token is created when an item enters an entry Queue.
I use a Schedule Source to represent my processors (multiple identical stations).
Processors pull items from the List using Pull from List logic.
Operators / task executors are used to move items between resources.
Right now, item assignment from the List is effectively based on the token index (1 to N). What I want instead is:
The operator should always send the item to the nearest available processor, where “nearest” is based on the travel distance from the Queue (or item location) to each processor, not on the token index.
I see there are options like ListFields() and different distance types (FixedResource, Item, TaskExecutor, TaskSequence, etc.), and in the Pull from List activity I can reference the Puller and Puller’s token. However, I’m not sure what is the best way to:
Calculate the distance from the item’s current location (entry Queue) to each candidate processor, and
Use that distance inside the List / Pull from List logic so that the item is always assigned to the closest processor, instead of just going by list order or token index.
Concretely, my questions are:
How should I structure the List and ListFields (or other labels/fields) so that I can store or compute the distance to each processor?
In the Pull from List activity, what is the recommended way to select the nearest processor dynamically using those distances?
Is there a clean way to use the Puller / Puller’s token and resource locations in the expression so that the logic is fully distance-based?
Any example expressions, screenshots, or small demo models showing distance-based assignment from a List would be very helpful. My model is attached. Thanks!
Solved! Go to Solution.