WO2020015190A1 - 业务规则的生成方法、电子装置及可读存储介质 - Google Patents

业务规则的生成方法、电子装置及可读存储介质 Download PDF

Info

Publication number
WO2020015190A1
WO2020015190A1 PCT/CN2018/108211 CN2018108211W WO2020015190A1 WO 2020015190 A1 WO2020015190 A1 WO 2020015190A1 CN 2018108211 W CN2018108211 W CN 2018108211W WO 2020015190 A1 WO2020015190 A1 WO 2020015190A1
Authority
WO
WIPO (PCT)
Prior art keywords
rule
business
java
rules
preset
Prior art date
Application number
PCT/CN2018/108211
Other languages
English (en)
French (fr)
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 WO2020015190A1 publication Critical patent/WO2020015190A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • 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
    • 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
    • G06Q40/03Credit; Loans; Processing thereof

Definitions

  • the present application relates to the field of computer technology, and in particular, to a method for generating a business rule, an electronic device, and a readable storage medium.
  • the purpose of this application is to provide a method for generating business rules, an electronic device, and a readable storage medium, which are intended to generate business rules simply and efficiently.
  • a first aspect of the present application provides an electronic device, the electronic device includes a memory and a processor, and the memory stores a system for generating a service rule that can run on the processor, and the service
  • the rule generation system implements the following steps when executed by the processor:
  • the second aspect of the present application further provides a method for generating a business rule.
  • the method for generating a business rule includes:
  • the third aspect of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores a business rule generation system, and the business rule generation system can be processed by at least one The processor executes, so that the at least one processor executes the steps of the method for generating a business rule as described above.
  • the method for generating a business rule, an electronic device, and a readable storage medium proposed in the present application, by extracting a preset identification vocabulary and a preset keyword collection in a natural language rule written by a user; according to a predetermined preset identification vocabulary and Java rules
  • the mapping relationship between the templates determines the Java rule template corresponding to the preset identification vocabulary in the natural language rule, and converts the preset keyword sink in the natural language rule into the corresponding code, and fills the converted code to The corresponding position in the determined Java rule template; compiling the filled Java rule template to generate executable Java rules. Because the user-written natural language rules can be automatically converted and compiled into executable Java rules, users do not need to write code, that is, no professional developers need to manually write code, labor costs are lower, and the efficiency of generating business rules is improved.
  • FIG. 1 is a schematic diagram of an operating environment of a preferred embodiment of a business rule generation system of the present application
  • FIG. 2 is an application schematic diagram of an embodiment of a business rule generation system of this application
  • FIG. 3 is a schematic flowchart of an embodiment of a method for generating a business rule of this application.
  • first and second in this application are only for descriptive purposes, and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. . Therefore, the features defined as “first” and “second” may explicitly or implicitly include at least one of the features.
  • technical solutions between the various embodiments can be combined with each other, but must be based on those that can be realized by a person of ordinary skill in the art. When the combination of technical solutions conflicts or cannot be realized, such a combination of technical solutions should be considered nonexistent. Is not within the scope of protection claimed in this application.
  • FIG. 1 is a schematic diagram of an operating environment of a preferred embodiment of a business rule generation system 10 of the present application.
  • the business rule generation system 10 is installed and run in the electronic device 1.
  • the electronic device 1 may include, but is not limited to, a memory 11, a processor 12, and a display 13.
  • FIG. 1 only shows the electronic device 1 with components 11-13, but it should be understood that it is not required to implement all the illustrated components, and more or fewer components may be implemented instead.
  • the memory 11 is at least one type of readable computer storage medium.
  • the memory 11 may be an internal storage unit of the electronic device 1, such as a hard disk or a memory of the electronic device 1.
  • the memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in hard disk, a smart memory card (SMC), and a secure digital device. (Secure Digital, SD) card, Flash card, etc.
  • the memory 11 may further include both an internal storage unit of the electronic device 1 and an external storage device.
  • the memory 11 is configured to store application software installed on the electronic device 1 and various types of data, such as program codes of the business rule generation system 10.
  • the memory 11 may also be used to temporarily store data that has been or will be output.
  • the processor 12 may be a central processing unit (CPU), a microprocessor, or other data processing chip, configured to run program codes or process data stored in the memory 11, such as A generation system 10 or the like that executes the business rules.
  • CPU central processing unit
  • microprocessor or other data processing chip, configured to run program codes or process data stored in the memory 11, such as A generation system 10 or the like that executes the business rules.
  • the display 13 may be an LED display, a liquid crystal display, a touch-type liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like.
  • the display 13 is used to display information processed in the electronic device 1 and to display a visual user interface, such as a natural language rule written by a user, and an executable Java rule finally generated (Java is an object-oriented programming language )Wait.
  • the components 11-13 of the electronic device 1 communicate with each other through a system bus.
  • the business rule generation system 10 includes at least one computer-readable instruction stored in the memory 11, and the at least one computer-readable instruction can be executed by the processor 12 to implement the embodiments of the present application.
  • Step S1 obtaining a natural language rule written by a user
  • Step S2 extracting a preset identification vocabulary and a preset keyword pool in the natural language rule
  • Step S3 Determine a Java rule template corresponding to the preset identification vocabulary in the natural language rule according to a predetermined mapping relationship between the preset identification vocabulary and the Java rule template, and preset the preset in the natural language rule.
  • the key words are converted into corresponding codes, and the converted codes are filled into corresponding positions in the determined Java rule template;
  • Step S4 compile the filled Java rule template to generate an executable Java rule.
  • the business rule generation system receives a business rule generation request sent by a user, for example, a business rule generation request sent by a user through a terminal such as a mobile phone, tablet computer, or self-service terminal device, such as receiving a user on a mobile phone, tablet computer, A business rule generation request sent from a pre-installed client in a terminal such as a kiosk, or a business rule generation request sent by a user on a browser system in a terminal such as a mobile phone, tablet computer, or self-service terminal device.
  • a business rule generation request sent by a user for example, a business rule generation request sent by a user through a terminal such as a mobile phone, tablet computer, or self-service terminal device, such as receiving a user on a mobile phone, tablet computer, A business rule generation request sent from a pre-installed client in a terminal such as a kiosk, or a business rule generation request sent by a user on a browser system in a terminal such as a mobile phone, tablet computer, or self-
  • a natural language rule written by the user After receiving a business rule generation request from a user, a natural language rule written by the user can be obtained; preset identification words (such as “if”, “then”, “other”, etc.) in the natural language rule are extracted, and Pre-set keyword vocabulary (such as "age”, "amount”, etc.); determined based on the mapping relationship between pre-determined preset identification words and Java rule templates (such as if rule template, then rule template, else rule template, etc.) A Java rule template corresponding to a preset identification word in the natural language rule, and converting a preset keyword sink in the natural language rule into a corresponding code, for example, converting a preset keyword sink "age” into a corresponding The code "age”.
  • a preset data bearing object BOM and a filled Java rule template can be compiled to generate executable Java rules.
  • a user is allowed to write rules in natural language, and automatically convert and compile the natural language rules written by the user into a java programming language.
  • the java programming language is an executable business rule file.
  • Corresponding business systems (such as credit card review systems, insurance underwriting systems, etc.) are associated and configured, and the executable business rule files are stored in memory.
  • business systems such as credit card review systems, insurance underwriting systems, and other business rules are requested to use business rules
  • the business code is passed in to find in memory whether there are corresponding business rule files associated with the business system.
  • the business system can call the corresponding business rule file in memory for business rule calculation, otherwise the call fails.
  • the writing and operation of business rules are separated, and the natural language rules can be automatically converted and compiled into the Java programming language without the need for the user to write code, that is, without the need for a professional developer to manually write code, and the labor cost is lower.
  • the user receives natural language rules written by the user. For example, after receiving a business rule generation request from the user, an input interface can be provided for the user to write natural language rules. After the user finishes writing, the written natural language rules can be uploaded. Of course, Users can also upload their written natural language rules directly.
  • the natural language rules uploaded by the user are converted into executable business rule files. Specifically, the analysis is started according to the natural language rules uploaded by the user, that is, the rule set Irl, and the lexical configuration and grammatical configuration are performed.
  • the preset keyword pool is packed into the data structure.
  • the lexical configuration can convert the preset keyword pool in the natural language rules into corresponding code nouns, such as the preset keyword pool "age” in the natural language rules can be converted into corresponding code nouns. "Age”, the preset identification vocabulary "if” in natural language rules can be converted into the corresponding code noun "if”, and the position of each preset keyword pool can be configured during grammatical configuration to form the grammatical structure in the programming language .
  • the natural language rules uploaded by the user can be divided into three categories of if, then, and else according to the preset identification vocabulary in the natural language rules. After the lexical configuration and grammatical configuration are performed, the natural language rules uploaded by the user can be uploaded.
  • a PRL file that is, a memory data structure. Further, load the PRL file into the corresponding template to generate Java rules. Among them, because it is divided into three categories of if, then, and else, the PRL file is loaded into the corresponding category.
  • the template can generate Java rules, and then compile the preset data bearing object BOM with the generated Java rules to generate the final executable Java rule file.
  • the writing and operation of business rules are separated, the rules are written in natural language, and then the rule set is compiled into a programming language.
  • the business system directly calls the programming language to perform the operation to obtain the result.
  • the data bearing object BOM can be used to carry the specific business data of the business system, and the Java rule file is executed to target The specific business data of the business system should be processed by business rules.
  • the generated executable Java rule is associated with the application's business system, and the generated executable Java rule is labeled and added to a preset application rule standard library.
  • the business system includes a credit card review system and an insurance underwriting system; when a business rule call label issued by the business system is received, an executable Java corresponding to the business rule call label is found from the preset application rule standard library; Rules, and use the found executable Java rules to perform business rule operations, and return the results of the operations to the business system.
  • the generated Java rule file can be added to a preset application rule standard library. If the rule already exists in the application rule standard library, it is updated, and if not, it is added.
  • the generated Java rule file is associated with the business system (such as a label) of the corresponding application.
  • the business system needs to pass in the business label and rule input parameters when using the rule to find out whether the corresponding rule application exists in the memory. If it exists, it performs the rule operation, otherwise the return call fails.
  • the business system sends a request, including the business label and business data, to search in the standard library of application rules in memory. If a rule application corresponding to the business label of the business system is a Java rule file, the business system is called. To execute the Java rule file based on the business data of the application, and return the execution result of the rule application to the business system; if not, the return call fails, thereby realizing the management of the business rule.
  • this embodiment extracts a preset identification vocabulary and a preset keyword vocabulary in a natural language rule written by a user; and determines it according to a mapping relationship between a predetermined preset identification vocabulary and a Java rule template.
  • a Java rule template corresponding to a preset identification vocabulary in the natural language rule, and converting a preset keyword pool in the natural language rule into a corresponding code, and filling the converted code into the corresponding Java rule template Location; compile the filled Java rule template to generate executable Java rules. Because the user-written natural language rules can be automatically converted and compiled into executable Java rules, users do not need to write code, that is, no professional developers need to manually write code, labor costs are lower, and the efficiency of generating business rules is improved.
  • FIG. 2 is a schematic diagram of an application of an embodiment of a business rule generation system of the present application.
  • the left side of the natural language rule written by the user in FIG. 2 is “if: the insured's age is greater than 70, then refuse;”, extracting the preset key in the natural language rule written by the user
  • the words “age” and “rejection” are preset to identify the word “if” and converted into corresponding code nouns "age”, “reject”, and "if”.
  • the user-written The natural language rules are transformed into the code "If (age> 70) ⁇ reject ⁇ " on the right in Figure 2.
  • FIG. 3 is a schematic flowchart of an embodiment of a method for generating a business rule of this application.
  • the method for generating a business rule includes the following steps:
  • Step S10 acquiring a natural language rule written by a user
  • Step S20 extracting a preset identification word and a preset keyword pool in the natural language rule
  • Step S30 Determine a Java rule template corresponding to the preset identification vocabulary in the natural language rule according to a predetermined mapping relationship between the preset identification vocabulary and the Java rule template, and set the preset in the natural language rule.
  • the key words are converted into corresponding codes, and the converted codes are filled into corresponding positions in the determined Java rule template;
  • Step S40 Compile the filled Java rule template to generate an executable Java rule.
  • the business rule generation system receives a business rule generation request sent by a user, for example, a business rule generation request sent by a user through a terminal such as a mobile phone, tablet computer, or self-service terminal device, such as receiving a user's A business rule generation request sent from a pre-installed client in a terminal such as a self-service terminal device, or a business rule generation request sent by a user on a browser system in a terminal such as a mobile phone, tablet computer, or self-service terminal device.
  • a business rule generation request sent by a user for example, a business rule generation request sent by a user through a terminal such as a mobile phone, tablet computer, or self-service terminal device, such as receiving a user's
  • a business rule generation request sent from a pre-installed client in a terminal such as a self-service terminal device, or a business rule generation request sent by a user on a browser system in a terminal such as a mobile phone, tablet computer, or self-service terminal device
  • a natural language rule written by the user After receiving a business rule generation request from a user, a natural language rule written by the user can be obtained; preset identification words (such as “if”, “then”, “other”, etc.) in the natural language rule are extracted, and Pre-set keyword vocabulary (such as "age”, "amount”, etc.); determined based on the mapping relationship between pre-determined preset identification words and Java rule templates (such as if rule template, then rule template, else rule template, etc.) A Java rule template corresponding to a preset identification word in the natural language rule, and converting a preset keyword sink in the natural language rule into a corresponding code, for example, converting a preset keyword sink "age” into a corresponding The code "age”.
  • a preset data bearing object BOM and a filled Java rule template can be compiled to generate executable Java rules.
  • a user is allowed to write rules in natural language, and automatically convert and compile the natural language rules written by the user into a java programming language.
  • the java programming language is an executable business rule file.
  • Corresponding business systems (such as credit card review systems, insurance underwriting systems, etc.) are associated and configured, and the executable business rule files are stored in memory.
  • business systems such as credit card review systems, insurance underwriting systems, and other business rules are requested to use business rules
  • the business code is passed in to find in memory whether there are corresponding business rule files associated with the business system.
  • the business system can call the corresponding business rule file in memory for business rule calculation, otherwise the call fails.
  • the writing and calculation of business rules are separated, and natural language rules can be automatically converted and compiled into the Java programming language, without the need for users to write code, that is, without having to manually write code by professional developers, and the labor cost is lower.
  • the user receives natural language rules written by the user. For example, after receiving a business rule generation request from the user, an input interface can be provided for the user to write natural language rules. After the user finishes writing, the written natural language rules can be uploaded. Of course, Users can also upload their written natural language rules directly.
  • the natural language rules uploaded by the user are converted into executable business rule files. Specifically, the analysis is started according to the natural language rules uploaded by the user, that is, the rule set Irl, and the lexical configuration and grammatical configuration are performed.
  • the preset keyword pool is packed into the data structure.
  • the lexical configuration can convert the preset keyword pool in the natural language rules into corresponding code nouns, such as the preset keyword pool "age” in the natural language rules can be converted into corresponding code nouns. "Age”, the preset identification vocabulary "if” in natural language rules can be converted into the corresponding code noun "if”, and the position of each preset keyword pool can be configured during grammatical configuration to form the grammatical structure in the programming language .
  • the natural language rules uploaded by the user can be divided into three categories of if, then, and else according to the preset identification vocabulary in the natural language rules. After the lexical configuration and grammatical configuration are performed, the natural language rules uploaded by the user can be uploaded.
  • a PRL file that is, a memory data structure. Further, load the PRL file into the corresponding template to generate Java rules. Among them, because it is divided into three categories of if, then, and else, the PRL file is loaded into the corresponding category.
  • the template can generate Java rules, and then compile the preset data bearing object BOM with the generated Java rules to generate the final executable Java rule file.
  • the writing and operation of business rules are separated, the rules are written in natural language, and then the rule set is compiled into a programming language.
  • the business system directly calls the programming language to perform the operation to obtain the result.
  • the data bearing object BOM can be used to carry the specific business data of the business system, and the Java rule file is executed to target The specific business data of the business system should be processed by business rules.
  • the generated executable Java rule is associated with the application's business system, and the generated executable Java rule is labeled and added to a preset application rule standard library.
  • the business system includes a credit card review system and an insurance underwriting system; when a business rule call label issued by the business system is received, an executable Java corresponding to the business rule call label is found from the preset application rule standard library; Rules, and use the found executable Java rules to perform business rule operations, and return the results of the operations to the business system.
  • the generated Java rule file can be added to a preset application rule standard library. If the rule already exists in the application rule standard library, it is updated, and if not, it is added.
  • the generated Java rule file is associated with the business system (such as a label) of the corresponding application.
  • the business system needs to pass in the business label and rule input parameters when using the rule to find out whether the corresponding rule application exists in the memory. If it exists, it performs the rule operation, otherwise the return call fails.
  • the business system sends a request, including the business label and business data, to search in the standard library of application rules in memory. If a rule application corresponding to the business label of the business system is a Java rule file, the business system is called. To execute the Java rule file based on the business data of the application, and return the execution result of the rule application to the business system; if not, the return call fails, thereby realizing the management of the business rule.
  • this embodiment extracts a preset identification vocabulary and a preset keyword vocabulary in a natural language rule written by a user; and determines it according to a mapping relationship between a predetermined preset identification vocabulary and a Java rule template.
  • a Java rule template corresponding to a preset identification vocabulary in the natural language rule, and converting a preset keyword pool in the natural language rule into a corresponding code, and filling the converted code into the corresponding Java rule template Location; compile the filled Java rule template to generate executable Java rules. Because the user-written natural language rules can be automatically converted and compiled into executable Java rules, users do not need to write code, that is, no professional developers need to manually write code, labor costs are lower, and the efficiency of generating business rules is improved.
  • the natural language rule “If: the age of the insured person is greater than 70, then refuse;” is extracted in the specific application scenario on the left in FIG. 2.
  • the preset keywords in the natural language rules written by the user are "age” and “rejection”, and the preset identification word “if” is converted into corresponding code nouns "age”, "reject”, and "if” for lexical configuration.
  • the natural language rules written by the user can be converted into the code "If (age> 70) ⁇ reject ⁇ " on the right in Figure 2.
  • the present application also provides a computer-readable storage medium, where the computer-readable storage medium stores a business rule generation system, and the business rule generation system can be executed by at least one processor, so that the at least one The processor executes the steps of the method for generating a business rule in the foregoing embodiment.
  • the specific implementation processes of steps S10, S20, and S30 of the method for generating a business rule are as described above, and are not repeated here.
  • the methods in the above embodiments can be implemented by means of software plus a necessary universal hardware platform, and of course, can also be implemented by hardware, but in many cases the former is Better implementation.
  • the technical solution of this application that is essentially or contributes to the existing technology can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, The optical disc) includes several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the embodiments of the present application.
  • a terminal device which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computing Systems (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Stored Programmes (AREA)

Abstract

本申请涉及一种业务规则的生成方法、电子装置及可读存储介质,该方法包括:获取用户编写的自然语言规则;提取出所述自然语言规则中的预设标识词汇及预设关键词汇;根据预先确定的预设标识词汇与Java规则模板之间的映射关系确定出所述自然语言规则中的预设标识词汇对应的Java规则模板,并将所述自然语言规则中的预设关键词汇转换为对应的代码,将转换的代码填充至确定的Java规则模板中的对应位置;将填充后的Java规则模板进行编译生成可执行Java规则。本申请无需由专业的开发人员人工编写代码,人力成本更低,且提高了生成业务规则的效率。

Description

业务规则的生成方法、电子装置及可读存储介质
优先权申明
本申请基于巴黎公约申明享有2018年07月18日递交的申请号为CN 201810792774.0、名称为“业务规则的生成方法、电子装置及可读存储介质”中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。
技术领域
本申请涉及计算机技术领域,尤其涉及一种业务规则的生成方法、电子装置及可读存储介质。
背景技术
目前,在信用卡额度调整、保险核保等场景中,会涉及到规则引擎系统中大量的业务规则应用,由于业务规则需编写代码,现有的业务规则均由专业的开发人员人工编写及管理,人力成本较高,且效率低下
发明内容
本申请的目的在于提供一种业务规则的生成方法、电子装置及可读存储介质,旨在简单高效地生成业务规则。
为实现上述目的,本申请第一方面提供一种电子装置,所述电子装置包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的业务规则的生成系统,所述业务规则的生成系统被所述处理器执行时实现如下步骤:
获取用户编写的自然语言规则;
提取出所述自然语言规则中的预设标识词汇及预设关键词汇;
根据预先确定的预设标识词汇与Java规则模板之间的映射关系确定出所述自然语言规则中的预设标识词汇对应的Java规则模板,并将所述自然语言规则中的预设关键词汇转换为对应的代码,将转换的代码填充至确定的Java规则模板中的对应位置;
将填充后的Java规则模板进行编译生成可执行Java规则。
此外,为实现上述目的,本申请第二方面还提供一种业务规则的生成方法,所述业务规则的生成方法包括:
获取用户编写的自然语言规则;
提取出所述自然语言规则中的预设标识词汇及预设关键词汇;
根据预先确定的预设标识词汇与Java规则模板之间的映射关系确定出所述自然语言规则中的预设标识词汇对应的Java规则模板,并将所述自然语言规则中的预设关键词汇转换为对应的代码,将转换的代码填充至确定的Java规则模板中的对应位置;
将填充后的Java规则模板进行编译生成可执行Java规则。
进一步地,为实现上述目的,本申请第三方面还提供一种计算机可读存储介质,所述计算机可读存储介质存储有业务规则的生成系统,所述业务规则的生成系统可被至少一个处理器执行,以使所述至少一个处理器执行如上述的业务规则的生成方法的步骤。
本申请提出的业务规则的生成方法、电子装置及可读存储介质,通过提取出用户编写的自然语言规则中的预设标识词汇及预设关键词汇;根据预先确定的预设标识词汇与Java规则模板之间的映射关系确定出所述自然语言规则中的预设标识词汇对应的Java规则模板,并将所述自然语言规则中的预设关键词汇转换为对应的代码,将转换 的代码填充至确定的Java规则模板中的对应位置;将填充后的Java规则模板进行编译生成可执行Java规则。由于能将用户编写的自然语言规则自动转换、编译成可执行Java规则,无需用户编写代码,即无需由专业的开发人员人工编写代码,人力成本更低,且提高了生成业务规则的效率。
附图说明
图1为本申请业务规则的生成系统较佳实施例的运行环境示意图;
图2为本申请业务规则的生成系统一实施例的应用示意图;
图3为本申请业务规则的生成方法一实施例的流程示意图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
需要说明的是,在本申请中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。
本申请提供一种业务规则的生成系统。请参阅图1,是本申请业务规则的生成系统10较佳实施例的运行环境示意图。
在本实施例中,所述的业务规则的生成系统10安装并运行于电子装置1中。该电子装置1可包括,但不仅限于,存储器11、处理器12及显示器13。图1仅示出了具有组件11-13的电子装置1,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。
所述存储器11为至少一种类型的可读计算机存储介质,所述存储器11在一些实施例中可以是所述电子装置1的内部存储单元,例如该电子装置1的硬盘或内存。所述存储器11在另一些实施例中也可以是所述电子装置1的外部存储设备,例如所述电子装置1上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器11还可以既包括所述电子装置1的内部存储单元也包括外部存储设备。所述存储器11用于存储安装于所述电子装置1的应用软件及各类数据,例如所述业务规则的生成系统10的程序代码等。所述存储器11还可以用于暂时地存储已经输出或者将要输出的数据。
所述处理器12在一些实施例中可以是一中央处理器(Central Processing Unit,CPU),微处理器或其他数据处理芯片,用于运行所述存储器11中存储的程序代码或处理数据,例如执行所述业务规则的生成系统10等。
所述显示器13在一些实施例中可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。所述显示器13用于显示在所述电子装置1中 处理的信息以及用于显示可视化的用户界面,例如用户编写的自然语言规则、最终生成的可执行Java规则(Java是一门面向对象编程语言)等。所述电子装置1的部件11-13通过系统总线相互通信。
业务规则的生成系统10包括至少一个存储在所述存储器11中的计算机可读指令,该至少一个计算机可读指令可被所述处理器12执行,以实现本申请各实施例。
其中,上述业务规则的生成系统10被所述处理器12执行时实现如下步骤:
步骤S1,获取用户编写的自然语言规则;
步骤S2,提取出所述自然语言规则中的预设标识词汇及预设关键词汇;
步骤S3,根据预先确定的预设标识词汇与Java规则模板之间的映射关系确定出所述自然语言规则中的预设标识词汇对应的Java规则模板,并将所述自然语言规则中的预设关键词汇转换为对应的代码,将转换的代码填充至确定的Java规则模板中的对应位置;
步骤S4,将填充后的Java规则模板进行编译生成可执行Java规则。
本实施例中,业务规则的生成系统接收用户发出的业务规则生成请求,例如,接收用户通过手机、平板电脑、自助终端设备等终端发送的业务规则生成请求,如接收用户在手机、平板电脑、自助终端设备等终端中预先安装的客户端上发送来的业务规则生成请求,或接收用户在手机、平板电脑、自助终端设备等终端中的浏览器系统上发送来的业务规则生成请求。
在收到用户发出的业务规则生成请求后,可获取用户编写的自然 语言规则;提取出所述自然语言规则中的预设标识词汇(例如“如果”、“那么”、“否则”等)及预设关键词汇(例如“年龄”、“金额”等);根据预先确定的预设标识词汇与Java规则模板(例如if规则模板、then规则模板、else规则模板等)之间的映射关系确定出所述自然语言规则中的预设标识词汇对应的Java规则模板,并将所述自然语言规则中的预设关键词汇转换为对应的代码,例如,将预设关键词汇“年龄”转换为对应的代码“age”。将转换的代码填充至确定的Java规则模板中的对应位置;将填充后的Java规则模板进行编译生成可执行Java规则。如可将预先设定的数据承载对象BOM与填充后的Java规则模板进行编译生成可执行Java规则。在业务系统利用生成的可执行Java规则进行业务规则运算时,接收所述业务系统发送的业务数据;通过所述可执行Java规则中的数据承载对象BOM来承载所述业务系统的业务数据,并运行所述可执行Java规则来针对承载的业务数据进行业务规则运算。
本实施例中,支持用户使用自然语言编写规则,将用户编写的自然语言规则自动转换、编译成java程序语言,该java程序语言为可执行的业务规则文件,将该可执行的业务规则文件与对应的业务系统(如信用卡审核系统、保险核保系统等)进行关联配置,并将该可执行的业务规则文件存储在内存中。在业务系统如信用卡审核系统、保险核保系统等请求使用业务规则时,传入业务代号,即可在内存中查找是否存有与该业务系统相关联对应的业务规则文件,若有,则该业务系统可调用内存中对应的业务规则文件进行业务规则运算,否则返回调用失败。本实施例中将业务规则的编写和运算分离,可支持自然语言规则自动转换、编译成java程序语言,无需用户编写代码,即无 需由专业的开发人员人工编写代码,人力成本更低。
首先,接收用户编写的自然语言规则,如在收到用户发出的业务规则生成请求后,可提供一输入界面供用户编写自然语言规则,用户编写完成后可上传编写好的自然语言规则,当然,用户也可将其已编写好的自然语言规则直接上传。将用户上传的自然语言规则转换编译成可执行的业务规则文件,具体的,根据用户上传的自然语言规则即规则集Irl启动解析,进行词法配置、语法配置,将用户上传的自然语言规则中的预设关键词汇包装进数据结构,词法配置时可将自然语言规则中的预设关键词汇转换成对应的代码名词,如自然语言规则中的预设关键词汇“年龄”可转换成对应的代码名词“age”,自然语言规则中的预设标识词汇“如果”可转换成对应的代码名词“if”,语法配置时可将各个预设关键词汇的位置进行配置,以形成程序语言中的语法结构。本实施例中可根据自然语言规则中的预设标识词汇将用户上传的自然语言规则分为if、then、else三类,在进行词法配置、语法配置后,即可将用户上传的自然语言规则转换成为PRL文件即内存数据结构,进一步的,将PRL文件加载进对应的模板即可生成Java规则,其中,由于预先分为if、then、else三类,因此,将PRL文件加载进对应类别的模板即可生成Java规则,再将预先设定的数据承载对象BOM与生成的Java规则进行编译即可生成最终可执行的Java规则文件。
本实施例中将业务规则的编写和运算分离,使用自然语言编写规则,然后将规则集编译成为程序语言。业务系统直接调用程序语言进行运算得到结果。利用规则集即PRL文件和数据承载对象BOM编译生成最终可执行的Java规则文件,在业务系统发起请求后,可通过 数据承载对象BOM来承载业务系统的具体业务数据,并执行Java规则文件来针对业务系统的具体业务数据应用业务规则来处理。
进一步地,在编译生成最终可执行的Java规则文件之后,将生成的可执行Java规则与应用的业务系统进行关联,并将生成的可执行Java规则进行标号后加入至预设的应用规则标准库;所述业务系统包括信用卡审核系统、保险核保系统;当接收到业务系统发出的业务规则调用标号时,从所述预设的应用规则标准库中找到与业务规则调用标号对应的可执行Java规则,并利用找出的可执行Java规则进行业务规则运算,将运算结果返回至所述业务系统。具体的,可将生成的Java规则文件添加至预设的应用规则标准库,若应用规则标准库中已有该规则,则进行更新,若没有,则进行添加。且将生成的Java规则文件与其对应应用的业务系统(如标号)进行关联设置。业务系统需使用规则时传入业务标号及规则入参,查找内存中是否存在对应的规则应用,如果存在,则进行规则运算,否则返回调用失败。具体的,业务系统发出请求,包含业务标号和业务数据,在内存中的应用规则标准库进行查找,若存在与该业务系统的业务标号对应的规则应用即Java规则文件,则调取该业务系统的业务数据来执行Java规则文件,并将规则应用执行结果返回给该业务系统;若没有,则返回调用失败,从而实现业务规则的管理。
与现有技术相比,本实施例通过提取出用户编写的自然语言规则中的预设标识词汇及预设关键词汇;根据预先确定的预设标识词汇与Java规则模板之间的映射关系确定出所述自然语言规则中的预设标识词汇对应的Java规则模板,并将所述自然语言规则中的预设关键 词汇转换为对应的代码,将转换的代码填充至确定的Java规则模板中的对应位置;将填充后的Java规则模板进行编译生成可执行Java规则。由于能将用户编写的自然语言规则自动转换、编译成可执行Java规则,无需用户编写代码,即无需由专业的开发人员人工编写代码,人力成本更低,且提高了生成业务规则的效率。
如图2所示,图2为本申请业务规则的生成系统一实施例的应用示意图。在一种具体应用场景中,图2中左侧为用户编写的自然语言规则“如果:被投保人的年龄大于70,那么,拒绝;”,提取出用户编写的自然语言规则中的预设关键词汇“年龄”、“拒绝”,预设标识词汇“如果”,并转换成对应的代码名词“age”、“reject”、“if”,进行词法配置、语法配置后,即可将用户编写的自然语言规则转换成为图2中右侧的代码“If(age>70){reject}”。
如图3所示,图3为本申请业务规则的生成方法一实施例的流程示意图,该业务规则的生成方法包括以下步骤:
步骤S10,获取用户编写的自然语言规则;
步骤S20,提取出所述自然语言规则中的预设标识词汇及预设关键词汇;
步骤S30,根据预先确定的预设标识词汇与Java规则模板之间的映射关系确定出所述自然语言规则中的预设标识词汇对应的Java规则模板,并将所述自然语言规则中的预设关键词汇转换为对应的代码,将转换的代码填充至确定的Java规则模板中的对应位置;
步骤S40,将填充后的Java规则模板进行编译生成可执行Java 规则。
本实施例中,业务规则的生成系统接收用户发出的业务规则生成请求,例如,接收用户通过手机、平板电脑、自助终端设备等终端发送的业务规则生成请求,如接收用户在手机、平板电脑、自助终端设备等终端中预先安装的客户端上发送来的业务规则生成请求,或接收用户在手机、平板电脑、自助终端设备等终端中的浏览器系统上发送来的业务规则生成请求。
在收到用户发出的业务规则生成请求后,可获取用户编写的自然语言规则;提取出所述自然语言规则中的预设标识词汇(例如“如果”、“那么”、“否则”等)及预设关键词汇(例如“年龄”、“金额”等);根据预先确定的预设标识词汇与Java规则模板(例如if规则模板、then规则模板、else规则模板等)之间的映射关系确定出所述自然语言规则中的预设标识词汇对应的Java规则模板,并将所述自然语言规则中的预设关键词汇转换为对应的代码,例如,将预设关键词汇“年龄”转换为对应的代码“age”。将转换的代码填充至确定的Java规则模板中的对应位置;将填充后的Java规则模板进行编译生成可执行Java规则。如可将预先设定的数据承载对象BOM与填充后的Java规则模板进行编译生成可执行Java规则。在业务系统利用生成的可执行Java规则进行业务规则运算时,接收所述业务系统发送的业务数据;通过所述可执行Java规则中的数据承载对象BOM来承载所述业务系统的业务数据,并运行所述可执行Java规则来针对承载的业务数据进行业务规则运算。
本实施例中,支持用户使用自然语言编写规则,将用户编写的自然语言规则自动转换、编译成java程序语言,该java程序语言为可 执行的业务规则文件,将该可执行的业务规则文件与对应的业务系统(如信用卡审核系统、保险核保系统等)进行关联配置,并将该可执行的业务规则文件存储在内存中。在业务系统如信用卡审核系统、保险核保系统等请求使用业务规则时,传入业务代号,即可在内存中查找是否存有与该业务系统相关联对应的业务规则文件,若有,则该业务系统可调用内存中对应的业务规则文件进行业务规则运算,否则返回调用失败。本实施例中将业务规则的编写和运算分离,可支持自然语言规则自动转换、编译成java程序语言,无需用户编写代码,即无需由专业的开发人员人工编写代码,人力成本更低。
首先,接收用户编写的自然语言规则,如在收到用户发出的业务规则生成请求后,可提供一输入界面供用户编写自然语言规则,用户编写完成后可上传编写好的自然语言规则,当然,用户也可将其已编写好的自然语言规则直接上传。将用户上传的自然语言规则转换编译成可执行的业务规则文件,具体的,根据用户上传的自然语言规则即规则集Irl启动解析,进行词法配置、语法配置,将用户上传的自然语言规则中的预设关键词汇包装进数据结构,词法配置时可将自然语言规则中的预设关键词汇转换成对应的代码名词,如自然语言规则中的预设关键词汇“年龄”可转换成对应的代码名词“age”,自然语言规则中的预设标识词汇“如果”可转换成对应的代码名词“if”,语法配置时可将各个预设关键词汇的位置进行配置,以形成程序语言中的语法结构。本实施例中可根据自然语言规则中的预设标识词汇将用户上传的自然语言规则分为if、then、else三类,在进行词法配置、语法配置后,即可将用户上传的自然语言规则转换成为PRL文件即内存数据结构,进一步的,将PRL文件加载进对应的模板即可生成 Java规则,其中,由于预先分为if、then、else三类,因此,将PRL文件加载进对应类别的模板即可生成Java规则,再将预先设定的数据承载对象BOM与生成的Java规则进行编译即可生成最终可执行的Java规则文件。
本实施例中将业务规则的编写和运算分离,使用自然语言编写规则,然后将规则集编译成为程序语言。业务系统直接调用程序语言进行运算得到结果。利用规则集即PRL文件和数据承载对象BOM编译生成最终可执行的Java规则文件,在业务系统发起请求后,可通过数据承载对象BOM来承载业务系统的具体业务数据,并执行Java规则文件来针对业务系统的具体业务数据应用业务规则来处理。
进一步地,在编译生成最终可执行的Java规则文件之后,将生成的可执行Java规则与应用的业务系统进行关联,并将生成的可执行Java规则进行标号后加入至预设的应用规则标准库;所述业务系统包括信用卡审核系统、保险核保系统;当接收到业务系统发出的业务规则调用标号时,从所述预设的应用规则标准库中找到与业务规则调用标号对应的可执行Java规则,并利用找出的可执行Java规则进行业务规则运算,将运算结果返回至所述业务系统。具体的,可将生成的Java规则文件添加至预设的应用规则标准库,若应用规则标准库中已有该规则,则进行更新,若没有,则进行添加。且将生成的Java规则文件与其对应应用的业务系统(如标号)进行关联设置。业务系统需使用规则时传入业务标号及规则入参,查找内存中是否存在对应的规则应用,如果存在,则进行规则运算,否则返回调用失败。具体的,业务系统发出请求,包含业务标号和业务数据,在内存中的应用规则标准库进行查找,若存在与该业务系统的业务标号对应的规则应 用即Java规则文件,则调取该业务系统的业务数据来执行Java规则文件,并将规则应用执行结果返回给该业务系统;若没有,则返回调用失败,从而实现业务规则的管理。
与现有技术相比,本实施例通过提取出用户编写的自然语言规则中的预设标识词汇及预设关键词汇;根据预先确定的预设标识词汇与Java规则模板之间的映射关系确定出所述自然语言规则中的预设标识词汇对应的Java规则模板,并将所述自然语言规则中的预设关键词汇转换为对应的代码,将转换的代码填充至确定的Java规则模板中的对应位置;将填充后的Java规则模板进行编译生成可执行Java规则。由于能将用户编写的自然语言规则自动转换、编译成可执行Java规则,无需用户编写代码,即无需由专业的开发人员人工编写代码,人力成本更低,且提高了生成业务规则的效率。
如图2所示,本实施例中,在一种具体应用场景中,图2中左侧为用户编写的自然语言规则“如果:被投保人的年龄大于70,那么,拒绝;”,提取出用户编写的自然语言规则中的预设关键词汇“年龄”、“拒绝”,预设标识词汇“如果”,并转换成对应的代码名词“age”、“reject”、“if”,进行词法配置、语法配置后,即可将用户编写的自然语言规则转换成为图2中右侧的代码“If(age>70){reject}”。
此外,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质存储有业务规则的生成系统,所述业务规则的生成系统可被 至少一个处理器执行,以使所述至少一个处理器执行如上述实施例中的业务规则的生成方法的步骤,该业务规则的生成方法的步骤S10、S20、S30等具体实施过程如上文所述,在此不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件来实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
以上参照附图说明了本申请的优选实施例,并非因此局限本申请的权利范围。上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。另外,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
本领域技术人员不脱离本申请的范围和实质,可以有多种变型方案实现本申请,比如作为一个实施例的特征可用于另一实施例而得到 又一实施例。凡在运用本申请的技术构思之内所作的任何修改、等同替换和改进,均应在本申请的权利范围之内。

Claims (20)

  1. 一种电子装置,其特征在于,所述电子装置包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的业务规则的生成系统,所述业务规则的生成系统被所述处理器执行时实现如下步骤:
    获取用户编写的自然语言规则;
    提取出所述自然语言规则中的预设标识词汇及预设关键词汇;
    根据预先确定的预设标识词汇与Java规则模板之间的映射关系确定出所述自然语言规则中的预设标识词汇对应的Java规则模板,并将所述自然语言规则中的预设关键词汇转换为对应的代码,将转换的代码填充至确定的Java规则模板中的对应位置;
    将填充后的Java规则模板进行编译生成可执行Java规则。
  2. 如权利要求1所述的电子装置,其特征在于,所述预设标识词汇包括如果、那么、否则,对应的Java规则模板为if规则模板、then规则模板、else规则模板。
  3. 如权利要求1所述的电子装置,其特征在于,所述将填充后的Java规则模板进行编译生成可执行Java规则的步骤包括:
    将预先设定的数据承载对象BOM与填充后的Java规则模板进行编译生成可执行Java规则。
  4. 如权利要求2所述的电子装置,其特征在于,所述将填充后的Java规则模板进行编译生成可执行Java规则的步骤包括:
    将预先设定的数据承载对象BOM与填充后的Java规则模板进行编译生成可执行Java规则。
  5. 如权利要求3所述的电子装置,其特征在于,所述处理器还用于执行所述业务规则的生成系统,以实现以下步骤:
    在业务系统利用生成的可执行Java规则进行业务规则运算时,接收所述业务系统发送的业务数据;
    通过所述可执行Java规则中的数据承载对象BOM来承载所述业务系统的业务数据,并运行所述可执行Java规则来针对承载的业务数据进行业务规则运算。
  6. 如权利要求4所述的电子装置,其特征在于,所述处理器还用于执行所述业务规则的生成系统,以实现以下步骤:
    在业务系统利用生成的可执行Java规则进行业务规则运算时,接收所述业务系统发送的业务数据;
    通过所述可执行Java规则中的数据承载对象BOM来承载所述业务系统的业务数据,并运行所述可执行Java规则来针对承载的业务数据进行业务规则运算。
  7. 如权利要求3所述的电子装置,其特征在于,所述处理器还用于执行所述业务规则的生成系统,以实现以下步骤:
    将生成的可执行Java规则与应用的业务系统进行关联,并将生成的可执行Java规则进行标号后加入至预设的应用规则标准库;所述业务系统包括信用卡审核系统、保险核保系统;
    当接收到业务系统发出的业务规则调用标号时,从所述预设的应用规则标准库中找到与业务规则调用标号对应的可执行Java规则,并利用找出的可执行Java规则进行业务规则运算,将运算结果返回至所述业务系统。
  8. 如权利要求4所述的电子装置,其特征在于,所述处理器还用于执行所述业务规则的生成系统,以实现以下步骤:
    将生成的可执行Java规则与应用的业务系统进行关联,并将生 成的可执行Java规则进行标号后加入至预设的应用规则标准库;所述业务系统包括信用卡审核系统、保险核保系统;
    当接收到业务系统发出的业务规则调用标号时,从所述预设的应用规则标准库中找到与业务规则调用标号对应的可执行Java规则,并利用找出的可执行Java规则进行业务规则运算,将运算结果返回至所述业务系统。
  9. 一种业务规则的生成方法,其特征在于,所述业务规则的生成方法包括:
    获取用户编写的自然语言规则;
    提取出所述自然语言规则中的预设标识词汇及预设关键词汇;
    根据预先确定的预设标识词汇与Java规则模板之间的映射关系确定出所述自然语言规则中的预设标识词汇对应的Java规则模板,并将所述自然语言规则中的预设关键词汇转换为对应的代码,将转换的代码填充至确定的Java规则模板中的对应位置;
    将填充后的Java规则模板进行编译生成可执行Java规则。
  10. 如权利要求9所述的业务规则的生成方法,其特征在于,所述预设标识词汇包括如果、那么、否则,对应的Java规则模板为if规则模板、then规则模板、else规则模板。
  11. 如权利要求9所述的业务规则的生成方法,其特征在于,所述将填充后的Java规则模板进行编译生成可执行Java规则的步骤包括:
    将预先设定的数据承载对象BOM与填充后的Java规则模板进行编译生成可执行Java规则。
  12. 如权利要求10所述的业务规则的生成方法,其特征在于, 所述将填充后的Java规则模板进行编译生成可执行Java规则的步骤包括:
    将预先设定的数据承载对象BOM与填充后的Java规则模板进行编译生成可执行Java规则。
  13. 如权利要求11所述的业务规则的生成方法,其特征在于,还包括:
    在业务系统利用生成的可执行Java规则进行业务规则运算时,接收所述业务系统发送的业务数据;
    通过所述可执行Java规则中的数据承载对象BOM来承载所述业务系统的业务数据,并运行所述可执行Java规则来针对承载的业务数据进行业务规则运算。
  14. 如权利要求12所述的业务规则的生成方法,其特征在于,还包括:
    在业务系统利用生成的可执行Java规则进行业务规则运算时,接收所述业务系统发送的业务数据;
    通过所述可执行Java规则中的数据承载对象BOM来承载所述业务系统的业务数据,并运行所述可执行Java规则来针对承载的业务数据进行业务规则运算。
  15. 如权利要求11所述的业务规则的生成方法,其特征在于,还包括:
    将生成的可执行Java规则与应用的业务系统进行关联,并将生成的可执行Java规则进行标号后加入至预设的应用规则标准库;所述业务系统包括信用卡审核系统、保险核保系统;
    当接收到业务系统发出的业务规则调用标号时,从所述预设的应 用规则标准库中找到与业务规则调用标号对应的可执行Java规则,并利用找出的可执行Java规则进行业务规则运算,将运算结果返回至所述业务系统。
  16. 如权利要求12所述的业务规则的生成方法,其特征在于,还包括:
    将生成的可执行Java规则与应用的业务系统进行关联,并将生成的可执行Java规则进行标号后加入至预设的应用规则标准库;所述业务系统包括信用卡审核系统、保险核保系统;
    当接收到业务系统发出的业务规则调用标号时,从所述预设的应用规则标准库中找到与业务规则调用标号对应的可执行Java规则,并利用找出的可执行Java规则进行业务规则运算,将运算结果返回至所述业务系统。
  17. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有业务规则的生成系统,所述业务规则的生成系统被处理器执行时实现如下步骤:
    获取用户编写的自然语言规则;
    提取出所述自然语言规则中的预设标识词汇及预设关键词汇;
    根据预先确定的预设标识词汇与Java规则模板之间的映射关系确定出所述自然语言规则中的预设标识词汇对应的Java规则模板,并将所述自然语言规则中的预设关键词汇转换为对应的代码,将转换的代码填充至确定的Java规则模板中的对应位置;
    将填充后的Java规则模板进行编译生成可执行Java规则。
  18. 如权利要求17所述的计算机可读存储介质,其特征在于,所述预设标识词汇包括如果、那么、否则,对应的Java规则模板为 if规则模板、then规则模板、else规则模板。
  19. 如权利要求17所述的计算机可读存储介质,其特征在于,所述将填充后的Java规则模板进行编译生成可执行Java规则的步骤包括:
    将预先设定的数据承载对象BOM与填充后的Java规则模板进行编译生成可执行Java规则。
  20. 如权利要求18所述的计算机可读存储介质,其特征在于,所述将填充后的Java规则模板进行编译生成可执行Java规则的步骤包括:
    将预先设定的数据承载对象BOM与填充后的Java规则模板进行编译生成可执行Java规则。
PCT/CN2018/108211 2018-07-18 2018-09-28 业务规则的生成方法、电子装置及可读存储介质 WO2020015190A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810792774.0A CN109144493A (zh) 2018-07-18 2018-07-18 业务规则的生成方法、电子装置及可读存储介质
CN201810792774.0 2018-07-18

Publications (1)

Publication Number Publication Date
WO2020015190A1 true WO2020015190A1 (zh) 2020-01-23

Family

ID=64800759

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/108211 WO2020015190A1 (zh) 2018-07-18 2018-09-28 业务规则的生成方法、电子装置及可读存储介质

Country Status (2)

Country Link
CN (1) CN109144493A (zh)
WO (1) WO2020015190A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112348317A (zh) * 2020-10-15 2021-02-09 中国城市规划设计研究院 一种智慧城市的项目规划条件生成方法和系统
CN116015955A (zh) * 2023-01-04 2023-04-25 三峡高科信息技术有限责任公司 可配置的验证应用系统中上传文件合法性安全性的方法

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110231955B (zh) * 2019-05-13 2024-05-07 平安科技(深圳)有限公司 代码处理方法、装置、计算机设备和存储介质
CN110825488A (zh) * 2019-09-29 2020-02-21 山东中创软件工程股份有限公司 一种业务处理方法、装置及电子设备和存储介质
CN111078216B (zh) * 2019-11-08 2023-06-02 泰康保险集团股份有限公司 信息展示方法、装置、电子设备及计算机可读介质
CN110851519A (zh) * 2019-11-18 2020-02-28 上海新炬网络信息技术股份有限公司 基于nlp自然语言通过etl工具进行数据处理的方法
CN112987653B (zh) * 2019-12-17 2022-04-15 深圳市恒控科技有限公司 一种将中文程序转化为g代码的方法和装置
CN111722863A (zh) * 2020-06-23 2020-09-29 上海冰鉴信息科技有限公司 风控模型更新方法及装置
CN112306497B (zh) * 2020-11-03 2024-04-26 高炼 一种将自然语言转化为程序代码的方法及系统
CN112394926A (zh) * 2020-12-03 2021-02-23 钟月珠 一种基于自然语言模型的码床系统
CN113934416B (zh) * 2021-10-26 2022-08-19 山东同圆数字科技有限公司 基于图形化语义策略编程的运维管理方法及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716192A (zh) * 2004-04-23 2006-01-04 微软公司 语义编程语言和语言对象模型
CN103617159A (zh) * 2012-12-07 2014-03-05 万继华 将自然语言翻译成计算机语言的方法、语义分析器及人机对话系统
CN108073392A (zh) * 2017-12-29 2018-05-25 上海宽全智能科技有限公司 基于自然语言的智能编程方法、设备与存储介质
CN108170661A (zh) * 2016-12-07 2018-06-15 北京京东尚科信息技术有限公司 一种规则文本的管理方法及系统

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377768A (zh) * 2008-09-09 2009-03-04 金蝶软件(中国)有限公司 工资计算方法及系统
CN101951604A (zh) * 2010-08-16 2011-01-19 中兴通讯股份有限公司 一种增值业务处理方法和装置
CN103019726B (zh) * 2012-12-19 2016-08-10 中国电子科技集团公司第十五研究所 软件系统业务规则的管理方法和装置
CN103473696A (zh) * 2013-09-03 2013-12-25 周吉 一种收集、分析和分发网络商业信息的方法和系统
US10268496B2 (en) * 2015-04-03 2019-04-23 Oracle International Corporation System and method for supporting object notation variables in a process defined by a process execution language for execution in a SOA middleware environment
EP3133489A1 (en) * 2015-08-18 2017-02-22 BMC Software, Inc. Extensibility of business logic shared across a business process orchestration engine, a rule engine, and a user interface
CN106126215B (zh) * 2016-06-17 2019-06-21 深圳市麦斯杰网络有限公司 业务规则脚本生成方法及装置
CN106649212A (zh) * 2016-09-12 2017-05-10 济南浪潮高新科技投资发展有限公司 一种业务数据处理的方法及装置
CN107220058A (zh) * 2017-06-05 2017-09-29 厦门美柚信息科技有限公司 业务规则引擎的实现方法及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716192A (zh) * 2004-04-23 2006-01-04 微软公司 语义编程语言和语言对象模型
CN103617159A (zh) * 2012-12-07 2014-03-05 万继华 将自然语言翻译成计算机语言的方法、语义分析器及人机对话系统
CN108170661A (zh) * 2016-12-07 2018-06-15 北京京东尚科信息技术有限公司 一种规则文本的管理方法及系统
CN108073392A (zh) * 2017-12-29 2018-05-25 上海宽全智能科技有限公司 基于自然语言的智能编程方法、设备与存储介质

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112348317A (zh) * 2020-10-15 2021-02-09 中国城市规划设计研究院 一种智慧城市的项目规划条件生成方法和系统
CN112348317B (zh) * 2020-10-15 2023-06-20 中国城市规划设计研究院 一种智慧城市的项目规划条件生成方法和系统
CN116015955A (zh) * 2023-01-04 2023-04-25 三峡高科信息技术有限责任公司 可配置的验证应用系统中上传文件合法性安全性的方法
CN116015955B (zh) * 2023-01-04 2023-12-01 三峡高科信息技术有限责任公司 可配置的验证应用系统中上传文件合法性安全性的方法

Also Published As

Publication number Publication date
CN109144493A (zh) 2019-01-04

Similar Documents

Publication Publication Date Title
WO2020015190A1 (zh) 业务规则的生成方法、电子装置及可读存储介质
US9778967B2 (en) Sophisticated run-time system for graph processing
JP3437849B2 (ja) オブジェクト指向プログラミングを支援するデータベース管理システム及び方法
CN108874924B (zh) 搜索服务的创建方法、装置及计算机可读存储介质
WO2018000998A1 (zh) 界面生成方法、装置和系统
US9400700B2 (en) Optimized system for analytics (graphs and sparse matrices) operations
US20040064830A1 (en) Runtime services for network software platform
US9015011B2 (en) Assistant tool
CN101183379A (zh) 用于检索数据的方法和系统
CN107924326A (zh) 对经更新的类型的迁移方法进行覆盖
CN105550206B (zh) 结构化查询语句的版本控制方法及装置
CN104798075A (zh) 应用随机化
JP2006048645A (ja) ドキュメントにコンテキスト情報を埋め込むための方法およびシステム
CN114218315A (zh) 接口生成方法、装置、计算机设备及存储介质
US7593956B1 (en) Interface to a human interface infrastructure database in an extensible firmware interface environment
US8433729B2 (en) Method and system for automatically generating a communication interface
CN113987337A (zh) 基于组件化动态编排的搜索方法、系统、设备及存储介质
US9064042B2 (en) Instrumenting computer program code by merging template and target code methods
CN111158777B (zh) 组件调用方法、装置及计算机可读存储介质
CN112799760A (zh) 一种表单渲染方法及其装置
US11914557B2 (en) Techniques for performing lifecycle operations on a data store
CN113761040A (zh) 数据库与应用程序双向映射方法、设备、介质及程序产品
CN111897728A (zh) 接口调试方法及相关设备
US20210240469A1 (en) Method and apparatus for managing modules
CN112148746A (zh) 生成数据库表结构文档的方法、装置、电子装置和存储介质

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: 18927135

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18927135

Country of ref document: EP

Kind code of ref document: A1