Advertisement
Guest User

Pipeline.md

a guest
Sep 7th, 2017
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## Pipeline NAF NAF:
  2.  
  3. Định dạng file : cde_YYYYMMDD_nnnnnn.txt, tìm trong file item_setup.xlxs
  4.  
  5. ## Các bước
  6. ### Extract
  7.  
  8. - initialize
  9. - call
  10.   - tải về
  11.   - unzip và delete zipfile
  12.   - extract_files_from_local_folder
  13.     - lưu lại theo extracted_data dạng hash
  14.     - CsvFileToRows cho 'csv'
  15.     - FixedWidthFileToRows cho 'fixed_width'
  16.    
  17. => **ra được pipelinerow  pending**
  18.  
  19. ### Transform
  20.  
  21. - initialize
  22. - call
  23.     -  transform_pipeline_row
  24.     - xử lí theo từng PipelineRow và chuyển thành transform
  25.     - nếu có lỗi thì trả về error
  26.  
  27. ### Load
  28. - load_transformed_record
  29.   - xem có phải row transform chưa , nếu phải thì xử lí tiếp  confirm  order by  user  
  30. - finalize_orders
  31.   - kiểm tra order NAFNAF  và calculateQty
  32.   - async Beper
  33. - send_email_to_users
  34.   - dựa vào order mà có gửi mail cho từng khách hàngàng
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement