Create the Main Integration
This integration:
-
Exports data from Oracle Taleo Enterprise Cloud Service using a SOAP wrapper that’s deployed to the same Oracle Java Cloud Service host as the Taleo Connect Client
-
Copies the export file from the Oracle Java Cloud Service host to the Oracle Integration Cloud host
-
Reads each candidate’s record in the file and invokes the other integration to import information into Oracle E-Business Suite
-
Handles responses from Oracle E-Business Suite that correlate the employee numbers to Oracle Taleo Enterprise Cloud Service record numbers and write these values to an import file
-
Copies the import file from the Oracle Integration Cloud host to the Oracle Java Cloud Service host
-
Imports employee numbers to the candidate’s records in Oracle Taleo Enterprise Cloud Service using a SOAP wrapper that’s deployed to the same Oracle Java Cloud Service host as the Taleo Connect Client
Create a REST Connection to Invoke the Oracle E-Business Suite Flow
Create a REST connection to invoke the Oracle E-Business Suite integration.
- From the Connections page, click Create.
- In the search field, enter REST, and press Enter to filter the results. On the REST adapter tile, click Select.
- In the Name field, enter ebs-rest-invoke.
- From the Role list, select Trigger and Invoke. Click Create.
- Click Configure Connectivity. From the Connection Type list, select REST API Base URL, and paste the URL of the Oracle E-Business Suite integration that you activated in the Connection URL field.
- Click Configure Security. From the Security Policy list, select No Security Policy, and click OK.
- Click Test.
- After you see a success message, click Save, and click Close.
Create a Scheduled Integration
Create an orchestration integration pattern to export data from Oracle Taleo Enterprise Cloud Service and to invoke the Oracle E-Business Suite integration according to a schedule that you define.
- In the navigation pane, click Integrations.
- Click Create.
- On the Orchestration tile, click Select.
- Next to What triggers this integration?, select Schedule.
- Enter a name for your integration, and click Create.
Start the File Export from Taleo Connect Client Using the SOAP Adapter
Configure the SOAP adapter to send a request to the SOAP wrapper, starting a Taleo Connect Client export job.
- From the Invokes panel, click SOAP, and drag the TCCExport SOAP adapter to the + after the schedule on the integration canvas.
- Name your endpoint TriggerTCCExport, and click Next until you reach the last page of the wizard. Click Done.
- Edit the mapping for the TriggerTCCExport endpoint.
- Set the value for the JobPath element in the Target panel to /home/tcc/tcc/exportdef/TCC-Candidate-export_cfg.xml.
- Close the mapper, and save the changes to the integration.
Import a File into Oracle Integration Cloud Using the FTP Adapter
Use the FTP adapter to copy the export file to from the Oracle Java Cloud Service host to the Oracle Integration Cloud host.
- From the Invokes panel, click FTP, and drag the GetFTP FTP adapter to the + after the TriggerTCCExport endpoint on the integration canvas.
- Name your endpoint GetFTP, and click Next.
- From the Select Operation list, select Download File.
- In the Input Directory field, enter /home/tcc/tcc/exportdata. Set the File Name to Candidate.csv, and set the Download Directory to /temp.
- Close the wizard.
- Edit the mapping for the GetFTP endpoint.
- Set the filename element’s value in the Target panel to Candidate.csv.
- Set the directory element’s value in the Target panel to /home/tcc/tcc/exportdata.
- Set the DownloadDirectory element’s value in the Target panel to /temp.
- Close the mapper, and save the changes to the integration.
Read the Records in the File
Use the Stage File action to create a loop that reads each candidate record in the export file.
- From the Actions panel, drag the Stage File action to the + after the GetFTP endpoint on the integration canvas.
- Name your action LoopReadTCCExport, and click Next.
- From the Choose Stage File Operation list, select Read File in Segments.
- For the file name, enter "Candidate.csv", and enter "/temp" for the directory to read from. Click Next, and then click Next again.
- Find and select the sample
Candidate.csv
file that you created earlier. For the record name, enter Candidate, and for the recordset name, enter Candidates. For the field delimiter, select Comma (,), and select values from the Character Set and Optionally Enclosed By lists. - Ensure that Use First Row as Column Headers is selected. Indicate whether each column is mandatory or optional by selecting the value from the list. Click Next.
- Close the wizard, and save the changes to the integration.
- From the Actions panel, drag the For Each action to the + after the LoopReadTCCExport action on the integration canvas.
- In the Name field, enter forEachCandidate, and in the Current Element Name field, enter currentCandidate.
- From the Source tree, expand the LoopReadTCCExport, ReadResponse, and Candidates nodes. Drag the Candidate node to the Repeating Elements field.
- Click Create.
Invoke the Oracle E-Business Suite Integration Using the REST Adapter
Configure the REST adapter to invoke the integration that contains the Oracle E-Business Suite adapter.
Add a Stage File Action to Create the Import File
Use the Stage File action to write the employee number returned from each record imported into Oracle E-Business Suite to a file.
Add a Stage File Action to List the File
Use the Stage File action to read the TCCImportFile.csv
file, preparing it for transfer to the Oracle Java Cloud Service host.
- From the Actions panel, drag the Stage File action to the + after the WriteToLocalFile endpoint (outside the box on the very last + in the flow) on the integration canvas.
- Name your action ListLocalFile, and click Next.
- Ensure that List Files is selected from the Choose Stage File Operation list.
- For the directory to list files from, enter "/temp", and for the file pattern to use, enter TCCImportFile.csv. Ensure that the List Files Recursively option is selected.
- Close the wizard, and save the changes to the integration.
Send a File Using the FTP Adapter
Use the FTP adapter to copy the import file from the Oracle Integration Cloud host to the Oracle Java Cloud Service host.
Start the File Import from Taleo Connect Client Using the SOAP Adapter
Configure the SOAP adapter to send a request to the SOAP wrapper, triggering a Taleo Connect Client import job.
- From the Invokes panel, click SOAP, and drag the TCCImport SOAP adapter to the + after the PutFTP endpoint on the integration canvas.
- Name your endpoint TriggerTCCImport, and click Next until you reach the last page of the wizard. Click Done.
- Edit the mapping for the TriggerTCCImport endpoint.
- In the Target panel, set the JobPath element’s value to /home/tcc/tcc/importdef/TCC_EBSUpdate_cfg.xml.
- Close the mapper, and save the changes to the integration.
Assign a Business Identifier for the Main Integration
At runtime, the status of business identifiers is visible on the Tracking page and (if integration errors have occurred) the Errors page.
- From the
menu, select Tracking.
- From the Source section, expand schedule, and drag the startTime field to the Drag a trigger field here section.
- Click Done, and click Save.