CN110598093B - Business rule management method and device - Google Patents

Business rule management method and device Download PDF

Info

Publication number
CN110598093B
CN110598093B CN201910767432.8A CN201910767432A CN110598093B CN 110598093 B CN110598093 B CN 110598093B CN 201910767432 A CN201910767432 A CN 201910767432A CN 110598093 B CN110598093 B CN 110598093B
Authority
CN
China
Prior art keywords
service
rule
sub
business
requirement
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
CN201910767432.8A
Other languages
Chinese (zh)
Other versions
CN110598093A (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.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China 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 Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN201910767432.8A priority Critical patent/CN110598093B/en
Publication of CN110598093A publication Critical patent/CN110598093A/en
Application granted granted Critical
Publication of CN110598093B publication Critical patent/CN110598093B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06315Needs-based resource requirements planning or analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Abstract

The embodiment of the invention discloses a business rule management method and a business rule management device, wherein the method comprises the following steps: receiving a first service requirement of a target object sent by a service terminal, wherein a jth service sub-requirement in the first service requirement comprises N service rules, rule parameters of the N service rules and weight parameters of the N service rules; analyzing the first service requirement, and acquiring M service sub-requirements of the first service requirement and priorities of the M service sub-requirements; inquiring whether a corresponding business rule script exists in a business rule script library or not in an ith business rule in N business rules; if yes, generating a sub-rule script of the j-th service sub-requirement according to the service rule scripts, rule parameters and weight parameters of the N service rules; and generating a first target rule script of the target object according to the sub-rule scripts of the M business sub-requirements and the priorities. The method provided by the embodiment of the invention can improve the business rule management efficiency and is convenient and fast to maintain in the later period.

Description

Business rule management method and device
Technical Field
The present invention relates to the field of computer technologies and communication technologies, and in particular, to a business rule management method and apparatus.
Background
Along with the development of science and technology and the expansion of market, the living standard of substances of people is continuously improved, and the demands of people are continuously changed and enriched. Meanwhile, the online service system of each industry is updated faster and faster, and the uncertainty of unknown service requirements is higher and higher.
At present, the method for processing personalized business rules of different channels in the market is commonly to customize personalized solutions for different channels, namely, to respectively configure and maintain business systems according to business requirements of different business systems. Aiming at each service system, along with the rapid increase and change of service demands, developers need to continuously adjust service rules according to the service demands, namely, re-write service rule scripts aiming at each service demand, and the personalized customization scheme has large workload and low working efficiency. In addition, as the service personnel cannot directly configure and maintain the service system, the development personnel is required to carry out background maintenance whenever the service demand changes, and the operation is troublesome and inconvenient.
In summary, the current personalized configuration of the business rules has low efficiency and difficult post maintenance.
Disclosure of Invention
The embodiment of the invention provides a business rule management method and a business rule management device, which can improve business rule management efficiency and are convenient and fast to maintain in the later period.
In a first aspect, an embodiment of the present invention provides a business rule management method, including the following steps:
the method comprises the steps that a server receives a first service requirement of a target object sent by a service terminal, wherein the first service requirement comprises M service sub-requirements and priorities of the M service sub-requirements, a j-th service sub-requirement in the M service sub-requirements comprises N service rules, rule parameters of the N service rules and weight parameters of the N service rules, M is a positive integer greater than or equal to 1, N is a positive integer greater than or equal to 1, and j is a positive integer greater than or equal to and less than or equal to M;
the server analyzes the first service requirement, and obtains the M service sub-requirements, the priority of the M service sub-requirements, and the service rule, rule parameter and weight parameter contained in the j service sub-requirements;
the server inquires whether the ith business rule in the N business rules has a corresponding business rule script in a business rule script library, wherein i is a positive integer which is more than or equal to 1 and less than or equal to N;
If the service sub-requirement exists, the server generates a sub-rule script of the j-th service sub-requirement according to N service rule scripts corresponding to the N service rules, rule parameters of the N service rules and weight parameters of the N service rules;
and the server generates a first target rule script of the target object according to the M sub-rule scripts corresponding to the M business sub-requirements and the priorities of the M business sub-requirements.
Optionally, the method further comprises: if the business rule script corresponding to the ith business rule does not exist in the business rule script library, the server generates the business rule script of the ith business rule according to the ith business rule; the server stores the ith business rule and the business rule script of the ith business rule into a business rule script library; and the server generates a sub-rule script of the j-th service sub-requirement according to the N service rule scripts corresponding to the N service rules, the rule parameters of the N service rules and the weight parameters of the N service rules.
Optionally, the method further comprises: the server receives an updating request sent by a service terminal through a service rule maintenance window, wherein the updating request is used for updating parameters of a first target rule script, and the parameters of the first target rule script comprise priorities of the M service sub-demands, rule parameters of service rules contained in each service sub-demand in the M service sub-demands and weight parameters of service rules contained in each service sub-demand in the M service sub-demands; and the server updates parameters of the first target rule script according to the update request to generate a second target rule script of the target object.
Optionally, the business rule script library includes at least one business rule and a mapping relation of at least one business rule script.
Optionally, at least two business sub-requirements in the M business sub-requirements include the same business rule; alternatively, any two of the M service sub-requirements do not contain the same service rule.
Optionally, the method further comprises: the method comprises the steps that a server receives a modification request sent by a service terminal through a service rule maintenance window, wherein the modification request is used for increasing service sub-requirements in a first service requirement of a target object, the modification request comprises the first service sub-requirements and priorities of the first service sub-requirements, and the first service sub-requirements comprise X service rules, rule parameters of the X service rules and weight parameters of the X service rules; the server analyzes the first business sub-requirement and acquires the X business rules, rule parameters of the X business rules and weight parameters of the X business rules; the server inquires whether a service rule script corresponding to the X service rules exists in a service rule script library; if yes, the server generates a sub-rule script of the first service sub-requirement according to the X service rules, the rule parameters of the X service rules and the weight parameters of the X service rules; the server generates a second target rule script of the target object according to the first target rule script, the sub-rule script of the first business sub-requirement and the priority of the first business sub-requirement.
Optionally, the method further comprises: the server receives a modification request sent by the service terminal through a service rule maintenance window, wherein the modification request is used for deleting a second service sub-requirement in the first service requirement of the target object; and deleting the sub-rule script corresponding to the second business sub-requirement in the first target rule script according to the modification request by the server to generate a third target rule script of the target object.
Optionally, the method further comprises: the server receives a modification request sent by the service terminal through a service rule maintenance window, wherein the modification request is used for adding a first service rule for a second service sub-requirement in a first service requirement of a target object, and the modification request comprises the first service rule, rule parameters of the first service rule and weight parameters of the first service rule; the server inquires whether a business rule script corresponding to the first business rule exists in a business rule script library; if the sub-rule script of the second business sub-requirement exists, updating the sub-rule script of the second business sub-requirement according to the sub-rule script of the second business sub-requirement, the business rule script of the first business rule, the rule parameters of the first business rule and the weight parameters of the first business rule; and the server generates a fourth target rule script of the target object according to the first target rule script and the sub-rule script updated by the second business sub-requirement.
Optionally, the method further comprises: the server receives a modification request sent by the service terminal through the service rule maintenance window, and the modification request deletes a second service rule in a second service sub-requirement; the server deletes the second business rule in the second business sub-requirement and updates the sub-rule script of the second business sub-requirement; and the server generates a fifth target rule script of the target object according to the first target rule script and the sub-rule script updated by the second business sub-requirement.
In a second aspect, an embodiment of the present invention further provides a service rule management apparatus, where the service rule management apparatus can implement a function of a server in the service rule management method of the first aspect, so that beneficial effects of the service rule management method of the first aspect can also be implemented. The functions of the device can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes at least one module corresponding to the above functions.
Optionally, the device comprises a receiving unit, a parsing unit, a querying unit and a querying unit.
The receiving unit is configured to receive a first service requirement of a target object sent by a service terminal, where the first service requirement includes M service sub-requirements and priorities of the M service sub-requirements, a j-th service sub-requirement in the M service sub-requirements includes N service rules, rule parameters of the N service rules, and weight parameters of the N service rules, M is a positive integer greater than or equal to 1, N is a positive integer greater than or equal to 1, and i is a positive integer greater than or equal to and less than or equal to M.
The analyzing unit is used for analyzing the first service requirement, and acquiring the M service sub-requirements, the priority of the M service sub-requirements, and the service rule, rule parameter and weight parameter contained in the j-th service sub-requirement.
The query unit is used for querying whether the ith business rule in the N business rules has a corresponding business rule script in the business rule script library, wherein i is a positive integer which is more than or equal to 1 and less than or equal to N.
And the generating unit is used for generating the sub-rule script of the j-th service sub-requirement according to the service rule script of the N service rules, the rule parameters of the N service rules and the weight parameters of the N service rules if N service rule scripts corresponding to the N service rules exist in the service rule script library.
The generating unit is further configured to generate a first target rule script of the target object according to the M sub-rule scripts corresponding to the M service sub-requirements and priorities of the M service sub-requirements.
Optionally, the apparatus further comprises a storage unit. The generating unit is further configured to generate a service rule script of the ith service rule according to the ith service rule if the service rule script corresponding to the ith service rule does not exist in the service rule script library; the storage unit is used for storing the ith business rule and the business rule script of the ith business rule into a business rule script library; the generating unit is further configured to generate a sub-rule script of the j-th service sub-requirement according to the N service rule scripts corresponding to the N service rules, rule parameters of the N service rules, and weight parameters of the N service rules.
Optionally, the receiving unit is further configured to receive an update request sent by the service terminal through the service rule maintenance window, where the update request is used to update parameters of a first target rule script, and the parameters of the first target rule script include priorities of the M service sub-requirements, rule parameters of service rules included in each service sub-requirement in the M service sub-requirements, and weight parameters of service rules included in each service sub-requirement in the M service sub-requirements; and the generating unit is also used for updating parameters of the first target rule script according to the updating request and generating a second target rule script of the target object.
Optionally, the receiving unit is further configured to receive a modification request sent by the service terminal through the service rule maintenance window, where the modification request is used to increase a service sub-requirement in the first service requirement of the target object, the modification request includes the first service sub-requirement and a priority of the first service sub-requirement, and the first service sub-requirement includes X service rules, rule parameters of the X service rules, and weight parameters of the X service rules; the analyzing unit is further used for analyzing the first business sub-requirement and acquiring the X business rules, rule parameters of the X business rules and weight parameters of the X business rules; the query unit is also used for querying whether the service rule scripts respectively corresponding to the X service rules exist in the service rule script library; the generating unit is further configured to generate a sub-rule script of the first service sub-requirement according to the X service rules, rule parameters of the X service rules, and weight parameters of the X service rules if service rule scripts corresponding to the X service rules respectively exist in the service rule script library; the generating unit is further configured to generate a third target rule script of the target object according to the first target rule script, the sub-rule script of the first service sub-requirement, and the priority of the first service sub-requirement.
Optionally, the device further comprises a deleting unit. The receiving unit is further used for receiving a modification request sent by the service terminal through the service rule maintenance window, wherein the modification request is used for deleting a second service sub-requirement in the first service requirement of the target object; and the deleting unit is used for deleting the business rule script corresponding to the second business sub-requirement in the first target rule script according to the modification request and generating a third target rule script of the target object.
Optionally, the receiving unit is further configured to receive a modification request sent by the service terminal through the service rule maintenance window, where the modification request is used to add a first service rule to a second service sub-requirement in the first service requirement of the target object, and the modification request includes the first service rule, a rule parameter of the first service rule, and a weight parameter of the first service rule; the query unit is further used for querying whether a business rule script corresponding to the first business rule exists in the business rule script library; the generating unit is further configured to update the sub-rule script of the second service sub-requirement according to the sub-rule script of the second service sub-requirement, the service rule script of the first service rule, the rule parameter of the first service rule and the weight parameter of the first service rule if the service rule script corresponding to the first service rule exists in the service rule script library; and the generating unit is also used for generating a fourth target rule script of the target object according to the first target rule script and the sub-rule script updated by the second business sub-requirement.
Optionally, the receiving unit is further configured to receive a modification request sent by the service terminal through the service rule maintenance window, where the modification request deletes a second service rule in the second service sub-requirement; the generating unit is further used for deleting a second business rule in the second business sub-requirement and updating a sub-rule script of the second business sub-requirement; and the generating unit is also used for generating a fifth target rule script of the target object according to the first target rule script and the updated sub-rule script of the second business sub-requirement.
In a third aspect, an embodiment of the present invention further provides a server, where the server can implement a function of the server in the service rule management method of the first aspect, so that the service rule management method of the first aspect can also implement beneficial effects provided by the service rule management method of the first aspect. The functions of the server can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes at least one module corresponding to the above functions. The server comprises a memory, a processor and a transceiver, wherein the memory is used for storing a computer program for supporting the terminal to execute the method, the computer program comprises program instructions, the processor is used for controlling and managing the action of the server according to the program instructions, and the transceiver is used for supporting the communication between the server and other communication equipment.
In a fourth aspect, the embodiment of the invention further provides a service rule management system, which comprises the server described in the second aspect or the third aspect and further comprises a service terminal.
In a fifth aspect, an embodiment of the present invention provides a computer readable storage medium having stored thereon instructions that, when executed on a processor, cause the processor to perform the business rule management method described in the first aspect above.
In the embodiment of the invention, a server receives a first service requirement of a target object sent by a service terminal, wherein the first service requirement comprises M service sub-requirements, and the j-th service sub-requirement in the M service sub-requirements comprises N service rules. The server analyzes the first service requirement, and obtains the M service sub-requirements, the priority of the M service sub-requirements, and the service rule, rule parameter and weight parameter contained in the j service sub-requirements; the server inquires whether the ith business rule in the N business rules has a corresponding business rule script in a business rule script library; if yes, the server generates a sub-rule script of the j-th service sub-requirement according to the service rule scripts, rule parameters and weight parameters of the N service rules; and the server generates a first target rule script of the target object according to the sub-rule scripts and the priorities of the M business sub-demands. By the scheme provided by the embodiment of the invention, the business rule management efficiency can be improved, and the post maintenance is convenient and fast.
Drawings
The drawings that accompany the embodiments or the prior art description can be briefly described as follows.
FIG. 1 is a schematic diagram of a system architecture of a business rule management system according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a server according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a business rule management method according to an embodiment of the present invention;
FIG. 4 is a flowchart of another business rule management method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a display window of a business rule maintenance window according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a business rule management apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention. It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Furthermore, the terms "first," "second," and "third," etc. are used for distinguishing between different objects and not for describing a particular sequential order.
It is noted that the terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
Referring to fig. 1, an architecture diagram of a communication system 100 according to an embodiment of the present invention includes a service terminal 101 and a server 102. Wherein the service terminal 101 and the server 102 communicate with each other through a wireless air interface technology. The service terminal 101 may be a network device having an intelligent computing function and capable of communication interaction with other devices. The service terminal 101 in the embodiment of the present invention may be, for example, a mobile phone, a tablet computer, a notebook computer, a palm computer, a mobile internet device or other mobile terminals. The service terminal 101 is the same as the attendance checking device mentioned in other embodiments of the present invention. Communication between the various devices in communication system 100 may be based on any wired and wireless network including, but not limited to, the internet, wide area networks, metropolitan area networks, local area networks, virtual private networks (Virtual Private Network, VPN), wireless communication networks, and the like.
Referring to fig. 2, fig. 2 is a schematic hardware structure of a server 200 according to an embodiment of the invention. The server 200 includes: memory 201, transceiver 202, and processor 203 coupled to the memory 201 and transceiver 202. The memory 201 is for storing instructions, the processor 203 is for executing instructions, and the transceiver 202 is for communicating with the terminal device under control of the processor 203. The processor 203, when executing instructions, may perform an attendance method according to the instructions.
The processor 203 may be a central processing unit (central processing unit, CPU), a general purpose processor, a digital signal processor (digital signal processor, DSP), an application specific integrated circuit (application-specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA), or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules and circuits described in connection with the disclosure of embodiments of the invention. A processor may also be a combination that performs computing functions, e.g., including one or more microprocessors, a combination of a DSP and a microprocessor, and so forth. The transceiver 202 may be a communication interface, a transceiver circuit, etc., where the communication interface is generally referred to and may include one or more interfaces, such as an interface between a server and a terminal device.
Optionally, the server 200 may also include a bus 204. Wherein the memory 201, transceiver 202, and processor 203 may be interconnected via a bus 204; bus 204 may be a peripheral component interconnect standard (English: peripheral component interconnect; PCI) bus or an extended industry Standard architecture (English: extended industry standard architecture; EISA) bus, among others. The bus 204 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 2, but not only one bus or one type of bus.
In addition to the memory 201, the transceiver 202, the processor 203 and the bus 204 shown in fig. 2, the server 200 where the apparatus is located in the embodiment generally includes other hardware according to the actual functions of the server, which will not be described herein.
The server 200 shown in fig. 2 may be the server 101 in the communication system shown in fig. 1.
Referring to fig. 3, fig. 3 is a schematic hardware structure of a terminal device 300 according to an embodiment of the present invention, where the terminal device 300 includes: a memory 301, a transceiver 302, and a processor 303 coupled with the memory 301 and the transceiver 302. The memory 301 is used for storing a computer program comprising program instructions, the processor 303 is used for executing the program instructions stored in the memory 301, and the transceiver 302 is used for communicating with other devices under the control of the processor 303. The processor 303, when executing instructions, may perform an attendance method according to the instructions.
The processor 303 may be a central processing unit (central processing unit, CPU), a general purpose processor, a digital signal processor (digital signal processor, DSP), an application specific integrated circuit (application-specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA), or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules and circuits described in connection with the disclosure of embodiments of the invention. A processor may also be a combination that performs computing functions, e.g., including one or more microprocessors, a combination of a DSP and a microprocessor, and so forth. Transceiver 302 may be a communication interface, a transceiver circuit, etc., where a communication interface is a generic term and may include one or more interfaces, such as an interface between a terminal device and a server.
Optionally, the terminal device 300 may also include a bus 304. Wherein the memory 301, transceiver 302, and processor 303 may be interconnected by a bus 304; bus 304 may be a peripheral component interconnect standard (English: peripheral component interconnect, PCI) bus, or an extended industry Standard architecture (English: extended industry standard architecture, EISA) bus, among others. The bus 304 may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, only one thick line is shown in fig. 3, but not only one bus or one type of bus.
In addition to the memory 301, the transceiver 302, the processor 303 and the bus 304 shown in fig. 3, the terminal device 300 in the embodiment may further include other hardware according to the actual functions of the terminal device, which will not be described herein.
The terminal device 300 shown in fig. 3 may be the service terminal 102 in the communication system shown in fig. 1.
In the above operating environment, the embodiment of the present invention provides a business rule management method as shown in fig. 4. Referring to fig. 3, the business rule management method includes:
s401, a server receives a first service requirement of a target object sent by a service terminal, wherein the first service requirement comprises M service sub-requirements and priorities of the M service sub-requirements, a j-th service sub-requirement in the M service sub-requirements comprises N service rules, rule parameters of the N service rules and weight parameters of the N service rules, M is a positive integer greater than or equal to 1, N is a positive integer greater than or equal to 1, and j is a positive integer greater than or equal to and less than or equal to M.
Optionally, the server receives a first service requirement and a first request of the target object sent by the service terminal, where the first request is used to request the server to generate a rule script of the target object according to the first service requirement of the target object.
Optionally, at least two business sub-requirements in the M business sub-requirements include the same business rule; alternatively, any two of the M service sub-requirements do not contain the same service rule.
It should be noted that, the priority of the M service sub-requirements is not a priority order, but meets the priority condition set by the target object service requirement.
For example, the priority of the first sub-service requirement of the first service requirement indicates: the first business requirement of the target object can be met as long as the first business sub-requirement is met.
For example, the priority of the first sub-service requirement indicates that the first service requirement of the target object can be satisfied as long as the first sub-service requirement is satisfied under the condition that the second service sub-requirement is satisfied.
Alternatively, the service terminal may be an application program, browser, or the like, which has an intelligent computing function and can access the internet, on a terminal device that can perform communication interaction with other devices. The terminal equipment in the embodiment of the invention comprises a mobile phone, a tablet computer, a notebook computer, a palm computer, mobile internet equipment or other mobile terminals.
For example, a salesman obtains related information of a first user through an insurance product application program on a service terminal, a first display interface of the service terminal displays the related information of the first user, and the salesman judges whether the first user enjoys the purchasing qualification of the first insurance product through a target object on the first display interface. Before the target object is applied to the insurance product application program, determining the service requirement of the target object (namely, under which conditions the related information of the user enjoys purchasing qualification of the first insurance product), then sending the service requirement of the target object to a server through a service terminal, and generating a rule script of the target object according to the service requirement by the server. It will be appreciated that the business requirements of the target object consist of one or more business sub-requirements and the priority of each business sub-requirement (i.e., the target object is constrained by one or more constraints with the same/different priorities), each business sub-requirement consists of one or more underlying business rules, each business rule comprising one or more rule parameters and a weight parameter.
S402, the server analyzes the first service requirement, and obtains the M service sub-requirements, the priorities of the M service sub-requirements, and the service rules, rule parameters and weight parameters contained in the j service sub-requirements.
Specifically, the server analyzes the first service requirement, and obtains M service sub-requirements included in the first service requirement and priorities of the M service sub-requirements, and a service rule included in each service sub-requirement in the M service sub-requirements, a rule parameter of the service rule included in the M service sub-requirements, and a weight parameter of the service rule included in the M service sub-requirements.
S403, the server inquires whether the ith business rule in the N business rules has a corresponding business rule script in a business rule script library, wherein i is a positive integer greater than or equal to 1 and less than or equal to N.
Optionally, the business rule script library includes at least one business rule and a mapping relation of at least one business rule script.
It can be appreciated that in the embodiment of the present invention, the business rule scripts of the basic business rules are stored through the business rule scripts. After receiving a first service requirement of a target object sent by a service terminal, a server firstly inquires whether a service rule script corresponding to a service rule contained in the first service requirement exists in the service rule script library, and if so, the server can directly call the service rule script of the service rule.
S404, if the service sub-requirement exists, the server generates a sub-rule script of the j-th service sub-requirement according to N service rule scripts corresponding to the N service rules, rule parameters of the N service rules and weight parameters of the N service rules.
It can be understood that the server firstly invokes the service rule script corresponding to the N service rules in the service rule script library, the invoking parameters are rule parameters of the N service rules, and then generates the sub-rule script of the j-th service sub-requirement according to the service rule script corresponding to the N service rules and the weight parameters of the N service rules.
S405, the server generates a first target rule script of the target object according to M sub-rule scripts corresponding to the M business sub-demands and priorities of the M business sub-demands.
Optionally, the method further comprises: if the business rule script corresponding to the ith business rule in the N business rules does not exist in the business rule script library, the server generates the business rule script of the ith business rule according to the ith business rule; the server stores the ith business rule and the business rule script of the ith business rule into a business rule script library; and the server generates a sub-rule script of the j-th service sub-requirement according to the N service rule scripts corresponding to the N service rules, the rule parameters of the N service rules and the weight parameters of the N service rules.
It can be understood that the server generates the service rule script of the ith service rule, stores the ith service rule and the service rule script of the ith service rule into a service rule script library, and stores the mapping relationship between the ith service rule and the service rule script of the ith service rule into a service rule script library.
Optionally, the method further comprises: the server receives an updating request sent by a service terminal through a service rule maintenance window, wherein the updating request is used for updating parameters of a first target rule script, and the parameters of the first target rule script comprise priorities of the M service sub-demands, rule parameters of service rules contained in each service sub-demand in the M service sub-demands and weight parameters of service rules contained in each service sub-demand in the M service sub-demands; and the server updates parameters of the first target rule script according to the update request to generate a second target rule script of the target object.
It will be appreciated that the business operator may view the parameters of the first business requirement of the target object through the business rule maintenance window and may modify the parameters.
For example, fig. 5 is a business rule maintenance window 500 provided in an embodiment of the present invention. As shown, the first business requirement comprises two business sub-requirements, wherein the first business sub-requirement comprises 2 rule parameters and the second business sub-requirement comprises 3 rule parameters. The current value of the parameter is displayed in each parameter display frame 501 in the display window, and by clicking the edit button 502 of the window, the data in any one parameter display frame can be modified, i.e. the current value of the parameter corresponding to the parameter display frame is modified into new data.
Optionally, the method further comprises: the method comprises the steps that a server receives a modification request sent by a service terminal through a service rule maintenance window, wherein the modification request is used for increasing service sub-requirements in a first service requirement of a target object, the modification request comprises the first service sub-requirements and priorities of the first service sub-requirements, and the first service sub-requirements comprise X service rules, rule parameters of the X service rules and weight parameters of the X service rules; the server analyzes the first business sub-requirement and acquires the X business rules, rule parameters of the X business rules and weight parameters of the X business rules; the server inquires whether a service rule script corresponding to the X service rules exists in a service rule script library; if yes, the server generates a business rule script of a first business sub-requirement according to the X business rules, rule parameters of the X business rules and weight parameters of the X business rules; and the server generates a second target rule script of the target object according to the first rule script, the sub-rule script of the first service sub-requirement and the priority of the first service sub-requirement.
Optionally, the method further comprises: the server receives a modification request sent by the service terminal through a service rule maintenance window, wherein the modification request is used for deleting a second service sub-requirement in the first service requirement of the target object; and deleting the sub-rule script corresponding to the second business sub-requirement in the first target rule script according to the modification request by the server to generate a third target rule script of the target object.
Optionally, the method further comprises: the server receives a modification request sent by the service terminal through a service rule maintenance window, wherein the modification request is used for adding a first service rule for a second service sub-requirement in a first service requirement of a target object, and the modification request comprises the first service rule, rule parameters of the first service rule and weight parameters of the first service rule; the server inquires whether a business rule script corresponding to the first business rule exists in a business rule script library; if the sub-rule script of the first business sub-requirement exists, updating the sub-rule script of the first business sub-requirement according to the sub-rule script of the second business sub-requirement, the business rule script of the first business rule, the rule parameter of the first business rule and the weight parameter of the first business rule; and the server generates a fourth target rule script of the target object according to the first target rule script and the sub-rule script updated by the second business sub-requirement.
Optionally, the method further comprises: the server receives a modification request sent by the service terminal through the service rule maintenance window, and the modification request deletes a second service rule in a second service sub-requirement; the server deletes the second business rule in the second business sub-requirement and updates the sub-rule script of the second business sub-requirement; and the server generates a fifth target rule script of the target object according to the first target rule script and the sub-rule script updated by the second business sub-requirement.
In the embodiment of the invention, a server receives a first service requirement of a target object sent by a service terminal, wherein the first service requirement comprises M service sub-requirements, and a j-th service sub-requirement in the M service sub-requirements comprises N service rules. The server analyzes the first service requirement, and obtains the M service sub-requirements, the priority of the M service sub-requirements, and the service rule, rule parameter and weight parameter contained in the j service sub-requirements; the server inquires whether the ith business rule in the N business rules has a corresponding business rule script in a business rule script library; if yes, the server generates a sub-rule script of the j-th service sub-requirement according to the service rule scripts, rule parameters and weight parameters of the N service rules; and the server generates a first target rule script of the target object according to the sub-rule scripts and the priorities of the M business sub-demands. The business rule management method provided by the invention realizes a business rule management mode of combining multiple dimensions such as priority, weight and the like, and by the scheme provided by the embodiment of the invention, the business rule management efficiency can be improved, and the later maintenance is convenient and fast.
The embodiment of the invention also provides a business rule management device which can realize the function of the server in the business rule management method shown in fig. 4 and can also realize the beneficial effects of the business rule management method. The functions of the device can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes at least one module corresponding to the above functions.
Referring to fig. 5, fig. 5 is a block diagram of a business rule management apparatus 600 according to an embodiment of the present invention, where the apparatus includes: a receiving unit 601, a parsing unit 602, a querying unit 603 and a generating unit 604.
The receiving unit 601 is configured to receive a first service requirement of a target object sent by a service terminal, where the first service requirement includes M service sub-requirements and priorities of the M service sub-requirements, and a j-th service sub-requirement in the M service sub-requirements includes N service rules, rule parameters of the N service rules, and weight parameters of the N service rules, M is a positive integer greater than or equal to 1, N is a positive integer greater than or equal to 1, and i is a positive integer greater than or equal to and less than or equal to M.
The parsing unit 602 is configured to parse the first service requirement, and obtain the M service sub-requirements, the priorities of the M service sub-requirements, and the service rules, rule parameters, and weight parameters included in the j-th service sub-requirement.
And a query unit 603, configured to query whether an ith service rule of the N service rules has a corresponding service rule script in the service rule script library, where i is a positive integer greater than or equal to 1 and less than or equal to N.
And a generating unit 604, configured to generate a sub-rule script of the jth service sub-requirement according to the service rule script of the N service rules, the rule parameters of the N service rules, and the weight parameters of the N service rules if N service rule scripts corresponding to the N service rules exist in the service rule script library.
The generating unit 604 is further configured to generate a first target rule script of the target object according to the M sub-rule scripts corresponding to the M service sub-requirements and priorities of the M service sub-requirements.
Optionally, the apparatus further comprises a storage unit. The generating unit 604 is further configured to generate a service rule script of the ith service rule according to the ith service rule if the service rule script corresponding to the ith service rule does not exist in the service rule script library; the storage unit is used for storing the ith business rule and the business rule script of the ith business rule into a business rule script library; the generating unit 604 is further configured to generate a sub-rule script of the j-th service sub-requirement according to N service rule scripts corresponding to the N service rules, rule parameters of the N service rules, and weight parameters of the N service rules.
Optionally, the receiving unit 601 is further configured to receive an update request sent by the service terminal through the service rule maintenance window, where the update request is used to update parameters of a first target rule script, and the parameters of the first target rule script include priorities of the M service sub-requirements, rule parameters of a service rule included in each service sub-requirement of the M service sub-requirements, and weight parameters of a service rule included in each service sub-requirement of the M service sub-requirements; the generating unit 604 is further configured to update parameters of the first target rule script according to the update request, and generate a second target rule script of the target object.
Optionally, the receiving unit 601 is further configured to receive a modification request sent by the service terminal through the service rule maintenance window, where the modification request is used to increase a service sub-requirement in the first service requirement of the target object, the modification request includes the first service sub-requirement and a priority of the first service sub-requirement, and the first service sub-requirement includes X service rules, rule parameters of the X service rules, and weight parameters of the X service rules; the parsing unit 602 is further configured to parse the first service sub-requirement, and obtain the X service rules, rule parameters of the X service rules, and weight parameters of the X service rules; the query unit 603 is further configured to query whether a service rule script corresponding to each of the X service rules exists in the service rule script library; the generating unit 604 is further configured to generate a sub-rule script of the first service sub-requirement according to the X service rules, rule parameters of the X service rules, and weight parameters of the X service rules if a service rule script corresponding to the X service rules exists in the service rule script library; the generating unit 604 is further configured to generate a third target rule script of the target object according to the first target rule script, the sub-rule script of the first service sub-requirement, and the priority of the first service sub-requirement.
Optionally, the device further comprises a deleting unit. The receiving unit 601 is further configured to receive a modification request sent by the service terminal through the service rule maintenance window, where the modification request is used to delete a second service sub-requirement in the first service requirement of the target object; and the deleting unit is used for deleting the business rule script corresponding to the second business sub-requirement in the first target rule script according to the modification request and generating a third target rule script of the target object.
Optionally, the receiving unit 601 is further configured to receive a modification request sent by the service terminal through the service rule maintenance window, where the modification request is used to add a first service rule to a second service sub-requirement in the first service requirement of the target object, and the modification request includes the first service rule, a rule parameter of the first service rule, and a weight parameter of the first service rule; the query unit 603 is further configured to query whether a service rule script corresponding to the first service rule exists in the service rule script library; the generating unit 604 is further configured to update the sub-rule script of the second service sub-requirement according to the sub-rule script of the second service sub-requirement, the service rule script of the first service rule, the rule parameter of the first service rule, and the weight parameter of the first service rule if the service rule script corresponding to the first service rule exists in the service rule script library; the generating unit 604 is further configured to generate a fourth target rule script of the target object according to the first target rule script and the updated sub-rule script of the second service sub-requirement.
Optionally, the receiving unit 601 is further configured to receive a modification request sent by the service terminal through the service rule maintenance window, where the modification request deletes a second service rule in the second service sub-requirement; the generating unit 604 is further configured to delete a second service rule in the second service sub-requirement, and update a sub-rule script of the second service sub-requirement; the generating unit 604 is further configured to generate a fifth target rule script of the target object according to the first target rule script and the updated sub-rule script of the second service sub-requirement.
The steps of a method or algorithm described in connection with the present disclosure may be embodied in hardware, or may be embodied in software instructions executed by a processor. The software instructions may be comprised of corresponding software modules that may be stored in random access memory (english: random access memory; RAM), flash memory, read Only Memory (ROM), erasable programmable read only memory (english: erasable programmable ROM; EPROM), electrically erasable programmable read only memory (english: electrically EPROM; EEPROM), registers, hard disk, a removable disk, a compact disc read only memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. In addition, the ASIC may reside in a network device. The processor and the storage medium may reside as discrete components in a network device.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described in the embodiments of the present invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, these functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The foregoing detailed description of the embodiments of the present invention further illustrates the purposes, technical solutions and advantageous effects of the embodiments of the present invention, and it should be understood that the foregoing description is only a specific implementation of the embodiments of the present invention, and is not intended to limit the scope of the embodiments of the present invention, and any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the embodiments of the present invention should be included in the scope of the embodiments of the present invention.

Claims (10)

1. A business rule management method, the method comprising:
the method comprises the steps that a server receives a first service requirement of a target object sent by a service terminal, wherein the first service requirement comprises M service sub-requirements and priorities of the M service sub-requirements, a j-th service sub-requirement in the M service sub-requirements comprises N service rules, rule parameters of the N service rules and weight parameters of the N service rules, M is a positive integer greater than or equal to 1, N is a positive integer greater than or equal to 1, and j is a positive integer greater than or equal to and less than or equal to M;
the server analyzes the first service requirement, and obtains the M service sub-requirements, the priorities of the M service sub-requirements, and the service rules, rule parameters and weight parameters contained in the j service sub-requirements;
the server inquires whether the ith business rule in the N business rules has a corresponding business rule script in the business rule script library, wherein i is a positive integer which is more than or equal to 1 and less than or equal to N;
if yes, the server generates a sub-rule script of the j-th service sub-requirement according to N service rule scripts corresponding to the N service rules, rule parameters of the N service rules and weight parameters of the N service rules;
And the server generates a first target rule script of the target object according to the M sub-rule scripts corresponding to the M business sub-requirements and the priorities of the M business sub-requirements.
2. The method according to claim 1, wherein the method further comprises:
if the business rule script corresponding to the ith business rule does not exist in the business rule script library, the server generates the business rule script of the ith business rule according to the ith business rule;
the server stores the ith business rule and the business rule script of the ith business rule into the business rule script library;
and the server generates a sub-rule script of the j-th service sub-requirement according to N service rule scripts corresponding to the N service rules, rule parameters of the N service rules and weight parameters of the N service rules.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
the server receives an update request sent by the service terminal through a service rule maintenance window, wherein the update request is used for updating parameters of the first target rule script, and the parameters of the first target rule script comprise priorities of the M service sub-requirements, rule parameters of service rules contained in each service sub-requirement of the M service sub-requirements and weight parameters of service rules contained in each service sub-requirement of the M service sub-requirements;
And the server updates parameters of the first target rule script according to the update request to generate a second target rule script of the target object.
4. The method according to claim 1 or 2, wherein the business rule script library comprises at least one business rule and a mapping relation of at least one business rule script.
5. The method according to claim 1 or 2, wherein at least two of the M service sub-requirements contain the same service rule; or, any two business sub-requirements in the M business sub-requirements do not contain the same business rule.
6. A business rule management apparatus, the apparatus comprising:
the receiving unit is used for receiving a first service requirement of a target object sent by a service terminal, wherein the first service requirement comprises M service sub-requirements and priorities of the M service sub-requirements, a j-th service sub-requirement in the M service sub-requirements comprises N service rules, rule parameters of the N service rules and weight parameters of the N service rules, M is a positive integer greater than or equal to 1, N is a positive integer greater than or equal to 1, and j is a positive integer greater than or equal to and less than M;
The analyzing unit is used for analyzing the first service requirement, and acquiring the M service sub-requirements, the priority of the M service sub-requirements, and the service rule, rule parameter and weight parameter contained in the j service sub-requirements;
the query unit is used for querying whether a corresponding business rule script exists in a business rule script library or not in an ith business rule in the N business rules, wherein i is a positive integer which is more than or equal to 1 and less than or equal to N;
the generating unit is used for generating a sub-rule script of the j-th service sub-requirement according to N service rule scripts corresponding to the N service rules, rule parameters of the N service rules and weight parameters of the N service rules if the sub-rule scripts exist;
the generating unit is further configured to generate a first target rule script of the target object according to the M sub-rule scripts corresponding to the M service sub-requirements and priorities of the M service sub-requirements.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the generating unit is further used for generating a business rule script of the ith business rule according to the ith business rule if the business rule script corresponding to the ith business rule does not exist in the business rule script library;
The storage unit is used for storing the ith business rule and the business rule script of the ith business rule into the business rule script library;
the generating unit is further configured to generate a second sub-rule script of the first service sub-requirement according to N rule scripts corresponding to the N service rules, rule parameters of the N service rules, and weight parameters of the N service rules.
8. The apparatus according to claim 6 or 7, characterized in that the apparatus further comprises:
the receiving unit is further configured to receive an update request sent by the service terminal through a service rule maintenance window, where the update request is used to update parameters of the first target rule script, and the parameters of the first target rule script include priorities of the M service sub-requirements, rule parameters of service rules included in each service sub-requirement in the M service sub-requirements, and weight parameters of service rules included in each service sub-requirement in the M service sub-requirements;
and the generating unit is also used for updating the parameters of the first target rule script according to the updating request and generating a second target rule script of the target object.
9. A server comprising a processor, a communication device and a memory, the processor, the communication device and the memory being interconnected, wherein the memory is for storing application code, the processor being configured to invoke the application code to perform the method of any of claims 1-5.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, which is executed by a processor to implement the method of any one of claims 1 to 5.
CN201910767432.8A 2019-08-15 2019-08-15 Business rule management method and device Active CN110598093B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910767432.8A CN110598093B (en) 2019-08-15 2019-08-15 Business rule management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910767432.8A CN110598093B (en) 2019-08-15 2019-08-15 Business rule management method and device

Publications (2)

Publication Number Publication Date
CN110598093A CN110598093A (en) 2019-12-20
CN110598093B true CN110598093B (en) 2023-08-18

Family

ID=68855007

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910767432.8A Active CN110598093B (en) 2019-08-15 2019-08-15 Business rule management method and device

Country Status (1)

Country Link
CN (1) CN110598093B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111368512B (en) * 2020-03-04 2023-08-22 北京软通智慧科技有限公司 Service data conversion method, device, equipment and storage medium
CN112433821B (en) * 2020-12-08 2022-07-29 新华三大数据技术有限公司 Method and device for building business model, electronic equipment and medium
CN113900736B (en) * 2021-10-12 2023-11-28 重庆紫光华山智安科技有限公司 Dynamic configuration management method and system for business rules

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126215A (en) * 2016-06-17 2016-11-16 深圳市麦斯杰网络有限公司 Business rule scenario generation method and device
CN107682196A (en) * 2017-10-16 2018-02-09 北京锐安科技有限公司 Automatically generate and issue method, system, equipment and the storage medium of shunting rule
CN109981539A (en) * 2017-12-28 2019-07-05 中国移动通信集团辽宁有限公司 Game service hold-up interception method, device, equipment and medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126215A (en) * 2016-06-17 2016-11-16 深圳市麦斯杰网络有限公司 Business rule scenario generation method and device
CN107682196A (en) * 2017-10-16 2018-02-09 北京锐安科技有限公司 Automatically generate and issue method, system, equipment and the storage medium of shunting rule
CN109981539A (en) * 2017-12-28 2019-07-05 中国移动通信集团辽宁有限公司 Game service hold-up interception method, device, equipment and medium

Also Published As

Publication number Publication date
CN110598093A (en) 2019-12-20

Similar Documents

Publication Publication Date Title
CN108776934B (en) Distributed data calculation method and device, computer equipment and readable storage medium
CN110598093B (en) Business rule management method and device
US11010215B2 (en) Recommending applications based on call requests between applications
CN109617646B (en) Message conversion method and device, computer equipment and computer readable storage medium
CN111177112A (en) Database blocking method and device based on operation and maintenance management system and electronic equipment
CN108667660B (en) Method and device for route management and service routing and routing system
CN112199442A (en) Distributed batch file downloading method and device, computer equipment and storage medium
CN113986564A (en) Application data flow monitoring method and device, computer equipment and medium
CN114095567A (en) Data access request processing method and device, computer equipment and medium
CN114157679A (en) Cloud-native-based distributed application monitoring method, device, equipment and medium
CN113821254A (en) Interface data processing method, device, storage medium and equipment
CN111010453B (en) Service request processing method, system, electronic device and computer readable medium
CN115934076B (en) Cross-platform client micro-service providing device and method and electronic equipment
CN109067649B (en) Node processing method and device, storage medium and electronic equipment
CN116450723A (en) Data extraction method, device, computer equipment and storage medium
CN110852649A (en) Resource management method, terminal, device and readable storage medium
CN116032614A (en) Container network micro-isolation method, device, equipment and medium
CN115496544A (en) Data processing method and device
CN107347024A (en) A kind of method and apparatus for storing Operation Log
CN113836428A (en) Business pushing method and device, computer equipment and storage medium
CN114116924A (en) Data query method based on map data, map data construction method and device
US7716343B2 (en) System and method for operating a networked software application on a network with sporadic connectivity
CN110460659A (en) Data push method and device, storage medium, computer equipment
CN111782428B (en) Data calling system and method
CN116112336A (en) Alarm data processing method and device

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