Send items based on conditions

Send items based on conditions

michela_08
Not applicable
10 Views
2 Replies
Message 1 of 3

Send items based on conditions

michela_08
Not applicable

[ FlexSim 22.2.3 ]

Hi,

In my model attached, I am sending items from Source2 to Queue1 buffer with label name as "Item_type". I want the Source3 component to send the same Item type as these items also have the same label name.

For example,

3 Items of [Item_type == L] are moving from Queue1 to the combiner1 then I want to send an item from Source3 to Processor1 and then to Combiner based on matching with Label [Item_type == L].

Together 4 (3 from source 2 and 1 from source 3) items should be combined and then sent to next Queue. This condition should be dependent on the first item from the source.

Similarly this applies for [Item_type == H] but quantity might differ in Source2.

How to do this? Please help

sample_model.fsm

0 Likes
Accepted solutions (1)
11 Views
2 Replies
Replies (2)
Message 2 of 3

Jeanette_Fullmer
Community Manager
Community Manager
Accepted solution

Hello @michela_08,

You need to maintain the format of the schedule source. What you have pasted in has replaced the Arrival Time column which is still necessary.1670441440847.png

You can add a global table that the combiner can reference to change the component list depending on the label of the item from source 2. Select the combiner and add an on entry trigger and choose the picklist option called Update Combiner Component List.

1670441999459.png

I made two connections from the Queue to the combiner. They need to be the 2nd and 3rd connection to the combiner. I set one the Queue to send the items to port based on the label.

1670442015065.png


sample-model (1)_1.fsm

0 Likes
Message 3 of 3

michela_08
Not applicable
Thank you @Jeanette F . This is helpful
0 Likes