Advertisement
uniblab

Untitled

Jan 25th, 2018
626
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.59 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="foo@example.com, bar@example.com"
  6. >
  7.     <!--
  8.     emailTo="bar@example.com"
  9.     emailTo="foo@example.com, bar@example.com"
  10. -->
  11.     <steps>
  12.         <fileOperation xsi:type="mkDir" path="\\jgsm-sql01\D$\Consortium Imports\Archive\Data" />
  13.         <fileOperation xsi:type="mkDir" path="\\jgsm-sql01\D$\Consortium Imports\Archive\App Pdf" />
  14.         <fileOperation xsi:type="mkDir" path="\\jgsm-sql01\D$\Consortium Imports\Archive\Rec Pdf" />
  15.  
  16.         <parallel>
  17.             <steps>
  18.                 <serial>
  19.                     <steps>
  20.                         <fileOperation xsi:type="copyFile" move="false"
  21.                             username="someUsername" password="somePasswd"
  22.                             path="sftp://server.example.com" name="Export_Cornell_University_Application" regexPattern="BatchExport_2569_%wod:DateTime{M_d_yyyy}%_(\d{2}_){3}((AM)|(PM))\.txt$"
  23.                         >
  24.                             <destination path="\\jgsm-sql01\D$\Consortium Imports\Archive\Data" />
  25.                         </fileOperation>
  26.                         <fileOperation xsi:type="copyFile"
  27.                             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$"
  28.                         >
  29.                             <destination path="\\jgsm-sql01\D$\Consortium Imports\" />
  30.                         </fileOperation>
  31.                         <fileOperation xsi:type="deleteFile"
  32.                             path="\\jgsm-sql01\D$\Consortium Imports" name="Export.txt"
  33.                         />
  34.                         <fileOperation xsi:type="renameFile"
  35.                             path="\\jgsm-sql01\D$\Consortium Imports" name="BatchExport_2569_*.txt" regexPattern="BatchExport_2569_%wod:DateTime{M_d_yyyy}%_(\d{2}_){3}((AM)|(PM))\.txt$"
  36.                         >
  37.                             <destination path="\\jgsm-sql01\D$\Consortium Imports" name="Export.txt" />
  38.                         </fileOperation>
  39.                     </steps>
  40.                 </serial>
  41.  
  42.                 <fileOperation xsi:type="copyFile" move="false"
  43.                     username="someUsername" password="somePasswd"
  44.                     path="sftp://server.example.com" name="ApplicationPDFs" regexPattern="\D\d{6,8}_App\.pdf$"
  45.                 >
  46.                     <destination path="\\jgsm-sql01\D$\Consortium Imports\Archive\App Pdf" />
  47.                 </fileOperation>
  48.  
  49.                 <fileOperation xsi:type="copyFile" move="false"
  50.                     username="someUsername" password="somePasswd"
  51.                     path="sftp://server.example.com" name="ApplicationRecPDFs" regexPattern="\D\d{6,8}_\d{6,8}_REC\.pdf$"
  52.                 >
  53.                     <destination path="\\jgsm-sql01\D$\Consortium Imports\Archive\Rec Pdf" />
  54.                 </fileOperation>
  55.             </steps>
  56.         </parallel>
  57.     </steps>
  58. </WorkOrder>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement