question

Hemanth Sai Kumar avatar image
0 Likes"
Hemanth Sai Kumar asked Hemanth Sai Kumar commented

Trigger a message to release 1 st token in the process flow event

Hi Community,

I have a use case where I need to release the first token from the process flow when a part finishes processing in the processor. I tried creating a message trigger and set the control to 'event', but I wasn't able to release the token from the event for the next action.

Thanks in advance for your help.

Trigger_message.fsm

FlexSim 24.1.0
processflowprocessoronmessage trigger
trigger-message.fsm (36.6 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.

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

You don't need a message for this (though technically that would be possible to do but much more cumbersome). Just assign the item to a label on the token, so the token can wait for that item to finish processing.

wait-for-item.fsm


wait-for-item.fsm (36.4 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.

Hemanth Sai Kumar avatar image
0 Likes"
Hemanth Sai Kumar answered Hemanth Sai Kumar commented

Hi Felix,
Thank you for your time and interest,

I am trying a use case where I want to release 1 token from the event on finish of Processor 2 or 3 process. Below I am attaching the example model. Thanks in advance for your support.

trigger_message_v1.fsm


· 3
5 |100000

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

Hemanth Sai Kumar avatar image Hemanth Sai Kumar commented ·

I am trying the above case with trigger through a message control.

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Hemanth Sai Kumar commented ·

You can't send a message to the token (well, you can, but you can't listen for that message).

You could sync the token and message via the item on Processor1, but for that you'd need to know whether the item has finished processing.

So overall I think releasing the token through code in the Process Finish trigger might be a decent choice.

trigger-message-v2.fsm

0 Likes 0 ·
Hemanth Sai Kumar avatar image Hemanth Sai Kumar Felix Möhlmann commented ·

perfect,
this works for my use case, Thank you for your quick response and quick resolution too.


0 Likes 0 ·