Custom pattern creation for processes

Hi all,

I want to learn whether there is any way to create custom patterns for processes. By patterns, I mean some logic like avoiding different tasks from having same approver in one process. Is there any infrastructure letting me to describe this kind of logic and using them on processes? What is the best practice on this kind of requirements? Thank for the answers.