uniblab

Consortium Download Files

Nov 8th, 2017
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.48 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <WorkOrder xmlns="http://Icod.Wod" xsi:schemaLocation="http://Icod.Wod \\jgsm-sql01\D$\Icod.Wod\schema0.xsd"
  3.     xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.     jobName="Consortium File Download"
  5.     emailTo="none@example.com"
  6. >
  7.     <steps>
  8.         <fileOperation xsi:type="mkDir" path="\\jgsm-sql01\D$\Consortium Imports\Archive" />
  9.         <fileOperation xsi:type="mkDir" path="\\jgsm-sql01\D$\Consortium Imports\Archive\Data" />
  10.         <fileOperation xsi:type="mkDir" path="\\jgsm-sql01\D$\Consortium Imports\Archive\App Pdf" />
  11.         <fileOperation xsi:type="mkDir" path="\\jgsm-sql01\D$\Consortium Imports\Archive\Rec Pdf" />
  12.  
  13.         <parallel>
  14.             <steps>
  15.                 <fileOperation xsi:type="copyFile" move="false"
  16.                     username="someSftpUsername" password="someSftpPassword"
  17.                     path="sftp://sftp.example.com" name="Export_Cornell_University_Application" regexPattern="BatchExport_2569_%wod:DateTime{M_d_yyyy}%_(\d{2}_){3}((AM)|(PM))\.txt$"
  18.                 >
  19.                     <destination path="\\jgsm-sql01\D$\Consortium Imports\Archive\Data" />
  20.                 </fileOperation>
  21.  
  22.                 <fileOperation xsi:type="copyFile" move="false"
  23.                     username="someSftpUsername" password="someSftpPassword"
  24.                     path="sftp://sftp.example.com" name="ApplicationPDFs" regexPattern="\d{6,8}_App\.pdf$"
  25.                 >
  26.                     <destination path="\\jgsm-sql01\D$\Consortium Imports\Archive\App Pdf" />
  27.                 </fileOperation>
  28.  
  29.                 <fileOperation xsi:type="copyFile" move="false"
  30.                     username="someSftpUsername" password="someSftpPassword"
  31.                     path="sftp://sftp.example.com" name="ApplicationRecPDFs" regexPattern="\d{6,8}_d{6,8}_REC\.pdf$"
  32.                 >
  33.                     <destination path="\\jgsm-sql01\D$\Consortium Imports\Archive\Rec Pdf" />
  34.                 </fileOperation>
  35.             </steps>
  36.         </parallel>
  37.  
  38.         <fileOperation xsi:type="copyFile"
  39.             path="\\jgsm-sql01\D$\Consortium Imports\Archive\Data" name="BatchExport_2569_*.txt" regexPattern="BatchExport_2569_%wod:DateTime{M_d_yyyy}%_(\d{2}_){3}((AM)|(PM))\.txt$"
  40.         >
  41.             <destination path="\\jgsm-sql01\D$\Consortium Imports\" />
  42.         </fileOperation>
  43.         <fileOperation xsi:type="deleteFile"
  44.             path="\\jgsm-sql01\D$\Consortium Imports" name="Export.txt"
  45.         />
  46.         <fileOperation xsi:type="renameFile"
  47.             path="\\jgsm-sql01\D$\Consortium Imports" name="BatchExport_2569_*.txt" regexPattern="BatchExport_2569_%wod:DateTime{M_d_yyyy}%_(\d{2}_){3}((AM)|(PM))\.txt$"
  48.         >
  49.             <destination path="\\jgsm-sql01\D$\Consortium Imports" name="Export.txt" />
  50.         </fileOperation>
  51.     </steps>
  52. </WorkOrder>
Add Comment
Please, Sign In to add comment