如何在SAP Cloud Platform上進行第一個integration flow開發

i042416發表於2019-12-10

登入SAP Cloud Platform integration tenant,點選Edit圖示:

如何在SAP Cloud Platform上進行第一個integration flow開發

建立一個新的Content package:

如何在SAP Cloud Platform上進行第一個integration flow開發 如何在SAP Cloud Platform上進行第一個integration flow開發

儲存content package後,點選artifacts標籤頁,此處建立integration flow:

如何在SAP Cloud Platform上進行第一個integration flow開發

點選Add,選擇integration flow:

如何在SAP Cloud Platform上進行第一個integration flow開發 如何在SAP Cloud Platform上進行第一個integration flow開發

儲存:

如何在SAP Cloud Platform上進行第一個integration flow開發

然後就可以進行iFlow的編輯了:

如何在SAP Cloud Platform上進行第一個integration flow開發

建立sender channel:把integration flow切換成編輯模式,點選這個箭頭,把它拖到Start圖片位置:

如何在SAP Cloud Platform上進行第一個integration flow開發 如何在SAP Cloud Platform上進行第一個integration flow開發

Adapter型別選擇HTTPS:

如何在SAP Cloud Platform上進行第一個integration flow開發

維護Address:

如何在SAP Cloud Platform上進行第一個integration flow開發

選擇message converter:

如何在SAP Cloud Platform上進行第一個integration flow開發

json to xml converter:

如何在SAP Cloud Platform上進行第一個integration flow開發

選中後放到integration process方框內,看到一條綠色的線:

如何在SAP Cloud Platform上進行第一個integration flow開發

再選擇Content Modifier:

如何在SAP Cloud Platform上進行第一個integration flow開發

拖到integration process裡:

如何在SAP Cloud Platform上進行第一個integration flow開發

選擇call->external call:

如何在SAP Cloud Platform上進行第一個integration flow開發

將External Call的request reply同Receiver建立連線,adapter型別選擇OData V2:

如何在SAP Cloud Platform上進行第一個integration flow開發

選擇這個OData V2 adapter,在connection標籤頁的Address欄位裡,維護這個地址:
https://espmrefapps.hana.ondemand.com/espm-cloud-web/espm.svc

如何在SAP Cloud Platform上進行第一個integration flow開發

點選processing標籤頁,再點Select按鈕:

如何在SAP Cloud Platform上進行第一個integration flow開發

選擇Step2:

如何在SAP Cloud Platform上進行第一個integration flow開發

從Select Entity的下拉選單裡選擇Products:

如何在SAP Cloud Platform上進行第一個integration flow開發 如何在SAP Cloud Platform上進行第一個integration flow開發

點選step3按鈕:

如何在SAP Cloud Platform上進行第一個integration flow開發

在step3的選擇頁面裡,點選F4選擇ProductId:

如何在SAP Cloud Platform上進行第一個integration flow開發

操作型別選擇Equal,值維護成${header.productIdentifier}:

如何在SAP Cloud Platform上進行第一個integration flow開發

這樣,當inbound HTTP請求裡攜帶的product ID傳入Odata adapter時,後者會呼叫odata取得product明細。點選Deploy進行部署。

如何在SAP Cloud Platform上進行第一個integration flow開發

點這個圖示檢視部署情況:

如何在SAP Cloud Platform上進行第一個integration flow開發 如何在SAP Cloud Platform上進行第一個integration flow開發 如何在SAP Cloud Platform上進行第一個integration flow開發

等到部署成功後,就可以測試了:

如何在SAP Cloud Platform上進行第一個integration flow開發

在postman裡輸入上圖的endpoints:

如何在SAP Cloud Platform上進行第一個integration flow開發

通過執行odata adapter,得到結果:

如何在SAP Cloud Platform上進行第一個integration flow開發

測試成功。

要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":

如何在SAP Cloud Platform上進行第一個integration flow開發


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2667668/,如需轉載,請註明出處,否則將追究法律責任。

相關文章