I believe the correct answer is: role.
Role (or social role) is the term in psychology which is used to describe the function (which is characterized with the set of connected behaviors, rights and obligations) assumed in a particular social situation set of connected behaviors, rights and obligations
Therefore, Dewayne’s change from an easygoing, fun-loving person who enjoys life to a very stern, serious, and no-nonsense police officer when on the job is an example of a (social) role.