When I worked in SAP Chengdu Research Institute, I used SAP's workflow solution in standard product development and project prototype development. I recently learned that the Huawei Cloud Kaitian aPaaS platform has opened a public beta. One of the highlights mentioned is its streaming function, which made me interested, so I applied for a free public beta account to experience it.
HUAWEI CLOUD Kaitian aPaaS platform, as the name suggests, is an enterprise-level Platform-as-a-Service solution like SAP BTP. It is an industry experience aggregation and open platform jointly built and shared by HUAWEI CLOUD and its partners in the ecosystem.
On the console of HUAWEI CLOUD's aPaaS platform, place the function navigation bar on the left of the screen, and click the corresponding navigation menu to enter the corresponding function operation page. The default display is the Home Page, which contains the resources that the current user has created, including streams, API lifecycle management, model management, and more.
We can click Create Flow From Template
, and we can quickly create our own stream by doing some simple configuration work based on the standard template preset on the Kaitian platform.
Click View All Template to see a list of all streams preset by the current platform:
Click this Region list to view all regions currently supported by the platform:
Switch the console display language here:
We switched to a Chinese display that is easier for everyone to read.
Select the template of ---4397c49aa0d49c3578f742fd93aa8fb7 每早8点发送热点新闻到邮箱
and click 创建流
:
The template prompt wizard will pop up the following flow content list to prompt the creator. This flow mainly includes three parts:
- Schedule: that is, the triggering condition of the flow
- The hot search list of the whole network: that is, the content output during the stream execution process, through the way of API, read the hot search list of the whole network of the day
- NetEase 126 mailbox: recipient of the stream
These three parts are the connectors of the Kaitian platform in terms of type:
For the specific purpose of each connector, you can find the corresponding connector in the interface opened by the 连接器->公共连接器
menu, and enter the details page to view:
Here you can view the specific format of the input and output parameters of 全网热搜榜
.
Go back to the flow creation wizard and click the Continue button to enter the flow editing interface. The above three components of the flow are shown graphically here.
We can customize these steps by clicking one by one in the editing interface of the flow. 重复执行
d6c4c07fc948084d8850d0379f8ed5c9---的触发条件模块,这里可以对首次运行时间
, 重复执行方式
, 重复周期
.
Turn on the option of 查看元数据
, and you can see the corresponding JSON data generated after we complete the custom editing of this trigger condition module. These data are exactly the execution flow of the running engine of HUAWEI CLOUD Kaitian aPaaS platform. At the time, the metadata of the corresponding step of the flow that needs to be parsed.
The trending news list does not provide customization options, which is a black box for users.
Finally, there is the module for sending emails. Here, specify the email address to which the hot search news list obtained through API access in the previous step should be sent.
In the module customization interface for sending emails, you can customize the subject and content of the email. As shown in the figure below, in the email content area, the placeholder 热搜新闻榜单.热搜内容摘要
will be replaced by the actual content returned by the Kaitian platform API at runtime. We can modify the subject of the email, and add some extra strings in the body of the email, such as the following figure 您的华为云助手
.
After all three components of the flow are executed successfully, click Save and Test, and then click the Run button:
A prompt message pops up: The operation was successful. Click on the hyperlink of 查看运行状态
:
In the console, under the current login user name, the number of successfully running resources has become 1:
On the flow execution page, you can view the execution details of a single step, such as the time consumed, the input to execute the step, and the output data generated by the step:
For example, the output data of this step of the hot search news list is a JSON object:
From these response data structures, we can find the API endpoint for this step to obtain the hot search list data: http://applications-service.default.svc.cluster.local:8090/v1/news
Checking the NetEase mailbox, I did find an email from HUAWEI CLOUD:
Summarize
From the creation process of the above stream, we can feel that for the requirements of 采集全网热搜榜
and 定时发送热搜榜到指定邮箱
, HUAWEI CLOUD Kaitian platform provides a low-code solution that combines API calls and scheduled jobs These technical details are scheduled and encapsulated, so that even users without any programming background can easily achieve these needs that can make their lives easier and more convenient through the graphical modeling function of the flow editor.
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。