inserted a State Machine in RoseTask