Tuesday, May 14, 2024

OIC HCM - Advantages Of HCM Data Loader (HDL)


  1. HDLhas the capability to access most of the Business Objects.
  2. Support for Partial and Incremental data loading. (no need to create record fully)
  3. If your HCM instance is configured with flex fields or user-defined fields, then you are capable of load values in those fields.
  4. Comprehensive bulk loading capabilities.
  5. User-managed loading or Automated using Web services this allows the tool to be fully autonomous and without user-initiated data load.
  6. Images/Documents can be loaded with records so that the system can associate them.
  7. Bulk loading of HCM data from any source.
  8. Flexible, pipe-delimited file format.
  9. Stage Table Maintenance.
  10. Capability to track and monitor in real-time.
  11. Ability to set the number of threads that are driving a process.

OIC HCM - Importing and Loading Your File from HCM

Follow the below steps:

Step1: In the application, on the home page, click My Client Groups > Data Exchange



Step2: On the Data Exchange page, click Import and Load Data



Step3: Click Import File on the page header.



Import file
Step4: Drag and drop your .zip file from your file explorer to the Choose File button. Alternatively, click the Choose File button to search and select your file.


Step5: Click Submit. >> The process parameters are displayed, click Submit.



Tip: You don’t need to change the parameters values.

Step6: Click OK on the Submitted confirmation page. You’re returned to the Import and Load Data page. Go to Recent File Loads 


We can the Grade.zip - import and load are in progress.

Expand the details.




The Import Status will indicate if the business object .dat files in your zip file imported into the staging tables correctly. Here you can see that import was successful.

The Load Status will indicate if the data is successfully loaded in the Oracle HCM Cloud application tables. The clock icon indicates that Load is still in progress.

There are various counts; your file contained 5 data lines, so the Total Lines should be 5. In this simple file the 5 lines represented 5 grade objects, so the Total Objects should also be 5. 2 grades lines failed, 3 load success, total 60% load success.


OIC HCM - about delimiter data (.dat) file

The HCM data loader provides a template file which is a .dat file for each supported business object hierarchy. 

The template contains:

A COMMENT line: 

Identifies the business object  its version, and the file-creation date.

Example,

COMMENT data for Business Object: Grade Version: V2 Created on: 14-05-2024

A METADATA line:

All files must include METADATA lines, to explain which attributes are included in the file and the order in which their values are supplied.

example,

METADATA|Grade|GradeCode|SetCode|GradeName|EffectiveStartDate|ActiveStatus

All attribute names and values are delimited by the pipe ‘|’ character by default.The string immediately after the METADATA instruction identifies the record type the attributes are for, in this case ‘Grade’. The values that follow are the names of the attributes available on the Grade record, that you want to supply data for.

Note: Ensure your text editor is using UTF-8 encoding.

A Data line:

The lines which holds the actual data for the business object to be imported.

Example,

MERGE|Grade|IC1|COMMON|Individual Contributor 1|2000/01/01|A

The MERGE instruction tells HDL to create the grade if it doesn’t already exist, or update it if it does.Again, the value immediately after the MERGE instruction identifies the record type the attributes for. The values that follow are the values for the attributes named in the corresponding METADATA line.

Add these MERGE lines to your file:

MERGE|Grade|IC2|COMMON|Individual Contributor 2|2000/01/01|A

MERGE|Grade|IC3|COMMON|Individual Contributor 3|2000/01/01|A

MERGE|Grade|M1|COMMON|Manager 1|2000/01/01|A

MERGE|Grade|M2|COMMON|Manager 2|2000/01/01|A

Each record needs to be uniquely identified. For grade records the user key is the combination of GradeCode and SetCode, i.e. IC2 and COMMON.

Save your file, naming it Grade.dat. Alternatively, you can download and edit the Grade.dat file.

Compress (zip) the Grade.dat into a filename of your choice, but it must have a .zip file extension. You have created your first HCM Data Loader file for bulk loading grades. Follow the next step to import this into the HDL staging tables and load the data into the application tables.



Monday, May 13, 2024

OIC HCM - Modifying Template and Integration Mapping File (nxsd) for OIC

Modifying Template and Integration Mapping File (nxsd) for OIC

  • There is one to one correlation between the template file (sample .dat file) and Integration Mapping File (nxsd file).
  • When we download these files they include all attributes available to be loaded into these business objects. All of these attributes are not required. Based on the business requirment we have to put the surrogate key and mandatory fields only.
  • One thing to note for OIC is that when we use nxsd files, we need to map every attribute available as part of OIC mapping. The best way to achieve this is to modify the Template File (Sample .dat file) and then modify the nxsd file to ensure only those fields will remain that you will be loading using OIC.

Let’s take the example of Grade Business Object, when I download the default .dat file it brings in all attributes, 


Now first create a sample dat file as per requirement, 


remove all columns that you will not be loading data into via HDL. Once the requirements are clear. You will have to modify the relevant nxsd file.

Now let’s look at the original nxsd file that was downloaded from HCM.


Before we start removing the elements that do not appear in our sample .dat file. 

We need to pay close attention to the following:

  1.  "terminated" element in the nxsd file. You will notice two values here 
    1. "terminatednxsd:terminatedBy="|": This appears on all elements as this is the main file delimiter. 
    2. "terminatednxsd:terminatedBy="${eol}" : This appears on the last element of the section
