-
-
Notifications
You must be signed in to change notification settings - Fork 217
Description
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!