question

SudheerReddy avatar image
0 Likes"
SudheerReddy asked SudheerReddy commented

Trying Task executer to deliver based on Demand

As shown in below Image1, I am using Task Executers to deliver to Queue2. But Queue2 capacity is 12. So I would like to limit the delivery to Queue2.

In Process1 (Image2) after Release activity instead of looping back to Pull from List1 activity, how can I write logic to wait the token untill the Queue2 size is less than 12 and then send the token to Pull from List1 . (Like communicating with Queue 2 on Exit evry time one item exits if it reaches less than 12 then release send the task Executer to deliver).

Is that possible to stop the token after Release activity and once the Queue2 size is less than 12 send the token to Pull from List1 activity.

I am attaching my model for refernce

tepullsystem.fsm

Image1

Image2

As shown in below image, I am trying to maintain Queue 3 size to 3, if it is less than 3 then Task executer will deliver the items. So to achieve this I am using the following code as shown in the below image in Request Number (Pull from List2). Can I achieve the same in a different way by using any Variable. (How to achieve the communication between Queue 3 and Delivery of Task Executer using a Variable or in a different way instead of what I am using at present)

Image3

FlexSim 19.1.2
task executer
doubt1.jpg (28.2 KiB)
doubt2.jpg (65.2 KiB)
doubt3.jpg (52.0 KiB)
doubt1.jpg (28.2 KiB)
tepullsystem.fsm (59.0 KiB)
tepullsystem.fsm (59.0 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

Braydn T avatar image
0 Likes"
Braydn T answered SudheerReddy commented

You should be able to use a wait for event like this one. it holds the token until content decreases to or through 12. You could do something similar for queue3.


wait-for-queue2.png (16.0 KiB)
· 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.

SudheerReddy avatar image SudheerReddy commented ·

@Braydn T Thanks a lot for your support

0 Likes 0 ·