It is important to note these as when you will modify your nxsd file and remove the elements that are not required, chances are your last column name/element will change. For OIC to generate the next line it is key that you shall modify the terminatedBy with $eol to your new last column name/element. 

So here is my modified nxsd file related to the sample .dat file.


Now when I perform the mapping in OIC, this is how it looks.



Reference:

https://blogs.oracle.com/integration/post/practical-guide-to-use-hcm-data-loader-with-oracle-integration

OIC HCM - High level HCM HDL Overview

  • The Oracle HDL Job is used to load bulk data into HCM business object from a delimited data (.dat) files. Integration architect can generate the delimited data file in oracle integration using business object template files provided by Oracle HCM Cloud.
  •  Because the business object template file contains every attribute including flex fields, it can be further simplified and personalized by removing the excess attributes. The business object template file must be associated with a stage file action in Oracle Integration to generate the delimited data file .This greatly simplifies generation of delimited data files for Oracle HCM business objects through Oracle Integration. 
  • We can load business objects for most HCM cloud products such as
    • Oracle fusion absense Management
    • Compensation 
    • Global Human Resources
    • Global Payroll
    • Performance Management
    • Profile management
    • TalentnReview and succession management
    • Workforce Management
  • Oracle HCM Data Loader expects the .zip file containing the one or multiple .dat files each for one business object(Organization, Location etc.)

At a high level, an Oracle HDL job pattern can be implemented in three steps:


1) Generate the HCM HDL compliant delimited data (.dat) file.
2) Submit the Oracle HDL job.
3) Monitor the job status until completion


High level HDL overview diagram:


The Oracle HDL job is a bulk data load process that runs in a batch mode, to support this Oracle HCM Cloud Adapter supports two Oracle HDL operations:

  1. Submit the Oracle HDL job: The Oracle HCM Cloud Adapter uploads a ZIP file containing a .dat file to Oracle Universal Content Management (UCM) and invokes the Oracle HDL importAndLoad operation. This operation returns the Oracle HDL process ID.

     Note that the ZIP file can contain multiple business object .dat files, as supported by the Oracle HDL job.
  2. Get Oracle HDL process status: The Oracle HCM Cloud Adapter invokes the HDL getDataSetStatus operation to get the status of the specific Oracle HDL process

Reference:

https://blogs.oracle.com/integration/post/a-simple-guide-to%C2%A0oracle-hcm-data-loader%C2%A0hdl-job-support-in-oracle-hcm-cloud-adapter

Thursday, May 9, 2024

OSB Interview Questions

Working...

Q1: What is Proxy and Business service?

Proxy service:

It is used in OSB which is exposed to source system or application.

Business service:

It is a service in OSB which is used to connect to target system ot application.

Q2: what is Message Flow?

Message flow is there in proxy service, we do all types of transformation, routing and other processing in messgae flow only.

Q3: why we use split join in OSB?

To do parrale processing. Two types : static and dynamic.

Q4:  why do use throtting?

https://soalicious.blogspot.com/2019/10/12c-osb-throttling.html

Q5: How to call Java code from OSB?

By using java callout activity

https://soalicious.blogspot.com/2019/09/12c-osb-java-callout.html

Q6: Can we use more than one route node in message flow?

No, we cant use more than one route node in proxy service messagw flow.

Q7: To transform from binary to XML or XML to binary format what we will usw in OSB?

We use MFL

Q8: Can we use MDS in OSB?

No, Oracle service bus does not support MDS.

Q9: Can we use DVM in OSB?

No, we cant use dvm in OSB.

Q10: When we use service Account?

We use Service Account when we are invoking a service which required static authentication. we can re-use Service Account for other Business Services as well.

Q11: How Security works in OSB?
Oracle Service Bus leverages Weblogic Security Framework. we can use OWSM to secure OSB services. To secure OSB proxy service, we use OWSM service side policy. we can use OWSM client policy and invoke secure web service from OSB.

Q12: Webservice Security - Message level and Transport level

What is Transport-Level Security?
It refers to transport protocol security means secure the connection over which messages are transferred. E.g. HTTPS means HTTP over SSL.

What is Message-Level security?
Message level security is used when we want to protect the message exchanged between two applications.

Q13: Types of pipeline available in OSB?
We have two pipelines in OSB, Request and Response pipeline.

Q14: How file pooling works in OSB?
There are below two ways to poll a file in OSB.

·      Use OSB file protocol: We can use file protocol available in proxy service to poll the file. Refer below post for more

·    Use File adapter: we can create file adapter in Jdeveloper and import JCA, WSDL & XSD file of that adapter into OSB and generate proxy service from that.

      Q15: What is Service pooling in OSB?
In OSB we can group together more than one service so that whenever one service goes down, request will route to next available service and end user can continue his work without any interruption.

Service callout

QOS

Parking lot pattern

Route vs publish

Workmanager


Featured Post

11g to 12c OSB projects migration points

1. Export 11g OSB code and import in 12c Jdeveloper. Steps to import OSB project in Jdeveloper:   File⇾Import⇾Service Bus Resources⇾ Se...