The metadata object can tell a lot about current transformation provided that it is used correctly

Meta Data 1

Some values are only relevant to the reader which is currently being executed, for example, source file name or record number.
For those properties, it will work fine inside transformer TR 1 but since all data is already read after Sorter it will return incorrect data inside transformer TR 2

Meta Data 1

Direct link, no registration required.