当前位置:网站首页>How to import workflows provided on SAP API hub to sap BTP
How to import workflows provided on SAP API hub to sap BTP
2022-06-11 21:23:00 【Hua Weiyun】
The website links :https://developers.sap.com/tutorials/cp-starter-ibpm-employeeonboarding-2-configure.html
- SAP Workflow service: helps to digitalize workflows and quickly orchestrate tasks that span people, applications, and organizations.
SAP Workflow service can digitize the enterprise operation process , Let's go across the organizational structure of the enterprise , The task of application and employee can work together .
Through these tasks ( For example, approval , Order fulfillment , And time sensitive partner collaboration ) Automation and seamless tracking and coordination of , Enterprise productivity can be improved .

You can enhance productivity by automating and tracking coordinated, account-able tasks – including approvals, order fulfillment, or time-sensitive partner collaboration.
The sample business rule used in this scenario is published in API Business Hub.
Link address :
https://api.sap.com/package/EquipmentDeterminationRules?section=Artifacts

SAP Business Rules service is part of SAP Workflow Management which enable business users & application developers to automate their decisions and enhance their decision-making experience. It offers simplified Fiori-based rule authoring tool & a central rule repository with various deployment options to different runtimes.
SAP Business Rules Service yes SAP workflow management Part of , Enable business users and application developers to automate their decision making , And enhance the experience of decision making .
SAP Business rules Service Provides a simplified solution based on Fiori Rules authoring tools and rules repository in different styles , And various deployment options , Support the deployment of multiple running environments .
- SAP Process Visibility service:
SAP Process visibility Services : Provide the right to run on cloud perhaps On-Premises Or insight into process visibility in a mixed environment .
provides visibility into processes that run in the cloud, on-premise, or in hybrid environments.
Process visibility works on events. SAP or non-SAP applications (cloud or on-premise) push events into Process Visibility.
Process visibility Event based work , Receive from SAP perhaps Not SAP Application event push .
These events are persisted, processed and enhanced to form end-to-end process instances with insights, which are visualized by business users in their process workspace.
These events are persisted and further enhanced , Form insightful end-to-end process instances . Business users in their process workspace ( One Fiori Launchpad tile The name of ) In a visual way .
The insights enable business users to identify process bottlenecks, track process performance, and operational issues and act on them.
These insights enable business users to identify process bottlenecks 、 Track and take action on process performance and operational issues .
BUSINESSRULES_APIHUB destination is used in Manage Rule Projects application to import business rules from API Business Hub.
from API Business Hub Import business rule.
This destination is already created in the previous set up tutorial, and now you will configure the destination for the password.

Ensure that Destination Be able to work normally :

Create a new system:


Point to SAP API Business Hub:
stay Manage Projects in , choice Import Project from API Business Hub:


choice Equipment determination business rules:


If you encounter Bad gateway error Error messages for , Check Destination Whether the user name and password maintained in are correct :

If you get Bad Gateway Error error, then check the username and password you have used in BUSINESSRULES_APIHUB destination. If your user is 2-Factor-Authentication enabled, then the password will be password+passcode. This passcode will expire in a minute.

Click this button :
Click on deploy Button :
You can choose Deploy To Cloud Runtime or Success Factors, Here we choose the former .

Deployment success :
Only deployed business rules can be consumed via APIs published in API Business Hub.
Download the source code of this example program :
https://github.com/SAP-samples/cloud-workflow-samples/blob/master/cf-onboarding-sample/resources/cf-onboarding-sample.zip

Sign in SAP Business Application Studio:
Create a dev space:

Make sure space be in running state :
open workspace, Import reference workflow application :


The open workflow The project is shown in the following figure :

This MTA The core of the application is this workflow onboard.workflow:

Starting event :
This workflow includes the following :
- A group called determine equipment Of service task:


- script task:
Determine the required equipment for the employees :
This script task Implementation , be located script file in :
The values of these fields come from sample Data:

