Process planning for complex machining with AI methods