UFSM: Finite State Machine

Yes that can be done from BP graphs easily.
Deeper integration from C++ is what isn’t very friendly to get.