question

Sara R4 avatar image
1 Like"
Sara R4 asked Jeanette F commented

Custom Code in Pull From List

I am trying to pull values from a global list by writing custom code in the "Query / Object / Array" field in the "Pull from List" activity in Process Flow. I started with a simple query "WHERE row = 1" (row is a Label Field on my global list) in order to confirm the syntax is correct for the List.PullResult statement. See attached snapshot of code from my model. I would like for the token entering the "Pull from List" activity to pull a value from the list based on this query and move to the next activity.

I clicked the check syntax option (check mark at the bottom left of the window) and it does not produce any errors. However, when running the simulation a token enters the "pull from list" activity and does not pull a value from the list where row = 1. In fact, it does not pull any value and does not progress to the next activity. Is my List.PullResult statement in the attached snapshot incorrect for the "Pull from List - Query" application? If so, what changes should be made to the statement?

I am unable to share the model for review. Thank you. pull-from-list-query.png

FlexSim 21.0.1
pull from listflexsim 21.0.1
· 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.

1 Answer

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered Matthew Gillespie commented

Since you are using the Pull from List process flow activity you don't need to use the List.pull() method. All you need to do is put "WHERE row = 1" directly into the Query / Object / Array field.

· 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.