当前位置:网站首页>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 .
边栏推荐
- [Blue Bridge Cup] children's worship circle
- How much do you know about free SSL certificates? The difference between free SSL certificate and charged SSL certificate
- Add sequence number column to query results in MySQL
- Error function ERF
- 研究表明“气味相投”更易成为朋友
- Unity skframework framework (XIII), question module
- Embedded software development
- Independent and controllable 3D cloud CAD: crowncad enables innovative design of enterprises
- Unity SKFramework框架(十六)、Package Manager 開發工具包管理器
- SAP MM 因物料有负库存导致MMPV开账期失败问题之对策
猜你喜欢

We sincerely invite young creators to share with investors and entrepreneurs how to make choices in life in the metauniverse

Research shows that "congenial" is more likely to become friends

Halcon extract orange (Orange)

Unity SKFramework框架(二十)、VFX Lab 特效库

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

How to modify the error of easydss on demand service sharing time?

The 29 year old programmer in Shanghai was sentenced to 10 months for "deleting the database and running away" on the day of his resignation!

Unity skframework Framework (XVI), package manager Development Kit Manager

de4000h存储安装配置

Explanation: here is your UFO, Goldbach conjecture
随机推荐
[true topic of the Blue Bridge Cup trials 43] scratch space flight children's programming explanation of the true topic of the Blue Bridge Cup trials
三谈exception——错误处理
量子三体问题: Landau Fall
MAC (MacOS Monterey 12.2 M1) personal use PHP development
What are eNB, EPC and PGW?
【OpenGL】笔记二十九、高级光照(镜面高光)
验证失败,请检查您的回电网址。您可以按照指导进行操作
leetcode621. 任务调度器
Error function ERF
Unity skframework framework (XIX), POI points of interest / information points
Fundamentals of machine learning (II) -- division of training set and test set
D为何链接不了dll
[Blue Bridge Cup] children's worship circle
Unity SKFramework框架(十二)、Score 计分模块
On flow delivery between microservices
Chinese name extraction (toy code - accurate head is too small, right to play)
大家信夫一站式信用平台让信用场景“用起来
When tidb meets Flink: tidb efficiently enters the lake "new play" | tilaker team interview
Pocket Raider comments
混沌工程平台 ChaosBlade-Box 新版重磅发布