I was trying to use @WithStateMachine with @StateMachineConfigEnums, and I can't see my functions getting called.

My code is:

```
@Configuration
@EnableStateMachineFactory
public class StateMachineConfigEnums extends StateMachineConfigurerAdapter<String, String> {

}
@WithStateMachine
public class OrderTransitionBean {
    @OnTransition(target = "RECEIVED")
    void toState1() {
        System.out.println("Manish toState1");
    }

```

There might be a simple answer that it is not supported and @WithStateMachine only work with @EnableStateMachine. Or probably I am missing something. 

Though other things are working like below or action defined with transitions:

```
public class OrderStateMachineListener extends StateMachineListenerAdapter<String, String> {

    @Override
    public void stateChanged(State<String, String> from, State<String, String> to) {
        System.out.println("Order state changed to " + to.getId());
    }
}

```