Skip to Content
0
Oct 21, 2022 at 09:02 AM

How to import a Groovy class reference in Resources->References in CPI?

605 Views

As shown in Modularising CPI Groovy scripts using POGO | SAP Blogs classes that are in other scripts are available by importing them with:

import src.main.resources.script.ClassName

They just sitting in:

image.png

What happens when I put such a class in a separate package? What is the import path then?

image.png

I tried to move the class directly to a file in Common Script Collection and the import doesn't work. When the class is in the Local file the import works.

Attachments

image.png (29.0 kB)
image.png (59.0 kB)