How to finish State Tree Task?

The state should be changed automatically - you don’t need to do anything - could you perhaps explain your problem more completely?