dotnet-state-machine / stateless

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

Fix entry function being shown on internal transitions in dot graph #589

Closed mclift closed 4 months ago

mclift commented 4 months ago

To address issue #587.

This PR is to address an issue in StateGraph where re-entrant transitions cannot be marked as internal since the TransitionInfo class does not distinguish between internal and non-internal transitions. By adding a flag, IsInternalTransition, StateGraph is able to correctly set the executeEntryExitActions argument on the StayTransition constructor.