Flow-based approach for holistic factory engineering and design