Survey
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
Name of Solution: Mapping: Using external Jar files in Java Transformation Business Requirement: This Workflow file demonstrates how you can use your jar files in a Java Transformation. Solution URL: https://community.informatica.com/solutions/2380 Supported Versions: PowerCenter 9.1 and 9.5 Description: Java Transformation helps you extend PowerCenter capabilities. It provides a simple native programming interface to define transformation functionality with the Java programming language. You can use the Java transformation to quickly define simple or moderately complex transformation functionality without advanced knowledge of the Java programming language or an external Java development environment. Java transformation also lets you import and use third-party and custom Java packages. This feature not only makes Java Transformation more flexible, but it also lets you leverage any of the existing or complex Java programs that you may already have. The given workflow examples demonstrates steps involved in importing and using thirdparty jar file. Download file contents: 1. Workflow 2. Source File Steps to implement the solution: 1. Place source file in $PMSourceFileDir folder. 2. Import workflow using the Repository Manager. Select the appropriate folder from the repository and resolve the conflicts by choosing suitable option. Please rate this solution and share your feedback on Marketplace Website. 3. In the PowerCenter Designer, open the mapping and open Java transformation. Here click on settings and set the classpath of jar file in the Java transformation as shown below. Note: This jar file should be present on the server machine as well as local/client machine. And the paths of both the locations should be given. 4. Observe the code in “Import Packages”, “Helper Code” and “on Input Row” tabs of Java transformation. Compile the code before running workflow. Please rate this solution and share your feedback on Marketplace Website. Note: The Jar file(named “concat.jar”) used in this mapping is provided within ZIP file. Contents of Jar File: Package Name: concat Class name: Concat Method definition: String con(String str1, String str2) In Importing Packages tab: import concat.Concat; Defining varilabe of this class: Concat object = new Concat(); Calling this method: object.con(str1,str2); 5. This Java transformation concatenates the values of “In_First_Name” & “In_Last_Name”. 6. Open the workflow in Workflow Manager. Assign the integration service in Workflow > Edit -> Integration Service. 7. Edit both the sessions and assign valid connection objects for the targets. 8. For more details of importing object please visit our YouTube link. 9. Execute the workflow and observe the target files. YouTube Video on Importing and Configuring Workflows: http://www.youtube.com/playlist?list=PLLRreK2jjjgWBQ4NPfp0QWTxYDvlnEqSJ Other Useful links: Mapping Bundles Workflow Bundles Informatica Tools Bundles Informatica for Social Media Bundles Debugging Tools Bundles Visio Templates Bundles B2B Templates and Projects Bundles Data Quality Packs and Plans Bundles Script Bundles Please rate this solution and share your feedback on Marketplace Website.