question

Tom S4 avatar image
0 Likes"
Tom S4 asked Tom S4 commented

Can we send a message to a ProcessFlow activity?

I'll try to keep this brief. I would like to send a message to a Wait for Event activity, which is listening to the `OnMessage` trigger of `activity` (see below).1672954027927.png

I am getting an error - invalid triggering event. I'm assuming this is because ProcessFlow activities can't receive messages. Is this the case? I would like to avoid sending a message to the ProcessFlow object itself, but I'll do this if I absolutely need to. If I can't send a message to the activity, what other options do I have? Is there a list of what can or cannot receive messages?

Thank you.

FlexSim 23.0.1
processflowactivitysend message
1672954027927.png (20.9 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.

Joerg Vogel avatar image Joerg Vogel commented ·
A message creates an event and parses data. You achieve the same by creating a token and add label data to it.
1 Like 1 ·

1 Answer

·
Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered kiminami commented

Consider instead using a global list partitioned by UnitOpID to handle the coordination.

Instead of the wait for event activity, use a push to list activity and then have the 'would-be' message event pull value(s) off the list - again referencing the UnitOpID partition.

The process flow activities probably don't inherit from the FlexSimEventHandler class.


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

Tom S4 avatar image Tom S4 commented ·
Thank you. I'm going to modify this a little but this idea should work for my purpose.
0 Likes 0 ·

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.