当前位置:网站首页>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 .
边栏推荐
- Is the stock account opened by qiniu Gang safe and reliable?
- 2022 electrician (elementary) operation certificate examination question bank and online simulation examination
- QT actual combat case (38) -- using qpprocess class to realize the function of starting process
- 基于Three.js海上风电数字孪生三维效果
- 2022 operation of simulated examination platform for hoisting machinery command certificate
- Start blogging
- Mgr and greatsql resource summary
- [kubernetes guide ⑤] label quick start
- 2202 resume making
- 如何实现OSM地图本地发布并自定义配图
猜你喜欢
Heilongjiang Branch and Liaoning Branch of PostgreSQL Chinese community have been established!
Embedded pipeline out of the box
Introduction to message oriented middleware (message queue)
How to get Matplotlib figure size
Dry goods sharing | BitSet application details
Actual combat | inductance element positioning -- detailed explanation of Halcon and opencv implementation (with source code)
Record 5 - the serial port of stm32f411ceu6 realizes the sending and receiving of fixed length data and variable length data
TCP与UDP
Model over fitting - solution (II): dropout
Common message oriented middleware selection
随机推荐
Buuctf-[ciscn 2019 preliminary]love math
Opencv source code compilation
Sequence maximum return
2022年危险化学品经营单位安全管理人员考试试题及在线模拟考试
[opencv learning] use the Tesseract OCR movement to recognize numbers
Pytorch common parameter initialization methods: [uniform distribution, normal (Gaussian) distribution, Xavier, Kaiming, orthogonal matrix, sparse matrix, constant, identity matrix, zero filling]
测试平台系列(97) 完善执行case部分
实战 | UI 自动化测试框架设计与 PageObject 改造
Introduction to message oriented middleware (message queue)
Design MySQL table structure for message queue to store information data
如何让矢量瓦片配图神器maputnik支持 geoserver
dict和set的基本操作
Leetcode 890 finding and replacing patterns [map] the leetcode path of heroding
Design a MySQL table for message queue to store message data
Lower interest rates lead to higher bond prices
cookie
Deep feature synthesis and genetic feature generation, comparison of two automatic feature generation strategies
MySQL row to column, column to row, multiple columns to one row, one row to multiple columns
Embedded pipeline out of the box
How to package a colorpicker component for color selection?