question

Mark Gormley avatar image
0 Likes"
Mark Gormley asked Matthew Gillespie answered

Pull from list with additional conditions

Can you please help me understand the pull from list picklist option, specifically I want to be able to add a non SQL based condition to pulling or not.

In the attached model a label called InUse is set on Processor 1.

If this value is true I do not want to pull from the list (Will need to re-evaluate pull when label is cleared).

I originally tried closing the input to Queue5, but that doesn't appear to work when using this pull method.

Thanks

1625061384278.png


PullFromList.fsm

FlexSim 21.0.3
listspush and pull list
1625061384278.png (58.0 KiB)
pullfromlist.fsm (36.4 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

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered

I would recommend using Process Flow for this which will let you pull from the list at exactly the time you want to instead of trying to cancel the queue's pull and then later telling the queue to reevaluate. The flow is very simple:

1625076990648.png

In the attached model I made an Object process flow and attached it to Queue5. The flow pulls from the list, pulls the item into the queue, and then waits for the item to exit the connected processor. Once the item leaves the processor the flow pulls another item from the list. So you only pull from the list when you're ready to pull.

pullfromlist_PF.fsm


1625076990648.png (10.1 KiB)
pullfromlist-pf.fsm (43.1 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.

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.