dotnet-state-machine / stateless

A simple library for creating state machines in C# code
Other
5.63k stars 768 forks source link

Export to PlantUML/UML/BPMN #371

Open joaocc opened 4 years ago

joaocc commented 4 years ago

Hi, Are there any plans to export to PlantUML or UML/BPMN like notation/language? Thanks

HenningNT commented 4 years ago

I'm afraid not. The team capacity is very low at the moment, and development is very slow.

If you are up to the challenge we'd be very happy if you added this functionality.

jungyu-rim commented 4 years ago

Is anyone working on this issue? If not, I will try for this

HenningNT commented 4 years ago

Please feel free to have a go at this!

vrenken commented 3 years ago

Hi,

what about the other way around: Generate code based on PlantUML state diagrams? Wouldn't that be even more practical?

I've been fascinating by the magic that happens when Roslyn code generators are combined with ANTLR4 parser generator voodoo, and creating a statemachine generator for Stateless was one of the first things on my TODO list. It's already in use at the organization I work for, but probably still somewhat rough around the edges. So please feel free to let me know what you think of this approach and if and how it can be improved.

Also kudos to the Stateless team for their great work (+very happy to retrieve any ideas/thoughts about how code generation can help back Stateless even further).

Greetings from Germany.

HenningNT commented 3 years ago

That would be a nice to have addition to Stateless :-) If you want to build and publish it yourself, you can do that, or you can PR it into this repo. In either case I'd like to publish generators in its own package, separate from the "main" functionality.