Replies: 2 comments 3 replies
-
A possibly cleaner representation would be to declare a conditional entry as such.
This cleans up the labels on the transition arrows quite nicely, whilst also grouping the entry functions together. |
Beta Was this translation helpful? Give feedback.
-
Hi @leeoades, Well spotted, this is definitely not what we should expect. I can see some spurious logic in Additionally, the re-entry action name gets dropped entirely if you remove the entry action for any trigger:
Regarding the alternative representation you've proposed, this looks clearer to me too. Do you have a fix in mind? |
Beta Was this translation helpful? Give feedback.
-
Consider a state machine with states A and B.
So from State A, on Trigger.X, we expect OnEveryEntry and OnEntryFromX to fire.
In State B, on Trigger X, we expect the same.
The Digraph generated is as such:
I would argue that the reentry transition currently labelled
would be more usefully labelled as
The State B already displays entry / OnEveryEntry to denote all entries.
The label on the X reentry repeats this information, and neglects to mention OnEntryFromX.
So I would expect this:
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions