Method triggered on publish for event datatype