def get_state_name(self):
state_name = []<EOL>for state, name in list(self.state_names.items()):<EOL><INDENT>if self._has_state(state):<EOL><INDENT>state_name.append(name)<EOL><DEDENT><DEDENT>return '<STR_LIT:|>'.join(state_name)<EOL>
Returns a textual representation of this Task's state.