pull from list from a queue

pull from list from a queue

ahmed160118
Contributor Contributor
169 Views
8 Replies
Message 1 of 9

pull from list from a queue

ahmed160118
Contributor
Contributor

Hi, I want to transfer objects in the queue based on tokens 
since the queue works as a list i made a  reference to the queue and quired 
WHERE BobbinType = token.BobbinType
but that doesn't work
i want the object transferred to have labels as the tokens

 

ahmed160118_0-1757800820176.png

 

0 Likes
Accepted solutions (1)
170 Views
8 Replies
Replies (8)
Message 2 of 9

joerg_vogel_HsH
Mentor
Mentor

You haven’t access to token directly in a list query. You substitute token by puller clause and set token in Puller field. 
pull from list activity property 

0 Likes
Message 3 of 9

moehlmann_fe
Enthusiast
Enthusiast

I think you might have misunderstood something. Yes, it is possible to query objects in the model with the Table.query() command, as explained under "Advanced Query Techniques" about halfway down this page.

https://docs.flexsim.com/en/25.2/Reference/DeveloperAdvancedUser/SQLQueries/SQLQueries.html#example

 

This has nothing to do with the Pull from List activity though. It must be linked to a List activity which itself either links to a global list or represents an internal list (the repeated error message tells you this). Since you want to connect the 3D model and the Process Flow you want to use a global list. The queue pushes arriving items to that list (either in the Send to Port field or the On Entry trigger). A List activity in Process Flow is connected to that list. Then the Pull from List can be used to pull items off the list.

As @joerg_vogel_HsH mentioned, use "puller" in place of "token" and change the label the pulled value is assigned to. Since it's used in the Move Object activity later, "item" would make sense.

0 Likes
Message 4 of 9

ahmed160118
Contributor
Contributor

thanks for your replies

ahmed160118_0-1758004013957.png

i tried these parameter and passed "pull from list without errors but still struggling to move the objects

0 Likes
Message 5 of 9

joerg_vogel_HsH
Mentor
Mentor
BobbinType = puller.BobbinType

puller substitutes any construct you put into Puller field. Then it will be parsed into a query clause by puller parameter. 

0 Likes
Message 6 of 9

ahmed160118
Contributor
Contributor

i tried this query but i get a parsing error

0 Likes
Message 7 of 9

joerg_vogel_HsH
Mentor
Mentor

Can you post them? Make the changes. Check if you have a field in your list called BobbinType after it gets populated. If it exists and contains valid values. You can restart FlexSim. Save model. Restart FlexSim. Load model. 

0 Likes
Message 8 of 9

ahmed160118
Contributor
Contributor

sure

0 Likes
Message 9 of 9

moehlmann_fe
Enthusiast
Enthusiast
Accepted solution

- Only push the items to the list in the Send to Port field OR the entry trigger. If you do both the same item might end up being pulled by two tokens.

- Query should be "WHERE BobbinType = puller.BobbinType"

- You need a valid expression (Object/Token + Label) in the "Assign To" field.

0 Likes