Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.5.0
-
None
Description
Communication with invoked state machines can be done by sending events to the target with the special form of #_invokeid. The attached example will forward key presses to an invoked statemachine but they never get send nor is the log after the send is executed. W3C specifies communication to invoked processes by sending events to #_invokeid in case autoforward is false. keyboard_statemachine.scxml sends events to the invoked process but that seems to fail as the log after the send is never executed nor does the state in the invoked process changes from state S1 to S2. Sending events back from an invoked state machine via special target #_parent works on the other hand fine.
What is also strange that when sending the event to #_ID_CHILD1 the invoked statemachine re-enters S1 meaning as it would get restarted
scxml.statemachine: "In S1" : ""
scxml.statemachine: "Before Sending Event" : "key.pressed.KB.1"
scxml.statemachine: "In S1" : ""