Transformation logic in Message Broker is written in Message flows, which are graphical representations of message processing steps. Message Sets define structure, Broker is the runtime engine, and Broker Domain is the administrative grouping, not where logic is coded.