jplane / DurableStateMachines

Bringing the power of hierarchical state machines to a .NET Core runtime near you.
MIT License
10 stars 2 forks source link

Design and implement JSON metadata provider #12

Closed jplane closed 3 years ago

jplane commented 3 years ago

There are abstractions for defining state chart metadata here.

There's an XML-based implementation that adheres to the SCXML spec here.

XML kind of sucks :-) so it would be nice to implement a JSON-based provider. Bonus points for defining a JSON schema that honors the SCXML spec and that we can share with other implementations.

davidkpiano commented 3 years ago

For XState, I have a JSON schema here for the machine definition: https://github.com/davidkpiano/xstate/blob/master/packages/core/src/machine.schema.json

This will probably have to be slightly adapted to match SCXML one-to-one, which I can do.