AnswerHub Upload Issue
Our AnswerHub community currently has a bug that prevents you from attaching your model or other files to your questions. AnswerHub is aware of this issue and they are working on a fix. Until we receive their patch, you can upload your models and other files to FlexSim's file share site. Include the file name in your question so that we know which upload to reference.

question

Rahul R avatar image
0 Likes"
Rahul R asked Rahul R commented

Triggering wait for event in process flow using sendmessage()

Is there a way to trigger wait for event activity in process flow from using sendmessage()?


sendmsg.fsm

FlexSim 21.2.4
processflowflexscriptwait for eventsend message
sendmsg.fsm (32.5 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.

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Rahul R commented

I think, it is more likely the on receive message event, that you can evaluate.

· 9
5 |100000

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

Hi Joerg, can you explain it a bit?
0 Likes 0 ·
The OnMessage event is common on the objects and a wait for event activity, when you sample an object that has the event, will offer OnMessage as the triggering event. This is not the sending of the message but the receiving.
0 Likes 0 ·
Rahul R avatar image Rahul R Jason Lightfoot ♦ ·
So can a wait for event activity listen to itself, if there is a message being passed to it or can it listen to only 3D objects
0 Likes 0 ·
Show more comments
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

In you case you can just detect that a token enters/exits the activity: "Custom Code- Send message"

· 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.

Hi Jason, Thanks for your response. I asked this as part of bigger model where I use a customized library in flexsim. I add instruction to travel, and then instruction to send message, so that the message is triggered after travel is completed. So detecting token entry exit to custom code will not help.


1651978624945.png



0 Likes 0 ·
1651978624945.png (77.0 KiB)

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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