Advertisement
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="foo@example.com, bar@example.com"
- >
- <!--
- emailTo="bar@example.com"
- emailTo="foo@example.com, bar@example.com"
- -->
- <steps>
- <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>
- <serial>
- <steps>
- <fileOperation xsi:type="copyFile" move="false"
- username="someUsername" password="somePasswd"
- path="sftp://server.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"
- 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>
- </serial>
- <fileOperation xsi:type="copyFile" move="false"
- username="someUsername" password="somePasswd"
- path="sftp://server.example.com" name="ApplicationPDFs" regexPattern="\D\d{6,8}_App\.pdf$"
- >
- <destination path="\\jgsm-sql01\D$\Consortium Imports\Archive\App Pdf" />
- </fileOperation>
- <fileOperation xsi:type="copyFile" move="false"
- username="someUsername" password="somePasswd"
- path="sftp://server.example.com" name="ApplicationRecPDFs" regexPattern="\D\d{6,8}_\d{6,8}_REC\.pdf$"
- >
- <destination path="\\jgsm-sql01\D$\Consortium Imports\Archive\Rec Pdf" />
- </fileOperation>
- </steps>
- </parallel>
- </steps>
- </WorkOrder>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement