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
filling
scenes
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

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.

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. A rule configuration method applicable to multiple scenes is characterized by comprising 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.
2. The method according to claim 1, wherein the determining a setting rule according to the parameters included in the scene and the data types of the parameters specifically comprises:
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.
3. The method according to claim 1, wherein the filling values are stored according to different parameters in the setting rule, 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.
4. The method as claimed in claim 1, wherein the querying of 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;
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.
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 海尔优家智能科技(北京)有限公司 Intelligent scene enabling method and device, electronic equipment 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 海尔优家智能科技(北京)有限公司 Intelligent scene enabling method and device, electronic equipment 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
CN109165248B (en) A kind of management system and management method based on API
CN109213519B (en) Heterogeneous API adaptation processing method and system
CN107277086B (en) Service processing system, service processing method and service updating method
CN108509392B (en) Multi-mechanism account checking method, system, computer equipment and storage medium
CN110119292A (en) System operational parameters querying method, matching process, device and node device
US20070294672A1 (en) Support apparatus, program, information processing system and suport method
CN110046287A (en) A kind of the data query method, apparatus and storage medium unrelated with type of database
CN105868196A (en) Method for generating industrial data report in server
CN1996878A (en) A method for information conversion of the simple object access protocol service management interface
CN105808772A (en) Data defining file generation method and device
CN109933486B (en) Logistics data monitoring processing method, device and system
CN113407546A (en) Rule configuration method suitable for various scenes
CN105868170A (en) Method for generating industrial data report in server
CN106095511A (en) A kind of server updating method and apparatus
CN112395339B (en) Intersystem data admission verification method, device, computer equipment and storage medium
CN113157975B (en) Extensible markup language parsing system and method
CN102238593A (en) Data cut-over method and device
US20060195814A1 (en) System and method for using MPW integration service on demand
CN113239048B (en) Data management method and device, electronic equipment and storage medium
CN115454849A (en) Software testing method and device, electronic equipment and storage medium
CN115269548A (en) Method and system for generating data warehouse development model and related equipment
CN114547060A (en) Government affair data exchange method and system
US20110131182A1 (en) Automatic comparison of roaming data or routing data
CN104040537A (en) Systems and methods of automatic generation and execution of database queries
CN106201606A (en) software distribution method and system

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