Skip to content
This repository has been archived by the owner on Sep 25, 2018. It is now read-only.

Allow states to be initial and final states. #26

Open
davidkpiano opened this issue Oct 5, 2015 · 3 comments
Open

Allow states to be initial and final states. #26

davidkpiano opened this issue Oct 5, 2015 · 3 comments

Comments

@davidkpiano
Copy link

It's legal for states to be an initial and a final state, especially in machines with only one state. Right now, the $type only supports either INITIAL or FINAL (among other choices).

@mogsie
Copy link

mogsie commented Dec 18, 2015

Can initial states be final? Would that be something like this?

<state id="p">
    <final id="q"/>
</state>

@davidkpiano
Copy link
Author

It's not very useful, but yeah, I'd imagine initial states can be final states. No reason why not.

@jbeard4
Copy link
Owner

jbeard4 commented Jan 12, 2016

Both SCXML and Statecharts have special syntaxes for initial states and for final states, and so the $type attribute is a carry-over of that special syntax requirement.

@davidkpiano Can you provide a use case for this? Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants