Sample autoredirect process variable

On Form Submit redirection to a task or another page based on a user's role

I was trying to implement a simple scenario wherein a user would be redirected to either of the two tasks or forms based on his role, but was unable to do so, due to lack of specific documentation. Can anyone point me in the right direction?