<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Testing Cloud Integration Groovy 4 in Integration Forum</title>
    <link>https://community.sap.com/t5/integration-forum/testing-cloud-integration-groovy-4/m-p/14317619#M210</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I wanted to check with you about an issue I’m not able to overcome. I watched your video on the topic “Future-proof your scripts in SAP Cloud Integration” by &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/40"&gt;@MortenWittrock&lt;/a&gt;&amp;nbsp;on DevOctoberFest, interesting one&lt;/P&gt;&lt;P&gt;In the past, I have been using the Exchange object for several things, and I’d like to future-proof those scripts, but I haven’t been able to get it working.&lt;/P&gt;&lt;P&gt;In my tenant, I’m testing this very simple Groovy script:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// This Groovy Flowstep Version 2, running with Groovy 4, Downgrade the script if older behaviour needed.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;import com.sap.it.script.v2.api.Message&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;import com.sap.it.script.v2.api.proxy.Exchange&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;def Message processData (Message message)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Exchange e = message.exchange&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;message.setProperty("ExchangeName",e.getContext().getName())&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;message.setProperty("GroovyVersion",GroovySystem.version)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;return message&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This is exactly the same script used in the demo (Min 27 Second 17), but in my tenant, even after upgrading the Groovy version for this script, it’s throwing the following exception (during simulation and also in runtime):&lt;/P&gt;&lt;P&gt;&lt;EM&gt;unable to resolve class com.sap.it.script.v2.api.proxy.Exchange&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;@ line 4, column 1.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;import com.sap.it.script.v2.api.proxy.Exchange&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Am I missing something? I’m finding it difficult to leverage this Groovy 4 feature, and I couldn’t find much information on the provided classes either.&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Mikel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jan 2026 10:49:22 GMT</pubDate>
    <dc:creator>MMZ</dc:creator>
    <dc:date>2026-01-29T10:49:22Z</dc:date>
    <item>
      <title>Testing Cloud Integration Groovy 4</title>
      <link>https://community.sap.com/t5/integration-forum/testing-cloud-integration-groovy-4/m-p/14317619#M210</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I wanted to check with you about an issue I’m not able to overcome. I watched your video on the topic “Future-proof your scripts in SAP Cloud Integration” by &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/40"&gt;@MortenWittrock&lt;/a&gt;&amp;nbsp;on DevOctoberFest, interesting one&lt;/P&gt;&lt;P&gt;In the past, I have been using the Exchange object for several things, and I’d like to future-proof those scripts, but I haven’t been able to get it working.&lt;/P&gt;&lt;P&gt;In my tenant, I’m testing this very simple Groovy script:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// This Groovy Flowstep Version 2, running with Groovy 4, Downgrade the script if older behaviour needed.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;import com.sap.it.script.v2.api.Message&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;import com.sap.it.script.v2.api.proxy.Exchange&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;def Message processData (Message message)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Exchange e = message.exchange&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;message.setProperty("ExchangeName",e.getContext().getName())&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;message.setProperty("GroovyVersion",GroovySystem.version)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;return message&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This is exactly the same script used in the demo (Min 27 Second 17), but in my tenant, even after upgrading the Groovy version for this script, it’s throwing the following exception (during simulation and also in runtime):&lt;/P&gt;&lt;P&gt;&lt;EM&gt;unable to resolve class com.sap.it.script.v2.api.proxy.Exchange&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;@ line 4, column 1.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;import com.sap.it.script.v2.api.proxy.Exchange&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Am I missing something? I’m finding it difficult to leverage this Groovy 4 feature, and I couldn’t find much information on the provided classes either.&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Mikel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 10:49:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/integration-forum/testing-cloud-integration-groovy-4/m-p/14317619#M210</guid>
      <dc:creator>MMZ</dc:creator>
      <dc:date>2026-01-29T10:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Testing Cloud Integration Groovy 4</title>
      <link>https://community.sap.com/t5/integration-forum/testing-cloud-integration-groovy-4/m-p/14331094#M233</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;You probably mean this class:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;com.sap.it.script.v2.api.&lt;SPAN&gt;Exchange&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 18 Feb 2026 14:04:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/integration-forum/testing-cloud-integration-groovy-4/m-p/14331094#M233</guid>
      <dc:creator>manish_kn</dc:creator>
      <dc:date>2026-02-18T14:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Testing Cloud Integration Groovy 4</title>
      <link>https://community.sap.com/t5/integration-forum/testing-cloud-integration-groovy-4/m-p/14339463#M240</link>
      <description>&lt;P&gt;Thanks Manish!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2026 09:52:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/integration-forum/testing-cloud-integration-groovy-4/m-p/14339463#M240</guid>
      <dc:creator>MMZ</dc:creator>
      <dc:date>2026-03-02T09:52:12Z</dc:date>
    </item>
  </channel>
</rss>

