Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to create the simplest iFlow on SAP Cloud Platform integration

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to create the simplest iFlow on SAP Cloud Platform integration. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have some understanding of the relevant knowledge after reading this article.

Log in to the SAP CPI console and click the pencil icon to enter the work area:

Select an existing content package:

Create a new iFlow in this content package:

The default generated iFlow model is as follows. Delete Sender, because in this simplest iFlow, we use timer to trigger:

After deleting the Sender, the following figure is shown:

Select a Timer as the iFlow trigger:

Drag tinmer to the integration process area, select the Scheduler property, and set it to Run Once- to run once.

Drag and drop another Content Modifier to the integration process area, switch to message body, and maintain a Hello World:

Connect start timer to content modifier:

Add a groovy script:

Click the create tab of the script step:

Create a new text file locally, paste the following groovy code in, and save it as test.groovy:

Import com.sap.gateway.ip.core.customdev.util.Message; import java.util.HashMap; def Message processData (Message message) {def body = message.getBody (java.lang.String) as String; def messageLog = messageLogFactory.getMessageLog (message); if (messageLog! = null) {messageLog.addAttachmentAsString ("Log current Payload:", body, "text/plain");} return message;}

Upload the local groovy file to the script step:

Then connect the Content modifier to the Groovy Script for recent deployment.

After the deployment is successful, go to the operation view to see the implementation of the iFlow you just deployed. Click tile "All Integration Flows":

Status: successful execution

You can see the attachments previously stored in groovy script in the attachment area:

MessageLog.addAttachmentAsString ("Log current Payload:", body, "text/plain")

This is the end of the simplest iFlow presentation:

On how to create the simplest iFlow on SAP Cloud Platform integration to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report