Simplify your SAP CPI development process with Gra...
Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
Simplify Cloud Integration in an IDE with Gradle Plugins[CM104]Thursday, Dec 1010:40 AM - 11:00 AM CET
See how the open-source Gradle plugins for SAP Cloud Platform Integration Suite and SAP API Management can improve the way you deliver SAP integration projects.
I hope you will be joining that session.
I’ll be interview by marina.pontjakova on the topic.
I wanted to use this blog as a way to bring some more details about the things that we will be covering so you can get started with using the tools to simplify your development processes.
Why Gradle Plugins
About a year ago I wanted to improve the way people were developing SAP CPI. To edit Groovy scripts in the build-in the editor was not optimal. And if you needed to upload/download your scripts it was possible but a little complicated.
I thought the easiest would be to create an eclipse plugin as we have seen for SAP PI and for SAP CPI. It would have a number of downsides among others that it would only be used on Eclipse and testing would be challenging.
The team convinced me that it would be better to use Gradle to handle the process. The cool thing about Gradle that it is used in normal build processes, so it is really flexible in what you are able to achieve with it.
A challenge that it needed to be configured to run the tasks that developers wanted, like upload, download, and deploy. To handle this we provided some templates via the Figaf DevOps Tool so you did not need to spend a lot of time figuring out how to configure the plugins.
For each plugin there are some requirements on how folder structure should be created and how to create the configuration.
Your IDE must also have the Gradle installed so you can run it there.
Once everything is configured correctly you can see the data in
Once you click the upload iflow the task will be run
How does the plugin help you?
It makes it simple to perform develop the places where you have the most productivity. So you can edit in a real editor and try to run your new code without leaving your editor. This will enable you to debug mapping scripts, which will speed up the development process even more.
You will still need to use both the SAP CPI WebUI and your IDE to maintain the specific processes.
Challenges
The biggest challenge is that you still need to develop to places both in your IDE and then in the SAP CPI UI. I don't really see a good place where it can change.
And you cannot really be two developers working on the same iflow at one point in time. Sure they can work on different Groovy scripts but it will end up with challenges once they want to test in the development system.
There can be some exotic ways it can be handled and it will probably require more CPI systems.
How to get started
By far the easiest way to initialize the plugins is to use the Figaf DevOps Tool to create the Git repository for your SAP CPI. In this blog post you can see a 20-minute video about installing the Figaf Tool, Connection to SAP CPI, Create a Git repository, and create test cases to run unit test scripts with so you can debug your Groovy scripts.
Next steps DevOps
A lot of people want to be able to deliver SAP CPI with the help of Azure DevOps or other similar platforms. We have been able to use the same Gradle Plugins to support the process. It is the same kind of steps that are needed to deploy the integration at each platform.