[Statechart] StateMachine can use an external TaskExecutor.