Professional Documents
Culture Documents
Contents
Demo Attributes ....................................................................................................................................................................... 1
Executive Summary .................................................................................................................................................................. 1
Storyline and Personas ............................................................................................................................................................. 1
FAQ ........................................................................................................................................................................................... 2
Goal .......................................................................................................................................................................................... 2
Constructing the Pending Worker Import ................................................................................................................................ 2
Prerequisites ............................................................................................................................................................................ 2
Connections ............................................................................................................................................................................. 2
Background on the Integration ................................................................................................................................................ 3
HDL DAT File Native Schema.................................................................................................................................................... 3
Importing the Integration ........................................................................................................................................................ 5
Integration Overview ............................................................................................................................................................... 8
Edit ReadFileFromFTP (FTP Adapter: Read a File) ................................................................................................................... 8
Edit Map To WriteFile .............................................................................................................................................................. 9
Worker .............................................................................................................................................................................. 10
PersonName ...................................................................................................................................................................... 12
WorkRelationship.............................................................................................................................................................. 15
Edit ZipFile (Stage File Action) - Optional............................................................................................................................... 18
Set the Business Identifier For Tracking................................................................................................................................. 19
Activate and Run the Integration........................................................................................................................................... 20
Validating File presence in UCM ............................................................................................................................................ 20
Validating Data Import and Load in HCM Data Loader .......................................................................................................... 21
Demo Attributes
Product(s) Oracle Integration Cloud
Executive Summary
Oracle Integration Cloud (OIC) Service provides rich mapping capabilities to transform source data at runtime. Combined
with native schema formatting capabilities for output file definition, OIC produces output files in virtually any desired
format.
FAQ
For more information and FAQs please refer to the https://demo.oracle.com/apex/f?p=GO:PAGE:0:DSD:NO:1:ID:XXXXXX
Goal
This document walks you through some of the mapping steps needed to replicate in your own environment what has been
released in the demo title: Pending Worker Import.
Prerequisites
You will need access to the following applications and products:
Oracle Integration Cloud (OIC)
HCM Cloud R13+
FTP Server
worker-hdl-lab-exercise.nxsd
persons.xml
personsSchema.xsd
Connections
It is assumed that the following Connections have been created and configured via the import of the Integraton iar file.
To generating HCM Data Loader compatible DAT files within OIC requires using native NXSD schema. This schema defines
the structure of the output file (fields) but also the formatting of data. Using native schema capabilities, you can precisely
craft the output format to match the HCM Data Loader needs.
4. Find <WorkerData> element. This is the element defines the group of all the objects and child objects that are
required by HDL to be loaded for this business object. The example shown here relates to the Worker and several of
Worker’s child objects.
Note: two elements are defined for each object:
ObjectLabel element, used to include the METADATA line into the DAT file.
Object element, used to insert MERGE lines into the DAT file.
The formatting for the lines is also defined, added as METADATA or MERGE lines respectively.
5. On inspection of the WorkerLabel element. Note this is responsible for adding the proper names of the fields into the
METADATA line. Each object needs it’s corresponding Label object to exist in the schema.
Worker has WorkerLabel, Assignment has AssignmentLabel etc.
6. Review the <name=Worker> element. This section defines all the fields required by HDL’s Worker object.
Formatting definition are defined with separators and ends of the lines.
7. Review the <element name=”PersonName”>. This element contains the definition of the fields required by the
PersonName object, it is not fully completed. The following required fields are missing
LastName
SourceSystemOwner
8. Enter the following text on the line after the element name=”MiddlesNames”
9. Enter the following text on the line after the element name=”LastName”
10. Select Save. The final PersonName object definition in the schema should look like the following:
3. Browse your local machine for the IAR file and select it.
4. Click the Import button. Once the integration flow has been imported successfully, you will be prompted with the
confirmation message.
5. You will likely need to complete the Connection information for the new FTP adapter that was created as part of the
import process. To do this, reference the Activate Pending Worker Import.
Integration Overview
1. On the Oracle Integration Cloud Service home page, click the Pending Worker Import integration name. This will open
the integration displaying the various steps to fulfil the integration.
The follow table describes the integration at a high level. For more detail on each step, please open and review from within
the integration.
Step Type Description
Schedule Schedule Beginning of the integration.
Map to Map To
ReadFileFromFTP
ReadFileFromFTP FTP Adapter:
Download File
ReadFile Stage File: Read Reads the results of the file retrieved from the FTP server into a defined
schema
Map to WriteFile Map To Performs the data mapping and transformation generating the HDL DAT
file
WriteFile Stage File: Write Files Write the results of the data mapping and transformation into a virtual
directory within OIC
ListAnsiFile Stage File: List Files Returns a list of files matching the a file name pattern from the virtual
directory within OIC
ZipFile
Map to
SendToUCM
SendToUCM
Wait
Map to
ImportLoadData
ImportLoadData
Stop Stop Denotes the end of the integration
Several mapping elements have been completed for you, however it is necessary to define several remaining values.
4. From the Sources panel, select the repeating element Person field and connect to the repeating element Worker on
the Target panel.
Worker hierarchy is now linked with Person hierarchy; and Worker is a child of for-each loop. This means: for each Worker
record in source, a target Person record will be created.
Worker
The following table is an overview of the mapping for the Worker section which will be described in detail for the
remainder of this section.
5. Select Save.
6. Select hireDate element on the source side
7. Drag the hireDate label on to the StartDate label on the target side
8. Select Save.
Oracle Internal Proprietary & Confidential Page 10 of 23
Oracle Integration Cloud (OIC)
PersonName
1. From the Sources panel, select the repeating element Person field and connect to the repeating element PersonName
on the Target panel.
Person hierarchy is now linked with PersonName hierarchy; and PersonName is a child of a for-each loop. This means:
for each Person record in source, a target PersonName record will be created.
The following table is an overview of the mapping for the PersonName section which will be described in detail for the
remainder of this section.
Source action Target
ReadFile/ReadResponse/allpersons/person/work/ Map the field PersonName/personIDSourceSystemID
employeeExternalNumber
ReadFile/ReadResponse/allpersons/person/work/ Map the field PersonName/EffectiveStartDate
hireDate
'4712/12/31' Assign value PersonName/EffectiveEndDate
'US' Assign value PersonName/LegislationCode
'GLOBAL' Assign value PersonName/NameType
Oracle Internal Proprietary & Confidential Page 12 of 23
Oracle Integration Cloud (OIC)
4. Select Save.
5. Select hireDate element on the source side
6. Drag the hireDate label on to the EffectiveStartDate label on the target side
7. Select Save.
8. Select the EffectiveEndDate element on the target side.
9. Enter '4712/12/31'in the Expression for: EffectiveEndDate
WorkRelationship
1. From the Sources panel, select the repeating element Person field and connect to the repeating element
WorkRelationship on the Target panel.
Person hierarchy is now linked with WorkRelationship hierarchy; and WorkRelationship is a child of a for-each loop.
This means: for each Person record in source, a target WorkRelationship record will be created.
The following table is an overview of the mapping for the PersonName section which will be described in detail for the
remainder of this section.
4. Select Save.
5. Select hireDate element on the source side
6. Drag the hireDate label on to the DateStart label on the target side
7. Select Save.
8. Select the WorkerType element on the target side.
9. Enter ‘P’ in the Expression for: WorkerType
28. Place your cursor at the very end of the expression in the expression window
29. Type in )
30. Save the expression
The SourceSystem ID must be specially designed for WorkTerms to distinguish entries for WorkTerms, WorkRelationship
and Assignment. By adding WR you are able to make this distinction.
The remainder of the mapping has been completed for you. Please review and understand the mapping values that have
been used.
7. Select Done. This will close the Stage File Action configuration wizard and open the Update Configuration? dialogue
window.
8. Select Update. This will close the Update Configuration? dialogue window, returning you to the integration canvas.
9. Select Save
4. Select Save.
4. Enter the file name (JB_Worker.dat) or the owner (Connection endpoint username) as search criteria.
5. Select Search. The Search Results panel should display the file loaded into UCM.
The file will only be displayed until the Import and Load action has completed. Once the HCM Data Loader has completed,
the file will be automatically deleted from UCM and no longer appear when searching via the File Import and Export page.
3. On the Data Exchange window, select the action menu on the right side.
4. Select the Import and Load Data link from the action menu.
The lower section of the Import and Load Data window shows the current data sets being processed. The Data Set column
will display the name of the file retrieved from the FTP Server.
5. On the Person Management: Search page, enter in the Name field the value of the an employee from the original
persons.xml file loaded on the your FTP server
6. Select Search.
The Search Results will display the full name of the worker and additional information. This confirms that the file has
successfully imported into your HCM Cloud instance.
Oracle Internal Proprietary & Confidential Page 22 of 23
Oracle Integration Cloud (OIC)