A heuristic for optimum allocation of real-time service workflows