当前位置:网站首页>How to manually send events exposed by SAP commerce cloud mock application using SAP kyma console
How to manually send events exposed by SAP commerce cloud mock application using SAP kyma console
2022-06-11 21:22:00 【Hua Weiyun】
website :https://developers.sap.com/tutorials/cp-kyma-microservice-trigger.html
The local path :
C:\Code\referenceCode\SAP Kyma Tutorial examples \api-mssql-go
(1) This tutorial relies on the Commerce mock application to publish events into the Kyma runtime.
(2) bind the Commerce mock application to the dev Namespace
(3) we will create a service instance of the SAP Commerce Cloud - Events.
(4) The service instance will allow for any microservice or lambda function within the dev Namespace to subscribe to these events by defining an event subscription.
With this help mock Applied service instance, We can get dev Any microservice or Lambda Function, subscribe service instance Exposed Events .
The subscription pairs an event source, the Commerce mock application, and the event type, order.created, to a subscriber.
Subscription is actually an abstraction , Contains event sources ,mock application , And subscription event types .
The source code for this subscription , use yaml The document is defined as follows :
apiVersion: eventing.kyma-project.io/v1alpha1kind: Subscriptionmetadata: name: api-mssql-go-event-subspec: filter: filters: - eventSource: property: source type: exact value: "" eventType: property: type type: exact value: sap.kyma.custom.mp-commerce-mock.order.created.v1 protocol: "" protocolsettings: {} sink: http://api-mssql-go.dev.svc.cluster.local:80/orderCodeEvent stay cmd/api/main.go in , by /orderCodeEvent This endpoint, Register a handler :ConsumeOrderCode

bind the mock application to the dev Namespace. This process is used to enable the usage of the APIs and events of the mock application to the bounded Namespace.
hold mock Apply binding to dev namespace, Only in this way can the application of this namespace , Consume this mock Events exposed by the application .


For mock The application exposes event, Create a instance.
Click on dev namespace, Get into Service Management -> Catalog, choice mp-commerce-mock application :
Choose the mock application service plan Medium SAP Commerce Cloud - Events:

spot Add Button , Create a new instance :
test
stay API rules in , Click on commerce-mock Of host Hyperlinks :
https://commerce.c-46d70f2.kyma.shoot.live.k8s-hana.ondemand.com/

choice remote API:
choice SAP Commerce Cloud - Events:
Event topic In the drop-down list , choice order.created.v1, Click again Send Event that will do :

边栏推荐
- A problem of setting the private library of golang
- LabVIEW controls Arduino to realize ultrasonic ranging (advanced chapter-5)
- New product release: lr-link Lianrui launched the first 25g OCP 3.0 network card
- Jenkins+allure integrated report construction
- One article to show you how to understand the harmonyos application on the shelves
- 【C语言进阶】整型在内存中的存储
- The scale of the global machine vision market continues to rise. Poe image acquisition card provides a high-speed transmission channel for industrial cameras
- 2021牛客多校5 Double Strings
- Serval and Rooted Tree(CF1153D)-DP
- Serval and Rooted Tree(CF1153D)-DP
猜你喜欢

Flutter implements the JD address selection component

Goto statement of go language

SQL的语法

JVM对象分配策略TLAB

Release of version 5.6 of rainbow, add multiple installation methods, and optimize the topology operation experience

Solve the problem of img 5px spacing

Add personal statement for go file in file template in Golan
![[nk] deleted number of 100 C Xiaohong in Niuke practice match](/img/f1/a99600e1800c087aceb60a559dee39.png)
[nk] deleted number of 100 C Xiaohong in Niuke practice match

How to Load Data from CSV (Data Preparation Part)

【博弈论-完全信息静态博弈】 战略式博弈
随机推荐
RANSAC提取圆柱(MATLAB内置函数)
How to manually drag nodes in the Obsidian relationship graph
Common file functions
LabVIEW controls Arduino to realize ultrasonic ranging (advanced chapter-5)
js对返回的数据的各种数据类型进行非空判断。
How to Load Data from CSV (Data Preparation Part)
Go language conditional statement
Database daily question --- day 9: salesperson
成长的12条黄金法则
JVM之对象创建过程
[Part 14] source code analysis and application details of completionservice class [key]
Pyqt5 technical part - set the default value of qcombobox drop-down box and get the current selection of the drop-down box
Three waves of changes in cloud computing
UML系列文章(29)体系结构建模---模式和框架
Which Bluetooth headset is better within 500? Inventory of gifts for girls' Day
Go语言函数
[Game Theory - introduction]
Release of version 5.6 of rainbow, add multiple installation methods, and optimize the topology operation experience
Application scenario: wide application of Poe network card in NDI technology for live broadcast program production
New product release: domestic single port Gigabit network card is officially mass produced!