当前位置:网站首页>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 .
边栏推荐
- Verification failed, please check your call back website. You can follow the instructions
- 互联网常见34个术语解释
- 【笔耕不辍勋章活动】生命不止,写作不息
- Explanation: here is your UFO, Goldbach conjecture
- [cloud native database] what to do when encountering slow SQL (Part 1)?
- 文件的下载与图片的预览
- leetcode621. task scheduler
- Japan bet on national luck: Web3.0, anyway, is not the first time to fail!
- EasyDSS点播服务分享时间出错如何修改?
- Word efficiency guide - word's own template
猜你喜欢

Operation tutorial: how does easydss convert MP4 on demand files into RTSP video streams?

Word efficiency guide - word's own template

Unity skframework framework (XVII), freecameracontroller God view / free view camera control script

Engineers who can't read device manuals are not good cooks

Don't spend money, spend an hour to build your own blog website
![Unity small map production [2]](/img/d6/9d6556d37525b9986b74133f2a7aaa.jpg)
Unity small map production [2]

无向图的桥

运维必备——ELK日志分析系统

题解:《你的飞碟在这儿》、《哥德巴赫猜想》

Unity skframework framework (XXI), texture filter map resource filtering tool
随机推荐
中文姓名提取(玩具代码——准头太小,权当玩闹)
记忆函数的性能优化
混沌工程平台 ChaosBlade-Box 新版重磅发布
JS逆向之巨量创意signature签名
Tupang multi-target tracking! BOT sort: robust correlated multi pedestrian tracking
Uniapp develops wechat applet Tencent map function and generates sig signature of location cloud
Lucky numbers in the [leetcode daily question] matrix
能自动更新的万能周报模板,有手就会用!
诚邀青年创作者,一起在元宇宙里与投资人、创业者交流人生如何做选择……...
Quantum three body problem: Landau fall
Unity SKFramework框架(十六)、Package Manager 開發工具包管理器
JS generates 4-digit verification code
Unity SKFramework框架(十六)、Package Manager 开发工具包管理器
Answer: can the audio be set to on by default during easydss video on demand?
解答:EasyDSS视频点播时音频是否可以设置为默认开启?
Chinese name extraction (toy code - accurate head is too small, right to play)
【笔耕不辍勋章活动】生命不止,写作不息
二、帧模式 MPLS 操作
Performance optimization of memory function
EasyDSS点播服务分享时间出错如何修改?