CN113407546A - Rule configuration method suitable for various scenes - Google Patents

Rule configuration method suitable for various scenes Download PDF

Info

Publication number
CN113407546A
CN113407546A CN202110795489.6A CN202110795489A CN113407546A CN 113407546 A CN113407546 A CN 113407546A CN 202110795489 A CN202110795489 A CN 202110795489A CN 113407546 A CN113407546 A CN 113407546A
Authority
CN
China
Prior art keywords
rule
parameters
configuration
parameter
scenarios
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110795489.6A
Other languages
Chinese (zh)
Inventor
郭宏光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shouyue Technology Beijing Co Ltd
Original Assignee
Shouyue Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shouyue Technology Beijing Co Ltd filed Critical Shouyue Technology Beijing Co Ltd
Priority to CN202110795489.6A priority Critical patent/CN113407546A/en
Publication of CN113407546A publication Critical patent/CN113407546A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Stored Programmes (AREA)

Abstract

本发明公开了一种适用多种场景的规则配置方法,所述配置方法包括:获取网约车的多种场景、所述场景中包含的参数和所述参数的数据类型;根据所述场景中包含的参数和所述参数的数据类型确定设置规则;根据所述设置规则中的不同的参数填充值并保存,获得填充参数值规则;根据所述填充参数值规则查询填写规则内容中符合需求的配置。能够支持特殊场景的规则配置,支持规则参数类型丰富,满足各种场景配置,支持规则验证,保证设置的准确性,操作简单,适配多种场景,无需再次开发了。

Figure 202110795489

The present invention discloses a rule configuration method applicable to various scenarios. The configuration method includes: acquiring various scenarios of online car-hailing, parameters included in the scenarios, and data types of the parameters; The included parameters and the data types of the parameters determine the setting rules; fill and save the values according to different parameters in the setting rules, and obtain the filling parameter value rules; according to the filling parameter value rules, query and fill in the content of the rules that meet the requirements. configuration. It can support rule configuration for special scenarios, support a wide range of rule parameter types, meet various scenario configurations, support rule verification, ensure the accuracy of settings, simple operation, adapt to a variety of scenarios, and no need to develop again.

Figure 202110795489

Description

