You design a variable using the variable object typed by a message. To do so, you must select a message format in the Data Type list of the variable property sheet.
Variables used by a correlation key must be defined under a model and not under a process or package.