service task:
business rule:
Input and output :
- user task:confirmation of the equipment selected via business rules and for the approval of equipment.
Confirmed by business rules Select the equipment And approval .

This user task The receiver of :info.startedBy, in other words , Who started this workflow example , Who will receive Change or Confirm Equipment This task:


these user task Of UI, Realize in forms Under the folder :
Select... In the project folder mta.yaml file , Right click to select from the menu :Build MTA Project:
Upper figure Build MTA Project Menu for , What is actually carried out is mta build -s ‘/home/user/projects/cf-onboarding-sample’ The command line :


build After success , stay mta_archives Folder , It generates a .mtar Compressed package :

Through the menu Deploy MTA Archive, Put this in a package , Deploy to runtime :

User name and password required , stay SAP Business Application Studio Log in from SAP BTP:

Successfully logged in :

choice CloudFoundry In the environment organization and space:


You can use the following command line to view the log :
cf dmol -i 4f65fe6d-cf36-11eb-a329-eeee0a914605


Use Fiori Launchpad tile Configure Visibility Scenarios:

Create a new scenario:


Put what you created before workflow Add to this scenario Li Lai , such , You can use it later scenario, View the workflow Implementation details of :

workflow Of id, You can get it from the source code :
after ,onboard All the events and contexts of the workflow have been successfully imported :
Create a new sub-status:




About subsequent testing , Reference resources Jerry The article :SAP Business technology platform (SAP Business Technology Platform) Workflow Workflow function introduction
边栏推荐
- Network security Kali penetration learning introduction to web penetration using MSF penetration to attack win7 host and execute commands remotely
- JUnit tests multithreaded code, and the sub thread does not run
- Product information | Poe network card family makes a collective appearance, the perfect partner of machine vision!
- RANSAC提取圆柱(MATLAB内置函数)
- js对返回的数据的各种数据类型进行非空判断。
- Field queryIndexFieldnameService in xxxImpl required a single bean, but 19 were found:
- 2021牛客多校5 Double Strings
- Diary at 16:29:41 on June 9, 2022
- 解决 img 5px 间距的问题
- 成长的12条黄金法则
猜你喜欢

Live broadcast with practice | 30 minutes to build WordPress website with Alibaba cloud container service and container network file system

Tensorflow 2. X Getting Started tutorial

Only 38 years old! Zhou Chuan, a researcher of the Chinese Academy of Sciences, died unfortunately. Rao Yi sent a document to mourn: he guided me when he was still my student

Goland中在文件模板中为go文件添加个人声明

The official announced the launch of Alibaba's 2023 global school recruitment: Technical Posts account for more than 60%

Part I physical layer

Live broadcast with practice | 30 minutes to build WordPress website with Alibaba cloud container service and container network file system

Network security Kali penetration learning introduction to web penetration using MSF penetration to attack win7 host and execute commands remotely

New product release: lr-link Lianrui launched the first 25g OCP 3.0 network card

数据库每日一题---第9天:销售员
随机推荐
Frequency domain filter
Diary at 16:29:41 on June 9, 2022
LabVIEW控制Arduino实现超声波测距(进阶篇—5)
bzoj3188 Upit
使用 float 创建一个网页页眉、页脚、左边的内容和主要内容。
Application business layer modification
How to manually send events exposed by SAP commerce cloud mock application using SAP kyma console
Bug -- coredump usage
RANSAC提取圆柱(MATLAB内置函数)
[game theory complete information static game] strategic game
正则校验匹配[0-100]、[0-1000]之间的正整数或小数点位数限制
JVM方法区
实现 TabLayout 下标与文字等长,选中字体大小改变
2021-09-11 训练场补题
Part I physical layer
关于gorm的preload方法笔记说明
gateway先启动其他微服务,在启动网关,网关启动不了,且无异常日志;先启动网关,所有服务能正常启动
JVM之对象创建过程
JUnit tests multithreaded code, and the sub thread does not run
Product information | Poe network card family makes a collective appearance, the perfect partner of machine vision!