my understand has always been that an immigrant is someone who has moved to another country and made it their permanent or primary place of abode, and an ex pat is someone from one country who is in another country purely for the purpose of work and intends to return to his country of origin when the work ends,