当前位置:网站首页>SAP Business Technology Platform (BTP) workflow function introduction
SAP Business Technology Platform (BTP) workflow function introduction
2022-06-12 23:43:00 【Hua Weiyun】
So called workflow , It's a tool for business process automation , It's a series of steps 、 A task or event consists of .
As a giant of enterprise management software in the world ,SAP Naturally, we have our own workflow solutions . The oldest and most classic , Of course it is SAP ABAP Workflow.


SAP CRM A classic workflow use case , That is, the customer sends an email to the corresponding email address of a call center :
adopt SAP CRM Workflow created in the background , The sending of this email , Will trigger the call center to automatically create a corresponding entry , For the agent to handle :
as well as SAP Cloud for Customer Workflow in :

Previous post SAP Business technology platform (BTP) Upper Business Rules Service Introduction , We have used SAP BTP Cockpit Boosters Medium Set up account for Workflow Management, Fast finish in SAP Business Technology Platform( Hereinafter referred to as" SAP BTP) Upper use Workflow The configuration required for the function .

The article also shows how to create... Step by step SAP Business Rules And how to use it HTTP POST The way , To call the Rule Service.

In this paper, we start from SAP API Hub Import a SAP Published standards Business Rules, Use this standard Rules To learn SAP BTP Workflow Usage of .
Get into Manage Projects application , choice Import Project from API Business Hub:

From you to API Business Hub Import content into SAP BTP, It needs to be in the first place SAP BTP Configure a point to API Hub Logical system of , Name it JerryAPIHub, Contains a Destination:

Destination The name is BUSINESSRULES_APIHUB, This Destination The name of is SAP BTP Cockpit in , choice Basic Authentication The way , Input login API Hub Username and password .

Destination And after the creation of the logic system , You can start from API Hub Import SAP Standard issued Business Rule 了 , be known as Equipment Determination Business Rules:

Import the Rules after , Deploy it to Cloud Runtime, So that it can be created later in this article Workflow application , adopt HTTP POST Consumption mode .

This Business Rule Used for new employee induction scenarios (onboarding), According to some fields on the employee model , Decide what type of computer equipment it should use (Equipment).

Next , We can use Business Application Studio, To develop a Workflow application .
About this SAP BTP More about development tools , Refer to my article :SAP A new generation of full stack development tools :SAP Business Application Studio.
from SAP Github Download a Reference Workflow Apply to local , Then import it to SAP Business Application Studio in .
This is a SAP BTP MTA(Multi-Target Application) application , Refer to my article for more details :SAP Trident application in cloud platform .

The core logic of this application is implemented in the file onboard.workflow in , Here is a brief introduction to the key steps .
Prepare Rules Payload: The type is Script Task The task of , Its implementation lies in Engineering scripts Under folder PrepareRulesPayload.js In the document .

The follow-up to the task Determine Equipment, We will pass HTTP Post Consumption has just been deployed in SAP BTP Cloud Runtime Upper Business Service, So we need to be in this area Script Task Do some simple coding inside , assemble HTTP Post The remote invocation Business Service Required input parameters :

Determine Equipment: This is a Service Task, adopt Restful API Way to call Destination BUSINESS_RULE Point to the Business Service.

Destination Detailed maintenance of these fields , stay Jerry Previous post SAP Business technology platform (BTP) Upper Business Rules Service Introduction It has been introduced in detail .

This Restful API The output of the call , Stored under the name EquipmentsInfo Of Data Object in :
Change or Confirm Equipment: This is a User Task, The user can call Business Rule The returned result contains the device information , Adjust and confirm . For this task UI, Implemented in the folder forms Of ConfirmOrChangeEquipment.form In the document . After the user confirms , Go to the next approval process :

Approve Equipment: This is also a User Task, You need to manually click Approve or Reject, Approval or rejection of computer equipment .

Apply the app build after , Generate a archive file , Then use the right-click menu to deploy the file :

Last , Let's test this Workflow The running effect of the application . Get into Configure Visibility Scenarios application , Create a new Scenario. Process Visibility Scenario Used to receive workflow Events , Provides a visual interface for users to browse the execution details of workflow .


Import us into SAP Business Application Studio Inside id by onboard Of Workflow Model , Import into this Scenario Li Lai , You can see all the events and contexts in the steps .

Let's trigger the workflow application manually , Observe the implementation details . Entry application Monitor Workflows:

choice Start New Instance, Create a new workflow instance :

Because I was SAP Business Application Studio in Workflow When modeling , It has been specified that Start Event Support Sample Context, And configured a json File as Sample Data:
So whenever you create a new Workflow When an instance , Its input data can be obtained from Sample Data It's automatically brought out of the room . choice Start New Instance and Close:

go back to Fiori Launchpad, Now my in box Inbox in , Added an entry :
There's a lot going on behind this :Workflow In the application Determine Equipment Service Task To be carried out , adopt HTTP POST, Consumption is deployed in SAP BTP Upper Business Rules Service, The latter is based on what we are doing Start New Instance From Sample Data, Return the automatically determined equipment details .

Here's what happened before Workflow In application modeling User Task The runtime interface of . What the list shows , This is the picture above HTTP POST Back to EquipmentsInfo data . Here I look at the return results , After confirmation , Click on Confirm Button , Go to the next step of the workflow, the approval process .

In the approval process , I can choose Approve perhaps Reject:

stay Monitor Workflows Instances In the application , You can see the execution details of the workflow task so far :

For example, we can observe the use of HTTP Post call SAP BTP Business Service Of endpoint, And the time it took :
thus ,SAP Business Technology Platform This is the end of the introduction to the use of workflow on . Thank you for reading .
边栏推荐
- [issue 30] shopee golang development experience
- Leetcode 2200. 找出数组中的所有 K 近邻下标(可以,一次过)
- SAP QM qp03 displays an inspection plan with multiple specs inspection features
- Software development tools [3] theoretical basis of software development tools
- 华为云会议初体验【华为云至简致远】
- CST learning: four element array design of circular patch antenna (II) array formation and combination results
- Mgr and greatsql resource summary
- Preparing for the Blue Bridge Cup Day11__ Basic operation of serial port communication
- Deep feature synthesis and genetic feature generation, comparison of two automatic feature generation strategies
- C # graphic tutorial (Fourth Edition) chapter7-7.6.1 virtual and override
猜你喜欢

QT actual combat case (38) -- using qpprocess class to realize the function of starting process

CV - baseline summary (development history from alexnet to senet)

Zhengzhou University of light industry -- development and sharing of harmonyos pet health system

2022年危險化學品經營單比特安全管理人員考試試題及在線模擬考試
![[opencv learning] use the Tesseract OCR movement to recognize numbers](/img/ed/92e5261c9abda4e79d58e9404d3aee.jpg)
[opencv learning] use the Tesseract OCR movement to recognize numbers

OSM地图本地发布-如何生成各省市矢量地图
![[redis sentinel] failed listening on port 26379 (TCP) & sentinel mode no response problem solved](/img/0e/d734cd835d44361d6d93cc1be81c98.jpg)
[redis sentinel] failed listening on port 26379 (TCP) & sentinel mode no response problem solved

移动安全必备之CS呢【NETHUNTER】

设计消息队列存储消息数据的 MySQL 表格

Test platform series (97) perfect the case part
随机推荐
Record 5 - the serial port of stm32f411ceu6 realizes the sending and receiving of fixed length data and variable length data
RT thread quick start - experience RT thread
Leetcode 2164. Sort odd and even subscripts separately (yes, once)
[redis sentinel] failed listening on port 26379 (TCP) & sentinel mode no response problem solved
House raiding 2
Operation of simulation test platform for G3 boiler water treatment test questions in 2022
Industry reshuffle, a large number of programmers are going to lose their jobs? How can we break the current workplace dilemma
Buuctf-[ciscn 2019 preliminary]love math
〖Kubernetes指南④〗Pod快速入门
Alien skin exposure X7 color filter plug-in, raw post-processing tool
SAP QM qp03 displays an inspection plan with multiple specs inspection features
Enterprise wechat H5_ Authentication, H5 application web page authorization login to obtain identity
2022 electrician (elementary) operation certificate examination question bank and online simulation examination
Message queue directory
Based on three JS offshore wind power digital twin 3D effect
How to get Matplotlib figure size
CV—BaseLine总结(从AlexNet到SENet的发展历程)
2022年危險化學品經營單比特安全管理人員考試試題及在線模擬考試
NCF 的Dapr应用实例的运行
[North Asia data recovery] data recovery cases in which the partitions disappear and the partitions are inaccessible after the server reinstalls the system