Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <WorkOrder xmlns="http://Icod.Wod" xsi:schemaLocation="http://Icod.Wod \\jgsm-sql01\D$\Icod.Wod\schema0.xsd"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- jobName="Consortium File Download"
- emailTo="none@example.com"
- >
- <steps>
- <fileOperation xsi:type="mkDir" path="\\jgsm-sql01\D$\Consortium Imports\Archive" />
- <fileOperation xsi:type="mkDir" path="\\jgsm-sql01\D$\Consortium Imports\Archive\Data" />
- <fileOperation xsi:type="mkDir" path="\\jgsm-sql01\D$\Consortium Imports\Archive\App Pdf" />
- <fileOperation xsi:type="mkDir" path="\\jgsm-sql01\D$\Consortium Imports\Archive\Rec Pdf" />
- <parallel>
- <steps>
- <fileOperation xsi:type="copyFile" move="false"
- username="someSftpUsername" password="someSftpPassword"
- path="sftp://sftp.example.com" name="Export_Cornell_University_Application" regexPattern="BatchExport_2569_%wod:DateTime{M_d_yyyy}%_(\d{2}_){3}((AM)|(PM))\.txt$"
- >
- <destination path="\\jgsm-sql01\D$\Consortium Imports\Archive\Data" />
- </fileOperation>
- <fileOperation xsi:type="copyFile" move="false"
- username="someSftpUsername" password="someSftpPassword"
- path="sftp://sftp.example.com" name="ApplicationPDFs" regexPattern="\d{6,8}_App\.pdf$"
- >
- <destination path="\\jgsm-sql01\D$\Consortium Imports\Archive\App Pdf" />
- </fileOperation>
- <fileOperation xsi:type="copyFile" move="false"
- username="someSftpUsername" password="someSftpPassword"
- path="sftp://sftp.example.com" name="ApplicationRecPDFs" regexPattern="\d{6,8}_d{6,8}_REC\.pdf$"
- >
- <destination path="\\jgsm-sql01\D$\Consortium Imports\Archive\Rec Pdf" />
- </fileOperation>
- </steps>
- </parallel>
- <fileOperation xsi:type="copyFile"
- 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$"
- >
- <destination path="\\jgsm-sql01\D$\Consortium Imports\" />
- </fileOperation>
- <fileOperation xsi:type="deleteFile"
- path="\\jgsm-sql01\D$\Consortium Imports" name="Export.txt"
- />
- <fileOperation xsi:type="renameFile"
- path="\\jgsm-sql01\D$\Consortium Imports" name="BatchExport_2569_*.txt" regexPattern="BatchExport_2569_%wod:DateTime{M_d_yyyy}%_(\d{2}_){3}((AM)|(PM))\.txt$"
- >
- <destination path="\\jgsm-sql01\D$\Consortium Imports" name="Export.txt" />
- </fileOperation>
- </steps>
- </WorkOrder>
Add Comment
Please, Sign In to add comment