-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
State Machine Triggers / Actions missing #2845
Comments
Thank you for drawing attention to that. This would definitely be a fine addition. If you want to get started with this on your own, few pointers to get you started quicker:
|
Hi @marek-piirikivi,
But Some path weirdness in poetry perhaps? |
Hi @mikekidner Maybe you have missing dependencies. I believe @amolenaar or @danyeaw can help you better. Seems to be worth a separate discussion. |
I would try removing your virtualenv and then recreating it and run poetry install again. |
Is your feature request related to a problem?
The state machine diagram feels really nice to use with composite states, guards, etc., but the lack of actions and triggers on transitions makes Gaphor for state machine modeling inadequate (at least for me).
I would like to use Gaphor in education: teaching UML state machines (among other diagrams). Correct syntax and understanding of basic semantics (e.g. in which order events are executed) is crucial and these elements play an important role in that.
Describe the solution you'd like
I would like to have two simple labels on state machine transitions, where I can add actions and triggers (simply strings, just as it is for guards).
I would like the value of these to show around the middle of the transition in the following manner: trigger [guard] / action.
Describe alternatives you've considered
I considered using the "name" label, but that shows up at the end of the transition and is often hard to read. I also considered adding all these to the guard field, but then the action and the trigger are showing in brackets (syntactically incorrect).
If it would be possible to show the value of the name field around the middle of the transition or if it would be movable, that would be adequate for me as well. I do not care about code generation and similar features, I just need a label around the middle of the transition, which I can write to.
I am not sure why this has not come up yet, I tried to search in older issue, but could not find anything. If the reason for this missing is just lack of developer time, I would also be willing to implement it (it seems fairly simple).
Thanks in advance!
The text was updated successfully, but these errors were encountered: