question

mm_y_2406 avatar image
1 Like"
mm_y_2406 asked mm_y_2406 commented

Wait for event - state change

Hi, I encountered a problem while trying to use the wait for event activity on state change. The object is a location object from people to go. I tried to use the wait for event for the state change of the object to Available (see pic) before it move forwards to the next activity but it doesn't seem to recognise that the state has changed and the token continue to remain in there. Could you advice on what needs to be change in order for my token to move to the next activity when the object's state changed from acquired to available1688037502318.png

FlexSim 23.1.3
wait for event question
1688037502318.png (155.7 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.

1 Answer

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered mm_y_2406 commented

I can't say for certain why the State Change event does not trigger.

To get this to work, you can use the On Change event of the state node instead. Either directly, or through a token label if the activity needs to listen to different objects.

capture1.png

capture2.png

location_availability_change_trigger_fm.fsm


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

mm_y_2406 avatar image mm_y_2406 commented ·

Hi Felix, It works now doing that. Thanks for your help!

0 Likes 0 ·