If you are working for a Canadian employer in Canada and they transfer you to another country, your PR is protected even if you don't meet the residency requirements. They are strict though in their definition of what is a Canadian employer and who qualifies for this. If it looks like you planned your employment in order to be able to stay outside Canada and keep your PR, they might not like that very much.