[core][XasObbject] add copy_process_flow_to function to copy the process flow from the current xasobject to a random hdf5 file