Add method for transit by entity class and id in Workflow Bundle

method used only once, pls move it to test case