question

David Besson avatar image
4 Likes"
David Besson asked David Besson commented

How to set a Pull from List activity with Query "IN" a label

Flowitems with itemtypes 1, 2 and 3 enter in a queue and are pushed to a list (with a Field itemtype).

A Fixed resource Process flow tells a Processor to pull the flowitems from this list, but only ones with itemtype 2 and 3. -> Activity "Pull from List" with Query "WHERE itemType IN (2, 3)":

It works, but is it possible to reference the itemtype which are pulled with a label on the Processor? Indeed, the itemtypes to pull could be different: only itemtype 1, itemtype 1 and 2, ...

A label "itemType" on the Processor with the value "(2, 3)" and the Query "WHERE itemType IN getlabel(current, "itemType")" seems wrong.

Thanks for your help!

how-to-set-a-pull-from-list-activity-with-query-in.fsm

FlexSim 16.1.0
process flowlist
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

·
Phil BoBo avatar image
6 Likes"
Phil BoBo answered David Besson commented

You don't have access to "current" in a Query field. You have access to "puller" (from the Puller field; the entering token in your example) and "value" (the value of each entry on the list that you are comparing to).

You can use the IN clause with an array stored on a label:

query-in-array.fsm

You could also form the query as a string on a label and then use that label:

query-in-string-label.fsm


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

David Besson avatar image David Besson commented ·

Thanks!

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.