CN111552506B - Service rule configuration method, device and storage medium - Google Patents

Service rule configuration method, device and storage medium Download PDF

Info

Publication number
CN111552506B
CN111552506B CN202010112418.7A CN202010112418A CN111552506B CN 111552506 B CN111552506 B CN 111552506B CN 202010112418 A CN202010112418 A CN 202010112418A CN 111552506 B CN111552506 B CN 111552506B
Authority
CN
China
Prior art keywords
rule configuration
target
configuration file
rule
file
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.)
Active
Application number
CN202010112418.7A
Other languages
Chinese (zh)
Other versions
CN111552506A (en
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.)
Shanghai Envision Innovation Intelligent Technology Co Ltd
Envision Digital International Pte Ltd
Original Assignee
Shanghai Envision Innovation Intelligent Technology Co Ltd
Envision Digital International Pte 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 Shanghai Envision Innovation Intelligent Technology Co Ltd, Envision Digital International Pte Ltd filed Critical Shanghai Envision Innovation Intelligent Technology Co Ltd
Priority to CN202010112418.7A priority Critical patent/CN111552506B/en
Publication of CN111552506A publication Critical patent/CN111552506A/en
Application granted granted Critical
Publication of CN111552506B publication Critical patent/CN111552506B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a business rule configuration method, a business rule configuration device and a storage medium, and relates to the technical field of computer program development. The method comprises the following steps: obtaining a target rule configuration file from a rule configuration platform, wherein the rule configuration platform stores a plurality of rule configuration files defined by different programming languages in a classified mode, and the rule configuration files are files for configuring business rules of an application program; selecting a target processing engine matched with the programming language of the target rule configuration file from candidate processing engines, wherein the candidate processing engines comprise a plurality of processing engines matched with different programming languages; and configuring the target business rule by using the target rule configuration file through the target processing engine. In the technical scheme provided by the embodiment of the application, the first terminal can acquire and use the rule configuration files defined by different programming languages, so that the rule configuration files can be flexibly used.

Description

