An Integrated Approach to Process Planning and Scheduling