Hi xain,
Divide your task into two parts
1) create worker
2) import hcmPersonDeatils
if I will be in your shoes, I will love to rely on DIXF. Writing code is just a matter of wasting time, if something is available as data entity. Have a look at entities, if you can use one or you may create a custom entity.