Flanges, bellows, bosses and brackets are welded to the bent run so it bolts up once, in the right attitude, with expansion taken in the corrugations rather than in the joints.
Railway welding is to EN 15085. The fabricated assembly is pressure-tested in the same laboratory that qualifies catalogue fittings, so a leak is found on the jig rather than on the vehicle.
From the shop

01
Bellows and flanges
Welded tube with bellows and flanges

02
Flexible section
Welded assembly with a braided flexible section

03
Welded port
Multi-bend fabricated tube with bellows and a welded port

04
A welded batch
Batch of welded flanged tubes