question

Mohamed Roushdy avatar image
0 Likes"
Mohamed Roushdy asked Steven Hamoen commented

How to make 2 queries in the same "pull from list" (Process flow)?

untitled.jpguntitled1.jpg

I need to add 2 queries to pull from list in a process flow; but it shows me error; is there any way to solve this issue?

Pull requirements:

1. Where ageInQueue > 200

2. Token.Oven = Oven1

FlexSim 18.0.3
listlist pulllist sorting
untitled.jpg (106.9 KiB)
untitled1.jpg (65.6 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.

1 Answer

·
Steven Hamoen avatar image
1 Like"
Steven Hamoen answered Steven Hamoen commented

@Mohamed R3 without looking at your model I think the Token.Oven is your error. In a pull from list you can't use token but have to use Puller (don't ask me why, but that is the way it works)

So what should work is: "WHERE ageInQueue > 200 AND Puller.Oven = Oven1"

· 3
5 |100000

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

Mohamed Roushdy avatar image Mohamed Roushdy commented ·

Thanks @steven.hamoen it works very well, In addition to the "Puller not token" problem; my problem was that I wrote comma "," before "AND"; and this is the program's default when you choose 2 queries together untitled1.jpg

0 Likes 0 ·
untitled1.jpg (65.9 KiB)
Jordan Johnson avatar image Jordan Johnson ♦♦ commented ·

@steven.hamoen On a Pull from List activity, you can specify the object that acts as the "puller":

If you use "puller" in a query, or in a list field, it refers to the value given in this field. Often, as shown above, "puller" is a token. But it could also be "token.someLabel" or "current", or any other code/expression that returns an object.

The "puller" concept is a List feature, not a Process Flow feature, so we intentionally did not use a Process Flow word.

0 Likes 0 ·
pullerfield.png (18.8 KiB)
Steven Hamoen avatar image Steven Hamoen commented ·

@jordan.johnson Thanks for explaining it and I kind of knew that. But I do think that it is a shame that you can't simply use token in a query. The Puller might be a better solution but it is not intuitive. If you give a training and you get to the list, suddenly the token (which you discussed the past couple of hours/days) is not valid anymore. But this is probably just my personal annoyance ;-)

0 Likes 0 ·

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.