cancel
Showing results for 
Search instead for 
Did you mean: 

CPI Scope of java archive

03-24-2020 8:03 PM
MatthiasFricke Participant
686 views 1 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Hello,

I am new to CPI and I see that I can upload a java archive to an Iflow.

For modularization purposes it would be nice to be able to access these classes from all the Iflows sitting in one package.

Is this possible?

Or even better, to have some sort of usage dependency even on package level as in SAP PI/PO.

So that I would create a package containing my generic artefacts, which could be used elsewhere if needed.

Any ideas?

Thanks

Matthias

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

MortenWittrock
SAP Mentor
SAP Mentor

Hi Matthias

At this point, you can't share archives between iflows. When you add a Java archive resource, you can choose to add it from another iflow instead of the file system on your computer, but you'll be adding a copy of the archive.

As for alternatives, you might be able to move a mapping or a script to a new iflow, and then access it via the ProcessDirect adapter from multiple other iflows. Not exactly the resource sharing, you probably had in mind, but better than nothing.

For further discussion of this approach, please see the first tip in the blog post Eng Swee’s tips for CPI development by engswee.yeoh.

Regards,

Morten

Answers (0)