Rule configuration method suitable for various scenes
Technical Field
The invention belongs to the technical field of network taxi appointment services, and particularly relates to a rule configuration method applicable to various scenes.
Background
In the prior art, for some configuration rules, a relevant data table is established, relevant parameters are recorded, and a query interface is provided for data query. Each rule needs to repeat the same workload, increases, modifies, queries, deletes and the corresponding rule query interface, and has redundant codes and complex maintenance. Even if compatible configuration rules can be carried out, the support types are limited, parameter verification rules cannot be supported, and special scenes cannot be covered.
The method takes a network appointment system as an example, sets a unique identifier for a newly added rule, and associates the identifier with the parameter name of the current rule and the parameter value of the rule. And a uniform interface is provided to adapt to all rule queries. Meanwhile, the rule parameter values support various types including input boxes, single selection, multiple selection and the like, and support the verification of filling rules including whether the rules need to be filled, a limit value and a numerical value type. Customized policy configuration is supported for some special scenarios, such as setting configuration with dimensions of city, vehicle type, and service type.
The coverage scenes in the prior art are limited, and special scene configuration cannot be supported. The supported parameter type is single, and the parameter rule verification is not supported. The reusability is poor, and a large number of redundant codes are not beneficial to development and maintenance. And a large number of rule configuration tables of the database are complex to maintain. The problem of troubleshooting is complex.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a rule configuration method suitable for various scenes.
In order to achieve the purpose, the invention adopts the following technical scheme:
a rule configuration method applicable to multiple scenes comprises the following steps:
acquiring a plurality of scenes of the online taxi appointment, parameters contained in the scenes and data types of the parameters;
determining a setting rule according to parameters contained in the scene and the data types of the parameters;
filling values according to different parameters in the setting rule and storing the filling values to obtain a filling parameter value rule;
and inquiring the configuration meeting the requirements in the filling rule content according to the filling parameter value rule.
Optionally, the determining a setting rule according to the parameters included in the scene and the data types of the parameters specifically includes:
setting corresponding rule names according to various scenes for obtaining corresponding unique rule identifications;
setting a parameter name and a parameter value type in association according to the unique rule identifier, and representing specific affairs and types of corresponding scenes;
setting parameter dimensions according to contents contained in the plurality of scenes, and performing customization processing to obtain customized scenes;
and setting a verification rule of the parameters according to the customized scene, wherein the verification rule is used for verifying the mandatory property, the uniqueness and the boundary value of the current parameters.
Optionally, the filling values according to different parameters in the setting rule and storing the filling values, and the obtaining the filling parameter value rule specifically includes:
acquiring the configuration corresponding to the scene;
filling in the value of the corresponding configuration parameter according to the configuration;
checking the dimensionality corresponding to the configuration parameters, and selecting configuration meeting conditions in configuration query;
and verifying whether the value of the parameter of the configuration meets the requirement according to the requirement when the rule is set.
Optionally, the querying, according to the filling parameter value rule, the configuration meeting the requirement in the filling rule content specifically includes:
receiving parameters for verifying the rule identification;
according to the rule identification query information, verifying whether the configuration is carried out;
setting corresponding reference identifiers according to multiple dimensions, and storing the reference identifiers;
and D, data which accord with dimensionality when being filled according to the input parameter storage value screening rule.
In summary, due to the adoption of the technical scheme, the invention has the beneficial effects that: the invention discloses a rule configuration method applicable to various scenes, which comprises the following steps: acquiring a plurality of scenes of the online taxi appointment, parameters contained in the scenes and data types of the parameters; determining a setting rule according to parameters contained in the scene and the data types of the parameters; filling values according to different parameters in the setting rule and storing the filling values to obtain a filling parameter value rule; and inquiring the configuration meeting the requirements in the filling rule content according to the filling parameter value rule. The rule configuration of special scenes can be supported, the supported rule parameter types are rich, the configuration of various scenes is met, the rule verification is supported, the setting accuracy is ensured, the operation is simple, the method is suitable for various scenes, and the redevelopment is not needed.
Drawings
FIG. 1 is a flow chart of a rule configuration method applicable to various scenarios according to the present invention;
fig. 2 is a flowchart for determining a setting rule according to a parameter included in the scene and a data type of the parameter in an embodiment of the present invention;
fig. 3 is a flowchart of a rule for filling parameter values according to different parameters in the setting rule and saving the filling values to obtain the filling parameter values in the embodiment of the present invention;
fig. 4 is a flowchart of querying a configuration meeting requirements in the content of the filling rule according to the filling parameter value rule in an embodiment of the present invention.
Detailed Description
The following further describes a specific embodiment of a rule configuration method applicable to various scenarios according to the present invention with reference to fig. 1. The rule configuration method applicable to various scenarios of the present invention is not limited to the description of the following embodiments.
As shown in fig. 1, a rule configuration method applicable to multiple scenarios includes:
step 100: and acquiring various scenes of the networked appointment vehicle, parameters contained in the scenes and data types of the parameters.
Step 200: and determining a setting rule according to the parameters contained in the scene and the data types of the parameters.
Step 300: and filling values according to different parameters in the setting rule and storing to obtain a filling parameter value rule.
Step 400: and inquiring the configuration meeting the requirements in the filling rule content according to the filling parameter value rule.
As shown in fig. 2, determining a setting rule according to a parameter included in a scene and a data type of the parameter specifically includes:
setting corresponding rule names according to various scenes for obtaining corresponding unique rule identifications; adding a rule name, and generating a unique rule identifier: the generation of the rule name and the unique identifier determines a scene for the current rule, namely the scene corresponds to the code, and the settings of different parameters and dimensions in the scene are all related around the code.
Setting parameter names and parameter value types in association according to the unique rule identification, and representing specific affairs and types of corresponding scenes;
setting parameter dimensions according to contents contained in various scenes, and performing customization processing to obtain customized scenes; whether the parameters need to be set in (city, vehicle type, service type) dimension: the parameter dimension (city, vehicle type, service type) is customized for the content that most scenes may contain, so as to achieve the effect of what dimension is needed to take what to use.
And setting a verification rule of the parameters according to the customized scene, wherein the verification rule is used for verifying the mandatory property, the uniqueness and the boundary value of the current parameters. Setting a verification rule of the parameters: the parameter rule is set for verifying the necessity, uniqueness, boundary value and the like of the current parameter.
Storing the setting rule: and after all the settings are finished and stored, the scene can be configured.
As shown in fig. 3, the filling values are stored according to different parameters in the setting rule, and the obtaining the filling parameter value rule specifically includes:
acquiring configuration corresponding to a scene; selecting a rule: there may be multiple configurations for a scene, and one configuration needs to be selected for operation.
Filling the corresponding values of the configuration parameters according to the configuration; filling parameter contents: all parameters and types under the scene are confirmed when the rule is set, and the value corresponding to the configuration parameter needs to be filled in aiming at the configuration of the operation.
Whether dimension (city, service type, vehicle type) is included, the corresponding data is selected: the checking of the parameters corresponding to the dimensions is to select the configuration which meets the conditions (corresponding to cities, service types and vehicle types) when the configuration query is carried out. Checking the dimensionality corresponding to the configuration parameters, and selecting the configuration meeting the conditions during configuration query;
and verifying whether the value of the parameter of the configuration meets the requirement according to the requirement when the rule is set. And (4) verifying the rule: and verifying whether the values of the parameters of the configuration meet requirements (uniqueness, mandatory items and boundary values) according to the requirements when the rules are set. And (4) storing the rule content: and if the current configuration is stored, a configuration for the scene is added or modified.
As shown in fig. 4, the querying the configuration meeting the requirement in the filling rule content according to the filling parameter value rule specifically includes:
receiving parameters for verifying the rule identification;
inquiring information according to the rule identifier, and verifying whether the configuration is carried out;
setting corresponding parameter identification according to multiple dimensions, and storing the parameter identification;
and screening data which accord with dimensionality when being filled according to the input parameter storage value screening rule.
Receiving parameters, verifying rule identification (rule identification must be transmitted): the rule identification is the only standard for confirming the scene and must be transmitted.
The rule identification inquires about the information, verify whether dispose: different entry identifiers are set for different dimensions, and if the entry values are stored, the data which are in line with the dimensions when the rules are filled in are screened according to the entry parameters.
Verify the presence of the query field (rule parameters) and return: and returning according to the result after the screening query.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (4)

