question

Diana Lubow avatar image
2 Likes"
Diana Lubow asked Brandon Peterson edited

Pull by time on list

I have a list of customer requests. I want to start pulling requests when at least one of the requests has been on the list for at least 15 minutes. Then I want to pull all of the requests that have been there for 10 minutes or more. The remaining requests and new requests will wait until at least one request has been there 15 minutes, then pull everything that\'s been there 10 minutes or more, etc.

Is there a way to do this with one "Pull from list" activity? I've been reading the user guide and trying various things but I haven't figured out a good way to do this.

FlexSim 16.0.1
process flowquerypull from listlists
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Brenton King avatar image
5 Likes"
Brenton King answered Brandon Peterson edited

I would think to do it with two pull from lists. You may want a list puller flow on its own that loops around and around doing the pulling.

You would need a field on your list that has age of the tokens on the list.

On the first "Pull From List" activity enter 1 for the "Request Num" and "Require Num" then enter the following in the "Query" field:

  1. WHERE age >= 15 ORDER BY age DESC

On the second "Pull From List" request the upper limit you have, and require 1. Then for the Query enter:

  1. WHERE age >= 10 ORDER BY age DESC
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

jing.c avatar image
0 Likes"
jing.c answered

I am not familiar with ProcessFlow yet. But I try to only use List (not ProcessFlow) to do it.

In the model attached I will send a 15s delay message to Queue4 when item comes into Rack5. You can see the code which I copy from "pull from Item List" in trigger Pull Strategy and also add a delay message when pullitem() works to pull all the item have been there for 10 or more second.

Of course I add a ItemList in Tools first, and the Query I use is

  1. WHERE age >= 10 ORDER BY age DESC

pullbytimeonlyuselistv16.fsm


5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.