Service rule configuration method, device and storage medium
Technical Field
The embodiment of the application relates to the technical field of computer program development, in particular to a business rule configuration method, a business rule configuration device and a storage medium.
Background
With the development of computer technology, the development process of computer programs is more and more complex.
In the related art, a terminal can only acquire a rule configuration file configuration service rule defined by a single programming language from a rule configuration platform, which is not flexible enough.
Disclosure of Invention
The embodiment of the application provides a service rule configuration method, a device and a storage medium, which can realize flexible service rule configuration. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides a service rule configuration method, where the method includes:
obtaining a target rule configuration file from a rule configuration platform, wherein the rule configuration platform stores a plurality of rule configuration files defined by different programming languages in a classified mode, and the rule configuration files are files for configuring business rules of an application program;
selecting a target processing engine matched with the programming language of the target rule configuration file from candidate processing engines, wherein the candidate processing engines comprise a plurality of processing engines matched with different programming languages;
and configuring target business rules by the target processing engine through the target rule configuration file.
Optionally, the configuring, by the target processing engine, the target business rule by using the target rule configuration file includes:
reading the target rule configuration file through the target processing engine;
inputting input parameters corresponding to the target rule configuration file into the target processing engine;
and configuring the target business rule in the target processing engine according to the input parameters to obtain output parameters corresponding to the target rule configuration file.
Optionally, the method further comprises:
responding to the configuration abnormality of the target business rule, and determining a preset output parameter corresponding to the target business rule;
and determining the preset output parameter as the output parameter.
Optionally, the method further comprises:
acquiring a configuration update notification, wherein the configuration update notification is used for notifying a terminal storing the target rule configuration file to update the target rule configuration file;
acquiring an updated target rule configuration file from the rule configuration platform according to the configuration update notification;
and storing the updated target rule configuration file in a local storage unit.
In another aspect, an embodiment of the present application provides a service rule configuration method, where the method includes:
receiving a plurality of rule configuration files defined by different programming languages, wherein the rule configuration files are files for configuring business rules of an application program;
according to the service corresponding to the rule configuration file, classifying and storing the rule configuration file;
receiving a configuration file acquisition request sent by a terminal, wherein the configuration file acquisition request is used for requesting acquisition of a target rule configuration file;
and sending the target rule configuration file to the terminal.
Optionally, the storing the rule configuration file in a classified manner according to the service corresponding to the rule configuration file includes:
according to the business corresponding to the rule configuration file, storing the rule configuration file in a database in a classified manner; or, according to the service corresponding to the rule configuration file, storing the rule configuration file in a database in a classified manner, and caching the rule configuration file in a local memory.
Optionally, the method further comprises:
storing a historical version of the target rule configuration file;
and responding to the history version acquisition request, and sending the history version of the target rule configuration file to the terminal sending the history version acquisition request.
In still another aspect, an embodiment of the present application provides a service rule configuration apparatus, where the apparatus includes:
the file acquisition module is used for acquiring a target rule configuration file from a rule configuration platform, wherein the rule configuration platform stores a plurality of rule configuration files defined by different programming languages in a classified mode, and the rule configuration files are files for configuring business rules of an application program;
the engine selection module is used for selecting a target processing engine matched with the programming language of the target rule configuration file from candidate processing engines, wherein the candidate processing engines comprise a plurality of processing engines matched with different programming languages;
and the rule configuration module is used for configuring target business rules by adopting the target rule configuration file through the target processing engine.
Optionally, the rule configuration module is configured to:
reading the target rule configuration file through the target processing engine;
inputting input parameters corresponding to the target rule configuration file into the target processing engine;
and configuring the target business rule in the target processing engine according to the input parameters to obtain output parameters corresponding to the target rule configuration file.
Optionally, the apparatus further comprises:
the parameter determining module is used for responding to the configuration abnormality of the target business rule and determining a preset output parameter corresponding to the target business rule;
the parameter determining module is further configured to determine the preset output parameter as the output parameter.
Optionally, the apparatus further comprises:
a notification acquisition module, configured to acquire a configuration update notification, where the configuration update notification is configured to notify a terminal storing the target rule configuration file to update the target rule configuration file;
the file acquisition module is also used for acquiring an updated target rule configuration file from the rule configuration platform according to the configuration update notification;
the file storage module is further configured to store the updated target rule configuration file in a local storage unit.
In yet another aspect, an embodiment of the present application provides a service rule configuration apparatus, where the apparatus includes:
the file receiving module is used for receiving a plurality of rule configuration files defined by different programming languages, wherein the rule configuration files are files for configuring business rules of the application program;
the file storage module is used for storing the rule configuration files in a classified manner according to the services corresponding to the rule configuration files;
The request receiving module is used for receiving a configuration file acquisition request sent by the terminal, wherein the configuration file acquisition request is used for requesting to acquire a target rule configuration file;
and the file sending module is used for sending the target rule configuration file to the terminal.
Optionally, the file storage module is configured to:
according to the business corresponding to the rule configuration file, storing the rule configuration file in a database in a classified manner;
or, according to the service corresponding to the rule configuration file, storing the rule configuration file in a database in a classified manner, and caching the rule configuration file in a local memory.
Optionally, the apparatus further comprises:
the file storage module is used for storing the historical version of the target rule configuration file;
the file sending module is further configured to send, in response to a history version obtaining request, a history version of the target rule configuration file to a terminal that sends the history version obtaining request.
In yet another aspect, an embodiment of the present application provides a terminal, where the terminal includes a processor and a memory, where the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the service rule configuration method on the terminal side.
In yet another aspect, an embodiment of the present application provides a server, where the server includes a processor and a memory, where the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the service rule configuration method on the server side.
In yet another aspect, an embodiment of the present application provides a computer readable storage medium, where a computer program is stored, where the computer program is loaded and executed by a processor of a terminal to implement the above-mentioned service rule configuration method on the terminal side.
In yet another aspect, an embodiment of the present application provides a computer readable storage medium, where a computer program is stored, where the computer program is loaded and executed by a processor of a server to implement the service rule configuration method on the server side.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
the target rule configuration file is obtained from the rule configuration platform, the target processing engine matched with the programming language of the target rule configuration file is selected from the candidate processing engines, and the target business rule is configured by the target processing engine through the target rule configuration file, so that the first terminal can obtain and use the rule configuration files defined by different programming languages, and the first terminal can flexibly use the rule configuration files.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a business rule configuration system provided by one embodiment of the present application;
FIG. 2 is a flow chart of a business rule configuration method provided by one embodiment of the present application;
FIG. 3 is a flow chart of a business rule configuration method provided by another embodiment of the present application;
FIG. 4 is a schematic diagram of a display interface of a second terminal according to an embodiment of the present application;
FIG. 5 is a block diagram of a business rule configuration device provided by one embodiment of the present application;
FIG. 6 is a block diagram of a business rule configuration device provided by another embodiment of the present application;
FIG. 7 is a block diagram of a business rule configuration device provided by another embodiment of the present application;
FIG. 8 is a block diagram of a business rule configuration device provided by another embodiment of the present application;
fig. 9 is a block diagram of a terminal according to an embodiment of the present application;
fig. 10 is a block diagram of a server according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of methods consistent with aspects of the application as detailed in the accompanying claims.
Referring to fig. 1, a schematic diagram of a business rule configuration system according to an embodiment of the present application is shown. As shown in fig. 1, the system 100 includes a first terminal 110 and a rule configuration platform 120.
A plurality of processing engines adapted to different programming languages are installed in the first terminal 110, and the processing engines may be used to configure business rules in the rule configuration file.
The rule configuration platform 120 is used to collect, manage and distribute rule configuration files and provide the rule configuration files to the first terminal 110. Rule configuration platform 120 may include one or more servers. A network connection may be established between (the server of) the rule configuration platform 120 and the first terminal 110.
Optionally, the rule configuration platform 120 includes a first server and a second server. The first server is for receiving, managing and distributing rule profiles and the second server is for storing a database 130, which database 130 is for storing rule profiles. The rule configuration platform 120 may query and/or retrieve the rule configuration file required by the first terminal 110 from the database 130.
The system 100 may further include a second terminal 140, where the second terminal 140 is configured to enter the rule configuration file into the rule configuration platform 120, and a network connection may be established between the second terminal 140 and the rule configuration platform 120.
The first terminal 110 and the second terminal 140 are electronic devices with data computing, processing and storing capabilities. The terminal may be a PC (Personal Computer ), smart phone, tablet, wearable device, smart robot, etc. The first terminal 110 and the second terminal 140 may be the same terminal or different terminals, which is not limited in the embodiment of the present application.
The technical scheme of the application is described and illustrated by the following examples.
Referring to fig. 2, a flowchart of a business rule configuration method according to an embodiment of the present application is shown. In the present embodiment, the method is mainly applied to the first terminal described above for illustration. The method may comprise the following steps (201-203):
Step 201, a target rule configuration file is obtained from a rule configuration platform.
The rule configuration platform classifies and stores various rule configuration files defined by different programming languages, and the rule configuration files are files for configuring business rules of application programs.
Business rules may refer to business logic set in a business. Illustratively, one business rule in a financial application may be: if the month income of the user is more than 0 and less than or equal to 5000 yuan, not recommending the financial and financial product to the user; if the month income of the user is more than 5000 yuan and less than 10000 yuan, recommending financial products with smaller amount to the user; if the monthly income of the user is more than or equal to 1000 yuan, recommending financial and financial products with larger money to the user.
The programming language adopted by the rule configuration file stored in the rule configuration platform can be js language, groovy language, python language, java language, or other programming languages, which is not limited by the embodiment of the application.
Illustratively, the content of the rule profile in the grovy language is as follows:
step 202, selecting a target processing engine which is matched with the programming language of the target rule configuration file from the candidate processing engines.
The first terminal may have a candidate processing engine installed therein. Wherein the candidate processing engines may comprise a plurality of processing engines adapted to different programming languages. The programming language employed by the target rule configuration file is adapted to the programming language supported by the target processing engine. For example, if the target rule profile is written in the grovy language, then the target rule profile can only run in a processing engine that supports the grovy language; for another example, if the target rule profile is written in java language, then the target rule profile can only be run in a processing engine that supports java language.
Step 203, configuring, by the target processing engine, the target business rule by using the target rule configuration file.
And running the target rule configuration file in the target processing engine, namely configuring the target business rules contained in the target rule configuration file.
In some possible embodiments, step 203 may specifically comprise the following sub-steps:
1. reading a target rule configuration file through a target processing engine;
2. inputting input parameters corresponding to the target rule configuration file into a target processing engine;
3. and configuring a target business rule in the target processing engine according to the input parameters to obtain output parameters corresponding to the target rule configuration file.
The input parameters may be automatically input to the target processing engine by the first terminal or an application program in the first terminal, or may be manually input to the target processing engine by a developer of the application program through the first terminal, which is not limited in the embodiment of the present application.
For the exemplary business rule in step 201, when the input parameter is 4000, the output parameter may be "do not recommend financial management products to the user"; when the input parameter is 7000, the output parameter may be "recommend financial management product with smaller amount to the user"; when the input parameter is 22000, the output parameter may be "recommend financial management product with a larger amount to the user".
In summary, in the technical solution provided in the embodiment of the present application, the target rule configuration file is obtained from the rule configuration platform, the target processing engine adapted to the programming language of the target rule configuration file is selected from the candidate processing engines, and the target business rule is configured by using the target rule configuration file through the target processing engine, so that the first terminal can obtain and use the rule configuration files defined by different programming languages, and further, the first terminal can flexibly use the rule configuration files.
In some alternative embodiments, the method may further comprise the steps of:
1. responding to the configuration abnormality of the target business rule, and determining a preset output parameter corresponding to the target business rule;
2. and determining the preset output parameters as output parameters.
When the target business rule configuration is abnormal (the target business rule cannot process the input parameters, or the target rule configuration file is damaged, or the target rule configuration file cannot be acquired), the preset output parameters can be determined as the output parameters. For example, for the exemplary business rule in the above step 201, if the preset output parameter is "recommend financial product with smaller amount to the user", when the business rule configuration is abnormal, "recommend financial product with smaller amount to the user" may be directly output as the output parameter.
In the implementation manner, when the target business rule configuration is abnormal, the preset output parameters are determined to be the output parameters, so that the output parameters can be obtained certainly, and the risk of interruption of the operation of the application program is reduced.
In some alternative embodiments, before the step 201, the following steps may be further included:
1. Receiving a service rule configuration request, wherein the service rule configuration request is used for requesting to configure a target service rule;
2. responding to a service rule configuration request, and generating a configuration file acquisition request;
3. in response to the profile acquisition request, the step of acquiring the target rule profile from the rule configuration platform is performed.
In the above implementation manner, when the service rule configuration request is received, the corresponding target rule configuration file may be determined according to the service rule configuration request, so as to generate a configuration file acquisition request, and further execute the step of acquiring the target rule configuration file from the rule configuration platform.
In some alternative embodiments, the method may further comprise the steps of:
1. acquiring a configuration update notification, wherein the configuration update notification is used for notifying a terminal storing a target rule configuration file to update the target rule configuration file;
2. according to the configuration update notification, acquiring an updated target rule configuration file from the rule configuration platform;
3. and storing the updated target rule configuration file in a local storage unit.
After the above step 201, the target rule profile may be stored in the local storage unit, and when the target rule profile needs to be acquired, the target rule profile may be directly acquired from the local storage unit, thereby reducing the time for acquiring the target rule profile.
After the updated target rule configuration file is stored in the local storage unit, the target rule configuration file before updating in the local storage unit can be deleted, so that the storage space of the local storage unit is saved.
In some possible embodiments, the rule configuration platform may notify the terminal storing the target rule configuration file through a distributed service (zookeeper) to update the target rule configuration file.
In the implementation manner, the target rule configuration file stored in the local storage unit can be updated in time by acquiring the configuration update notification, so that the method is convenient and quick.
Referring to fig. 3, a flowchart of a business rule configuration method according to another embodiment of the present application is shown. In this embodiment, the method is mainly applied to the rule configuration platform described above for illustration. The method may comprise the following steps (301-304):
step 301 receives a plurality of rule configuration files defined in different programming languages.
Wherein the rule configuration file is a file for configuring business rules of an application program.
In some possible embodiments, step 301 may further comprise obtaining an updated target rule profile. After the updated target rule configuration file is obtained, a configuration update notification may be sent, where the configuration update notification is used to notify the terminal storing the target rule configuration file to update the target rule configuration file.
In some possible embodiments, the rule configuration file is sent by the second terminal to the rule configuration platform. The rule configuration platform may save a historical version of the target rule configuration file; when the history version acquisition request is received, the history version of the target rule profile may be transmitted to the terminal that issued the history version acquisition request. So that the second terminal can generate an updated target rule profile with reference to the historical version of the target rule profile.
Fig. 4 is a schematic diagram of a display interface of a second terminal according to an embodiment of the application. As shown in fig. 4, illustratively, in a display interface in which the target rule configuration file is entered in the second terminal, a file display area 41, a test control 42, a save control 43, and a history version control 44 are included, and the file display area 41 is used to display the content of the input target rule configuration file. When the test control 42 is clicked, the running condition of the input target rule configuration file can be tested; when save control 42 is clicked, the contents of the entered target rule configuration file may be saved; when the history version control 44 is clicked, the history version of the target rule configuration file may be obtained from the rule configuration platform and displayed in the file display area 41.
Step 302, storing the rule configuration file in a classified manner according to the service corresponding to the rule configuration file.
The rule profile may correspond to different kinds of businesses, such as financial businesses, takeaway businesses, ticketing businesses, and the like. The rule configuration files may be classified according to service types, for example, the same types of services may be stored in the same data block or the same server.
In some possible embodiments, the rule profile classification is stored in a database according to the service to which the rule profile corresponds. Correspondingly, when the rule configuration platform needs to send the target rule configuration file to the first terminal, the target rule configuration file is obtained from the database in response to the fact that the target rule configuration file is not stored in the local memory and the target rule configuration file is stored in the database.
In some possible embodiments, the rule configuration file is classified and stored in a database according to the service corresponding to the rule configuration file, and is cached in a local memory. Correspondingly, when the rule configuration platform needs to send the target rule configuration file to the first terminal, the target rule configuration file is obtained from the local memory in response to the target rule configuration file being cached in the local memory, so that the time for obtaining the target rule configuration file is shortened.
Step 303, receiving a configuration file acquisition request sent by the terminal, where the configuration file acquisition request is used to request to acquire a target rule configuration file.
The profile acquisition request sent by the terminal may be an encrypted request, and the rule configuration platform may decrypt the encrypted profile acquisition request to determine the target rule configuration file requested by the terminal.
And step 304, sending the target rule configuration file to the terminal.
In summary, in the technical solution provided in the embodiment of the present application, the rule configuration platform classifies and stores a plurality of rule configuration files defined by different programming languages, so that the rule configuration files are stored more orderly, and the time for responding to the configuration file acquisition request is reduced.
The following are examples of the apparatus of the present application that may be used to perform the method embodiments of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the method of the present application.
Referring to fig. 5, a block diagram of a business rule configuration device according to an embodiment of the present application is shown. The apparatus 500 has a function of implementing the above example of the service rule configuration method on the terminal side, where the function may be implemented by hardware, or may be implemented by executing corresponding software by hardware. The apparatus 500 may be the first terminal described above, or may be disposed on the first terminal. The apparatus 500 may include: a file acquisition module 510, an engine selection module 520, and a rule configuration module 530.
The file obtaining module 510 is configured to obtain a target rule configuration file from a rule configuration platform, where the rule configuration platform stores multiple rule configuration files defined by using different programming languages in a classified manner, and the rule configuration files are files for configuring service rules of an application program.
The engine selection module 520 is configured to select a target processing engine adapted to a programming language of the target rule configuration file from candidate processing engines, where the candidate processing engines include a plurality of processing engines adapted to different programming languages.
The rule configuration module 530 is configured to configure, by the target processing engine, a target business rule using the target rule configuration file.
In summary, in the technical solution provided in the embodiment of the present application, the target rule configuration file is obtained from the rule configuration platform, the target processing engine adapted to the programming language of the target rule configuration file is selected from the candidate processing engines, and the target business rule is configured by using the target rule configuration file through the target processing engine, so that the first terminal can obtain and use the rule configuration files defined by different programming languages, and further, the first terminal can flexibly use the rule configuration files.
In an exemplary embodiment, the rule configuration module 530 is configured to:
reading the target rule configuration file through the target processing engine;
inputting input parameters corresponding to the target rule configuration file into the target processing engine;
and configuring the target business rule in the target processing engine according to the input parameters to obtain output parameters corresponding to the target rule configuration file.
In an exemplary embodiment, as shown in fig. 6, the apparatus 500 further includes: the parameter determination module 540.
The parameter determining module 540 is configured to determine a preset output parameter corresponding to the target business rule in response to the configuration anomaly of the target business rule.
The parameter determining module 540 is further configured to determine the preset output parameter as the output parameter.
In an exemplary embodiment, as shown in fig. 6, the apparatus 500 further includes: a notification acquisition module 550 and a file storage module 560.
The notification obtaining module 550 is configured to obtain a configuration update notification, where the configuration update notification is used to notify a terminal storing the target rule configuration file to update the target rule configuration file.
The file obtaining module 510 is further configured to obtain, according to the configuration update notification, an updated target rule configuration file from the rule configuration platform.
The file storage module 560 is configured to store the updated target rule configuration file in a local storage unit.
Referring to fig. 7, a block diagram of a business rule configuration device according to an embodiment of the present application is shown. The apparatus 700 has a function of implementing the above example of the service rule configuration method on the server side, where the function may be implemented by hardware, or may be implemented by executing corresponding software by hardware. The apparatus 700 may be a server as described above, or may be disposed on a server. The apparatus 700 may include: a file receiving module 710, a file storing module 720, a request receiving module 730, and a file transmitting module 740.
The file receiving module 710 is configured to receive a plurality of rule configuration files defined by different programming languages, where the rule configuration files are files for configuring business rules of an application program.
The file storage module 720 is configured to store the rule configuration files in a classified manner according to the services corresponding to the rule configuration files.
The request receiving module 730 is configured to receive a profile obtaining request sent by a terminal, where the profile obtaining request is used to request to obtain a target rule profile.
The file sending module 740 is configured to send the target rule configuration file to the terminal.
In summary, in the technical solution provided in the embodiment of the present application, the rule configuration platform classifies and stores a plurality of rule configuration files defined by different programming languages, so that the rule configuration files are stored more orderly, and the time for responding to the configuration file acquisition request is reduced.
In an exemplary embodiment, the file storage module 720 is configured to:
according to the business corresponding to the rule configuration file, storing the rule configuration file in a database in a classified manner;
or, according to the service corresponding to the rule configuration file, storing the rule configuration file in a database in a classified manner, and caching the rule configuration file in a local memory.
In an exemplary embodiment, as shown in fig. 8, the apparatus 700 further includes a file save module 750.
The file saving module 750 is configured to save a historical version of the target rule configuration file.
The file sending module 740 is further configured to send, in response to a history version obtaining request, a history version of the target rule configuration file to a terminal that sends the history version obtaining request.
It should be noted that, in the apparatus provided in the foregoing embodiment, when implementing the functions thereof, only the division of the foregoing functional modules is used as an example, in practical application, the foregoing functional allocation may be implemented by different functional modules, that is, the internal structure of the device is divided into different functional modules, so as to implement all or part of the functions described above. In addition, the apparatus and the method embodiments provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the apparatus and the method embodiments are detailed in the method embodiments and are not repeated herein.
Referring to fig. 9, a block diagram of a terminal according to an embodiment of the present application is shown. The terminal 900 may be an electronic device such as a cell phone, tablet computer, game console, electronic book reader, multimedia playing device, wearable device, PC, etc. The terminal is used for implementing the service rule configuration method at the terminal side provided in the above embodiment. The terminal may be the terminal 900 in the implementation environment shown in fig. 1. Specifically, the present application relates to a method for manufacturing a semiconductor device.
In general, the terminal 900 includes: a processor 901 and a memory 902.
Processor 901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 901 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 901 may also include a main processor and a coprocessor, the main processor being a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 901 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 901 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
The memory 902 may include one or more computer-readable storage media, which may be non-transitory. The memory 902 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 902 is used to store a computer program and is configured to be executed by one or more processors to implement the above-described terminal-side business rule configuration method.
In some embodiments, the terminal 900 may further optionally include: a peripheral interface 903, and at least one peripheral. The processor 901, memory 902, and peripheral interface 903 may be connected by a bus or signal line. The individual peripheral devices may be connected to the peripheral device interface 903 via buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of radio frequency circuitry 904, a touch display 905, a camera 906, audio circuitry 907, positioning components 908, and a power source 909.
Those skilled in the art will appreciate that the structure shown in fig. 9 is not limiting and that more or fewer components than shown may be included or certain components may be combined or a different arrangement of components may be employed.
Referring to fig. 10, a block diagram of a server according to an embodiment of the present application is shown. The server is used for implementing the service rule configuration method at the server side provided in the above embodiment. Specifically, the present application relates to a method for manufacturing a semiconductor device.
The server 1000 includes a CPU (Central Processing Unit ) 1001, a system Memory 1004 including a RAM (Random Access Memory ) 1002 and a ROM (Read-Only Memory) 1003, and a system bus 1005 connecting the system Memory 1004 and the central processing unit 1001. The server 1000 also includes a basic I/O (Input/Output) system 1006 for facilitating the transfer of information between various devices within the computer, and a mass storage device 1007 for storing an operating system 1013, application programs 1014, and other program modules 1012.
The basic input/output system 1006 includes a display 1008 for displaying information and an input device 1009, such as a mouse, keyboard, etc., for a user to input information. Wherein the display 1008 and the input device 1009 are connected to the central processing unit 1001 via an input output controller 1010 connected to a system bus 1005. The basic input/output system 1006 may also include an input/output controller 1010 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input output controller 1010 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 1007 is connected to the central processing unit 1001 through a mass storage controller (not shown) connected to the system bus 1005. The mass storage device 1007 and its associated computer-readable media provide non-volatile storage for the server 1000. That is, the mass storage device 1007 may include a computer readable medium (not shown) such as a hard disk or CD-ROM (Compact Disc Read-Only Memory) drive.
The computer readable medium may include computer storage media and communication media without loss of generality. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory, erasable programmable read-only memory), flash memory or other solid state memory technology, CD-ROM, DVD (Digital Video Disc, high density digital video disc) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will recognize that the computer storage medium is not limited to the one described above. The system memory 1004 and mass storage devices 1007 described above may be collectively referred to as memory.
The server 1000 may also operate in accordance with various embodiments of the present application, through a network, such as the internet, to remote computers connected to the network. I.e. the server 1000 may be connected to the network 1012 via a network interface unit 1011 connected to said system bus 1005, or alternatively, the network interface unit 1011 may be used to connect to other types of networks or remote computer systems (not shown).
In an exemplary embodiment, there is also provided a computer readable storage medium having stored therein a computer program which, when executed by a processor of a terminal, implements the above-described terminal-side business rule configuration method.
In an exemplary embodiment, there is also provided a computer readable storage medium having stored therein a computer program which, when executed by a processor of a server, implements the above-described server-side business rule configuration method.
In an exemplary embodiment, a computer program product is also provided, which, when being executed by a processor of a terminal, is adapted to implement the above-mentioned terminal-side business rule configuration method.
In an exemplary embodiment, a computer program product is also provided, which, when being executed by a processor of a server, is adapted to implement the above-mentioned server-side business rule configuration method.
It should be understood that references herein to "a plurality" are to two or more. Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (7)

