- From: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
- Date: Wed, 15 Jul 2015 10:03:42 +0200
- To: David Junger <tffy@free.fr>
- CC: <www-voice@w3.org>
On 15-7-2015 7:59, David Junger wrote: > Le 14 juil. 2015 à 12:13, Erik Verbruggen <erik.verbruggen@theqtcompany.com> a écrit : >> >> I have a question about history states inside parallel states. Consider this state machine: >> >> <scxml> >> <parallel id="p"> >> <history id="h"> >> <transition target="a2"/> >> </history> >> <state id="a"> >> <state id="a1"/> >> <state id="a2"/> >> </state> >> </parallel> >> </scxml> >> >> The question is: what is the (initial) configuration of the state machine? If I read the standard correctly, it should be (p, a, a2). Is that correct? If not, what did I miss? > > No, the initial configuration would be (p -> a -> a1). The history pseudo-states can only be "entered" when targetted explicitly, as you have noticed in the algorithm, and they are not added to any configuration. Ah, thanks! So, in the example above, targeting it explicitly would mean setting the initial state of the scxml to the history state? -- Erik
Received on Wednesday, 15 July 2015 08:04:17 UTC