on 2023 Nov 07 12:57 PM
Hi,
With Integration Suite comes the option to create groovy scripts.
I have created a few simple scripts by now, mainly by looking at examples and lots of trial and error.
But i would like to learn it better in a more structured way.
So i would i like to know if there are recommended books, or websites that will provide with a good start for groovy?
And maybe also what are recommended tools to use, like what is good editor, or easy to use tools for trying out the code i create.?
Kr
Robert
Hello Robert,
I would echo what Morten and Daniel have already recommended. Let me add a few tips that I found helpful throughout my learning journey of Groovy when put in the context of SAP Cloud Integration.
You may find a lot of printed books and digital content on the above topics - some (just a very few) links that I provided are really starting points. As it has already been mentioned by Dhruvin, you may also check an SAP PRESS E-Bite Developing Groovy Scripts for SAP Cloud Platform Integration here which I had the pleasure and honour to co-author with Eng Swee Yeoh and where we tried to cover both basics of Groovy programming language and its application to some common use cases and scenarios in the context of SAP Cloud Integration.
As for tooling, as Morten has already suggested, the choice of a code editor / IDE is subjective - if you already use a general-purpose code editor / IDE, you may try extending its use to Groovy development activities, too (assuming it either has native support for Groovy or can be extended with a relevant plugin/extension). For Groovy development, I personally prefer to use IntelliJ IDEA, but some advanced code editors (such as VS Code) and IDEs (such as Eclipse) can be used for Groovy development, too.
Morten has already suggested getting Groovy installed on your machine locally so that it becomes more convenient to develop and run Groovy code snippets. I would definitely support this recommendation. As a more advanced option, you can then use dev containers (such as described here for VS Code). This will help keep your developer machine lean and clean, but this will require Docker installed on your machine or accessible on the remote host and will require some basic knowledge of Docker (or general containerization), so can be considered for the future as an alternative to installing Groovy runtime locally for a more advanced setup of your development environment.
Regards,
Vadim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Robert
Great question! Your approach to this is the right one, in my opinion. Scripting in SAP Cloud Integration is programming, and programming has a fairly steep learning curve, so it makes sense to learn a bit more of the language first, and then apply that knowledge in the more specific context of the Script step in SAP Cloud Integration.
A good place to start is this page on the official Groovy website. It links to quite a few books and courses. The Groovy in Action book from Manning is the usual go-to reference, but it has not been updated for a while now. On the other hand, it does cover Groovy 2.4 which is the version still used in SAP Cloud Integration.
As for tools, that is sort of subjective. I would install Groovy on your local machine and start playing around with it (remember to install the version that's actually in SAP Cloud Integration, i.e. 2.4). Visual Studio Code is a really nice, lightweight code editor, but go with any editor or IDE that you like.
Best wishes for your Groovy journey!
Regards,
Morten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The official guide is quite good and combined with Chatgtp
For running CPI i a groovy you can also use some editors like that makes it easy to run Groovy for SAP Cloud Integration without any limitations.
For more complicated scarios we also have some in figaf https://figaf.com/the-right-editor-for-your-groovy-editing/
use SAP Press E-bite : Developing Groovy Script for SAP CPI
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.