Re: added test 580

Le 8 apr 2014 à 20:34, Jim Barnett <1jhbarnett@gmail.com> a écrit :

> I've added test580, which checks to see that the history state doesn't end up in the state configuration.

The link for test 580 ends with /579/test580.txml which of course fails. Otherwise, the test passes but I'm not sure it's effective.
If I follow the former behavior of JSSC that created the bug that started this, then it would enter sh1, then take the transition to s01 without exiting s0 since s0 is the LCCA. It would no longer be in sh1 when it enters s01.
You should put the transition with In('sh1') in a parallel state so it can react while sh1 is still active in the above scenario. Like this:

<scxml>
	<parallel>
		<state id="s0">
			…
		</state>
		<state id="observer">
			<transition target="fail" cond="In('sh1')"/>
		</state>
	</parallel>
	<final id="pass">…</final>
	<final id="fail">…</final>
</sxml>

			David

Received on Tuesday, 8 April 2014 19:30:17 UTC