1.一种适用多种场景的规则配置方法,其特征在于,所述配置方法包括:1. A rule configuration method applicable to multiple scenarios, wherein the configuration method comprises: 获取网约车的多种场景、所述场景中包含的参数和所述参数的数据类型;Obtain various scenarios of online car-hailing, the parameters included in the scenarios and the data types of the parameters; 根据所述场景中包含的参数和所述参数的数据类型确定设置规则;Determine the setting rule according to the parameters contained in the scene and the data type of the parameters; 根据所述设置规则中的不同的参数填充值并保存,获得填充参数值规则;Fill values according to different parameters in the setting rules and save them to obtain the rules for filling parameter values; 根据所述填充参数值规则查询填写规则内容中符合需求的配置。According to the filling parameter value rule, the configuration that meets the requirements in the filling rule content is queried. 2.根据权利要求1所述的一种适用多种场景的规则配置方法,其特征在于,所述根据所述场景中包含的参数和所述参数的数据类型确定设置规则具体包括:2. The method for configuring rules applicable to multiple scenarios according to claim 1, wherein the determining the setting rules according to the parameters contained in the scenarios and the data types of the parameters specifically comprises: 根据多种场景设置对应的规则名称,用于获得对应的唯一规则标识;Set the corresponding rule name according to various scenarios to obtain the corresponding unique rule ID; 根据所述唯一规则标识关联设置参数名称和参数值类型,用于表示对应场景的具体事务和类型;Set the parameter name and parameter value type according to the unique rule identification association, which are used to represent the specific transaction and type of the corresponding scene; 根据所述多种场景包含的内容设置参数维度,进行定制化处理,获得定制化场景;Set parameter dimensions according to the content contained in the multiple scenarios, perform customized processing, and obtain customized scenarios; 根据所述定制化场景设置参数的验证规则,用于验证当前参数的必填性、唯一性、边界值。The verification rules for parameters are set according to the customized scenario, and are used to verify the mandatory, unique, and boundary values of the current parameters. 3.根据权利要求1所述的一种适用多种场景的规则配置方法,其特征在于,所述根据所述设置规则中的不同的参数填充值并保存,获得填充参数值规则具体包括:3. The method for configuring rules applicable to multiple scenarios according to claim 1, wherein the filling and saving according to different parameters in the setting rules, and the rules for obtaining filling parameter values specifically include: 获取所述场景对应的配置;obtain the configuration corresponding to the scene; 根据所述配置填写对应的配置参数的值;Fill in the value of the corresponding configuration parameter according to the configuration; 勾选所述配置参数对应的维度,用于在配置查询的时候选取符合条件的配置;Check the dimension corresponding to the configuration parameter to select the configuration that meets the conditions when configuring the query; 根据设置规则时的需要验证该条配置的参数的值是否符合要求。Verify whether the value of the configured parameter meets the requirements according to the needs of the rule setting. 4.根据权利要求1所述的一种适用多种场景的规则配置方法,其特征在于,所述根据所述填充参数值规则查询填写规则内容中符合需求的配置具体包括:4. The method for configuring a rule applicable to multiple scenarios according to claim 1, wherein the querying and filling in the rule content according to the filling parameter value rule specifically includes: 接收参数,用于验证规则标识;Receive parameters to verify the rule ID; 根据所述规则标识查询信息,验证是否配置;Identify the query information according to the rule, and verify whether it is configured; 根据多种维度设定了对应的入参标识,将所述入参标识存值;Corresponding input parameter identifiers are set according to various dimensions, and the input parameter identifiers are stored as values; 根据所述入参存值筛选规则填写时符合维度的数据。Data that conforms to the dimension when filled in according to the input parameter storage value filtering rule.
CN202110795489.6A 2021-07-14 2021-07-14 Rule configuration method suitable for various scenes Pending CN113407546A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110795489.6A CN113407546A (en) 2021-07-14 2021-07-14 Rule configuration method suitable for various scenes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110795489.6A CN113407546A (en) 2021-07-14 2021-07-14 Rule configuration method suitable for various scenes