1. A business rule configuration method, the method comprising:
Obtaining a target rule configuration file from a rule configuration platform, and storing the target rule configuration file in a local storage unit, wherein the rule configuration platform stores a plurality of rule configuration files defined by different programming languages in a classified manner, and the rule configuration files are files for configuring business rules of an application program;
selecting a target processing engine matched with the programming language of the target rule configuration file from candidate processing engines, wherein the candidate processing engines comprise a plurality of processing engines matched with different programming languages;
reading the target rule configuration file through the target processing engine;
inputting input parameters corresponding to the target rule configuration file into the target processing engine;
configuring a target business rule in the target processing engine according to the input parameters to obtain output parameters corresponding to the target rule configuration file;
responding to the configuration abnormality of the target business rule, and determining a preset output parameter corresponding to the target business rule;
determining the preset output parameter as the output parameter;
acquiring a configuration update notification, wherein the configuration update notification is used for notifying a terminal storing the target rule configuration file to update the target rule configuration file;
Acquiring an updated target rule configuration file from the rule configuration platform according to the configuration update notification;
and storing the updated target rule configuration file in the local storage unit.
2. A business rule configuration method, the method comprising:
receiving a plurality of rule configuration files defined by different programming languages, wherein the rule configuration files are files for configuring business rules of an application program;
according to the service corresponding to the rule configuration file, classifying and storing the rule configuration file;
receiving a configuration file acquisition request sent by a terminal, wherein the configuration file acquisition request is used for requesting acquisition of a target rule configuration file;
the target rule configuration file is sent to the terminal and is used for being stored in a local storage unit;
the terminal is used for: selecting a target processing engine matched with the programming language of the target rule configuration file from candidate processing engines, wherein the candidate processing engines comprise a plurality of processing engines matched with different programming languages; reading the target rule configuration file through the target processing engine; inputting input parameters corresponding to the target rule configuration file into the target processing engine; configuring a target business rule in the target processing engine according to the input parameters to obtain output parameters corresponding to the target rule configuration file; responding to the configuration abnormality of the target business rule, and determining a preset output parameter corresponding to the target business rule; determining the preset output parameter as the output parameter; acquiring a configuration update notification, wherein the configuration update notification is used for notifying a terminal storing the target rule configuration file to update the target rule configuration file; acquiring an updated target rule configuration file from a rule configuration platform according to the configuration update notification; and storing the updated target rule configuration file in the local storage unit.
3. The method according to claim 2, wherein storing the rule configuration file in a classified manner according to the service corresponding to the rule configuration file comprises:
according to the business corresponding to the rule configuration file, storing the rule configuration file in a database in a classified manner;
or alternatively, the first and second heat exchangers may be,
and storing the rule configuration files in a database in a classified manner according to the service corresponding to the rule configuration files, and caching the rule configuration files in a local memory.
4. A method according to claim 2 or 3, characterized in that the method further comprises:
storing a historical version of the target rule configuration file;
and responding to the history version acquisition request, and sending the history version of the target rule configuration file to the terminal sending the history version acquisition request.
5. A business rule configuration apparatus, the apparatus comprising:
the file acquisition module is used for acquiring a target rule configuration file from the rule configuration platform and storing the target rule configuration file in the local storage unit, wherein the rule configuration platform stores various rule configuration files defined by different programming languages in a classified mode, and the rule configuration files are files for configuring service rules of an application program;
The engine selection module is used for selecting a target processing engine matched with the programming language of the target rule configuration file from candidate processing engines, wherein the candidate processing engines comprise a plurality of processing engines matched with different programming languages;
the rule configuration module is used for reading the target rule configuration file through the target processing engine; inputting input parameters corresponding to the target rule configuration file into the target processing engine; configuring a target business rule in the target processing engine according to the input parameters to obtain output parameters corresponding to the target rule configuration file;
the parameter determining module is used for responding to the configuration abnormality of the target business rule and determining a preset output parameter corresponding to the target business rule;
the parameter determining module is further configured to determine the preset output parameter as the output parameter;
a notification acquisition module, configured to acquire a configuration update notification, where the configuration update notification is configured to notify a terminal storing the target rule configuration file to update the target rule configuration file;
the file acquisition module is further used for acquiring an updated target rule configuration file from the rule configuration platform according to the configuration update notification;
And the file storage module is used for storing the updated target rule configuration file in the local storage unit.
6. A business rule configuration apparatus, the apparatus comprising:
the file receiving module is used for receiving a plurality of rule configuration files defined by different programming languages, wherein the rule configuration files are files for configuring business rules of the application program;
the file storage module is used for storing the rule configuration files in a classified manner according to the services corresponding to the rule configuration files;
the request receiving module is used for receiving a configuration file acquisition request sent by the terminal, wherein the configuration file acquisition request is used for requesting to acquire a target rule configuration file;
the file sending module is used for sending the target rule configuration file to the terminal, and the target rule configuration file is used for being stored in the local storage unit;
the terminal is used for: selecting a target processing engine matched with the programming language of the target rule configuration file from candidate processing engines, wherein the candidate processing engines comprise a plurality of processing engines matched with different programming languages; reading the target rule configuration file through the target processing engine; inputting input parameters corresponding to the target rule configuration file into the target processing engine; configuring a target business rule in the target processing engine according to the input parameters to obtain output parameters corresponding to the target rule configuration file; responding to the configuration abnormality of the target business rule, and determining a preset output parameter corresponding to the target business rule; determining the preset output parameter as the output parameter; acquiring a configuration update notification, wherein the configuration update notification is used for notifying a terminal storing the target rule configuration file to update the target rule configuration file; acquiring an updated target rule configuration file from a rule configuration platform according to the configuration update notification; and storing the updated target rule configuration file in the local storage unit.
7. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program, which is loaded and executed by a processor to implement the business rule configuration method according to claim 1 or the business rule configuration method according to any one of claims 2 to 4.
CN202010112418.7A 2020-02-24 2020-02-24 Service rule configuration method, device and storage medium Active CN111552506B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010112418.7A CN111552506B (en) 2020-02-24 2020-02-24 Service rule configuration method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010112418.7A CN111552506B (en) 2020-02-24 2020-02-24 Service rule configuration method, device and storage medium

