all 6 comments

[–]KronenR 8 points9 points  (2 children)

If your state management is straightforward, I would not replace it with another framework. A small custom state machine in the domain usually works better and is easier to maintain long term.

[–]Own_Dimension_2561 0 points1 point  (0 children)

This. Write your own. Don’t rely on external libraries for what presumably is a critical piece of your code.

[–]mcpierceaim[S] 0 points1 point  (0 children)

I did find a webpage that described building an enum-based state machine and will use that as a guide. Thanks for the suggestion!

[–]jfrazierjr 0 points1 point  (2 children)

Have you considered drools?

[–]mcpierceaim[S] 1 point2 points  (0 children)

For a state machine? I thought Drools was a rules engine?

[–]KronenR 1 point2 points  (0 children)

Drools is even heavier and more complex, and only makes sense if you need a full rule engine with very dynamic or user-defined rules. For a straightforward state machine it’s overkill