当前位置:网站首页>How to use SAP's metadata framework (MDF) to build custom business rules?
How to use SAP's metadata framework (MDF) to build custom business rules?
2022-07-02 13:39:00 【Jiedao jdon】
SAP SuccessFactors Using metadata framework (MDF) Objects and business rules do a lot of things . Business rules apply to many different situations , And there are a lot of documents about how to use them . Unfortunately , There is a clear lack of guidelines for customized solutions .
If an enterprise must use several connected business rules , How do they achieve their desired behavior from these rules ?
It is sad , The business rules have not been explained very clearly , This makes those enterprises who want to implement customized solutions feel that they must find out the truth through experiments . We will introduce how enterprises use MDF Some basic knowledge that you need to know when customizing solutions for business rules of objects .
Switch the scene context to “ be based on MDF The rules of the object ”
The basic scenario is not based on MDF Designed for the object of , So scenario “ be based on MDF The rules of the object ” It is more suitable for what we are trying to do . It provides many benefits for enterprises , These include :
- Completely built into the expansion center
- Only functions suitable for specific purposes are covered
- Allows you to navigate from a business rule to the event that invokes it
Whenever an enterprise intends to use MDF Object time , Suggest they use these “ be based on MDF The rules of the object ”, Because this scenario is user-friendly and reliable .
Create new rules
Creating a new custom rule will display the fields that need to be edited to complete the rule settings .
The rules ID
Editable only if no object is selected .ID crucial , Because it is the way we import and export business rules and their allocation to object definitions . The rule name should contain the fixed facts about the rule , for example :
- Abbreviation of implementation project
- Basic object code
- The purpose of the rule
- Save the code type of the business rule
therefore , for example , Effective rules ID It may be similar to COMPANY_Position_externalCode_Evaluate.
Rule name
The rule name can be changed at any time . Rule name and rule ID Always visible when represented in the configuration tool . Because the rule name is in the system UI Is visible and modifiable , So it is an ideal place to store variable data about rules . Projects such as :
- Such as “ Be deleted ” or “ Be replaced ” Something like that .
- Any event that invokes the rule
- The order in which rules are executed
- The previous rule ID( If there is a predecessor rule of this rule )
- Variable IF Conditions and which fields to change .
Assign event sequence
In any event , The business rules added to the event are executed in the order of addition . Usually , If the rules are independent , This will not cause any problems . however , Some rules require the results of previous rules . In these cases , The order of execution is critical to ensure that there is no interruption . Linking rules together is not uncommon , But some configurations often happen more than others . When configuring these chains ,OnLoad- and Initialize-Purposed The rules can be complicated . supplier - Consumer chains should avoid implementing such chains .Evaluate-Purposed Rules often appear in consumers - In the supplier chain , And apply to OnChange and Save event .
Unfortunately , Workflow specific rules do not respect the allocation order in the object definition . They have a fixed position in the event . stay Sve Incident , First, execute workflow specific rules . On the delete event , Workflow specific rules run after everything else .
Sequencing events
Events are sorted according to the actions that occur on the object .
Tips for writing business rules
that , What should enterprises pay attention to when formulating custom business rules ?
- Business rules should be as simple as possible (KISS principle )
- If there are complex conditions (IF sentence ), They should be simplified as much as possible
- Avoid using logical combinations for a large number of parameters (AND sentence )
- First of all, the most likely situation should be explained
- Any use of double counting or “ Magic ” All numerical things should be replaced by variables
- Business rules should never replace Association and field Standards .
At first glance , Building custom business rules can seem complicated . however , Once one understands how the backend is done , It is easier to master how to write successful rules . They should have a thoughtful name and ID, So that anyone who uses it can clearly describe the rules . They should also be as simple as possible , But don't be so simple as to accomplish nothing . It takes some practice to find a balance in formulating these rules , But it is worth having a leaner system to deal with complex conditions that may affect business efficiency and production .
边栏推荐
- Student course selection information management system based on ssm+jsp framework [source code + database]
- Unity SKFramework框架(二十)、VFX Lab 特效库
- Lucky numbers in the [leetcode daily question] matrix
- Which do you choose between Alibaba P7 with an annual salary of 900000 and deputy department level cadres?
- 2022 zero code / low code development white paper [produced by partner cloud] with download
- Daily question: 1175 Prime permutation
- A better database client management tool than Navicat
- Node. JS accessing PostgreSQL database through ODBC
- Integral link, inertia link and proportion link in Simulink
- Unity skframework framework (XXI), texture filter map resource filtering tool
猜你喜欢

Independent and controllable 3D cloud CAD: crowncad enables innovative design of enterprises

基于ssm+jsp框架实现的学生选课信息管理系统【源码+数据库】

Don't spend money, spend an hour to build your own blog website

混沌工程平台 ChaosBlade-Box 新版重磅发布

Chinese name extraction (toy code - accurate head is too small, right to play)

2022零代码/低代码开发白皮书【伙伴云出品】附下载

OpenAPI generator: simplify the restful API development process

题解《子数整数》、《欢乐地跳》、《开灯》

Unity SKFramework框架(十五)、Singleton 单例

Can automatically update the universal weekly report template, you can use it with your hand!
随机推荐
Android kotlin broadcast technology point
Unity SKFramework框架(十六)、Package Manager 開發工具包管理器
Countermeasures for the failure of MMPV billing period caused by negative inventory of materials in SAP mm
EasyDSS点播服务分享时间出错如何修改?
[cloud native database] what to do when encountering slow SQL (Part 1)?
Unity SKFramework框架(十五)、Singleton 单例
Unity skframework framework (XIII), question module
mysql ---- Oracle中的rownum转换成MySQL
[技术发展-22]:网络与通信技术的应用与发展快速概览-2- 通信技术
运维必备——ELK日志分析系统
Unity skframework framework (XIV), extension extension function
三翼鸟两周年:羽翼渐丰,腾飞指日可待
What are eNB, EPC and PGW?
Redis database persistence
How much do you know about free SSL certificates? The difference between free SSL certificate and charged SSL certificate
题解《子数整数》、《欢乐地跳》、《开灯》
[OpenGL] notes 29. Advanced lighting (specular highlights)
[youcans' image processing learning course] general contents
Sum of the first n terms of Fibonacci (fast power of matrix)
不会看器件手册的工程师不是个好厨子