Publications (2)

Publication Number Publication Date
CN111552506A CN111552506A (en) 2020-08-18
CN111552506B true CN111552506B (en) 2023-09-12

Family

ID=72000036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010112418.7A Active CN111552506B (en) 2020-02-24 2020-02-24 Service rule configuration method, device and storage medium

Country Status (1)

Country Link
CN (1) CN111552506B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113703739B (en) * 2021-09-03 2023-05-09 上海森亿医疗科技有限公司 Cross-language fusion calculation method, system and terminal based on omiga engine
CN114265866A (en) * 2021-11-24 2022-04-01 青岛海尔科技有限公司 Streaming data processing method, rule plug-in, streaming data processing module and system
CN114546389A (en) * 2022-04-25 2022-05-27 浙江大华技术股份有限公司 Front-end page generation method, audio and video analysis method, device and medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825488A (en) * 2019-09-29 2020-02-21 山东中创软件工程股份有限公司 Business processing method and device, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9557988B2 (en) * 2012-09-07 2017-01-31 Inadev Corporation Workflow-based application generator
CN107797826B (en) * 2017-05-19 2020-03-17 平安科技(深圳)有限公司 Rule configuration method based on rule engine, terminal and equipment
CN110704037B (en) * 2019-08-28 2024-01-05 贵州医渡云技术有限公司 Rule engine implementation method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825488A (en) * 2019-09-29 2020-02-21 山东中创软件工程股份有限公司 Business processing method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
应用规则引擎与Web服务分离业务规则;张伟;《电脑知识与技术》;第54-55、58页 *

