I think the reason is because it is a very strange question.
What exactly do you mean with 'writing code in the process engine' ? All custom tasks are plain and simple Java classes which you reference in your process …. so I don't quite get your questions