Publications (1)

Publication Number Publication Date
CN113407546A true CN113407546A (en) 2021-09-17

Family

ID=77686370

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110795489.6A Pending CN113407546A (en) 2021-07-14 2021-07-14 Rule configuration method suitable for various scenes

Country Status (1)

Country Link
CN (1) CN113407546A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114356438A (en) * 2021-12-14 2022-04-15 海尔优家智能科技(北京)有限公司 Smart scene enabling method and device, electronic device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106204285A (en) * 2016-07-14 2016-12-07 深圳麦亚信科技股份有限公司 Insurance rules process method based on cloud computing and system
CN108628604A (en) * 2018-04-24 2018-10-09 携程计算机技术(上海)有限公司 The parameter value generation method and system of SOA request messages
CN109582681A (en) * 2018-10-26 2019-04-05 平安科技(深圳)有限公司 Business data processing method, device, computer equipment and storage medium
US20200175120A1 (en) * 2018-11-29 2020-06-04 International Business Machines Corporation Multiple parameter based composite rule data validation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106204285A (en) * 2016-07-14 2016-12-07 深圳麦亚信科技股份有限公司 Insurance rules process method based on cloud computing and system
CN108628604A (en) * 2018-04-24 2018-10-09 携程计算机技术(上海)有限公司 The parameter value generation method and system of SOA request messages
CN109582681A (en) * 2018-10-26 2019-04-05 平安科技(深圳)有限公司 Business data processing method, device, computer equipment and storage medium
US20200175120A1 (en) * 2018-11-29 2020-06-04 International Business Machines Corporation Multiple parameter based composite rule data validation

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114356438A (en) * 2021-12-14 2022-04-15 海尔优家智能科技(北京)有限公司 Smart scene enabling method and device, electronic device, and storage medium
CN114356438B (en) * 2021-12-14 2023-08-18 海尔优家智能科技(北京)有限公司 Intelligent scene starting method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107273116B (en) Method for producing code using framework-based code generation tool
CN109213519B (en) Heterogeneous API adaptation processing method and system
CN108509392B (en) Multi-agency reconciliation method, system, computer equipment and storage medium
US20060053120A1 (en) Web service registry and method of operation
CN100403263C (en) How to download device software by configuration
CN110046287A (en) A kind of the data query method, apparatus and storage medium unrelated with type of database
CN110119292A (en) System operational parameters querying method, matching process, device and node device
CN103095475A (en) Routing Inspection method and system of multimode communication equipment
US20120030223A1 (en) Extensibility of business process and application logic
CN105868196A (en) Method for generating industrial data report in server
CN110909013A (en) Service list generation method, device, equipment and computer readable storage medium
CN105868170A (en) Method for generating industrial data report in server
CN104899134A (en) Automatic domain name registration server testing system and method
CN109933486B (en) Logistics data monitoring processing method, device and system
CN113407546A (en) Rule configuration method suitable for various scenes
CN106095511A (en) A kind of server updating method and apparatus
CN113239048B (en) Data management method and device, electronic equipment and storage medium
US10169737B2 (en) Converting assets for reuse during manufacturing
CN114579569A (en) Rule engine establishing method and device based on attribute identification
CN109343891A (en) System, the method and device of data processing
CN113934710B (en) Data acquisition method and device
CN111125110B (en) Non-primary key field checking method, device, computer equipment and storage medium
CN115269548A (en) Method and system for generating data warehouse development model and related equipment
US20060195814A1 (en) System and method for using MPW integration service on demand
CN117950718B (en) Software and firmware publishing method, system and storage medium based on cloud platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210917