WO2020119099A1 - Service rule processing method, server, and computer readable storage medium - Google Patents

Service rule processing method, server, and computer readable storage medium Download PDF

Info

Publication number
WO2020119099A1
WO2020119099A1 PCT/CN2019/095047 CN2019095047W WO2020119099A1 WO 2020119099 A1 WO2020119099 A1 WO 2020119099A1 CN 2019095047 W CN2019095047 W CN 2019095047W WO 2020119099 A1 WO2020119099 A1 WO 2020119099A1
Authority
WO
WIPO (PCT)
Prior art keywords
rule
business
document
target
instruction
Prior art date
Application number
PCT/CN2019/095047
Other languages
French (fr)
Chinese (zh)
Inventor
张景伟
Original Assignee
平安医疗健康管理股份有限公司
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 平安医疗健康管理股份有限公司 filed Critical 平安医疗健康管理股份有限公司
Publication of WO2020119099A1 publication Critical patent/WO2020119099A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes

Definitions

  • This application relates to the field of computer technology, and in particular, to a business rule processing method, a server, and a computer-readable storage medium.
  • Embodiments of the present application provide a method for processing business rules, which allows business personnel to write business rules in natural language and add or update them, to quickly add or update business rules in real time, and to improve the efficiency of business rule processing.
  • an embodiment of the present application provides a method for analyzing unemployment insurance loss data.
  • the method includes:
  • Compile the target rule document obtain the first rule data, and store the first rule data in the business system cache.
  • an embodiment of the present application provides a server.
  • the server includes a unit for performing the method of the first aspect.
  • the server includes:
  • An obtaining unit configured to receive a business rule import instruction, and in response to the business rule import instruction, acquire a rule document to be imported corresponding to the business rule import instruction;
  • a conversion unit configured to convert the content of the business rule in the rule document according to the semantic recognition conversion rule to obtain a target rule document, and the content of the target rule document satisfies preset compilation conditions
  • a compilation unit configured to compile the target rule document and obtain the first rule data
  • the storage unit is configured to store the first rule data in the cache of the business system.
  • an embodiment of the present application provides another server, including a processor, a memory, and a communication module, wherein the memory is used to store program code, and the processor is used to call the program code to perform the first aspect And any of its optional methods.
  • an embodiment of the present application provides a computer-readable storage medium that stores a computer program, where the computer program includes program instructions, which when executed by a processor causes the processing Implements the method of the first aspect and any of its optional methods.
  • the salesperson can first write the business rules in the rule document using natural language, and then convert the content of the business rules in the rule document through semantic recognition to meet the preset compilation Conditional target rule documents, and finally by compiling the business rules in the target rule documents into rule data that can be used by the business system, and storing the rule data in the business system cache.
  • a salesperson uses natural language to edit and manage business rules, which can improve the user experience; in addition, calling business rule data directly from the business system cache to process business can effectively improve business processing efficiency.
  • FIG. 1 is a schematic flowchart of a business rule processing method provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of another business rule processing method provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of yet another business rule processing method provided by an embodiment of the present application.
  • FIG. 4 is a schematic block diagram of a server provided by an embodiment of the present application.
  • FIG. 5 is a schematic block diagram of a device provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a server provided by an embodiment of the present application.
  • FIG. 1 is a schematic flowchart of a business rule processing method provided by an embodiment of the present application, as shown in the figure, the method may include:
  • the salesperson when business rules need to be changed or added in the business system, the salesperson can use the self-recognized language to write the relevant business rules into the text document, and then read the text document containing the business rule information To update or add new rules to the business system.
  • the above rule text document can be an excel form, a Word document, a text document, etc.
  • the rule text document can contain multiple rules, which can be classified according to different business types, that is, a rule text can contain a business process Various rules.
  • One rule and another rule, and different types of rules can be distinguished in different ways according to the different rules text documents used.
  • Word rule document is only an example of a rule text document according to an embodiment of the present application, and does not limit the writing format of the rule text document of the present document.
  • a salesperson when a salesperson writes business rules in a rule document using natural language, he initiates an import instruction, and imports the written rule document to generate rule data in the cache of the business system.
  • the business rule server After receiving the business rule import instruction, the business rule server responds to the rule import instruction and obtains the rule document written by the salesperson specified by the import instruction.
  • the process continues with step 102 to process the rule document accordingly.
  • the above-mentioned import instruction may include the identifier of the rule document, and after receiving the business rule import instruction, the business rule server obtains the corresponding rule document identifier from the rule document library according to the identifier of the above-mentioned rule document Rule file, and then execute step 102.
  • the business rule server converts the content of the business rule in the rule document according to the semantic recognition conversion rule, so as to obtain a business with a specific format that can be recognized
  • the target rule document of the rule content is set for implementation, and can convert the specific content of the business rules written by the salesperson into conversion rules that can be recognized and have specific format content.
  • the business rule server After the business rule server obtains the rule document, the business rule server performs semantic recognition on the content of the business rule in the above rule document, for example, using neuro-linguistic programming (NLP) technology to obtain the semantic recognition result . Then extract the execution conditions, execution objects, execution actions and other contents of each business rule from the content of each business rule in the above rule document according to the semantic recognition result. Finally, according to the execution conditions, execution objects and execution actions of each business rule, edit and generate standardized rule statements according to the preset writing format, so as to obtain the above target rule document.
  • NLP neuro-linguistic programming
  • the business rule server converts the rule document into the target rule document, it uses the business system to compile the above target rule document, so as to obtain the first rule data that can directly process the business, and then A rule of data is stored in the cache of the business system.
  • the first rule data needs to be used, it can be directly called from the cache of the business system to improve the efficiency of business processing.
  • the salesperson can first write the business rules in the rule document using natural language, and then convert the content of the business rules in the rule document through semantic recognition to meet the compilation conditions The target rule document, and finally by compiling the business rules in the target rule document into rule data that can be used by the business system, and storing the rule data in the cache of the business system.
  • salespersons use natural language to edit and manage business rules, which can improve user experience.
  • FIG. 2 is a schematic flowchart of another business rule processing method provided by an embodiment of the present application. As shown in FIG. 2, the method may include:
  • Compile the target rule document obtain the first rule data, and store the first rule data in the business system cache.
  • the business rule server after the business rule server stores the above first rule data in the cache of the business system, it establishes the correspondence between the business label and the rule data according to the specific business, so that when the business needs to be processed, it can be
  • the corresponding rule data is called from the cache of the business system according to the business tag of the business.
  • the target rule data corresponding to the service tag is directly called from the cache of the service system according to the service tag of the first service in the service request, and then according to the called target rule data To process the first business accordingly.
  • the salesperson can first write the business rules in the rule document using natural language, and then convert the content of the business rules in the rule document through semantic recognition to meet the compilation conditions Target rule document. Finally, the business rules in the target rule document are compiled into rule data that can be used by the business system, and the rule data is stored in the cache of the business system. When the business needs to be processed, it can be directly called from the cache of the business system Corresponding business rule data to handle business.
  • the salesperson uses natural language to edit and manage the business rules, which can improve the user experience; in addition, calling the business rules directly from the business system cache to process the business can effectively improve the business processing efficiency.
  • FIG. 3 is a schematic flowchart of yet another business rule processing method provided by an embodiment of the present application. As shown in FIG. 3, the method may include:
  • the business server after the business server converts the content of the business rule in the above rule document according to the semantic recognition conversion rule and obtains the target rule document, the business server stores the above target rule document in the rule document library for subsequent Manage the business rules in the target rule document accordingly, for example, update business rules, add business rules, delete business rules, etc.
  • Compile the target rule document obtain the first rule data, and store the first rule data in the business system cache.
  • the business rule server after the business rule server stores the above target rule document in the rule document library, it assigns a rule label to each business rule in the above target rule document, and creates a correspondence between the rule label and the target rule document Relationship, so that the target rule document where the business rule corresponding to the rule tag is located can be subsequently found according to the rule tag, and then the business rule corresponding to the above rule tag in the target rule document is managed.
  • the business rule server when the business rule server stores the above target rule document in the rule document library, and generates first rule data according to the target rule document, after storing the first rule data in the cache of the business system , Receiving an operation instruction for the business rule in the above target rule document, where the operation instruction includes a second rule label of the second business rule, so as to find the second business rule according to the second rule label, and perform a corresponding operating.
  • the above operation instruction includes an add instruction, an update instruction, and a delete instruction.
  • the business rules in the target rule document can be updated, deleted, and added.
  • the salesperson when the salesperson needs to add an operation in the above target rule document, the salesperson only needs to initiate an operation instruction for adding a business rule, and then enter the corresponding business rule to add the business rule in the above target rule document.
  • the business rule server After receiving the instruction to add the second business rule, the business rule server receives the second text business rule input by the salesperson, wherein the second text business rule is a text format of the second business rule. Then, the business rule server converts the second text business rule according to the semantic recognition conversion rule to obtain the converted second business rule. Then, adding the converted second business rule to the target rule document according to the second rule tag completes the operation of adding the second business rule to the target rule document.
  • the salesperson When the salesperson needs to update an operation in the above target rule document, the salesperson only needs to initiate an operation instruction to update the business rule, and then enter the corresponding business rule to update the corresponding business rule in the above target rule document.
  • the business rule server receives the update instruction for the second business rule, it receives the second text business rule input by the salesperson, wherein the second text business rule is a text format of the second business rule. Then, the business rule server converts the second text business rule according to the semantic recognition conversion rule to obtain the converted second business rule. Then, according to the second rule label, the original second business rule in the target rule document is updated to the converted second business rule to complete the update operation of the second business rule in the target rule document.
  • the clerk When the clerk needs to delete an operation in the target rule document, the clerk only needs to initiate an operation instruction to delete the business rule, and then according to the second rule label, the second service corresponding to the second rule label in the target rule document Rule deletion completes the deletion of the second business rule in the above target rule document.
  • the business rule server after the business rule server executes the corresponding operation on the second business rule in the target rule document according to the operation instruction, the business rule server compiles the target rule document to obtain the second rule data and converts the business
  • the first rule data in the system cache is replaced with the above second rule data in order to achieve the purpose of indirectly managing the corresponding second rule data in the business system cache by managing the second business rule in the target rule document.
  • the salesperson can first write the business rules in the rule document using natural language, and then convert the content of the business rules in the rule document through semantic recognition to meet the compilation conditions Target rule documents, and store the target rule documents in the rule document library; Finally, by compiling the business rules in the target rule documents into rule data that can be used by the business system, and storing the rule data in the business system cache, when needed When the business rule data in the business system is added, updated, deleted, etc., you can perform the corresponding operation on the target rule document in the rule document library, and then recompile the target rule document to obtain new rule data, and finally The old rule data in the business system is updated to the new rule data.
  • the salesperson uses natural language to edit and manage business rules, which can improve the user experience; in addition, the salesperson can also quickly manage the rule data in the business system in real time by managing the target rule documents in the rule document library Add, update and delete operations improve the efficiency of business rule data management.
  • An embodiment of the present application further provides a server, and the server is configured to execute a unit of any of the foregoing methods.
  • FIG. 4 it is a schematic block diagram of a server provided by an embodiment of the present application.
  • the server in this embodiment includes: an acquisition unit 401, a conversion unit 402, a compilation unit 403, and a storage unit 404.
  • the obtaining unit 401 is configured to receive a business rule import instruction, and in response to the business rule import instruction, acquire a rule document to be imported corresponding to the business rule import instruction;
  • the conversion unit 402 is configured to convert the content of the business rule in the rule document according to the semantic recognition conversion rule to obtain a target rule document, and the content of the target rule document satisfies the compilation conditions;
  • the compiling unit 403 is configured to compile the above target rule document to obtain the above first rule data
  • the storage unit 404 is configured to store the first rule data in the cache of the business system.
  • the salesperson can first write the business rules in the rule document using natural language, and then convert the content of the business rules in the rule document through semantic recognition to meet the compilation conditions The target rule document, and finally by compiling the business rules in the target rule document into rule data that can be used by the business system, and storing the rule data in the cache of the business system.
  • salespersons use natural language to edit and manage business rules, which can improve user experience.
  • the above server also includes:
  • the creating unit 405 is used to establish the correspondence between the service tag and the above rule data
  • the first receiving unit 406 is configured to receive a service processing request, where the service processing request includes the first service and the service label of the first service;
  • the calling unit 407 is configured to call the target rule data corresponding to the service tag from the cache of the service system, and process the first service based on the target rule data.
  • the corresponding business rule data can be directly called from the cache of the business system to process the business.
  • the salesperson uses natural language to edit and manage the business rules, which can improve the user experience; in addition, calling the business rules directly from the business system cache to process the business can effectively improve the business processing efficiency.
  • the above server also includes:
  • the allocation unit 408 is used to allocate rule labels to the business rules in the target rule document
  • the above-mentioned creating unit 405 is used to establish the correspondence between the rule label and the above target rule document;
  • the storage unit 404 is configured to store the target rule document in a rule document library
  • the first receiving unit 406 is configured to receive an operation instruction for the business rule in the target rule document, and the operation instruction includes a second rule label for the second business rule;
  • the rule processing unit 409 is configured to perform an operation corresponding to the above operation instruction, where the operation instruction includes an add instruction, an update instruction, and a delete instruction;
  • the acquiring unit 401 is configured to acquire the target rule document from the rule document library according to the second rule tag;
  • the first updating unit 410 is configured to compile the target rule document to obtain second rule data, and update the first rule data in the cache of the business system to the second rule data.
  • the above rule processing unit includes:
  • the second receiving unit 4091 is configured to receive input of a second text business rule, and the second text business rule is a text format of the second business rule;
  • the adding unit 4092 is configured to convert the second text business rule according to the semantic recognition conversion rule to obtain the converted second business rule, and add the converted second business rule to the target rule according to the second rule label Document.
  • the second receiving unit 4091 is configured to receive input of a second text business rule, and the second text business rule is a text format of the second business rule;
  • the above rule processing unit also includes:
  • the second update unit 4093 is configured to convert the second text business rule according to the semantic recognition conversion rule to obtain the converted second business rule, and convert the original second business rule in the target rule document according to the second rule label Updated to the second business rule after conversion.
  • the above rule processing unit further includes:
  • the deleting unit 4094 is configured to delete the second business rule corresponding to the second rule label in the target rule document according to the second rule label.
  • the conversion unit includes:
  • the identification unit 4021 is used to semantically identify the content of the business rule in the above rule document, and extract the execution conditions, execution objects, and execution actions of the business rule from the content of the business rule in the above rule document;
  • the editing unit 4022 is configured to edit the content of the business rule in the rule document according to a preset writing format according to the execution condition, the execution object, and the execution action, to obtain the target rule document.
  • the rule document includes an excel sheet, a Word document, and a text document.
  • the import instruction may include the identification of the rule document
  • the obtaining unit 401 is specifically configured to receive a business rule import instruction, and obtain the rule document corresponding to the rule document identifier from the rule document library according to the above-mentioned rule document identifier.
  • the salesperson can first write the business rules in the rule document using natural language, and then convert the content of the business rules in the rule document through semantic recognition to meet the compilation conditions Target rule documents, and store the target rule documents in the rule document library; Finally, by compiling the business rules in the target rule documents into rule data that can be used by the business system, and storing the rule data in the business system cache, when needed When the business rule data in the business system is added, updated, deleted, etc., you can perform the corresponding operation on the target rule document in the rule document library, and then recompile the target rule document to obtain new rule data, and finally The old rule data in the business system is updated to the new rule data.
  • the salesperson uses natural language to edit and manage business rules, which can improve the user experience; in addition, the salesperson can also quickly manage the rule data in the business system in real time by managing the target rule documents in the rule document library Add, update and delete operations improve the efficiency of business rule data management.
  • FIG. 5 is a device provided by an embodiment of the present application.
  • the device may be a server.
  • the device includes: one or more processors 501; one or more input devices 502, one or more Out device 503 and memory 504.
  • the above processor 501, input device 502, output device 503, and memory 504 are connected via a bus 505.
  • the memory 502 is used to store instructions, and the processor 501 is used to execute the instructions stored in the memory 502.
  • the processor 501 is used to: receive a business rule import instruction, respond to the business rule import instruction, and obtain a rule document to be imported corresponding to the business rule import instruction;
  • the content of the business rule in the above rule document is converted to obtain a target rule document, and the content of the target rule document satisfies the compilation conditions; compile the target rule document to obtain the first rule data, and store the first rule data in the business system cache in.
  • the so-called processor 501 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP) , Application Specific Integrated Circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the input device 502 may include a touchpad, a fingerprint sensor (for collecting user's fingerprint information and fingerprint direction information), a microphone, and the like
  • the output device 503 may include a display (LCD, etc.), a speaker, and the like.
  • the memory 504 may include a read-only memory and a random access memory, and provide instructions and data to the processor 501. A portion of the memory 504 may also include non-volatile random access memory. For example, the memory 504 may also store device type information.
  • the processor 501, the input device 502, and the output device 503 described in the embodiments of the present application may execute the implementation manner described in the first embodiment of the first embodiment of a business rule processing method provided by the embodiments of the present application.
  • the implementation manners in the second embodiment and the third embodiment can also execute the server implementation manners described in the embodiments of the present application, which will not be repeated here.
  • a computer-readable storage medium stores a computer program, and the computer program is implemented when executed by a processor: receiving a business rule import instruction, and responding to the business rule import Instruction to obtain the rule document to be imported corresponding to the business rule import instruction; convert the content of the business rule in the rule document according to the semantic recognition conversion rule to obtain the target rule document, and the content of the target rule document satisfies the compilation conditions; compile the above The target rule document obtains the above-mentioned first rule data, and stores the above-mentioned first rule data in the cache of the business system.
  • the foregoing computer-readable storage medium may be the internal storage unit of the terminal described in any of the foregoing embodiments, such as a hard disk or a memory of the terminal.
  • the computer-readable storage medium may also be an external storage device of the terminal, for example, a plug-in hard disk equipped on the terminal, a smart memory card (Smart) Card (SMC), a secure digital (SD) card, and a flash memory card (Flash Card) etc.
  • the computer-readable storage medium may also include both the internal storage unit of the terminal and the external storage device.
  • the computer-readable storage medium is used to store the computer program and other programs and data required by the terminal.
  • the above-mentioned computer-readable storage medium can also be used to temporarily store data that has been or will be output.
  • the server 600 may have a relatively large difference due to different configurations or performances, and may include one or more central processing units (CPUs) 622 (for example , One or more processors) and memory 632, one or more storage media 630 (such as one or more mass storage devices) that stores application programs 642 or data 644.
  • the memory 632 and the storage medium 630 may be short-term storage or persistent storage.
  • the program stored in the storage medium 630 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server.
  • the central processor 622 may be configured to communicate with the storage medium 630, and execute a series of instruction operations in the storage medium 630 on the server 600.
  • the server 600 may also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input and output interfaces 658, and/or one or more operating systems 641, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
  • operating systems 641 such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
  • the steps performed by the server in the above embodiments may be based on the server structure shown in FIG. 6.
  • the disclosed system, server, and method may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the above-mentioned units is only a division of logical functions.
  • there may be another division manner for example, multiple units or components may be combined or may Integration into another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual couplings or direct couplings or communication connections may be indirect couplings or communication connections through some interfaces, devices, or units, and may also be electrical, mechanical, or other forms of connection.
  • the above-mentioned units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments of the present application.
  • the functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or software function unit.
  • the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
  • the technical solution of the present application essentially or part of the contribution to the existing technology, or all or part of the technical solution can be embodied in the form of a software product
  • the computer software product is stored in a storage medium
  • several instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the above methods in various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Library & Information Science (AREA)
  • Document Processing Apparatus (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Disclosed are a service rule processing method, a server, and a computer readable storage medium. The method comprises: receiving a service rule import instruction to obtain a rule document to be imported corresponding to the service rule import instruction; then converting content of a service rule in the rule document according to a semantic recognition conversion rule to obtain a target rule document, the content of the target rule document satisfying a preset compiling condition; and finally compiling the target rule document to obtain first rule data and storing the first rule data into a buffer of a service system. According to embodiments of the present application, a salesman edits and manages a service rule using a natural language, such that user experience can be improved. In addition, the direct invoking of the service rule from the buffer of the service system can effectively improve the service processing efficiency.

Description

一种业务规则处理方法、服务器及计算机可读存储介质Business rule processing method, server and computer readable storage medium
本申请要求于2018年12月13日提交中国专利局、申请号为201811530216.3、申请名称为“一种业务规则处理方法、服务器及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application submitted to the China Patent Office on December 13, 2018, with the application number 201811530216.3 and the application name as "a business rule processing method, server, and computer-readable storage medium." Incorporated by reference in this application.
技术领域Technical field
本申请涉及计算机技术领域,尤其涉及一种业务规则处理方法、服务器及计算机可读存储介质。This application relates to the field of computer technology, and in particular, to a business rule processing method, a server, and a computer-readable storage medium.
背景技术Background technique
在业务***中,存在着各很多业务规则,由于市场要求业务规则经常变化,业务***必须依据业务规则的变化快速、低成本的对业务规则进行更新。为了快速、低成本的更新,业务人员应能直接管理业务***中的规则,不需要程序开发人员参与。传统的业务***采用规则引擎满足上要求,将需要更新或添加的业务规则更新或添加到规则库中,然后通过规则引擎冲规则库中调用新的规则。对于传统的业务规则的更新或添加存在以下问题:业务规则必须有数据库管理员进行编辑、更新和管理,另外对于业务规则的更新或添加周期较长。In the business system, there are many business rules. Because the market requires business rules to change frequently, the business system must update the business rules quickly and at low cost according to the changes in the business rules. In order to update quickly and at low cost, business personnel should be able to directly manage the rules in the business system without the need for program developers to participate. Traditional business systems use a rule engine to meet the above requirements, update or add business rules that need to be updated or added to the rule base, and then call the new rules in the rule base through the rule engine. For the update or addition of traditional business rules, there are the following problems: the business rules must be edited, updated, and managed by the database administrator, and in addition, the update or addition cycle of business rules is relatively long.
发明内容Summary of the invention
本申请实施例提供一种业务规则处理方法,可让业务员能够使用自然语言编写业务规则并进行添加或更新,实现业务规则的实时快速添加或更新,提升业务规则处理效率。Embodiments of the present application provide a method for processing business rules, which allows business personnel to write business rules in natural language and add or update them, to quickly add or update business rules in real time, and to improve the efficiency of business rule processing.
第一方面,本申请实施例提供了一种失业险核损数据分析方法,该方法包括:In a first aspect, an embodiment of the present application provides a method for analyzing unemployment insurance loss data. The method includes:
接收业务规则导入指令,响应所述业务规则导入指令,获取所述业务规则导入指令对应的待导入的规则文档;Receiving a business rule import instruction, and in response to the business rule import instruction, obtaining a rule document to be imported corresponding to the business rule import instruction;
根据语义识别转换规则对所述规则文档中业务规则的内容进行转换,获得目标规则文档,所述目标规则文档的内容满足预设编译条件;Converting the content of the business rule in the rule document according to the semantic recognition conversion rule to obtain a target rule document, and the content of the target rule document satisfies preset compilation conditions;
编译所述目标规则文档,获得所述第一规则数据,将所述第一规则数据存储 在业务***缓存中。Compile the target rule document, obtain the first rule data, and store the first rule data in the business system cache.
第二方面,本申请实施例提供了一种服务器,该服务器包括用于执行上述第一方面的方法的单元,该服务器包括:In a second aspect, an embodiment of the present application provides a server. The server includes a unit for performing the method of the first aspect. The server includes:
获取单元,用于接收业务规则导入指令,响应所述业务规则导入指令,获取所述业务规则导入指令对应的待导入的规则文档;An obtaining unit, configured to receive a business rule import instruction, and in response to the business rule import instruction, acquire a rule document to be imported corresponding to the business rule import instruction;
转换单元,用于根据语义识别转换规则对所述规则文档中业务规则的内容进行转换,获得目标规则文档,所述目标规则文档的内容满足预设编译条件;A conversion unit, configured to convert the content of the business rule in the rule document according to the semantic recognition conversion rule to obtain a target rule document, and the content of the target rule document satisfies preset compilation conditions;
编译单元,用于编译所述目标规则文档,获得所述第一规则数据;A compilation unit, configured to compile the target rule document and obtain the first rule data;
存储单元,用于将所述第一规则数据存储在业务***缓存中。The storage unit is configured to store the first rule data in the cache of the business system.
第三方面,本申请实施例提供了另一服务器,包括处理器、存储器和通信模块,其中,所述存储器用于存储程序代码,所述处理器用于调用所述程序代码来执行上述第一方面及其任一种可选方式的方法。In a third aspect, an embodiment of the present application provides another server, including a processor, a memory, and a communication module, wherein the memory is used to store program code, and the processor is used to call the program code to perform the first aspect And any of its optional methods.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行上述第一方面及其任一种可选方式的方法。According to a fourth aspect, an embodiment of the present application provides a computer-readable storage medium that stores a computer program, where the computer program includes program instructions, which when executed by a processor causes the processing Implements the method of the first aspect and any of its optional methods.
可以看出,本申请实施例通过在本申请实施例中,业务员可以先使用自然语言将业务规则编写在规则文档中,然后将规则文档中业务规则的内容通过语义识别转换为满足预设编译条件的目标规则文档,最后通过将目标规则文档中的业务规则编译成业务***能够使用的规则数据,并将规则数据储存在业务***缓存中。通过本申请实施例,业务员使用自然语言来编辑管理业务规则,可以提升用户体验;另外,直接从业务***缓存中调用业务规则数据来处理业务能有效提升业务处理效率。It can be seen that in this embodiment of the present application, in the embodiment of the present application, the salesperson can first write the business rules in the rule document using natural language, and then convert the content of the business rules in the rule document through semantic recognition to meet the preset compilation Conditional target rule documents, and finally by compiling the business rules in the target rule documents into rule data that can be used by the business system, and storing the rule data in the business system cache. Through the embodiment of the present application, a salesperson uses natural language to edit and manage business rules, which can improve the user experience; in addition, calling business rule data directly from the business system cache to process business can effectively improve business processing efficiency.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。In order to more clearly explain the technical solutions of the embodiments of the present application, the drawings required in the description of the embodiments will be briefly introduced below.
图1是本申请实施例提供的一种业务规则处理方法的示意流程图;FIG. 1 is a schematic flowchart of a business rule processing method provided by an embodiment of the present application;
图2是本申请实施例提供的另一种业务规则处理方法的示意流程图;2 is a schematic flowchart of another business rule processing method provided by an embodiment of the present application;
图3是本申请实施例提供的又一种业务规则处理方法的示意流程图;3 is a schematic flowchart of yet another business rule processing method provided by an embodiment of the present application;
图4是本申请实施例提供的一种服务器的示意框图;4 is a schematic block diagram of a server provided by an embodiment of the present application;
图5是本申请实施例提供的一种设备示意框图;5 is a schematic block diagram of a device provided by an embodiment of the present application;
图6是本申请实施例提供的一种服务器结构示意图。6 is a schematic structural diagram of a server provided by an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the drawings in the embodiments of the present application.
参见图1,是本申请实施例提供一种业务规则处理方法的示意流程图,如图所示该方法可包括:Referring to FIG. 1, which is a schematic flowchart of a business rule processing method provided by an embodiment of the present application, as shown in the figure, the method may include:
101:接收业务规则导入指令,响应上述业务规则导入指令,获取上述业务规则导入指令对应的待导入的规则文档。101: Receive a business rule import instruction, respond to the business rule import instruction, and obtain a rule document to be imported corresponding to the business rule import instruction.
在本申请实施例中,当需要在业务***中更改或添加业务规则时,业务员可以使用自认语言将相关的业务规则写入到文本文档中,然后通过读取包含业务规则信息的文本文档,将新的规则更新或添加到业务***中。In the embodiment of the present application, when business rules need to be changed or added in the business system, the salesperson can use the self-recognized language to write the relevant business rules into the text document, and then read the text document containing the business rule information To update or add new rules to the business system.
其中,上述规则文本文档可以是excel表格、Word文档、text文档等,规则文本文档中可以包含多条规则,可以将多条规则按照不同业务类型分类,即一个规则文本中可以包含一个业务流程的多种规则。一条规则与另一条规则之间、不同种类规则之间可以根据使用的规则文本文档的不同而采用不同的方式加以区分。Among them, the above rule text document can be an excel form, a Word document, a text document, etc. The rule text document can contain multiple rules, which can be classified according to different business types, that is, a rule text can contain a business process Various rules. One rule and another rule, and different types of rules can be distinguished in different ways according to the different rules text documents used.
以意外保险理赔流程中的核责规则以及核损规则,且采用的是Word文档编写规则为例。假设上述意外保险有三条核责规则和四条核损规则,首先可以将Word文档的保存名称命名为意外保险理赔规则,以方便后续作为意外保险规则的调用索引。然后将分别对核责规则和核损规则进行编写,例如编写内容为:Take the verification rules and loss rules in the accident insurance claims process, and the Word document writing rules are used as an example. Assuming that the above accident insurance has three rules of liability and four rules of loss, first of all, the name of the saved Word document can be named as the accident insurance claim rule to facilitate subsequent use as the index of the accident insurance rule call. Then the nuclear liability rules and nuclear loss rules will be written separately, for example:
“《核责规则》"The Nuclear Liability Rules
规则1、判断被保险人患额疾病是否为保险合同中约定的疾病;Rule 1. Determine whether the insured's disease is the disease stipulated in the insurance contract;
规则2、判断被保险人是否是首次患上述疾病; Rule 2. Determine whether the insured is suffering from the above diseases for the first time;
规则3、**********。Rule 3, ********.
《核损规则》Nuclear Damage Rules
规则1、**********;Rule 1, ********;
规则2、**********; Rule 2, ********
规则3、**********;Rule 3, ********
规则4、**********。”Rule 4, ********. "
可以理解的是上述Word规则文档只是作为本申请实施例的一个规则文本文档的一个示例,并不限定本申请文档的规则文本文档编写格式。It can be understood that the above-mentioned Word rule document is only an example of a rule text document according to an embodiment of the present application, and does not limit the writing format of the rule text document of the present document.
具体的,当业务员将业务规则使用自然语言将业务规则编写在规则文档里之后,发起导入指令,将写好的规则文档导入就可以在业务***的缓存中生成规则数据了。业务规则服务器在接收到业务规则导入指令之后,响应该规则导入指令,获取上述导入指令指定的业务员编写好的规则文档,当获取到规则文档后继续执行步骤102对规则文档进行相应的处理。Specifically, when a salesperson writes business rules in a rule document using natural language, he initiates an import instruction, and imports the written rule document to generate rule data in the cache of the business system. After receiving the business rule import instruction, the business rule server responds to the rule import instruction and obtains the rule document written by the salesperson specified by the import instruction. When the rule document is obtained, the process continues with step 102 to process the rule document accordingly.
作为一种可选的实施方式,上述导入指令中可以包含规则文档的标识,当业务规则服务器接收到业务规则导入指令后,根据上述规则文档的标识从规则文档库中获取该规则文档标识对应的规则文档,然后执行步骤102。As an optional implementation manner, the above-mentioned import instruction may include the identifier of the rule document, and after receiving the business rule import instruction, the business rule server obtains the corresponding rule document identifier from the rule document library according to the identifier of the above-mentioned rule document Rule file, and then execute step 102.
102:根据语义识别转换规则对上述规则文档中业务规则的内容进行转换,获得目标规则文档,上述目标规则文档的内容满足预设编译条件。102: Convert the content of the business rules in the above rule document according to the semantic recognition conversion rule to obtain a target rule document, and the content of the above target rule document satisfies preset compilation conditions.
在本申请实施例中,当业务规则服务器获取到规则文档之后,业务规则服务器便根据语义识别转换规则对上述规则文档中业务规则的内容进行转换,以便得到包含能够被识别的具有特定格式的业务规则内容的目标规则文档。其中,上述语义识别转换规则为实现设置好的,能将业务员编写的业务规则的具体内容转换成能够被识别的就有特定格式内容的转换规则。In the embodiment of the present application, after the business rule server obtains the rule document, the business rule server converts the content of the business rule in the rule document according to the semantic recognition conversion rule, so as to obtain a business with a specific format that can be recognized The target rule document of the rule content. Among them, the above semantic recognition conversion rules are set for implementation, and can convert the specific content of the business rules written by the salesperson into conversion rules that can be recognized and have specific format content.
具体的,当业务规则服务器获取到规则文档之后,业务规则服务器对上述规则文档中业务规则的内容进行语义识别,例如,采用神经语言程序学(Neuro-Linguistic Programming,NLP)技术,得到语义识别结果。然后根据语义识别结果从上述规则文档中每条业务规则的内容中提取每条业务规则的执行条件、执行对象、执行动作等内容。最后,根据每条业务规则的执行条件、执行对象、执行动作按照预设的编写格式进行编辑生成规范的规则语句,以便得到上述目标规则文档。Specifically, after the business rule server obtains the rule document, the business rule server performs semantic recognition on the content of the business rule in the above rule document, for example, using neuro-linguistic programming (NLP) technology to obtain the semantic recognition result . Then extract the execution conditions, execution objects, execution actions and other contents of each business rule from the content of each business rule in the above rule document according to the semantic recognition result. Finally, according to the execution conditions, execution objects and execution actions of each business rule, edit and generate standardized rule statements according to the preset writing format, so as to obtain the above target rule document.
举例来说,医疗保险的核责规则中有一条规则为:“被保险人经医院确诊初次发生本主险合同列明的重大疾病,保险人按基本保险金额赔付给被保险人保险金。经过语义识别得到在该条规则中,“被保险人”、“保险人”为执行对象,“被保险人初次确诊保险合同列举的重大疾病”为执行条件,“保险人按基本保险金额赔付给被保险人保险金”为执行动作,根据上述规则内容生成的规范规则语句则为:“如果:被保险人+初次确诊+保险合同列举的重大疾病,那么:保险 人+赔付+基本保险金,否则:结束。”可以理解的是,上述将医疗保险核责规则转换为规范的规则语句的例子仅为本发明实施例的一个示例,不做任何限定。For example, there is a rule in the medical insurance liability rules: "The insured is diagnosed by the hospital for the first time with a major illness listed in this main insurance contract, and the insurer pays the insured the insurance premium according to the basic insurance amount. Semantic recognition is obtained. In this rule, "insured" and "insurer" are the execution targets, "insured first diagnoses the major illness listed in the insurance contract" as the execution condition, and "insurer pays the basic insurance amount to the insured "Insurer's insurance premium" is an action, and the standard rule statement generated according to the above rules is: "If: insured + first diagnosis + major illness listed in the insurance contract, then: insurer + compensation + basic insurance premium, otherwise :End. It can be understood that the above example of converting the medical insurance auditing rules into standardized rule statements is only an example of the embodiment of the present invention, and does not make any limitation.
103:编译上述目标规则文档,获得上述第一规则数据,将上述第一规则数据存储在业务***缓存中。103: Compile the above target rule document, obtain the above first rule data, and store the above first rule data in the business system cache.
在本申请实施例中,当业务规则服务器将规则文档转换成目标规则文档后,便使用业务***来编译上述目标规则文档,以便得到能够直接对业务进行处理的第一规则数据,然后将上述第一规则数据存储到业务***的缓存中,当需要使用上述第一规则数据时,可以直接从业务***缓存中直接调用,以便提业务处理的效率。In the embodiment of the present application, after the business rule server converts the rule document into the target rule document, it uses the business system to compile the above target rule document, so as to obtain the first rule data that can directly process the business, and then A rule of data is stored in the cache of the business system. When the first rule data needs to be used, it can be directly called from the cache of the business system to improve the efficiency of business processing.
可以看出,本申请实施例通过在本申请实施例中,业务员可以先使用自然语言将业务规则编写在规则文档中,然后将规则文档中业务规则的内容通过语义识别转换为满足编译条件的目标规则文档,最后通过将目标规则文档中的业务规则编译成业务***能够使用的规则数据,并将规则数据储存在业务***缓存中。通过本申请实施例,业务员使用自然语言来编辑管理业务规则,可以提升用户体验。It can be seen that in this embodiment of the present application, in the embodiment of the present application, the salesperson can first write the business rules in the rule document using natural language, and then convert the content of the business rules in the rule document through semantic recognition to meet the compilation conditions The target rule document, and finally by compiling the business rules in the target rule document into rule data that can be used by the business system, and storing the rule data in the cache of the business system. Through the embodiments of the present application, salespersons use natural language to edit and manage business rules, which can improve user experience.
参见图2,图2是本申请实施例提供的另一种业务规则处理方法的示意流程图,如图2所示,该方法可包括:Referring to FIG. 2, FIG. 2 is a schematic flowchart of another business rule processing method provided by an embodiment of the present application. As shown in FIG. 2, the method may include:
201:接收业务规则导入指令,响应上述业务规则导入指令,获取上述业务规则导入指令对应的待导入的规则文档。201: Receive a business rule import instruction, respond to the business rule import instruction, and obtain a rule document to be imported corresponding to the business rule import instruction.
202:根据语义识别转换规则对上述规则文档中业务规则的内容进行转换,获得目标规则文档,上述目标规则文档的内容满足编译条件。202: Convert the content of the business rule in the above rule document according to the semantic recognition conversion rule to obtain the target rule document, and the content of the above target rule document satisfies the compilation condition.
203:编译上述目标规则文档,获得上述第一规则数据,将上述第一规则数据存储在业务***缓存中。203: Compile the target rule document, obtain the first rule data, and store the first rule data in the business system cache.
204:建立业务标签与上述规则数据的对应关系。204: Establish a correspondence between the service label and the above rule data.
在本申请实施例中,当业务规则服务器将上述第一规则数据存储在业务***的缓存中之后,便根据具体的业务建立业务标签与规则数据之间的对应关系,以便需要处理业务时,可以根据业务的业务标签来从业务***的缓存中调用对应的规则数据。In the embodiment of the present application, after the business rule server stores the above first rule data in the cache of the business system, it establishes the correspondence between the business label and the rule data according to the specific business, so that when the business needs to be processed, it can be The corresponding rule data is called from the cache of the business system according to the business tag of the business.
205:接收业务处理请求,上述业务处理请求包括第一业务以及上述第一业务的业务标签。205: Receive a service processing request, where the service processing request includes the first service and the service tag of the first service.
206:从业务***缓存中调用上述业务标签对应的目标规则数据,基于上述目标规则数据对上述第一业务进行处理。206: Call the target rule data corresponding to the service tag from the cache of the service system, and process the first service based on the target rule data.
在本申请实施例中,当接收到业务处理请求后,便根据业务请求中的第一业务的业务标签从业务***缓存中直接调用该业务标签对应的目标规则数据,然后根据调用的目标规则数据来对第一业务进行相应的处理。In the embodiment of the present application, after receiving the service processing request, the target rule data corresponding to the service tag is directly called from the cache of the service system according to the service tag of the first service in the service request, and then according to the called target rule data To process the first business accordingly.
可以看出,本申请实施例通过在本申请实施例中,业务员可以先使用自然语言将业务规则编写在规则文档中,然后将规则文档中业务规则的内容通过语义识别转换为满足编译条件的目标规则文档,最后通过将目标规则文档中的业务规则编译成业务***能够使用的规则数据,并将规则数据储存在业务***缓存中,当需要处理业务时,可以直接从业务***的缓存中调用相应的业务规则数据来处理业务。通过本申请实施例,业务员使用自然语言来编辑管理业务规则,可以提升用户体验;另外,直接从业务***缓存中调用业务规则来处理业务能有效提升业务处理效率。It can be seen that in this embodiment of the present application, in the embodiment of the present application, the salesperson can first write the business rules in the rule document using natural language, and then convert the content of the business rules in the rule document through semantic recognition to meet the compilation conditions Target rule document. Finally, the business rules in the target rule document are compiled into rule data that can be used by the business system, and the rule data is stored in the cache of the business system. When the business needs to be processed, it can be directly called from the cache of the business system Corresponding business rule data to handle business. Through the embodiment of the present application, the salesperson uses natural language to edit and manage the business rules, which can improve the user experience; in addition, calling the business rules directly from the business system cache to process the business can effectively improve the business processing efficiency.
参见图3,图3是本申请实施例提供的又一种业务规则处理方法的示意流程图,如图3所示,该方法可包括:Referring to FIG. 3, FIG. 3 is a schematic flowchart of yet another business rule processing method provided by an embodiment of the present application. As shown in FIG. 3, the method may include:
301:接收业务规则导入指令,响应上述业务规则导入指令,获取上述业务规则导入指令对应的待导入的规则文档。301: Receive a business rule import instruction, respond to the business rule import instruction, and obtain a rule document to be imported corresponding to the business rule import instruction.
302:根据语义识别转换规则对上述规则文档中业务规则的内容进行转换,获得目标规则文档,将上述目标规则文档存储在规则文档库中,上述目标规则文档的内容满足编译条件。302: Convert the content of the business rule in the above rule document according to the semantic recognition conversion rule to obtain the target rule document, and store the target rule document in the rule document library, and the content of the target rule document satisfies the compilation condition.
在本申请实施例中,当业务服务器根据语义识别转换规则对上述规则文档中业务规则的内容进行转换,并获得目标规则文档之后,业务服务器将上述目标规则文档存储在规则文档库中,以便后续对目标规则文档中的业务规则进行相应的管理,例如,更新业务规则、添加业务规则、删除业务规则等。In the embodiment of the present application, after the business server converts the content of the business rule in the above rule document according to the semantic recognition conversion rule and obtains the target rule document, the business server stores the above target rule document in the rule document library for subsequent Manage the business rules in the target rule document accordingly, for example, update business rules, add business rules, delete business rules, etc.
303:编译上述目标规则文档,获得上述第一规则数据,将上述第一规则数据存储在业务***缓存中。303: Compile the target rule document, obtain the first rule data, and store the first rule data in the business system cache.
304:给上述目标规则文档内的业务规则分配规则标签,建立规则标签与上述目标规则文档的对应关系。304: Assign a rule label to the business rules in the above target rule document, and establish a correspondence between the rule label and the above target rule document.
在本申请实施例中,当业务规则服务器将上述目标规则文档存储在规则文档库中之后,便给上述目标规则文档中的每条业务规则分配规则标签,并创建规 则标签与目标规则文档的对应关系,以便后续可以根据规则标签找到该规则标签对应的业务规则所在的目标规则文档,然后对该目标规则文档中的上述规则标签对应的业务规则进行管理操作。In the embodiment of the present application, after the business rule server stores the above target rule document in the rule document library, it assigns a rule label to each business rule in the above target rule document, and creates a correspondence between the rule label and the target rule document Relationship, so that the target rule document where the business rule corresponding to the rule tag is located can be subsequently found according to the rule tag, and then the business rule corresponding to the above rule tag in the target rule document is managed.
305:接收对上述目标规则文档中业务规则的操作指令,上述操作指令中包括第二业务规则的第二规则标签。305: Receive an operation instruction for the business rule in the target rule document, where the operation instruction includes the second rule label of the second business rule.
由于市场业务在不断的发生变化,相应的业务规则也会跟着业务的变化而变化,因此,需要对业务***缓存中的业务规则数据进行相应的管理操作,例如对某一条或全部业务规则进行更新或删除等。Since the market business is constantly changing, the corresponding business rules will also change with the changes of the business. Therefore, it is necessary to perform corresponding management operations on the business rule data in the business system cache, for example, to update one or all business rules Or delete etc.
具体的,在本申请实施例中,当业务规则服务器将上述目标规则文档存储在规则文档库中,并根据该目标规则文档生成第一规则数据,将第一规则数据存储在业务***缓存中之后,接收对上述目标规则文档中业务规则的操作指令,其中,上述操作指令中包括第二业务规则的第二规则标签,以便根据上述第二规则标签找到第二业务规则,并对其进行相应的操作。Specifically, in the embodiment of the present application, when the business rule server stores the above target rule document in the rule document library, and generates first rule data according to the target rule document, after storing the first rule data in the cache of the business system , Receiving an operation instruction for the business rule in the above target rule document, where the operation instruction includes a second rule label of the second business rule, so as to find the second business rule according to the second rule label, and perform a corresponding operating.
306:根据上述第二规则标签从上述规则文档库中获取上述目标规则文档。306: Acquire the target rule document from the rule document library according to the second rule tag.
307:执行上述操作指令对应的操作,上述操作指令包括添加指令、更新指令、删除指令。307: Perform an operation corresponding to the above operation instruction. The above operation instruction includes an add instruction, an update instruction, and a delete instruction.
在本申请实施例中,可以对目标规则文档中的业务规则进行更新、删除以及添加等操作。In the embodiment of the present application, the business rules in the target rule document can be updated, deleted, and added.
具体的,当业务员需要在上述目标规则文档中添加一条操作时,业务员只需要发起添加业务规则的操作指令,然后输入相应的业务规则就可以在上述目标规则文档中添加业务规则。当业务规则服务器接收到对第二业务规则的添加指令后,接收业务员输入的第二文本业务规则,其中上述第二文本业务规则为上述第二业务规则的文本格式。然后,业务规则服务器根据语义识别转换规则对上述第二文本业务规则进行转换,得到转换后的第二业务规则。接着根据上述第二规则标签将上述转换后的第二业务规则添加到上述目标规则文档中就完成了在上述目标规则文档中添加第二业务规则的操作。Specifically, when the salesperson needs to add an operation in the above target rule document, the salesperson only needs to initiate an operation instruction for adding a business rule, and then enter the corresponding business rule to add the business rule in the above target rule document. After receiving the instruction to add the second business rule, the business rule server receives the second text business rule input by the salesperson, wherein the second text business rule is a text format of the second business rule. Then, the business rule server converts the second text business rule according to the semantic recognition conversion rule to obtain the converted second business rule. Then, adding the converted second business rule to the target rule document according to the second rule tag completes the operation of adding the second business rule to the target rule document.
当业务员需要在上述目标规则文档中更新一条操作时,业务员只需要发起更新业务规则的操作指令,然后输入相应的业务规则就可以在上述目标规则文档中更新相应的业务规则。当业务规则服务器接收到对第二业务规则的更新指令后,接收业务员输入的第二文本业务规则,其中上述第二文本业务规则为上述 第二业务规则的文本格式。然后,业务规则服务器根据语义识别转换规则对上述第二文本业务规则进行转换,得到转换后的第二业务规则。接着根据上述第二规则标签将上述目标规则文档中原有的第二业务规则更新为上述转换后的第二业务规则就完成了对上述目标规则文档中第二业务规则的更新操作。When the salesperson needs to update an operation in the above target rule document, the salesperson only needs to initiate an operation instruction to update the business rule, and then enter the corresponding business rule to update the corresponding business rule in the above target rule document. When the business rule server receives the update instruction for the second business rule, it receives the second text business rule input by the salesperson, wherein the second text business rule is a text format of the second business rule. Then, the business rule server converts the second text business rule according to the semantic recognition conversion rule to obtain the converted second business rule. Then, according to the second rule label, the original second business rule in the target rule document is updated to the converted second business rule to complete the update operation of the second business rule in the target rule document.
当业务员需要在上述目标规则文档中删除一条操作时,业务员只需要发起删除业务规则的操作指令,然后根据上述第二规则标签将上述目标规则文档中上述第二规则标签对应的第二业务规则删除就完成了对上述目标规则文档中第二业务规则的删除操作。When the clerk needs to delete an operation in the target rule document, the clerk only needs to initiate an operation instruction to delete the business rule, and then according to the second rule label, the second service corresponding to the second rule label in the target rule document Rule deletion completes the deletion of the second business rule in the above target rule document.
308:编译上述目标规则文档,得到第二规则数据,将上述业务***缓存中的第一规则数据替换为上述第二规则数据。308: Compile the target rule document to obtain second rule data, and replace the first rule data in the cache of the business system with the second rule data.
在本申请实施例中,当业务规则服务器根据上述操作指令执行完对上述目标规则文档中第二业务规则的相应操作后,业务规则服务器编译上述目标规则文档,得到第二规则数据,将上述业务***缓存中的第一规则数据替换为上述第二规则数据以便达到通过对上述目标规则文档中第二业务规则的管理操作,来间接管理业务***缓存中的对应的第二规则数据的目的。In the embodiment of the present application, after the business rule server executes the corresponding operation on the second business rule in the target rule document according to the operation instruction, the business rule server compiles the target rule document to obtain the second rule data and converts the business The first rule data in the system cache is replaced with the above second rule data in order to achieve the purpose of indirectly managing the corresponding second rule data in the business system cache by managing the second business rule in the target rule document.
可以看出,本申请实施例通过在本申请实施例中,业务员可以先使用自然语言将业务规则编写在规则文档中,然后将规则文档中业务规则的内容通过语义识别转换为满足编译条件的目标规则文档,并将目标规则文档存储在规则文档库中;最后通过将目标规则文档中的业务规则编译成业务***能够使用的规则数据,并将规则数据储存在业务***缓存中,当需要对业务***中的业务规则数据进行添加、更新、删除等操作时,可以通过对规则文档库中的目标规则文档进行相应的操作,然后对目标规则文档进行重新编译,得到新的规则数据,最后将业务***中的旧规则数据更新为新规则数据。通过本申请实施例,业务员使用自然语言来编辑管理业务规则,可以提升用户体验;另外,业务员还可以通过管理规则文档库中的目标规则文档来实时快速的对业务***中的规则数据进行添加、更新以及删除等操作,提升了对业务规则数据管理的效率。It can be seen that in this embodiment of the present application, in the embodiment of the present application, the salesperson can first write the business rules in the rule document using natural language, and then convert the content of the business rules in the rule document through semantic recognition to meet the compilation conditions Target rule documents, and store the target rule documents in the rule document library; Finally, by compiling the business rules in the target rule documents into rule data that can be used by the business system, and storing the rule data in the business system cache, when needed When the business rule data in the business system is added, updated, deleted, etc., you can perform the corresponding operation on the target rule document in the rule document library, and then recompile the target rule document to obtain new rule data, and finally The old rule data in the business system is updated to the new rule data. Through the embodiment of the present application, the salesperson uses natural language to edit and manage business rules, which can improve the user experience; in addition, the salesperson can also quickly manage the rule data in the business system in real time by managing the target rule documents in the rule document library Add, update and delete operations improve the efficiency of business rule data management.
本申请实施例还提供一种服务器,该服务器用于执行前述任一项的方法的单元。具体地,参见图4,是本申请实施例提供的一种服务器的示意框图。本实施例的服务器包括:获取单元401、转换单元402、编译单元403以及存储单元404。An embodiment of the present application further provides a server, and the server is configured to execute a unit of any of the foregoing methods. Specifically, referring to FIG. 4, it is a schematic block diagram of a server provided by an embodiment of the present application. The server in this embodiment includes: an acquisition unit 401, a conversion unit 402, a compilation unit 403, and a storage unit 404.
获取单元401,用于接收业务规则导入指令,响应上述业务规则导入指令,获取上述业务规则导入指令对应的待导入的规则文档;The obtaining unit 401 is configured to receive a business rule import instruction, and in response to the business rule import instruction, acquire a rule document to be imported corresponding to the business rule import instruction;
转换单元402,用于根据语义识别转换规则对上述规则文档中业务规则的内容进行转换,获得目标规则文档,上述目标规则文档的内容满足编译条件;The conversion unit 402 is configured to convert the content of the business rule in the rule document according to the semantic recognition conversion rule to obtain a target rule document, and the content of the target rule document satisfies the compilation conditions;
编译单元403,用于编译上述目标规则文档,获得上述第一规则数据;The compiling unit 403 is configured to compile the above target rule document to obtain the above first rule data;
存储单元404,用于将上述第一规则数据存储在业务***缓存中。The storage unit 404 is configured to store the first rule data in the cache of the business system.
可以看出,本申请实施例通过在本申请实施例中,业务员可以先使用自然语言将业务规则编写在规则文档中,然后将规则文档中业务规则的内容通过语义识别转换为满足编译条件的目标规则文档,最后通过将目标规则文档中的业务规则编译成业务***能够使用的规则数据,并将规则数据储存在业务***缓存中。通过本申请实施例,业务员使用自然语言来编辑管理业务规则,可以提升用户体验。It can be seen that in this embodiment of the present application, in the embodiment of the present application, the salesperson can first write the business rules in the rule document using natural language, and then convert the content of the business rules in the rule document through semantic recognition to meet the compilation conditions The target rule document, and finally by compiling the business rules in the target rule document into rule data that can be used by the business system, and storing the rule data in the cache of the business system. Through the embodiments of the present application, salespersons use natural language to edit and manage business rules, which can improve user experience.
可选的,上述服务器还包括:Optionally, the above server also includes:
创建单元405,用于建立业务标签与上述规则数据的对应关系;The creating unit 405 is used to establish the correspondence between the service tag and the above rule data;
第一接收单元406,用于接收业务处理请求,上述业务处理请求包括第一业务以及上述第一业务的业务标签;The first receiving unit 406 is configured to receive a service processing request, where the service processing request includes the first service and the service label of the first service;
调用单元407,用于从业务***缓存中调用上述业务标签对应的目标规则数据,基于上述目标规则数据对上述第一业务进行处理。The calling unit 407 is configured to call the target rule data corresponding to the service tag from the cache of the service system, and process the first service based on the target rule data.
可以看出,在本申请实施例中,当需要处理业务时,可以直接从业务***的缓存中调用相应的业务规则数据来处理业务。通过本申请实施例,业务员使用自然语言来编辑管理业务规则,可以提升用户体验;另外,直接从业务***缓存中调用业务规则来处理业务能有效提升业务处理效率。It can be seen that, in the embodiment of the present application, when the business needs to be processed, the corresponding business rule data can be directly called from the cache of the business system to process the business. Through the embodiment of the present application, the salesperson uses natural language to edit and manage the business rules, which can improve the user experience; in addition, calling the business rules directly from the business system cache to process the business can effectively improve the business processing efficiency.
可选的,上述服务器还包括:Optionally, the above server also includes:
分配单元408,用于给上述目标规则文档内的业务规则分配规则标签;The allocation unit 408 is used to allocate rule labels to the business rules in the target rule document;
上述创建405单元,用于建立规则标签与上述目标规则文档的对应关系;The above-mentioned creating unit 405 is used to establish the correspondence between the rule label and the above target rule document;
上述存储单元404,用于将上述目标规则文档存储在规则文档库中;The storage unit 404 is configured to store the target rule document in a rule document library;
上述第一接收单元406,用于接收对上述目标规则文档中业务规则的操作指令,上述操作指令中包括第二业务规则的第二规则标签;The first receiving unit 406 is configured to receive an operation instruction for the business rule in the target rule document, and the operation instruction includes a second rule label for the second business rule;
规则处理单元409,用于执行上述操作指令对应的操作,上述操作指令包括添加指令、更新指令、删除指令;The rule processing unit 409 is configured to perform an operation corresponding to the above operation instruction, where the operation instruction includes an add instruction, an update instruction, and a delete instruction;
上述获取单元401,用于根据上述第二规则标签从上述规则文档库中获取上述目标规则文档;The acquiring unit 401 is configured to acquire the target rule document from the rule document library according to the second rule tag;
第一更新单元410,用于编译上述目标规则文档,得到第二规则数据,将上述业务***缓存中的第一规则数据更新为上述第二规则数据。The first updating unit 410 is configured to compile the target rule document to obtain second rule data, and update the first rule data in the cache of the business system to the second rule data.
可选的,在上述操作指令为添加指令的情况下,上述规则处理单元包括:Optionally, in the case where the above operation instruction is an addition instruction, the above rule processing unit includes:
第二接收单元4091,用于接收第二文本业务规则的输入,上述第二文本业务规则为上述第二业务规则的文本格式;The second receiving unit 4091 is configured to receive input of a second text business rule, and the second text business rule is a text format of the second business rule;
添加单元4092,用于根据语义识别转换规则对上述第二文本业务规则进行转换,得到转换后的第二业务规则,根据上述第二规则标签将上述转换后的第二业务规则添加到上述目标规则文档中。The adding unit 4092 is configured to convert the second text business rule according to the semantic recognition conversion rule to obtain the converted second business rule, and add the converted second business rule to the target rule according to the second rule label Document.
可选的,在上述操作指令为更新指令的情况下,Optionally, in the case where the above operation instruction is an update instruction,
上述第二接收单元4091,用于接收第二文本业务规则的输入,上述第二文本业务规则为上述第二业务规则的文本格式;The second receiving unit 4091 is configured to receive input of a second text business rule, and the second text business rule is a text format of the second business rule;
上述规则处理单元还包括:The above rule processing unit also includes:
第二更新单元4093,用于根据语义识别转换规则对上述第二文本业务规则进行转换,得到转换后的第二业务规则,根据上述第二规则标签将上述目标规则文档中原有的第二业务规则更新为上述转换后的第二业务规则。The second update unit 4093 is configured to convert the second text business rule according to the semantic recognition conversion rule to obtain the converted second business rule, and convert the original second business rule in the target rule document according to the second rule label Updated to the second business rule after conversion.
可选的,在上述操作指令为删除指令的情况下,上述规则处理单元还包括:Optionally, in the case where the above operation instruction is a deletion instruction, the above rule processing unit further includes:
删除单元4094,用于根据上述第二规则标签将上述目标规则文档中上述第二规则标签对应的第二业务规则删除。The deleting unit 4094 is configured to delete the second business rule corresponding to the second rule label in the target rule document according to the second rule label.
可选的,转换单元包括:Optionally, the conversion unit includes:
识别单元4021,用于对上述规则文档中业务规则的内容进行语义识别,从上述规则文档中业务规则的内容中提取业务规则的执行条件、执行对象、执行动作;The identification unit 4021 is used to semantically identify the content of the business rule in the above rule document, and extract the execution conditions, execution objects, and execution actions of the business rule from the content of the business rule in the above rule document;
编辑单元4022,用于根据上述执行条件、上述执行对象、上述执行动作,将上述规则文档中业务规则的内容按照预设的编写格式进行编辑,得到上述目标规则文档。The editing unit 4022 is configured to edit the content of the business rule in the rule document according to a preset writing format according to the execution condition, the execution object, and the execution action, to obtain the target rule document.
可选的,所述规则文档包括excel表格、Word文档、text文档。Optionally, the rule document includes an excel sheet, a Word document, and a text document.
可选的,所述导入指令中可以包含规则文档的标识;Optionally, the import instruction may include the identification of the rule document;
所述获取单元401,具体用于接收业务规则导入指令,根据上述规则文档的 标识从规则文档库中获取该规则文档标识对应的规则文档。The obtaining unit 401 is specifically configured to receive a business rule import instruction, and obtain the rule document corresponding to the rule document identifier from the rule document library according to the above-mentioned rule document identifier.
可以看出,本申请实施例通过在本申请实施例中,业务员可以先使用自然语言将业务规则编写在规则文档中,然后将规则文档中业务规则的内容通过语义识别转换为满足编译条件的目标规则文档,并将目标规则文档存储在规则文档库中;最后通过将目标规则文档中的业务规则编译成业务***能够使用的规则数据,并将规则数据储存在业务***缓存中,当需要对业务***中的业务规则数据进行添加、更新、删除等操作时,可以通过对规则文档库中的目标规则文档进行相应的操作,然后对目标规则文档进行重新编译,得到新的规则数据,最后将业务***中的旧规则数据更新为新规则数据。通过本申请实施例,业务员使用自然语言来编辑管理业务规则,可以提升用户体验;另外,业务员还可以通过管理规则文档库中的目标规则文档来实时快速的对业务***中的规则数据进行添加、更新以及删除等操作,提升了对业务规则数据管理的效率。It can be seen that in this embodiment of the present application, in the embodiment of the present application, the salesperson can first write the business rules in the rule document using natural language, and then convert the content of the business rules in the rule document through semantic recognition to meet the compilation conditions Target rule documents, and store the target rule documents in the rule document library; Finally, by compiling the business rules in the target rule documents into rule data that can be used by the business system, and storing the rule data in the business system cache, when needed When the business rule data in the business system is added, updated, deleted, etc., you can perform the corresponding operation on the target rule document in the rule document library, and then recompile the target rule document to obtain new rule data, and finally The old rule data in the business system is updated to the new rule data. Through the embodiment of the present application, the salesperson uses natural language to edit and manage business rules, which can improve the user experience; in addition, the salesperson can also quickly manage the rule data in the business system in real time by managing the target rule documents in the rule document library Add, update and delete operations improve the efficiency of business rule data management.
参见图5,图5是本申请实施例提供的一种设备,该设备可以为服务器,如图5所示设备包括:一个或多个处理器501;一个或多个输入设备502,一个或多个输出设备503和存储器504。上述处理器501、输入设备502、输出设备503和存储器504通过总线505连接。存储器502用于存储指令,处理器501用于执行存储器502存储的指令。Referring to FIG. 5, FIG. 5 is a device provided by an embodiment of the present application. The device may be a server. As shown in FIG. 5, the device includes: one or more processors 501; one or more input devices 502, one or more Out device 503 and memory 504. The above processor 501, input device 502, output device 503, and memory 504 are connected via a bus 505. The memory 502 is used to store instructions, and the processor 501 is used to execute the instructions stored in the memory 502.
其中,该设备作为服务器使用的情况下,处理器501用于:接收业务规则导入指令,响应上述业务规则导入指令,获取上述业务规则导入指令对应的待导入的规则文档;根据语义识别转换规则对上述规则文档中业务规则的内容进行转换,获得目标规则文档,上述目标规则文档的内容满足编译条件;编译上述目标规则文档,获得上述第一规则数据,将上述第一规则数据存储在业务***缓存中。Where the device is used as a server, the processor 501 is used to: receive a business rule import instruction, respond to the business rule import instruction, and obtain a rule document to be imported corresponding to the business rule import instruction; The content of the business rule in the above rule document is converted to obtain a target rule document, and the content of the target rule document satisfies the compilation conditions; compile the target rule document to obtain the first rule data, and store the first rule data in the business system cache in.
应当理解,在本申请实施例中,所称处理器501可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that in the embodiment of the present application, the so-called processor 501 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP) , Application Specific Integrated Circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
输入设备502可以包括触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风等,输出设备503可以包括显示器(LCD等)、 扬声器等。The input device 502 may include a touchpad, a fingerprint sensor (for collecting user's fingerprint information and fingerprint direction information), a microphone, and the like, and the output device 503 may include a display (LCD, etc.), a speaker, and the like.
该存储器504可以包括只读存储器和随机存取存储器,并向处理器501提供指令和数据。存储器504的一部分还可以包括非易失性随机存取存储器。例如,存储器504还可以存储设备类型的信息。The memory 504 may include a read-only memory and a random access memory, and provide instructions and data to the processor 501. A portion of the memory 504 may also include non-volatile random access memory. For example, the memory 504 may also store device type information.
具体实现中,本申请实施例中所描述的处理器501、输入设备502、输出设备503可执行本申请实施例提供的一种业务规则处理方法的第一实施例中所描述的实现方式、第二实施列以及第三实施例中的实现方式,也可执行本申请实施例所描述的服务器的实现方式,在此不再赘述。In a specific implementation, the processor 501, the input device 502, and the output device 503 described in the embodiments of the present application may execute the implementation manner described in the first embodiment of the first embodiment of a business rule processing method provided by the embodiments of the present application. The implementation manners in the second embodiment and the third embodiment can also execute the server implementation manners described in the embodiments of the present application, which will not be repeated here.
在本申请的另一实施例中提供一种计算机可读存储介质,上述计算机可读存储介质存储有计算机程序,上述计算机程序被处理器执行时实现:接收业务规则导入指令,响应上述业务规则导入指令,获取上述业务规则导入指令对应的待导入的规则文档;根据语义识别转换规则对上述规则文档中业务规则的内容进行转换,获得目标规则文档,上述目标规则文档的内容满足编译条件;编译上述目标规则文档,获得上述第一规则数据,将上述第一规则数据存储在业务***缓存中。In another embodiment of the present application, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program, and the computer program is implemented when executed by a processor: receiving a business rule import instruction, and responding to the business rule import Instruction to obtain the rule document to be imported corresponding to the business rule import instruction; convert the content of the business rule in the rule document according to the semantic recognition conversion rule to obtain the target rule document, and the content of the target rule document satisfies the compilation conditions; compile the above The target rule document obtains the above-mentioned first rule data, and stores the above-mentioned first rule data in the cache of the business system.
上述计算机可读存储介质可以是前述任一实施例上述的终端的内部存储单元,例如终端的硬盘或内存。上述计算机可读存储介质也可以是上述终端的外部存储设备,例如上述终端上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,上述计算机可读存储介质还可以既包括上述终端的内部存储单元也包括外部存储设备。上述计算机可读存储介质用于存储上述计算机程序以及上述终端所需的其他程序和数据。上述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The foregoing computer-readable storage medium may be the internal storage unit of the terminal described in any of the foregoing embodiments, such as a hard disk or a memory of the terminal. The computer-readable storage medium may also be an external storage device of the terminal, for example, a plug-in hard disk equipped on the terminal, a smart memory card (Smart) Card (SMC), a secure digital (SD) card, and a flash memory card (Flash Card) etc. Further, the computer-readable storage medium may also include both the internal storage unit of the terminal and the external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the terminal. The above-mentioned computer-readable storage medium can also be used to temporarily store data that has been or will be output.
图6是本申请实施例提供的一种服务器结构示意图,该服务器600可因配置或性能不同而产生比较大的差异,可以包括一个或一个以***处理器(central processing units,CPU)622(例如,一个或一个以上处理器)和存储器632,一个或一个以上存储应用程序642或数据644的存储介质630(例如一个或一个以上海量存储设备)。其中,存储器632和存储介质630可以是短暂存储或持久存储。存储在存储介质630的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央 处理器622可以设置为与存储介质630通信,在服务器600上执行存储介质630中的一系列指令操作。6 is a schematic diagram of a server structure provided by an embodiment of the present application. The server 600 may have a relatively large difference due to different configurations or performances, and may include one or more central processing units (CPUs) 622 (for example , One or more processors) and memory 632, one or more storage media 630 (such as one or more mass storage devices) that stores application programs 642 or data 644. The memory 632 and the storage medium 630 may be short-term storage or persistent storage. The program stored in the storage medium 630 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processor 622 may be configured to communicate with the storage medium 630, and execute a series of instruction operations in the storage medium 630 on the server 600.
服务器600还可以包括一个或一个以上电源626,一个或一个以上有线或无线网络接口650,一个或一个以上输入输出接口658,和/或,一个或一个以上操作***641,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。The server 600 may also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input and output interfaces 658, and/or one or more operating systems 641, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
上述实施例中由服务器所执行的步骤可以基于该图6所示的服务器结构。The steps performed by the server in the above embodiments may be based on the server structure shown in FIG. 6.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art may realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two, in order to clearly explain the hardware and software. Interchangeability, in the above description, the composition and steps of each example have been described generally in terms of function. Whether these functions are executed in hardware or software depends on the specific application of the technical solution and design constraints. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的***、服务器、终端设备和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and conciseness of the description, the specific working processes of the system, server, terminal device, and unit described above can refer to the corresponding processes in the foregoing method embodiments, which are not repeated here. .
在本申请所提供的几个实施例中,应该理解到,所揭露的***、服务器和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided in this application, it should be understood that the disclosed system, server, and method may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above-mentioned units is only a division of logical functions. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or may Integration into another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be indirect couplings or communication connections through some interfaces, devices, or units, and may also be electrical, mechanical, or other forms of connection.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本申请实施例方案的目的。The above-mentioned units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments of the present application.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形 式实现。In addition, the functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The above integrated unit can be implemented in the form of hardware or software function unit.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application essentially or part of the contribution to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, the computer software product is stored in a storage medium In it, several instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the above methods in various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above is only the specific implementation of this application, but the scope of protection of this application is not limited to this, any person skilled in the art can easily think of various equivalents within the technical scope disclosed in this application Modifications or replacements, these modifications or replacements should be covered within the scope of protection of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (20)

  1. 一种业务规则处理方法,其特征在于,包括:A method for processing business rules, characterized in that it includes:
    接收业务规则导入指令,获取所述业务规则导入指令对应的待导入的规则文档;Receiving a business rule import instruction and obtaining a rule document to be imported corresponding to the business rule import instruction;
    根据语义识别转换规则对所述规则文档中业务规则的内容进行转换,获得目标规则文档,所述目标规则文档的内容满足预设编译条件;Converting the content of the business rule in the rule document according to the semantic recognition conversion rule to obtain a target rule document, and the content of the target rule document satisfies preset compilation conditions;
    编译所述目标规则文档,获得第一规则数据,将所述第一规则数据存储在业务***缓存中。Compile the target rule document to obtain first rule data, and store the first rule data in the business system cache.
  2. 根据权利要求1所述的方法,其特征在于,在所述将所述规则数据存储在业务***缓存中之后,所述方法还包括:The method according to claim 1, wherein after the rule data is stored in a business system cache, the method further comprises:
    建立业务标签与所述规则数据的对应关系;Establish a correspondence between business tags and the rule data;
    接收业务处理请求,所述业务处理请求包括第一业务以及所述第一业务的业务标签;Receiving a service processing request, where the service processing request includes a first service and a service label of the first service;
    从所述业务***缓存中调用所述业务标签对应的目标规则数据,基于所述目标规则数据对所述第一业务进行处理。Calling target rule data corresponding to the service tag from the service system cache, and processing the first service based on the target rule data.
  3. 根据权利要求1所述的方法,其特征在于,在所述根据语义识别转换规则对所述规则文档中业务规则的内容进行转换,获得目标规则文档之后,所述方法还包括:The method according to claim 1, wherein after the content of the business rule in the rule document is converted according to the semantic recognition conversion rule to obtain the target rule document, the method further comprises:
    给所述目标规则文档内的业务规则分配规则标签;Assign rule labels to the business rules in the target rule document;
    建立所述规则标签与所述目标规则文档的对应关系;Establishing a correspondence between the rule label and the target rule document;
    将所述目标规则文档存储在规则文档库中;Store the target rule document in a rule document library;
    接收对所述目标规则文档中业务规则的操作指令,所述操作指令中包括第二业务规则的第二规则标签;Receiving an operation instruction for a business rule in the target rule document, where the operation instruction includes a second rule label of a second business rule;
    根据所述第二规则标签从所述规则文档库中获取所述目标规则文档;Acquiring the target rule document from the rule document library according to the second rule tag;
    执行所述操作指令对应的操作,所述操作指令包括添加指令、更新指令、删除指令;Perform the operation corresponding to the operation instruction, the operation instruction including an add instruction, an update instruction, and a delete instruction;
    编译所述目标规则文档,得到第二规则数据,将所述业务***缓存中的第一规则数据替换为所述第二规则数据。Compile the target rule document to obtain second rule data, and replace the first rule data in the business system cache with the second rule data.
  4. 根据权利要求3所述的方法,其特征在于,在所述操作指令为添加指令的情况下,所述执行所述操作指令对应的操作包括:The method according to claim 3, characterized in that, in the case where the operation instruction is an addition instruction, the operation corresponding to the execution of the operation instruction includes:
    接收业务员输入的第二文本业务规则,所述第二文本业务规则为所述第二业务规则的文本格式;Receiving a second text business rule input by a salesperson, where the second text business rule is a text format of the second business rule;
    根据语义识别转换规则对所述第二文本业务规则进行转换,得到转换后的第二业务规则,根据所述第二规则标签将所述转换后的第二业务规则添加到所述目标规则文档中。Converting the second text business rule according to the semantic recognition conversion rule to obtain the converted second business rule, and adding the converted second business rule to the target rule document according to the second rule label .
  5. 根据权利要求3所述的方法,其特征在于,在所述操作指令为更新指令的情况下,所述执行所述操作指令对应的操作包括:The method according to claim 3, wherein when the operation instruction is an update instruction, the operation corresponding to the execution of the operation instruction includes:
    接收业务员输入的第二文本业务规则,所述第二文本业务规则为所述第二业务规则的文本格式;Receiving a second text business rule input by a salesperson, where the second text business rule is a text format of the second business rule;
    根据语义识别转换规则对所述第二文本业务规则进行转换,得到转换后的第二业务规则,根据所述第二规则标签将所述目标规则文档中的第二业务规则更新为所述转换后的第二业务规则。Converting the second text business rule according to the semantic recognition conversion rule to obtain the converted second business rule, and updating the second business rule in the target rule document to the converted according to the second rule label Second business rule.
  6. 根据权利要求3所述的方法,其特征在于,在所述操作指令为删除指令的情况下,所述执行所述操作指令对应的操作包括:The method according to claim 3, wherein when the operation instruction is a deletion instruction, the operation corresponding to the execution of the operation instruction includes:
    根据所述第二规则标签将所述目标规则文档中所述第二规则标签对应的第二业务规则删除。Delete the second business rule corresponding to the second rule tag in the target rule document according to the second rule tag.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述根据语义识别转换规则对所述规则文档中业务规则的内容进行转换包括:The method according to any one of claims 1-6, wherein the converting the content of the business rule in the rule document according to the semantic recognition conversion rule includes:
    对所述规则文档中业务规则的内容进行语义识别,从所述规则文档中业务规则的内容中提取业务规则的执行条件、执行对象、执行动作;Semantically identify the content of the business rules in the rule document, and extract the execution conditions, execution objects, and execution actions of the business rules from the content of the business rules in the rule document;
    根据所述执行条件、所述执行对象、所述执行动作,将所述规则文档中业务规则的内容按照预设的编写格式进行编辑,得到所述目标规则文档。According to the execution condition, the execution object, and the execution action, edit the content of the business rule in the rule document according to a preset writing format to obtain the target rule document.
  8. 根据权利要求7所述的方法,其特征在于,所述规则文档包括excel表格、Word文档、text文档。The method according to claim 7, wherein the rule document includes an excel sheet, a Word document, and a text document.
  9. 根据权利要求7所述的方法,其特征在于,所述导入指令中可以包含规则文档的标识;The method according to claim 7, wherein the import instruction may include an identification of a rule document;
    所述接收业务规则导入指令,获取所述业务规则导入指令对应的待导入的规则文档,包括:The receiving the business rule import instruction to obtain the rule document to be imported corresponding to the business rule import instruction includes:
    接收业务规则导入指令,根据上述规则文档的标识从规则文档库中获取该规则文档标识对应的规则文档。Receive the business rule import instruction, and obtain the rule document corresponding to the rule document identifier from the rule document library according to the above rule document identifier.
  10. 一种服务器,其特征在于,包括:A server, characterized in that it includes:
    获取单元,用于接收业务规则导入指令,响应所述业务规则导入指令,获取所述业务规则导入指令对应的待导入的规则文档;An obtaining unit, configured to receive a business rule import instruction, and in response to the business rule import instruction, acquire a rule document to be imported corresponding to the business rule import instruction;
    转换单元,用于根据预设语义识别转换规则对所述规则文档中业务规则的内容进行转换,获得目标规则文档,所述目标规则文档的内容满足预设编译条件;A conversion unit, configured to convert the content of the business rule in the rule document according to a preset semantic recognition conversion rule to obtain a target rule document, and the content of the target rule document satisfies the preset compilation condition;
    编译单元,用于编译所述目标规则文档,获得所述第一规则数据;A compilation unit, configured to compile the target rule document and obtain the first rule data;
    存储单元,用于将所述第一规则数据存储在业务***缓存中。The storage unit is configured to store the first rule data in the cache of the business system.
  11. 根据权利要求10所述的服务器,其特征在于,在所述将所述规则数据存储在业务***缓存中之后,所述服务器还包括:The server according to claim 10, wherein after the rule data is stored in a business system cache, the server further comprises:
    建立业务标签与所述规则数据的对应关系;Establish a correspondence between business tags and the rule data;
    接收业务处理请求,所述业务处理请求包括第一业务以及所述第一业务的业务标签;Receiving a service processing request, where the service processing request includes a first service and a service label of the first service;
    从所述业务***缓存中调用所述业务标签对应的目标规则数据,基于所述目标规则数据对所述第一业务进行处理。Calling target rule data corresponding to the service tag from the service system cache, and processing the first service based on the target rule data.
  12. 根据权利要求10所述的服务器,其特征在于,在所述根据语义识别转换规则对所述规则文档中业务规则的内容进行转换,获得目标规则文档之后,所述服务器还包括:The server according to claim 10, wherein after the content of the business rule in the rule document is converted according to the semantic recognition conversion rule to obtain the target rule document, the server further comprises:
    给所述目标规则文档内的业务规则分配规则标签;Assign rule labels to the business rules in the target rule document;
    建立所述规则标签与所述目标规则文档的对应关系;Establishing a correspondence between the rule label and the target rule document;
    将所述目标规则文档存储在规则文档库中;Store the target rule document in a rule document library;
    接收对所述目标规则文档中业务规则的操作指令,所述操作指令中包括第二业务规则的第二规则标签;Receiving an operation instruction for a business rule in the target rule document, where the operation instruction includes a second rule label of a second business rule;
    根据所述第二规则标签从所述规则文档库中获取所述目标规则文档;Acquiring the target rule document from the rule document library according to the second rule tag;
    执行所述操作指令对应的操作,所述操作指令包括添加指令、更新指令、删除指令;Perform the operation corresponding to the operation instruction, the operation instruction including an add instruction, an update instruction, and a delete instruction;
    编译所述目标规则文档,得到第二规则数据,将所述业务***缓存中的第一规则数据替换为所述第二规则数据。Compile the target rule document to obtain second rule data, and replace the first rule data in the business system cache with the second rule data.
  13. 根据权利要求12所述的服务器,其特征在于,在所述操作指令为添加指令的情况下,所述执行所述操作指令对应的操作包括:The server according to claim 12, wherein in the case where the operation instruction is an addition instruction, the operation corresponding to the execution of the operation instruction includes:
    接收业务员输入的第二文本业务规则,所述第二文本业务规则为所述第二 业务规则的文本格式;Receiving a second text business rule input by a salesperson, where the second text business rule is a text format of the second business rule;
    根据语义识别转换规则对所述第二文本业务规则进行转换,得到转换后的第二业务规则,根据所述第二规则标签将所述转换后的第二业务规则添加到所述目标规则文档中。Converting the second text business rule according to the semantic recognition conversion rule to obtain the converted second business rule, and adding the converted second business rule to the target rule document according to the second rule label .
  14. 根据权利要求12所述的服务器,其特征在于,在所述操作指令为更新指令的情况下,所述执行所述操作指令对应的操作包括:The server according to claim 12, wherein when the operation instruction is an update instruction, the operation corresponding to the execution of the operation instruction includes:
    接收业务员输入的第二文本业务规则,所述第二文本业务规则为所述第二业务规则的文本格式;Receiving a second text business rule input by a salesperson, where the second text business rule is a text format of the second business rule;
    根据语义识别转换规则对所述第二文本业务规则进行转换,得到转换后的第二业务规则,根据所述第二规则标签将所述目标规则文档中的第二业务规则更新为所述转换后的第二业务规则。Converting the second text business rule according to the semantic recognition conversion rule to obtain the converted second business rule, and updating the second business rule in the target rule document to the converted according to the second rule label Second business rule.
  15. 根据权利要求12所述的服务器,其特征在于,在所述操作指令为删除指令的情况下,所述执行所述操作指令对应的操作包括:The server according to claim 12, wherein, in the case where the operation instruction is a deletion instruction, the operation corresponding to the execution of the operation instruction includes:
    根据所述第二规则标签将所述目标规则文档中所述第二规则标签对应的第二业务规则删除。Delete the second business rule corresponding to the second rule tag in the target rule document according to the second rule tag.
  16. 根据权利要求10-15任一项所述的服务器,其特征在于,所述根据语义识别转换规则对所述规则文档中业务规则的内容进行转换包括:The server according to any one of claims 10-15, wherein the converting content of the business rule in the rule document according to the semantic recognition conversion rule includes:
    对所述规则文档中业务规则的内容进行语义识别,从所述规则文档中业务规则的内容中提取业务规则的执行条件、执行对象、执行动作;Semantically identify the content of the business rules in the rule document, and extract the execution conditions, execution objects, and execution actions of the business rules from the content of the business rules in the rule document;
    根据所述执行条件、所述执行对象、所述执行动作,将所述规则文档中业务规则的内容按照预设的编写格式进行编辑,得到所述目标规则文档。According to the execution condition, the execution object, and the execution action, edit the content of the business rule in the rule document according to a preset writing format to obtain the target rule document.
  17. 根据权利要求16所述的服务器,其特征在于,所述规则文档包括excel表格、Word文档、text文档。The server according to claim 16, wherein the rule document includes an excel sheet, a Word document, and a text document.
  18. 根据权利要求17所述的服务器,其特征在于,所述导入指令中可以包含规则文档的标识;The server according to claim 17, wherein the import instruction may include an identification of a rule document;
    所述接收业务规则导入指令,获取所述业务规则导入指令对应的待导入的规则文档,包括:The receiving the business rule import instruction to obtain the rule document to be imported corresponding to the business rule import instruction includes:
    接收业务规则导入指令,根据上述规则文档的标识从规则文档库中获取该规则文档标识对应的规则文档。Receive the business rule import instruction, and obtain the rule document corresponding to the rule document identifier from the rule document library according to the above rule document identifier.
  19. 一种服务器,其特征在于,所述服务器包括处理器、存储器和通信模块,其中,所述存储器用于存储程序代码,所述处理器用于调用所述程序代码来执行如权利要求1-9任一项所述的方法。A server, characterized in that the server includes a processor, a memory, and a communication module, wherein the memory is used to store program code, and the processor is used to call the program code to execute any of claims 1-9. One of the methods.
  20. 一种计算机可读存储介质,其特征在于,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如权利要求1-9任一项所述的方法。A computer-readable storage medium, characterized in that the computer storage medium stores a computer program, and the computer program includes program instructions, which when executed by a processor causes the processor to execute as claimed in claim 1 The method according to any of -9.
PCT/CN2019/095047 2018-12-13 2019-07-08 Service rule processing method, server, and computer readable storage medium WO2020119099A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811530216.3A CN109783802A (en) 2018-12-13 2018-12-13 A kind of business rule processing method, server and computer readable storage medium
CN201811530216.3 2018-12-13

Publications (1)

Publication Number Publication Date
WO2020119099A1 true WO2020119099A1 (en) 2020-06-18

Family

ID=66495920

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/095047 WO2020119099A1 (en) 2018-12-13 2019-07-08 Service rule processing method, server, and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN109783802A (en)
WO (1) WO2020119099A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783802A (en) * 2018-12-13 2019-05-21 平安医疗健康管理股份有限公司 A kind of business rule processing method, server and computer readable storage medium
CN110716946B (en) * 2019-10-22 2022-05-10 北京锐安科技有限公司 Method and device for updating feature rule matching library, storage medium and electronic equipment
CN112507083B (en) * 2020-12-16 2022-07-01 中国南方电网有限责任公司 Anti-error rule base construction method based on scheduling anti-error field language
CN114418554A (en) * 2022-03-15 2022-04-29 太平金融科技服务(上海)有限公司深圳分公司 Method, system, computer device and medium for managing rules in various business systems
CN115525620A (en) * 2022-10-09 2022-12-27 金恒智控管理咨询集团股份有限公司 Method for generating internal control flow based on policy file
CN116108486B (en) * 2023-02-20 2023-08-11 北京亿赛通科技发展有限责任公司 System and method for realizing DLP rapid detection

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8566125B1 (en) * 2004-09-20 2013-10-22 Genworth Holdings, Inc. Systems and methods for performing workflow
CN106204284A (en) * 2016-06-30 2016-12-07 北京未来付网络技术有限公司 The implementation method of the future payment product of a kind of pre-core insurance system and device
CN107025604A (en) * 2016-12-19 2017-08-08 阿里巴巴集团控股有限公司 The generation method and device of service order data
CN107679995A (en) * 2017-08-31 2018-02-09 平安科技(深圳)有限公司 Electronic installation, insurance case Claims Review method and computer-readable recording medium
CN109783802A (en) * 2018-12-13 2019-05-21 平安医疗健康管理股份有限公司 A kind of business rule processing method, server and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8566125B1 (en) * 2004-09-20 2013-10-22 Genworth Holdings, Inc. Systems and methods for performing workflow
CN106204284A (en) * 2016-06-30 2016-12-07 北京未来付网络技术有限公司 The implementation method of the future payment product of a kind of pre-core insurance system and device
CN107025604A (en) * 2016-12-19 2017-08-08 阿里巴巴集团控股有限公司 The generation method and device of service order data
CN107679995A (en) * 2017-08-31 2018-02-09 平安科技(深圳)有限公司 Electronic installation, insurance case Claims Review method and computer-readable recording medium
CN109783802A (en) * 2018-12-13 2019-05-21 平安医疗健康管理股份有限公司 A kind of business rule processing method, server and computer readable storage medium

Also Published As

Publication number Publication date
CN109783802A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
WO2020119099A1 (en) Service rule processing method, server, and computer readable storage medium
US9405532B1 (en) Integrated cloud platform translation system
CN109617646B (en) Message conversion method and device, computer equipment and computer readable storage medium
WO2019134232A1 (en) Method for performing underwriting verification, device, storage medium, and terminal
CN109617647B (en) Message conversion method and device, computer equipment and computer readable storage medium
US20140143753A1 (en) Policy to source code conversion
WO2019161645A1 (en) Shell-based data table extraction method, terminal, device, and storage medium
WO2021159762A1 (en) Data relationship extraction method and apparatus, electronic device, and storage medium
CN111177113B (en) Data migration method, device, computer equipment and storage medium
JP2014149564A (en) Information processing apparatus, information processing method and program
US20130246520A1 (en) Recognizing Social Media Posts, Comments, or other Texts as Business Recommendations or Referrals
CN102567455A (en) Method and system of managing documents using weighted prevalence data for statements
CN113032393A (en) Method and device for binding associated object
CN110795697A (en) Logic expression obtaining method and device, storage medium and electronic device
CN112328592A (en) Data storage method, electronic device and computer readable storage medium
US10210165B2 (en) File management for eDiscovery
US8862609B2 (en) Expanding high level queries
CN114358742A (en) Workflow execution method, device, equipment and storage medium
US20130006683A1 (en) System and method of managing testing for a healthcare systems transition
CN109754224A (en) Organizational affiliation map construction method, apparatus and computer storage medium
CN111460137B (en) Method, equipment and medium for identifying micro-service focus based on topic model
CN112883088B (en) Data processing method, device, equipment and storage medium
US11449461B2 (en) Metadata-driven distributed dynamic reader and writer
US9201937B2 (en) Rapid provisioning of information for business analytics
CN111626876A (en) Insurance auditing method, insurance auditing device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19896973

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 15.10.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19896973

Country of ref document: EP

Kind code of ref document: A1