How to implement the data recording function of the imported flow switch?