cancel
Showing results for 
Search instead for 
Did you mean: 

Read IFlow name or id via Groovy script

r_herrmann
Active Contributor
0 Kudos

Hello,

I would like to know if it is possible to read an IFlow's name or id (=Artiface ID) via Groovy script? I already checked all available headers propagated. but couldn't find a matching one.

Ist it possible to read this values? Maybe via reflection?

Regards,
Raffael

Accepted Solutions (1)

Accepted Solutions (1)

Sriprasadsbhat
Active Contributor

Hello Rafel,

${camelId} will give you the Iflow name but unfortunately you cant access this as a part of header or property directly in your script.You might need to put a content modifier like below and get the iflow name stored in some header or property and then pull the same in your script.

Regards,

Sriprasad Shivaram Bhat

r_herrmann
Active Contributor

Thanks for the quick answer. In combination with this article, it should even be possible without the additional Content Modifier. https://blogs.sap.com/2018/04/05/using-camels-simple-in-cpi-groovy-scripts/

Answers (0)