question

Claudia P3 avatar image
0 Likes"
Claudia P3 asked Felix Möhlmann answered

How to pull a list by age and the according to type send it

Hi, I have 2 Queues that are in a global list, and there is a token in the process flow that have to pull them by age and then according to the type send them to a process. Now I have pulled by type, but this create a priority that I don't need, I just need that the operator load the oldest one and then send it to the process that belong.

FlexSim 21.2.0
process flowlistflexsim 21.2.0global process
· 2
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

In the "Pull from List" activity, click on the arrow next to the "Query/Object/Array" field and choose "WHERE (Filter) -> age". This will append "ORDER BY age ASC" to the end of your query, meaning that the results will be ordered by the age of the items on the list (age is a default value on the list). To choose the oldest one, change the default "ASC" (ascending order) to "DESC" (descending order).

1629270071252.png

Afterwards you can use a "Decide" activity with "Connector By Case" to send the token to the correct block based on the type of the pulled item. (The values in the screenshot are just placeholders)

1629270119214.png


1629270071252.png (28.8 KiB)
1629270119214.png (16.3 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.