refacting WorkFlowUtilService