After some weeks of testing this it turned out that while both options seem to work, for our situation having the gateway on the PI system seemed to be wiser as the HCM system gets restarted for offline backup every weekend and PI creates alerts for that time. However, no other problems so far with the current configuration having gateway on HCM
Cheers
Jens