[FIX] Workflow factory using wrong variable name for entity manager and abstract exception implemention