It should work. AY has a lot of CN traffic, they know how it works. Just make sure that you discuss this at the Plat checkin desk - show them your CAN-HKG ticket, they'll type away a while and you're good. (They need to report your details to China immigration beforehand)
HEL-PEK-TPE worked like a charm.