当前位置:网站首页>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 .
边栏推荐
- 【youcans 的图像处理学习课】总目录
- [Unity]使用GB2312,打包后程序不正常解决方案
- How much do you know about free SSL certificates? The difference between free SSL certificate and charged SSL certificate
- 题解:《压缩技术》(原版、续集版)
- Daily question: 1175 Prime permutation
- Mysql常用命令详细大全
- Independent and controllable 3D cloud CAD: crowncad enables innovative design of enterprises
- de4000h存储安装配置
- OpenFOAM:lduMatrix&lduAddressing
- 免费SSL证书知多少?免费SSL证书和收费SSL证书的区别
猜你喜欢
[cloud native database] what to do when encountering slow SQL (Part 1)?
能自动更新的万能周报模板,有手就会用!
Unity skframework framework (XVI), package manager development kit Manager
OpenFOAM:lduMatrix&lduAddressing
Unity SKFramework框架(二十一)、Texture Filter 贴图资源筛选工具
Countermeasures for the failure of MMPV billing period caused by negative inventory of materials in SAP mm
Unity skframework framework (XVII), freecameracontroller God view / free view camera control script
诚邀青年创作者,一起在元宇宙里与投资人、创业者交流人生如何做选择……...
解答:EasyDSS视频点播时音频是否可以设置为默认开启?
Unity skframework framework (XVIII), roamcameracontroller roaming perspective camera control script
随机推荐
What are eNB, EPC and PGW?
Embedded software development
De4000h storage installation configuration
Explanation of 34 common terms on the Internet
Sum of the first n terms of Fibonacci (fast power of matrix)
Unity skframework framework (XVIII), roamcameracontroller roaming perspective camera control script
Unity small map production [2]
Mysql常用命令详细大全
Solution: Compression Technology (original version and sequel version)
[technology development-22]: rapid overview of the application and development of network and communication technology-2-communication Technology
[Unity]使用GB2312,打包后程序不正常解决方案
When tidb meets Flink: tidb efficiently enters the lake "new play" | tilaker team interview
Quantum three body problem: Landau fall
Android kotlin fragment technology point
Unity skframework framework (XV), singleton singleton
D为何链接不了dll
Partner cloud form strong upgrade! Pro version, more extraordinary!
MAC (MacOS Monterey 12.2 M1) personal use PHP development
Add sequence number column to query results in MySQL
Android kotlin material design technology points