appccelerate / statemachine

A .net library that lets you build state machines (hierarchical, async with fluent definition syntax and reporting capabilities).
Apache License 2.0
496 stars 129 forks source link

Is it possible in a certain state to get a list of all next possible states? #79

Closed BartStodola closed 3 years ago

BartStodola commented 3 years ago

Consider I have modeled a complex graph with a state machine. This graph is reflecting different states in my Gui. Here is my issue: I need to know at every state in my graph what are the next possible states. Because in my user interface I want to gray out all Buttons except those that are possible due to the state model.

Is it possible in a certain state to get a list of all next possible states?

BartStodola commented 3 years ago

In the meantime I figured out myself how to resolve my problem by simply using the IExtension feature.

ursenzler commented 3 years ago

Oops, I didn't get any notification about your posts until you closed it.

Great that you found a solution. Using an extension is probably the only way to get that information.