Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Idea] Generate a state transition graph in compile time #600

Open
xiaozhikang0916 opened this issue Nov 15, 2023 · 2 comments
Open

[Idea] Generate a state transition graph in compile time #600

xiaozhikang0916 opened this issue Nov 15, 2023 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@xiaozhikang0916
Copy link

Since we have defined the state machine in DSL, it would be nice to have a tool to produce a graph describing how the state is moved from one to another, for quick debugging and documentation.

An implementation can be a gradle ksp plugin, collecting state machine data from AST and print PlantUML syntex.

@gabrielittner
Copy link
Member

This would be really nice to have, I've also thought about it before. An alternative approach (or additional) can also be something like http4k does https://www.http4k.org/guide/howto/self_document_systems_with_tests/ For that we'd need a runtime trace mode that would collect anything happening in the state machine so that you can use that for tests or debugging.

@gabrielittner gabrielittner added the enhancement New feature or request label Nov 27, 2023
@gabrielittner gabrielittner added this to the 1.3 milestone Dec 20, 2023
@tigerxy
Copy link

tigerxy commented Jan 8, 2024

PlantUML would be really nice! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

3 participants