How do i use on message trigger ( port by case)?

How do i use on message trigger ( port by case)?

gokulakrishnan_k2
Not applicable
26 Views
4 Replies
Message 1 of 5

How do i use on message trigger ( port by case)?

gokulakrishnan_k2
Not applicable

[ FlexSim 20.2.3 ]

Greetings,

In my model, queue2 should send messages to the queue1 by reaching the content of 6items. How would I close queue 1's port 1 by receiving messonmessage_portbycase.fsmage(using on message-port by case)

0 Likes
Accepted solutions (1)
27 Views
4 Replies
Replies (4)
Message 2 of 5

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

33545-switch-msgparam-by-case.jpg

you declared a case 1: in switch by case structure on message trigger.
Message 3 of 5

gokulakrishnan_k2
Not applicable

Thanks. tried but not working! am i missing something?

0 Likes
Message 4 of 5

joerg_vogel_HsH
Mentor
Mentor

You cannot close only a port. This feature is reserved for developers. You can close only all output or input ports of an object. What you can try, you change the function which sends the items to down stream objects or you add a additional queue objects behind the queue1 and tell the queue at output port 1 to close its input.

0 Likes
Message 5 of 5

Ben_WilsonADSK
Community Manager
Community Manager

Hi @Gokulakrishnan Kandasamy, was Jörg Vogel's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes