Quantcast
Channel: SCN : Popular Discussions - SAP Process Orchestration
Viewing all articles
Browse latest Browse all 1306

HCI Custom functions using Groovy Script

$
0
0

Hi,

 

As of now we don't have PI/PO in our landscape .So for writing custom Functions in mapping I need to go for Groovy script.

 

I have a simple requirement of string array concatenation .

 

Below is my code snippet for the same:

 

import com.sap.it.api.mapping.*;
def String StringArrayConcatFunc(String Text[]){  def a ;     a = Text.join(",");    return a ;
}

I executed the above code in standalone groovy console ,its working fine .I created the custom function in mapping and used the above code -->save

 

Now when I click on "ExecuteChecks" or when I deploy the project it's showing error in mapping @custom function that I used saying "

Mapping contains incomplete expressions"

 

MapError1.jpg

 

But I can able to see the file in the folder.

 

GrooviScriptFile.jpg

 

Seems groovy script file is not loading into functional library while executing checks or while deploying into tenant.

 

Dear HCI experts could you please advice.It would be really helpful for me as well as others those who are new to using groovy script in HCI. Looping in @Sujit Hemachandran  .

 

 

 

Thanks

Venkat


Viewing all articles
Browse latest Browse all 1306

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>