Skip to Content
Technical Articles

How to reuse existing mapping, schema and most importantly scripts from other Integration flows in new Integration Flow.

Introduction : 

In lots of projects I have noticed multiple interfaces require a to use same schema , mapping and scripts. Scripts are something which should be written only once and should be reused across different interfaces if needed. For example logging payload or exception script which  are used mostly. You dont need to write or copy same code again and again.

CPI has feature to reuse the Archive scripts , mapping and schema which you can get from local file system and other Integration flow. There is option to reuse mapping from ESR as well.

 

Step1 : Create a new Package or use existing Package.

Step 2: Create an Iflow, go to Resources Tab->

 

Step 3: Click on Add-> Archive/Schema/Mapping/Script from Local File System or existing Integration Flow form another package.

 

 

  1. If you want to Add Schema -> XSD /WSDL EDMX (Any type)

 

 

2. Add Mapping-> MM/OM/XSLT mapping from Local/ESR/Integration Flow

 

 

 

3. Add Script-> File System/ Integration Flow

4. There is option add Archive as well.

Conclusion

Reusing already build scripts will save you lot of build time. You can write few standard scripts at the beginning of the project and can use those across all interfaces.

Hope this will help you in reusing your existing components.

1 Comment
You must be Logged on to comment or reply to a post.