I am trying to simulate the operator pulling the nearest item on the conveyor using process flow. After the operator unloads an item to a queue, the distance between every item on the conveyor and the operator should be updated - then the operator selects the nearest item to pull next. The distance measurement from the operator to the item needs to be updated each time it is pulled from the list, since the items are moving along the conveyance.
I used the code below which I got from another Q&A though it does not seem to be working as intended: https://answers.flexsim.com/questions/31261/acquire-nearest-shared-resource.html
My files is attached: simulation1.fsm. You can see the list has an expression from the link above, and the Pull From List step is querying distance in ascending order. However, when the simulation runs, the operator clearly does not select the nearest item to pull next.