Sending message queue/processor

Sending message queue/processor

adam_j
Not applicable
355 Views
2 Replies
Message 1 of 3

Sending message queue/processor

adam_j
Not applicable

[ FlexSim 18.0.8 ]

I have a processor that processes items and send them to queue. How can I close the port of a processor once a determined quantity of items (10) is stack in queue ? Can someone tell me how to do that ? I tried to send message to processsor so it closes its port but I couldn't put the condition regarding the content. Thanks in advance

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

SCHamoen
Advisor
Advisor
Accepted solution

@Adam J The easiest solution is setting the max content of queue to 10. Then the processor can not send the product on. If you want to get the content of an object you can use the following code in one of its triggers:

int content = current.subnodes.length;
0 Likes
Message 3 of 3

ClairAu
Collaborator
Collaborator

Hi Adam, if you want the training material in French, you can send us an email at [email protected]. In the training material there are several sample models, including a model focused on how to create a logic to close/open ports.