Handling Paramatereized and simple XSLT mapping together with Java Class In PI 7.4

This Document gives the approach of executing XSLT mapping using java class in PI 7.4.

Summary:

The approach of handling parameterized values for a particular field and normal XSLT mapping for other fields. So a combination a parameterized and normal XSLT mapping is handled in this scenario which will be normally applied in most of the business cases.To achieve this a Java class is written which will is used to call the parameters and this java class is called in XSLT mapping.Hence the combination of Java and XSLT mapping is used to acheive the purpose.

In my scenario, I have 4 fields in the input structure

1.FirstName.

2.LastName.

3.Date of joining

4. Serial.

And the fields in the output structure are as below.

1.Name – concatenation of FirstName + LastName.

2. Date of joining-For this field parameterized mapping is used i.e. Date is obtained as parameter from Integration directory.

Step1:

Create Data Types.

One data Type for Input.

One for Output

Step 2:

Create Message Types and Service Interfaces.Just use the data types created and create 2 message types and 2 service interfaces for Input & Output Structures.

Step 3.

Create Java project in NWDS.

1.Open NWDS->New Java project.

2.Then Create a package and class which is used for parameterized mapping for Date field and the export the same as .jar file.