Also Published As

Publication number Publication date
CN111552506A (en) 2020-08-18

Similar Documents

Publication Publication Date Title
CN111552506B (en) Service rule configuration method, device and storage medium
CN108073429B (en) Payment mode configuration method, device, equipment and storage medium
CN109885786B (en) Data caching processing method and device, electronic equipment and readable storage medium
US20210406389A1 (en) Method and device for displaying information
CN110222775A (en) Image processing method, device, electronic equipment and computer readable storage medium
CN112269830A (en) Big data analysis method, system, computer equipment and storage medium thereof
CN112650804B (en) Big data access method, device, system and storage medium
CN113989058A (en) Service generation method and device
CN111666166A (en) Service providing method, device, equipment and storage medium
CN107480269B (en) Object display method and system, medium and computing equipment
CN113608688B (en) Data migration method, device, equipment and storage medium
CN112579571B (en) Monitoring data configuration, data monitoring method, device, equipment and storage medium
CN112182400B (en) Message processing method, message processing device, electronic equipment and storage medium
US20140297367A1 (en) Smart design system providing mobile application design and simulation function, business model having the same, and operating method of smart design system
CN114676272A (en) Information processing method, device and equipment of multimedia resource and storage medium
CN112257812B (en) Labeling sample determination method, device, machine-readable medium and equipment
CN112990783A (en) Material allocation method, system, equipment and medium
CN112291329B (en) Information display method, device and equipment
CN111898027A (en) Method, device, electronic equipment and computer readable medium for determining feature dimension
CN115312208B (en) Method, device, equipment and medium for displaying treatment data
CN111857879B (en) Data processing method, device, electronic equipment and computer readable medium
US11900047B1 (en) Systems, methods and software for improving the energy footprint of an electronic document
US20210375442A1 (en) Patient care exchange portal with market analysis
US11132239B2 (en) Processing apparatus, processing system, and non-transitory computer readable medium
CN115456583A (en) Questionnaire data processing method, questionnaire data processing device, computer device, and storage medium

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
GR01 Patent grant
GR01 Patent grant