added checking by roles before execute, fixed flowManager for get old and new status entity