Fix process params to only accept StateMachine

It must accept all class that implement StateMachineInterface