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.

Ryan Clark avatar image Ryan Clark commented ·

Hi @Claudia P3,

It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question.

Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also contact your local FlexSim distributor for phone or email help.

1 Like 1 ·
Claudia P3 avatar image Claudia P3 Ryan Clark commented ·

Here is my model, there is others tasks for the operator but I'm just interested in the first Queues (1 and 2), I need him to take the oldest itemflow and then drop it in the process according to the type. The model is currently just pulling from a list according to the type but but that causes a priority between them. I can't find the way to do that.

Actividades horneros.fsm

0 Likes 0 ·

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.

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.