cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to Read, Write and Modify Variable with pure groovy script?

0 Likes
1,449

Is this possible to do?

Accepted Solutions (1)

Accepted Solutions (1)

Sriprasadsbhat
Active Contributor

Hello Jeremy,

It's not possible to handle variables using groovy scripts. But it's possible to modify headers and properties.

Regards,

Sriprasad Shivaram Bhat

Answers (1)

Answers (1)

MortenWittrock
SAP Mentor
SAP Mentor

Hi Jeremy

You can use a Content Modifier to create a property with the contents of the variable:

(The Type could also be Global Variable, of course.)

Then, add a Script step modifying the property. Finally, use a Write Variables step to store the contents of the property back into your variable:

As Sriprasad points out, you can't do all of this in code.

Regards,

Morten