Advertisement
uniblab

Untitled

Jun 12th, 2018
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.47 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\Icod.Wod\schema0.xsd"
  3.     xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.     jobName="wget Faculty and Staff process"
  5.     emailTo="foo@example.com"
  6. >
  7.     <steps>
  8.         <fileOperation xsi:type="mkDir" path="\\jgsm-sql01\FacStaffList" />
  9.  
  10.         <fileOperation xsi:type="deleteFile"
  11.             path="\\jgsm-sql01\FacStaffList" name="*_*.json"
  12.             regexPattern="((dyson)|(hotel)|(jcb)|(johnson)|(sha))_((staff)|(faculty))\.json$"
  13.         />
  14.         <parallel>
  15.             <steps>
  16.                 <!-- staff -->
  17.                 <fileOperation xsi:type="copyFile" move="false"
  18.                     path="https://someServer.example.com/app/human_resources/api/jcb_employees/mailing_list.json?type=hotel_staff"
  19.                     username="someUsername" password="somePassword"
  20.                 >
  21.                     <destination path="\\jgsm-sql01\FacStaffList" name="hotel_staff.json" />
  22.                 </fileOperation>
  23.                 <fileOperation xsi:type="copyFile" move="false"
  24.                     path="https://someServer.example.com/app/human_resources/api/jcb_employees/mailing_list.json?type=sha_staff"
  25.                     username="someUsername" password="somePassword"
  26.                 >
  27.                     <destination path="\\jgsm-sql01\FacStaffList" name="sha_staff.json" />
  28.                 </fileOperation>
  29.                 <fileOperation xsi:type="copyFile" move="false"
  30.                     path="https://someServer.example.com/app/human_resources/api/jcb_employees/mailing_list.json?type=johnson_staff"
  31.                     username="someUsername" password="somePassword"
  32.                 >
  33.                     <destination path="\\jgsm-sql01\FacStaffList" name="johnson_staff.json" />
  34.                 </fileOperation>
  35.                 <fileOperation xsi:type="copyFile" move="false"
  36.                     path="https://someServer.example.com/app/human_resources/api/jcb_employees/mailing_list.json?type=jcb_staff"
  37.                     username="someUsername" password="somePassword"
  38.                 >
  39.                     <destination path="\\jgsm-sql01\FacStaffList" name="jcb_staff.json" />
  40.                 </fileOperation>
  41.                 <fileOperation xsi:type="copyFile" move="false"
  42.                     path="https://someServer.example.com/app/human_resources/api/jcb_employees/mailing_list.json?type=dyson_staff"
  43.                     username="someUsername" password="somePassword"
  44.                 >
  45.                     <destination path="\\jgsm-sql01\FacStaffList" name="dyson_staff.json" />
  46.                 </fileOperation>
  47.  
  48.                 <!-- faculty -->
  49.                 <fileOperation xsi:type="copyFile" move="false"
  50.                     path="https://someServer.example.com/app/human_resources/api/jcb_employees/mailing_list.json?type=sha_faculty"
  51.                     username="someUsername" password="somePassword"
  52.                 >
  53.                     <destination path="\\jgsm-sql01\FacStaffList" name="sha_faculty.json" />
  54.                 </fileOperation>
  55.                 <fileOperation xsi:type="copyFile" move="false"
  56.                     path="https://someServer.example.com/app/human_resources/api/jcb_employees/mailing_list.json?type=johnson_faculty"
  57.                     username="someUsername" password="somePassword"
  58.                 >
  59.                     <destination path="\\jgsm-sql01\FacStaffList" name="johnson_faculty.json" />
  60.                 </fileOperation>
  61.                 <fileOperation xsi:type="copyFile" move="false"
  62.                     path="https://someServer.example.com/app/human_resources/api/jcb_employees/mailing_list.json?type=dyson_faculty"
  63.                     username="someUsername" password="somePassword"
  64.                 >
  65.                     <destination path="\\jgsm-sql01\FacStaffList" name="dyson_faculty.json" />
  66.                 </fileOperation>
  67.             </steps>
  68.         </parallel>
  69.  
  70.         <dbOperation xsi:type="command" connectionStringName="SalesForce" commandText="delete from WorkDay.FacultyStaffStaging" commandType="Text" commandTimeout="120" />
  71.         <dbOperation xsi:type="fileImport" connectionStringName="SalesForce" updateBatchSize="200" tableName="FacultyStaffStaging" namespace="WorkDay" commandTimeout="360" >
  72.             <columnMapping>
  73.                 <map from="%wod:FileNameWithoutExtension%" to="FileNameWithoutExtension" />
  74.                 <map from="netid" to="netid" />
  75.                 <map from="fname" to="fname" />
  76.                 <map from="lname" to="lname" />
  77.                 <map from="title_work" to="title_work" />
  78.             </columnMapping>
  79.             <source xsi:type="jsonFile"
  80.                 typeName="Johnson.FacStaffList.Person[]" mapWith="Johnson.FacStaffList.PersonToRecord"
  81.                 path="\\jgsm-sql01\FacStaffList" name="*_*.json"
  82.                 regexPattern="((dyson)|(hotel)|(jcb)|(johnson)|(sha))_((staff)|(faculty))\.json$"
  83.             >
  84.                 <assemblies>
  85.                     <assembly path="\\jgsm-sql01\FacStaffList" name="gm_FacStaffList.dll" />
  86.                 </assemblies>
  87.             </source>
  88.         </dbOperation>
  89.         <!--<dbOperation xsi:type="command" connectionStringName="SalesForce" commandText="WorkDay.ImportFacStaffList" commandType="StoredProcedure" commandTimeout="180" />-->
  90.     </steps>
  91. </WorkOrder>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement