question

Bryan Suharik avatar image
0 Likes"
Bryan Suharik asked jing.c commented

Release Item Type at set time interval by item type?

Hello, looking for assistance on how to trigger release of an itemtype from a queue at set intervals. Perhaps a rack is better, but i need to display the flow items on a pad of some kind. There are 10 item types, and i need each item type to be released to the downstream processors at different time intervals.

I need a solution via code to pre define this requirement. The time release rate will be pulled from a global table.

Thanks in Advance!

FlexSim 16.2.2
queuecoderelease method
5 |100000

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

Mischa Spelt avatar image
1 Like"
Mischa Spelt answered jing.c commented

Assuming you want to wait if an item type is not available, the most straightforward way to solve this would be a simple Process Flow that pushes items onto a list as they come in, and has a little loop for each item type that releases one of the items of the correct type after each delay time.

I have enclosed an example model, which should do what you want.


· 4
5 |100000

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

Bryan Suharik avatar image Bryan Suharik commented ·

This looks to be what im looking for. Is there a way to assign this proccess flow via script to a newly added queue?

0 Likes 0 ·
Jacob Gillespie avatar image Jacob Gillespie ♦ Bryan Suharik commented ·

It would be easier to just assign this ProcessFlow to a queue using the Event-Triggered Source.

Use the dropper and select the queue you want to associate.

If you really want to use script for some reason then you could call a SubFlow from the OnEntry trigger of the queue. (See the attached model)

release-items-by-itemtype-edit.fsm

1 Like 1 ·
Bryan Suharik avatar image Bryan Suharik Jacob Gillespie ♦ commented ·
@Jacob Gillespie

This worked great! thanks!.... Is it possible to set up 2 process flows with different arrivals?I want to have 2 triggers...one that draws a item with 1 label assigned, while the other trigger draws the same item type with a different label attached.

0 Likes 0 ·
Show more comments
Sam Stubbs avatar image
0 Likes"
Sam Stubbs answered

I would do this as Mischa said by pushing them on a list and releasing them at specific times by pulling from the list from Process Flow tokens released at a schedule. Here is another example:

pullexample.fsm


pullexample.fsm (23.8 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.