WO2020015191A1 - Business rule releasing and managing method, electronic device and readable storage medium - Google Patents
Business rule releasing and managing method, electronic device and readable storage medium Download PDFInfo
- Publication number
- WO2020015191A1 WO2020015191A1 PCT/CN2018/108214 CN2018108214W WO2020015191A1 WO 2020015191 A1 WO2020015191 A1 WO 2020015191A1 CN 2018108214 W CN2018108214 W CN 2018108214W WO 2020015191 A1 WO2020015191 A1 WO 2020015191A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- rule
- business
- preset
- business rule
- executable
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/103—Workflow collaboration or project management
Definitions
- the present application relates to the field of computer technology, and in particular, to a method for issuing and managing business rules, an electronic device, and a readable storage medium.
- the purpose of this application is to provide a method for publishing and managing business rules, an electronic device, and a readable storage medium, so as to improve the efficiency of publishing and managing business rules.
- 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 release management system of a business rule that can run on the processor.
- the release management system of a business rule is executed by the processor, the following steps are implemented:
- a rule version number is created for the generated executable business rule file, and the executable business rule file with the rule version number is published to the corresponding one or more business systems.
- the second aspect of the present application also provides a method for managing and publishing a business rule.
- the method for managing and publishing a business rule includes:
- a rule version number is created for the generated executable business rule file, and the executable business rule file with the rule version number is published to the corresponding one or more business systems.
- the third aspect of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores a release management system of business rules, and the release management system of the business rules may be at least A processor executes to cause the at least one processor to execute the steps of the method for publishing management of a business rule as described above.
- the method for publishing and managing a business rule, an electronic device, and a readable storage medium provided in the present application obtain a preset uniform business format original business rule uploaded by a user on a preset rule generation interface, and convert the original business according to the preset rule.
- Compile rules to generate executable business rule files set preset permissions for the generated executable business rule files, and push the generated executable business rule files to a test platform with a test environment pre-deployed for testing; if the test is successful, Then, a rule version number is established for the generated executable business rule file, and the executable business rule file of the rule version number is published to the corresponding one or more business systems.
- a test environment is deployed on the preset test platform, and the test environment and the real production environment are multiple business systems.
- the rule engine application environment is the same. If the executable business rule file formed by the test runs successfully in the test environment, the formed executable business rule file can be automatically pushed to the real production environment, that is, the rule engine application environment of multiple business systems. In order to realize automatic configuration, publishing and management of business rules, there is no need to manually manage a large number of business rules, which improves the efficiency of business rule publishing and management.
- FIG. 1 is a schematic diagram of an operating environment of a preferred embodiment of a release management system 10 for business rules of this application;
- FIG. 2 is a schematic flowchart of an embodiment of a method for issuing and managing 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 release management system 10 of a business rule of the present application.
- the business rule issuance management 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 distribution management system 10 of the business rule.
- 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 release management 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 release management 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 configured to display information processed in the electronic device 1 and to display a visual user interface, such as a preset rule generation interface, and a test result of an executable business rule file generated on a test platform.
- the components 11-13 of the electronic device 1 communicate with each other through a system bus.
- the business rule release management 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.
- the execution management system 10 of the foregoing business rules implements the following steps when executed by the processor 12:
- Step S1 After receiving a request for publishing a business rule, a preset rule generation interface is provided;
- Step S2 Obtain a preset unified format original business rule uploaded by the user on the rule generation interface, and compile the original business rule into an executable business rule file according to the preset rule;
- Step S3 Perform preset permission setting on the generated executable business rule file, and push the generated executable business rule file to a test platform with a test environment pre-deployed for testing;
- Step S4 if the test is successful, establish a rule version number for the generated executable business rule file, and publish the executable business rule file with the rule version number to the corresponding one or more business systems.
- the business rule publishing management system receives a business rule publishing request from a user, for example, a business rule publishing request sent by a user through a terminal such as a mobile phone, a tablet computer, or a self-service terminal device, such as receiving a user on a mobile phone or tablet computer.
- a user such as a developer can write original business rules such as various rule sets on a preset rule generation interface, and decompress, analyze, and compile the rule set written by the developer to form a runnable rule program.
- the runnable rule program can be pushed to a preset test platform.
- the preset test platform A test environment is deployed on the test environment, which is consistent with the real production environment, that is, the rule engine application environment of multiple business systems. If the testable runnable rule program runs successfully in the test environment, the formed runnable rule can be automatically The program is pushed to the real production environment, that is, the rule engine application environment of multiple business systems, to automatically configure, publish, and manage business rules.
- a rule generation interface such as a rule compilation tool rule builder is set in advance.
- the rule release management system provides and displays the rule generator rule builder. Developers can write additional new business rules on the rule builder. Developers can click the "Upload” button after writing business rules.
- the business rule release management system can Compress the business rules written by developers into a unified format such as zip. Of course, developers can also compress the written business rules into a unified format such as zip, and then upload the business rule zip package to the business rule release management system, so that the business rule release management system zips the business rules in a uniform format. Package for subsequent processing.
- the business rules release management system will decompress, analyze, and compile the uploaded rule set zip package to generate executable business rule files. Because the business rule file written by the developer based on the rule compilation tool rule builder is not a program that can be directly run, it needs to be parsed and compiled to become a program that can be run. Therefore, the business rule release management system decompresses, analyzes, and compiles the uploaded rule set zip package to generate an executable business rule file.
- the executable business rule file includes an enterprise-level application business rule ear package and an executable program SDK. package. Among them, the ear package is a set of business rules that can be run, and the SDK package is an executable program package that can be directly used by other systems such as business systems.
- the rule compilation tool rule builder set in the release management system of the business rule can support natural language writing, and the developer can use the natural language on the rule builder in the release management system of the business rule. Write the added new business rules. Then, the business rules release management system decompresses, analyzes, and compiles the uploaded rule set zip package, and compiles the written natural language rule set into a working program language.
- acquiring a natural language rule written by a user on the rule generation interface that is, a rule compiling tool rule builder; extracting a preset identification vocabulary and a preset keyword vocabulary in the acquired natural language rule;
- the mapping relationship with the Java rule template determines the Java rule template corresponding to the preset identification word in the natural language rule, and converts the preset keyword sink in the natural language rule into a corresponding code, and converts the converted
- the code is filled to the corresponding position in the determined Java rule template; the filled Java rule template is compiled to generate an executable Java rule file.
- Permissions and parameter settings Users can set permissions on an executable business rule file compiled by a rule set compiled by a developer on the business rule release management system, including the enterprise-level application business rule ear package and the The access and download permission settings of the executable program SDK package, and the business system permission settings corresponding to the generated executable business rule file, etc. For example, you can set the access permissions of the executable business rules file, that is, which users can access to view and download the ear package and SDK package in the executable business rules file, or limit which corresponding applications the executable business rules file can belong to. On the business system, or set the executable business rule file to be associated with other versions of the executable business rule file, and so on.
- business rule issuance management system when different users log in, they can identify the identity information of different users according to their usernames, account numbers, etc., and classify and set permissions for users with different identities. Users are divided into four roles: developer, deployer, operator, and manager. These four roles have different operation rights on the release management system of business rules. The details are as follows: For developers, they can be allowed to Compile and download business rules (download the ear package and SDK package), and apply association configuration (for example, the same business system may use multiple business rule sets at the same time in the release management system of the business rules). Business rule sets).
- the deployer will automatically push the test ok business rules to the real production environment, which is the corresponding business system.
- For operating personnel they can be allowed to perform associated system management of business rules in the release management system of business rules (using business rules in several associated business systems), operation logs (such as business rule compilation logs, version logs, releases Logs, etc.) query, rights management (can manage the operation rights of different roles on the release management system of business rules), role authorization (authorize to the corresponding role according to different user identities).
- business system related system management using business rules in several related business systems
- operation logs such as business rule compilation logs, version logs, and releases
- Logs, etc. query
- rights management can manage the operation rights of different roles on the release management system of business rules
- role authorization authorize the corresponding role according to different user identities
- download ear and SDK package download
- One-click push test platform After receiving the user's test instruction, the generated executable business rule file can be pushed to a preset test platform for testing.
- a test environment is deployed on the test platform.
- the test environment is consistent with the real production environment and the real production environment. That is, the rule engine application environment of one or more business systems that can be applied to the executable program language is set.
- a rule version number of the generated executable business rule file is established.
- the generated executable business rule file can be automatically pushed to the real production environment, that is, one or more of the generated executable business rule file that can be applied
- the executable business rule file formed by the test fails to run in the test environment, the version is rolled back according to the rule version number of each executable business rule file to ensure that when the newly added business rule is wrong, it can be restored Go to the previous correct version of the business rules to ensure the stable operation of related business systems.
- this embodiment obtains an original business rule of a preset unified format uploaded by a user on a preset rule generation interface, and compiles the original business rule into an executable business rule file according to the preset rule; Perform preset permission settings on the generated executable business rule file and push the generated executable business rule file to a test platform with a test environment pre-deployed for testing; if the test is successful, the generated executable business rule file A rule version number is established, and an executable business rule file of the rule version number is released to the corresponding one or more business systems.
- a test environment is deployed on the preset test platform, and the test environment and the real production environment are multiple business systems.
- the rule engine application environment is the same. If the executable business rule file formed by the test runs successfully in the test environment, the formed executable business rule file can be automatically pushed to the real production environment, that is, the rule engine application environment of multiple business systems. In order to realize automatic configuration, publishing and management of business rules, there is no need to manually manage a large number of business rules, which improves the efficiency of business rule publishing and management.
- this embodiment includes the following steps:
- the developer uploads the modified ruleset zip package.
- Developers can modify business rules on the rule compilation tool (rule builder) set in the release management system of the business rules. After the modification is completed, they can click the "Upload” button.
- the release management system of the business rules can The modified business rules written are compressed into a uniform format such as zip.
- developers can also compress and write the modified business rules into a unified format, such as zip, and then upload the business rule zip package to the business rule's release management system, so that the business rule's release management system can handle the business of the unified format.
- the regular zip package is used for subsequent processing.
- the business rule release management system decompresses, analyzes, compiles and uploads the uploaded ruleset zip package to generate ear packages and SDK packages.
- Permissions and parameter settings application-related configuration such as access permissions and ownership, etc.
- One-click push test platform Establish the rule CQ version number and push it to the test environment for deployment.
- test is successful, the production environment is pushed; if the test is not successful, the version is rolled back.
- this embodiment uses the business rule release management system to change the business rule, including the following steps:
- the developer obtains the rolled-back version of the business rule from the business rule's release management system, and makes modifications based on the previous version of the business rule.
- the developer can set the rule compilation tool rule builder in the release management system of the business rule. Rule generator) to modify the previous version of the business rules. After the modification is complete, click the "Upload" button.
- the business rule release management system can compress the modified business rules written by the developer into a unified format such as zip processing. .
- developers can also compress and write the modified business rules into a unified format, such as zip, and then upload the business rule zip package to the business rule's release management system, so that the business rule's release management system can handle the business of the unified format.
- the regular zip package is used for subsequent processing.
- the business rule release management system decompresses, analyzes, compiles and uploads the uploaded ruleset zip package to generate ear packages and SDK packages.
- Permissions and parameter settings application-related configuration such as access permissions and ownership, etc.
- One-click push test platform Establish the rule CQ version number and push it to the test environment for deployment.
- test is successful, the production environment is pushed; if the test is not successful, the version is rolled back.
- the business rule issuance management system in this embodiment supports a download function.
- users who comply with the authority can download ear packages and SDK packages of different versions of business rules, and users can download ear packages and SDK packages of different versions of business rules.
- FIG. 2 is a schematic flowchart of an embodiment of a method for publishing and managing a business rule of this application.
- the method for managing and publishing a business rule includes the following steps:
- Step S10 After receiving a request for publishing a business rule, a preset rule generation interface is provided;
- Step S20 Obtain a preset unified format original business rule uploaded by the user on the rule generation interface, and compile the original business rule into an executable business rule file according to the preset rule;
- Step S30 Perform preset permission setting on the generated executable business rule file, and push the generated executable business rule file to a test platform with a test environment deployed in advance for testing;
- Step S40 If the test is successful, establish a rule version number for the generated executable business rule file, and publish the executable business rule file with the rule version number to the corresponding one or more business systems.
- the business rule publishing management system receives a business rule publishing request from a user, for example, a business rule publishing request sent by a user through a terminal such as a mobile phone, a tablet computer, or a self-service terminal device, such as receiving a user on a mobile phone or tablet computer.
- a user such as a developer can write original business rules such as various rule sets on a preset rule generation interface, and decompress, analyze, and compile the rule set written by the developer to form a runnable rule program.
- the runnable rule program can be pushed to a preset test platform.
- the preset test platform A test environment is deployed on the test environment, which is consistent with the real production environment, that is, the rule engine application environment of multiple business systems. If the testable runnable rule program runs successfully in the test environment, the formed runnable rule can be automatically The program is pushed to the real production environment, that is, the rule engine application environment of multiple business systems, to automatically configure, publish, and manage business rules.
- a rule generation interface such as a rule compilation tool rule builder is set in advance.
- the rule release management system provides and displays the rule generator rule builder. Developers can write additional new business rules on the rule builder. Developers can click the "Upload” button after writing business rules.
- the business rule release management system can Compress the business rules written by developers into a unified format such as zip. Of course, developers can also compress the written business rules into a unified format such as zip, and then upload the business rule zip package to the business rule release management system, so that the business rule release management system zips the business rules in a uniform format. Package for subsequent processing.
- the business rules release management system will decompress, analyze, and compile the uploaded rule set zip package to generate executable business rule files. Because the business rule file written by the developer based on the rule compilation tool rule builder is not a program that can be directly run, it needs to be parsed and compiled to become a program that can be run. Therefore, the business rule release management system decompresses, analyzes, and compiles the uploaded rule set zip package to generate an executable business rule file.
- the executable business rule file includes an enterprise-level application business rule ear package and an executable program SDK. package. Among them, the ear package is a set of business rules that can be run, and the SDK package is an executable program package that can be directly used by other systems such as business systems.
- the rule compilation tool rule builder set in the release management system of the business rule can support natural language writing, and the developer can use the natural language on the rule builder in the release management system of the business rule. Write the added new business rules. Then, the business rules release management system decompresses, analyzes, and compiles the uploaded rule set zip package, and compiles the written natural language rule set into a working program language.
- acquiring a natural language rule written by a user on the rule generation interface that is, a rule compiling tool rule builder; extracting a preset identification vocabulary and a preset keyword vocabulary in the acquired natural language rule;
- the mapping relationship with the Java rule template determines the Java rule template corresponding to the preset identification word in the natural language rule, and converts the preset keyword sink in the natural language rule into a corresponding code, and converts the converted
- the code is filled to the corresponding position in the determined Java rule template; the filled Java rule template is compiled to generate an executable Java rule file.
- Permissions and parameter settings Users can set permissions on an executable business rule file compiled by a rule set compiled by a developer on the business rule release management system, including the enterprise-level application business rule ear package and the The access and download permission settings of the executable program SDK package, and the business system permission settings corresponding to the generated executable business rule file, etc. For example, you can set the access permissions of the executable business rules file, that is, which users can access to view and download the ear package and SDK package in the executable business rules file, or limit which corresponding applications the executable business rules file can belong to. On the business system, or set the executable business rule file to be associated with other versions of the executable business rule file, and so on.
- business rule issuance management system when different users log in, they can identify the identity information of different users according to their usernames, account numbers, etc., and classify and set permissions for users with different identities. Users are divided into four roles: developer, deployer, operator, and manager. These four roles have different operation rights on the release management system of business rules. The details are as follows: For developers, they can be allowed to Compile and download business rules (download the ear package and SDK package), and apply association configuration (for example, the same business system may use multiple business rule sets at the same time in the release management system of the business rules). Business rule sets).
- the deployer will automatically push the test ok business rules to the real production environment, which is the corresponding business system.
- For operating personnel they can be allowed to perform associated system management of business rules in the release management system of business rules (using business rules in several associated business systems), operation logs (such as business rule compilation logs, version logs, releases Logs, etc.) query, rights management (can manage the operation rights of different roles on the release management system of business rules), role authorization (authorize to the corresponding role according to different user identities).
- business system related system management using business rules in several related business systems
- operation logs such as business rule compilation logs, version logs, and releases
- Logs, etc. query
- rights management can manage the operation rights of different roles on the release management system of business rules
- role authorization authorize the corresponding role according to different user identities
- download ear and SDK package download
- One-click push test platform After receiving the user's test instruction, the generated executable business rule file can be pushed to a preset test platform for testing.
- a test environment is deployed on the test platform.
- the test environment is consistent with the real production environment and the real production environment. That is, the rule engine application environment of one or more business systems that can be applied to the executable program language is set.
- a rule version number of the generated executable business rule file is established.
- the generated executable business rule file can be automatically pushed to the real production environment, that is, one or more of the generated executable business rule file that can be applied
- the executable business rule file formed by the test fails to run in the test environment, the version is rolled back according to the rule version number of each executable business rule file to ensure that when the newly added business rule is wrong, it can be restored Go to the previous correct version of the business rules to ensure the stable operation of related business systems.
- this embodiment obtains an original business rule of a preset unified format uploaded by a user on a preset rule generation interface, and compiles the original business rule into an executable business rule file according to the preset rule; Perform preset permission settings on the generated executable business rule file and push the generated executable business rule file to a test platform with a test environment pre-deployed for testing; if the test is successful, the generated executable business rule file A rule version number is established, and an executable business rule file of the rule version number is released to the corresponding one or more business systems.
- a test environment is deployed on the preset test platform, and the test environment and the real production environment are multiple business systems.
- the rule engine application environment is the same. If the executable business rule file formed by the test runs successfully in the test environment, the formed executable business rule file can be automatically pushed to the real production environment, that is, the rule engine application environment of multiple business systems. In order to realize automatic configuration, publishing and management of business rules, there is no need to manually manage a large number of business rules, which improves the efficiency of business rule publishing and management.
- this embodiment when using the release management system of a business rule to update the version of a business rule, this embodiment includes the following steps:
- the developer uploads the modified ruleset zip package.
- Developers can modify business rules on the rule compilation tool (rule builder) set in the release management system of the business rules. After the modification is completed, they can click the "Upload” button.
- the release management system of the business rules can The modified business rules written are compressed into a uniform format such as zip.
- developers can also compress and write the modified business rules into a unified format, such as zip, and then upload the business rule zip package to the business rule's release management system, so that the business rule's release management system can handle the business of the unified format.
- the regular zip package is used for subsequent processing.
- the business rule release management system decompresses, analyzes, compiles and uploads the uploaded ruleset zip package to generate ear packages and SDK packages.
- Permissions and parameter settings application-related configuration such as access permissions and ownership, etc.
- One-click push test platform Establish the rule CQ version number and push it to the test environment for deployment.
- test is successful, the production environment is pushed; if the test is not successful, the version is rolled back.
- this embodiment uses the business rule release management system to change the business rule, including the following steps:
- the developer obtains the rolled-back version of the business rule from the business rule's release management system, and makes modifications based on the previous version of the business rule. For example, the developer can set the rule compilation tool rule builder in the release management system of the business rule. Rule generator) to modify the previous version of the business rules. After the modification is complete, click the "Upload" button.
- the business rule release management system can compress the modified business rules written by the developer into a unified format such as zip processing. .
- developers can also compress and write the modified business rules into a unified format, such as zip, and then upload the business rule zip package to the business rule's release management system, so that the business rule's release management system can handle the business of the unified format
- the regular zip package is used for subsequent processing.
- the business rule release management system decompresses, analyzes, compiles and uploads the uploaded ruleset zip package to generate ear packages and SDK packages.
- Permissions and parameter settings application-related configuration such as access permissions and ownership, etc.
- One-click push test platform Establish the rule CQ version number and push it to the test environment for deployment.
- test is successful, the production environment is pushed; if the test is not successful, the version is rolled back.
- the download function is supported in this embodiment.
- users who comply with the authority can download ear packages and SDK packages of different versions of business rules.
- Users can download ear packages and SDK packages of different versions of business rules for development and testing. Invoke the downloaded SDK package to apply it to other required rule engines.
- the present application also provides a computer-readable storage medium, where the computer-readable storage medium stores a release management system of business rules, and the release management system of the business rules can be executed by at least one processor, so that the At least one processor executes the steps of the method for publishing and managing a business rule in the foregoing embodiment.
- the specific implementation processes of steps S10, S20, and S30 of the method for publishing and managing 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)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Human Resources & Organizations (AREA)
- Quality & Reliability (AREA)
- Entrepreneurship & Innovation (AREA)
- Data Mining & Analysis (AREA)
- Economics (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Computer Security & Cryptography (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Computer Hardware Design (AREA)
- Stored Programmes (AREA)
Abstract
The present application relates to a business rule releasing and managing method, an electronic device and a readable storage medium. The method comprises: providing a preset rule generation interface after a request for releasing a business rule is received; obtaining a preset original business rule of a uniform format uploaded by a user on the rule generation interface, and compiling, according to a preset rule, the original business rule to generate an executable business rule file; performing preset permission setting on the generated executable business rule file and pushing the generated executable business rule file to a test platform pre-deployed with a test environment for testing; and if the test is successful, establishing a rule version number for the generated executable business rule file, and releasing the executable business rule file of the rule version number to the corresponding one or more business systems. According to the application, there is no need to manually manage a large number of business rules, and the efficiency of business rule releasing and managing is improved.
Description
优先权申明Declaration of priority
本申请基于巴黎公约申明享有2018年07月18日递交的申请号为CN 201810792782.5、名称为“业务规则的发布管理方法、电子装置及可读存储介质”中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。This application is based on the Paris Convention and claims the priority of a Chinese patent application filed on July 18, 2018 with an application number of CN201810792782.5 and a name of "Publication Management Method, Electronic Device and Readable Storage Medium for Business Rules", which is a Chinese patent application The entire contents of the are incorporated herein by reference.
本申请涉及计算机技术领域,尤其涉及一种业务规则的发布管理方法、电子装置及可读存储介质。The present application relates to the field of computer technology, and in particular, to a method for issuing and managing business rules, an electronic device, and a readable storage medium.
目前,大型互联网金融公司中的多个业务系统会涉及大量的规则引擎应用,业务系统中应用到的规则需要开发人员编写后,人工进行编译、测试等操作后,再由相关的规则引擎系统运营人员配合推送应用到业务系统中,所有操作均由人工完成,业务系统经常需要变更业务规则,现有的人工管理业务规则的方式效率低下。At present, multiple business systems in large Internet finance companies involve a large number of rules engine applications. The rules applied in business systems need to be written by developers, compiled and tested manually, and then operated by related rule engine systems. Personnel cooperate with the push application to the business system. All operations are done manually. Business systems often need to change business rules. The existing manual management of business rules is inefficient.
发明内容Summary of the invention
本申请的目的在于提供一种业务规则的发布管理方法、电子装置及可读存储介质,旨在提高业务规则发布及管理的效率。The purpose of this application is to provide a method for publishing and managing business rules, an electronic device, and a readable storage medium, so as to improve the efficiency of publishing and managing business rules.
为实现上述目的,本申请第一方面提供一种电子装置,所述电子装置包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的业务规则的发布管理系统,所述业务规则的发布管理系统被所述处理器执行时实现如下步骤:To achieve the above object, 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 release management system of a business rule that can run on the processor. When the release management system of a business rule is executed by the processor, the following steps are implemented:
在收到发布业务规则的请求后,提供预设的规则生成界面;Provide a preset rule generation interface after receiving a request to publish a business rule;
获取用户在所述规则生成界面上传的预设统一格式的原始业务规则,并按预设规则将所述原始业务规则编译生成可执行业务规则文件;Acquiring a preset unified format original business rule uploaded by the user on the rule generation interface, and compiling the original business rule into an executable business rule file according to the preset rule;
对生成的可执行业务规则文件进行预设权限设置,并将生成的可执行业务规则文件推送至预先部署有测试环境的测试平台上进行测试;Perform preset permission settings on the generated executable business rule file, and push the generated executable business rule file to a test platform with a test environment pre-deployed for testing;
若测试成功,则对生成的可执行业务规则文件建立规则版本号,并将所述规则版本号的可执行业务规则文件发布至对应的一个或多个业务系统。If the test is successful, a rule version number is created for the generated executable business rule file, and the executable business rule file with the rule version number is published to the corresponding one or more business systems.
此外,为实现上述目的,本申请第二方面还提供一种业务规则的发布管理方法,所述业务规则的发布管理方法包括:In addition, in order to achieve the foregoing objective, the second aspect of the present application also provides a method for managing and publishing a business rule. The method for managing and publishing a business rule includes:
在收到发布业务规则的请求后,提供预设的规则生成界面;Provide a preset rule generation interface after receiving a request to publish a business rule;
获取用户在所述规则生成界面上传的预设统一格式的原始业务规则,并按预设规则将所述原始业务规则编译生成可执行业务规则文件;Acquiring a preset unified format original business rule uploaded by the user on the rule generation interface, and compiling the original business rule into an executable business rule file according to the preset rule;
对生成的可执行业务规则文件进行预设权限设置,并将生成的可执行业务规则文件推送至预先部署有测试环境的测试平台上进行测试;Perform preset permission settings on the generated executable business rule file, and push the generated executable business rule file to a test platform with a test environment pre-deployed for testing;
若测试成功,则对生成的可执行业务规则文件建立规则版本号,并将所述规则版本号的可执行业务规则文件发布至对应的一个或多个业务系统。If the test is successful, a rule version number is created for the generated executable business rule file, and the executable business rule file with the rule version number is published to the corresponding one or more business systems.
进一步地,为实现上述目的,本申请第三方面还提供一种计算机可读存储介质,所述计算机可读存储介质存储有业务规则的发布管理系统,所述业务规则的发布管理系统可被至少一个处理器执行,以使所述至少一个处理器执行如上述的业务规则的发布管理方法的步骤。Further, in order to achieve the above object, the third aspect of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores a release management system of business rules, and the release management system of the business rules may be at least A processor executes to cause the at least one processor to execute the steps of the method for publishing management of a business rule as described above.
本申请提出的业务规则的发布管理方法、电子装置及可读存储介质,通过获取用户在预设的规则生成界面上传的预设统一格式的原始业务规则,并按预设规则将所述原始业务规则编译生成可执行业务规则文件;对生成的可执行业务规则文件进行预设权限设置,并将生成的可执行业务规则文件推送至预先部署有测试环境的测试平台上进行测试;若测试成功,则对生成的可执行业务规则文件建立规则版本号,并将所述规则版本号的可执行业务规则文件发布至对应的一个或多个业务系统。由于能针对用户上传的原始业务规则编译形成可执行业务规则文件并推送至预设的测试平台,该预设的测试平台上部署有测试环境,该测试环境与真实的生产环境即多个业务系统的规则引擎应用环境一致,若测试形成的可执行业务规则文件在测试环境中运行成功,则可自动将形成的可执行业务规则文件推送至真实的生产环境即多个业务系统的规则引擎应用环境,以实现自动配置、发布及管理业务规则,无需人工管理大量的业务规则,提高了业务规则发布及管理的效率。The method for publishing and managing a business rule, an electronic device, and a readable storage medium provided in the present application, obtain a preset uniform business format original business rule uploaded by a user on a preset rule generation interface, and convert the original business according to the preset rule. Compile rules to generate executable business rule files; set preset permissions for the generated executable business rule files, and push the generated executable business rule files to a test platform with a test environment pre-deployed for testing; if the test is successful, Then, a rule version number is established for the generated executable business rule file, and the executable business rule file of the rule version number is published to the corresponding one or more business systems. Because the original business rules uploaded by users can be compiled into executable business rules files and pushed to a preset test platform, a test environment is deployed on the preset test platform, and the test environment and the real production environment are multiple business systems. The rule engine application environment is the same. If the executable business rule file formed by the test runs successfully in the test environment, the formed executable business rule file can be automatically pushed to the real production environment, that is, the rule engine application environment of multiple business systems. In order to realize automatic configuration, publishing and management of business rules, there is no need to manually manage a large number of business rules, which improves the efficiency of business rule publishing and management.
图1为本申请业务规则的发布管理系统10较佳实施例的运行环境示意图;FIG. 1 is a schematic diagram of an operating environment of a preferred embodiment of a release management system 10 for business rules of this application;
图2为本申请业务规则的发布管理方法一实施例的流程示意图。FIG. 2 is a schematic flowchart of an embodiment of a method for issuing and managing a business rule of this application.
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合 附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solution, and advantages of the present application clearer, the following further describes the present application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the application, and are not used to limit the application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
需要说明的是,在本申请中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。It should be noted that the descriptions related to "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. In addition, the 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.
本申请提供一种业务规则的发布管理系统。请参阅图1,是本申请业务规则的发布管理系统10较佳实施例的运行环境示意图。This application provides a management system for issuing business rules. Please refer to FIG. 1, which is a schematic diagram of an operating environment of a preferred embodiment of a release management system 10 of a business rule of the present application.
在本实施例中,所述的业务规则的发布管理系统10安装并运行于电子装置1中。该电子装置1可包括,但不仅限于,存储器11、处理器12及显示器13。图1仅示出了具有组件11-13的电子装置1,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。In this embodiment, the business rule issuance management 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.
所述存储器11为至少一种类型的可读计算机存储介质,所述存储器11在一些实施例中可以是所述电子装置1的内部存储单元,例如该电子装置1的硬盘或内存。所述存储器11在另一些实施例中也可以是所述电子装置1的外部存储设备,例如所述电子装置1上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器11还可以既包括所述电子装置1的内部存储单元也包括外部存储设备。所述存储器11用于存储安装于所述电子装置1的应用软件及各类数据,例如所述业务规则的发布管理系统10的程序代码等。所述存储器11还可以用于暂时地存储已经输出或者将要输出的数据。The memory 11 is at least one type of readable computer storage medium. In some embodiments, 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. Further, 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 distribution management system 10 of the business rule. The memory 11 may also be used to temporarily store data that has been or will be output.
所述处理器12在一些实施例中可以是一中央处理器(Central Processing Unit,CPU),微处理器或其他数据处理芯片,用于运行所述存储器11中存储的程序代码或处理数据,例如执行所述业务规则的发布管理系统10等。In some embodiments, 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 release management system 10 or the like that executes the business rules.
所述显示器13在一些实施例中可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。所述显示器13用于显示在所述电子装置1中处理的信息以及用于显示可视化的用户界面,例如预设的规则生成界面、生成的可执行业务规则文件在测试平台上的测试结果等。所述电 子装置1的部件11-13通过系统总线相互通信。In some embodiments, 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 configured to display information processed in the electronic device 1 and to display a visual user interface, such as a preset rule generation interface, and a test result of an executable business rule file generated on a test platform. The components 11-13 of the electronic device 1 communicate with each other through a system bus.
业务规则的发布管理系统10包括至少一个存储在所述存储器11中的计算机可读指令,该至少一个计算机可读指令可被所述处理器12执行,以实现本申请各实施例。The business rule release management 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.
其中,上述业务规则的发布管理系统10被所述处理器12执行时实现如下步骤:Wherein, the execution management system 10 of the foregoing business rules implements the following steps when executed by the processor 12:
步骤S1,在收到发布业务规则的请求后,提供预设的规则生成界面;Step S1: After receiving a request for publishing a business rule, a preset rule generation interface is provided;
步骤S2,获取用户在所述规则生成界面上传的预设统一格式的原始业务规则,并按预设规则将所述原始业务规则编译生成可执行业务规则文件;Step S2: Obtain a preset unified format original business rule uploaded by the user on the rule generation interface, and compile the original business rule into an executable business rule file according to the preset rule;
步骤S3,对生成的可执行业务规则文件进行预设权限设置,并将生成的可执行业务规则文件推送至预先部署有测试环境的测试平台上进行测试;Step S3: Perform preset permission setting on the generated executable business rule file, and push the generated executable business rule file to a test platform with a test environment pre-deployed for testing;
步骤S4,若测试成功,则对生成的可执行业务规则文件建立规则版本号,并将所述规则版本号的可执行业务规则文件发布至对应的一个或多个业务系统。Step S4: if the test is successful, establish a rule version number for the generated executable business rule file, and publish the executable business rule file with the rule version number to the corresponding one or more business systems.
本实施例中,业务规则的发布管理系统接收用户发出的业务规则发布请求,例如,接收用户通过手机、平板电脑、自助终端设备等终端发送的业务规则发布请求,如接收用户在手机、平板电脑、自助终端设备等终端中预先安装的客户端上发送来的业务规则发布请求,或接收用户在手机、平板电脑、自助终端设备等终端中的浏览器系统上发送来的业务规则发布请求。In this embodiment, the business rule publishing management system receives a business rule publishing request from a user, for example, a business rule publishing request sent by a user through a terminal such as a mobile phone, a tablet computer, or a self-service terminal device, such as receiving a user on a mobile phone or tablet computer. , A business rule publishing request sent from a pre-installed client in a terminal such as a self-service terminal device, or a business rule publishing request sent by a user on a browser system in a terminal such as a mobile phone, tablet computer, or self-service terminal device.
本实施例中用户如开发人员可在预设的规则生成界面上编写原始业务规则如各种规则集,对开发人员编写的规则集进行解压、分析、编译后形成可运行的规则程序,针对由开发人员编写的规则集编译形成的可运行规则程序进行权限、参数(如访问权限和归属等)设置后,可将形成的可运行规则程序推送至预设的测试平台,该预设的测试平台上部署有测试环境,该测试环境与真实的生产环境即多个业务系统的规则引擎应用环境一致,若测试形成的可运行规则程序在测试环境中运行成功,则可自动将形成的可运行规则程序推送至真实的生产环境即多个业务系统的规则引擎应用环境,以实现自动配置、发布及管理业务规则。In this embodiment, a user such as a developer can write original business rules such as various rule sets on a preset rule generation interface, and decompress, analyze, and compile the rule set written by the developer to form a runnable rule program. After the rule set compiled by the developer compiles the runnable rule program and sets the permissions and parameters (such as access rights and ownership), the runnable rule program can be pushed to a preset test platform. The preset test platform A test environment is deployed on the test environment, which is consistent with the real production environment, that is, the rule engine application environment of multiple business systems. If the testable runnable rule program runs successfully in the test environment, the formed runnable rule can be automatically The program is pushed to the real production environment, that is, the rule engine application environment of multiple business systems, to automatically configure, publish, and manage business rules.
具体的,本实施例中在收到用户发出的业务规则发布请求,需要建立新版本的业务规则时,包括如下步骤:Specifically, in this embodiment, when a business rule publication request from a user is received and a new version of a business rule needs to be established, the following steps are included:
获取用户如开发人员上传编写的原始业务规则如规则集zip包。例如,预先设置有规则生成界面如规则编译工具rule builder(规则生成器),开发人员要为业务系统增加新的业务规则时,可在业务规则 的发布管理系统上点击“规则编写”按钮,业务规则的发布管理系统提供并显示规则生成器rule builder,开发人员可在rule builder上编写增加的新的业务规则,开发人员编写业务规则完成后可点击“上传”按钮,业务规则的发布管理系统可对开发人员编写好的业务规则进行压缩成统一格式如zip的处理。当然,开发人员也可自行将编写好的业务规则压缩成统一格式如zip,再将该业务规则zip包上传至业务规则的发布管理系统,以便业务规则的发布管理系统对统一格式的业务规则zip包进行后续处理。Obtain users such as developers upload and write original business rules such as rule set zip packages. For example, a rule generation interface such as a rule compilation tool rule builder is set in advance. When a developer wants to add a new business rule to a business system, he can click the "rule writing" button on the business rule release management system. The rule release management system provides and displays the rule generator rule builder. Developers can write additional new business rules on the rule builder. Developers can click the "Upload" button after writing business rules. The business rule release management system can Compress the business rules written by developers into a unified format such as zip. Of course, developers can also compress the written business rules into a unified format such as zip, and then upload the business rule zip package to the business rule release management system, so that the business rule release management system zips the business rules in a uniform format. Package for subsequent processing.
业务规则的发布管理系统将上传的规则集zip包进行解压、分析、编译等操作后生成可执行业务规则文件。由于开发人员基于规则编译工具rule builder编写的业务规则文件,不是直接可以运行的程序,需要进行解析和编译才能成为可以运行的程序。因此,业务规则的发布管理系统将上传的规则集zip包进行解压、分析、编译等操作后生成可执行业务规则文件,该可执行业务规则文件包括企业级应用业务规则ear包、可执行程序SDK包。其中,ear包为可以运行的业务规则集,SDK包为可以被其他系统如业务系统直接使用的可执行程序包。例如,在一种具体的实施方式中,业务规则的发布管理系统中设置的规则编译工具rule builder可支持自然语言编写,则开发人员可在业务规则的发布管理系统中的rule builder上使用自然语言编写增加的新的业务规则,然后,业务规则的发布管理系统将上传的规则集zip包解压、分析、编译,将编写的自然语言规则集编译成为可以运行的程序语言。例如,获取用户在所述规则生成界面即规则编译工具rule builder上编写的自然语言规则;提取出获取的自然语言规则中的预设标识词汇及预设关键词汇;根据预先确定的预设标识词汇与Java规则模板之间的映射关系确定出所述自然语言规则中的预设标识词汇对应的Java规则模板,并将所述自然语言规则中的预设关键词汇转换为对应的代码,将转换的代码填充至确定的Java规则模板中的对应位置;将填充后的Java规则模板进行编译生成可执行Java规则文件。The business rules release management system will decompress, analyze, and compile the uploaded rule set zip package to generate executable business rule files. Because the business rule file written by the developer based on the rule compilation tool rule builder is not a program that can be directly run, it needs to be parsed and compiled to become a program that can be run. Therefore, the business rule release management system decompresses, analyzes, and compiles the uploaded rule set zip package to generate an executable business rule file. The executable business rule file includes an enterprise-level application business rule ear package and an executable program SDK. package. Among them, the ear package is a set of business rules that can be run, and the SDK package is an executable program package that can be directly used by other systems such as business systems. For example, in a specific implementation, the rule compilation tool rule builder set in the release management system of the business rule can support natural language writing, and the developer can use the natural language on the rule builder in the release management system of the business rule. Write the added new business rules. Then, the business rules release management system decompresses, analyzes, and compiles the uploaded rule set zip package, and compiles the written natural language rule set into a working program language. For example, acquiring a natural language rule written by a user on the rule generation interface, that is, a rule compiling tool rule builder; extracting a preset identification vocabulary and a preset keyword vocabulary in the acquired natural language rule; The mapping relationship with the Java rule template determines the Java rule template corresponding to the preset identification word in the natural language rule, and converts the preset keyword sink in the natural language rule into a corresponding code, and converts the converted The code is filled to the corresponding position in the determined Java rule template; the filled Java rule template is compiled to generate an executable Java rule file.
权限和参数设置。用户可在业务规则的发布管理系统上针对由开发人员编写的规则集编译成的可执行业务规则文件进行权限设置,包括对生成的可执行业务规则文件中的企业级应用业务规则ear包及可执行程序SDK包的访问、下载权限设置,以及生成的可执行业务规则文件对应归属的业务系统权限设置,等。例如,可设置该可执行业务规则文件的访问权限即哪些用户可以访问查看、下载该可执行业务规则文件中的ear包及SDK包,或限定该可执行业务规则文件可归属应用在哪些对应的业务系统上,或设置该可执行业务规则文件可与其他版本的可执行业务规则文件进行关联应用,等等。进一步的,本 实施例的业务规则的发布管理系统中在不同用户登录使用时,可根据用户名、账号等方式识别不同用户的身份信息,并对不同身份的用户进行分类设置权限,如可将用户分为开发人员、部署人员、运营人员、管理人员这四种角色,这四种角色在业务规则的发布管理系统上的操作权限有所不同,具体的如下:对于开发人员,可允许其在业务规则的发布管理系统中进行业务规则的编译、下载(ear包和SDK包的下载)、应用关联配置(例如,同一个业务系统可能会同时用到多个业务规则集,则可对该多个业务规则集进行关联)。对于部署人员,可允许其在业务规则的发布管理系统中进行业务规则的发布(如由部署人员将测试ok的业务规则自动推送至真实的生产环境即对应的业务系统)。对于运营人员,可允许其在业务规则的发布管理系统中进行业务规则的关联系统管理(将业务规则用到几个关联的业务系统中)、操作日志(如业务规则编译日志、版本日志、发布日志等)查询、权限管理(可管理不同角色在业务规则的发布管理系统上的操作权限)、角色授权(根据不同的用户身份授权为对应的角色)。对于管理人员,可允许其在业务规则的发布管理系统中进行业务规则的关联系统管理(将业务规则用到几个关联的业务系统中)、操作日志(如业务规则编译日志、版本日志、发布日志等)查询、权限管理(可管理不同角色在业务规则的发布管理系统上的操作权限)、角色授权(根据不同的用户身份授权为对应的角色)以及下载(ear包和SDK包的下载)。Permissions and parameter settings. Users can set permissions on an executable business rule file compiled by a rule set compiled by a developer on the business rule release management system, including the enterprise-level application business rule ear package and the The access and download permission settings of the executable program SDK package, and the business system permission settings corresponding to the generated executable business rule file, etc. For example, you can set the access permissions of the executable business rules file, that is, which users can access to view and download the ear package and SDK package in the executable business rules file, or limit which corresponding applications the executable business rules file can belong to. On the business system, or set the executable business rule file to be associated with other versions of the executable business rule file, and so on. Further, in the business rule issuance management system of this embodiment, when different users log in, they can identify the identity information of different users according to their usernames, account numbers, etc., and classify and set permissions for users with different identities. Users are divided into four roles: developer, deployer, operator, and manager. These four roles have different operation rights on the release management system of business rules. The details are as follows: For developers, they can be allowed to Compile and download business rules (download the ear package and SDK package), and apply association configuration (for example, the same business system may use multiple business rule sets at the same time in the release management system of the business rules). Business rule sets). For deployers, they can be allowed to publish business rules in the release management system of the business rules (for example, the deployer will automatically push the test ok business rules to the real production environment, which is the corresponding business system). For operating personnel, they can be allowed to perform associated system management of business rules in the release management system of business rules (using business rules in several associated business systems), operation logs (such as business rule compilation logs, version logs, releases Logs, etc.) query, rights management (can manage the operation rights of different roles on the release management system of business rules), role authorization (authorize to the corresponding role according to different user identities). For management personnel, they can be allowed to perform business system related system management (using business rules in several related business systems) and operation logs (such as business rule compilation logs, version logs, and releases) in the business rule release management system. Logs, etc.) query, rights management (can manage the operation rights of different roles on the release management system of business rules), role authorization (authorize the corresponding role according to different user identities), and download (ear and SDK package download) .
一键推送测试平台。接收到用户的测试指令后,可将生成的可执行业务规则文件推送至预设的测试平台进行测试,该测试平台上部署有测试环境,该测试环境与真实的生产环境一致,真实的生产环境即设置的该可运行程序语言可应用的一个或多个业务系统的规则引擎应用环境。同时,建立生成的可执行业务规则文件的规则版本号。One-click push test platform. After receiving the user's test instruction, the generated executable business rule file can be pushed to a preset test platform for testing. A test environment is deployed on the test platform. The test environment is consistent with the real production environment and the real production environment. That is, the rule engine application environment of one or more business systems that can be applied to the executable program language is set. At the same time, a rule version number of the generated executable business rule file is established.
自动推送生产环境。若测试生成的可执行业务规则文件在测试环境中运行成功,则可自动将生成的可执行业务规则文件推送至真实的生产环境即设置的该生成的可执行业务规则文件可应用的一个或多个业务系统的规则引擎应用环境,以实现自动发布业务规则,使得规则集发布无需规则引擎系统运营人员配合,减少了人工成本。此外,若测试形成的可执行业务规则文件在测试环境中运行失败,则根据每个可执行业务规则文件的规则版本号进行版本回滚,以保证在新增的业务规则有误时,可恢复到前一个正确的业务规则版本,从而保证相关业务系统的稳定运行。Automatically push production environment. If the test executable business rule file runs successfully in the test environment, the generated executable business rule file can be automatically pushed to the real production environment, that is, one or more of the generated executable business rule file that can be applied A rule engine application environment for each business system to automatically publish business rules, making rule set publishing without the cooperation of rule engine system operators, reducing labor costs. In addition, if the executable business rule file formed by the test fails to run in the test environment, the version is rolled back according to the rule version number of each executable business rule file to ensure that when the newly added business rule is wrong, it can be restored Go to the previous correct version of the business rules to ensure the stable operation of related business systems.
与现有技术相比,本实施例通过获取用户在预设的规则生成界面上传的预设统一格式的原始业务规则,并按预设规则将所述原始业务 规则编译生成可执行业务规则文件;对生成的可执行业务规则文件进行预设权限设置,并将生成的可执行业务规则文件推送至预先部署有测试环境的测试平台上进行测试;若测试成功,则对生成的可执行业务规则文件建立规则版本号,并将所述规则版本号的可执行业务规则文件发布至对应的一个或多个业务系统。由于能针对用户上传的原始业务规则编译形成可执行业务规则文件并推送至预设的测试平台,该预设的测试平台上部署有测试环境,该测试环境与真实的生产环境即多个业务系统的规则引擎应用环境一致,若测试形成的可执行业务规则文件在测试环境中运行成功,则可自动将形成的可执行业务规则文件推送至真实的生产环境即多个业务系统的规则引擎应用环境,以实现自动配置、发布及管理业务规则,无需人工管理大量的业务规则,提高了业务规则发布及管理的效率。Compared with the prior art, this embodiment obtains an original business rule of a preset unified format uploaded by a user on a preset rule generation interface, and compiles the original business rule into an executable business rule file according to the preset rule; Perform preset permission settings on the generated executable business rule file and push the generated executable business rule file to a test platform with a test environment pre-deployed for testing; if the test is successful, the generated executable business rule file A rule version number is established, and an executable business rule file of the rule version number is released to the corresponding one or more business systems. Because the original business rules uploaded by users can be compiled into executable business rules files and pushed to a preset test platform, a test environment is deployed on the preset test platform, and the test environment and the real production environment are multiple business systems. The rule engine application environment is the same. If the executable business rule file formed by the test runs successfully in the test environment, the formed executable business rule file can be automatically pushed to the real production environment, that is, the rule engine application environment of multiple business systems. In order to realize automatic configuration, publishing and management of business rules, there is no need to manually manage a large number of business rules, which improves the efficiency of business rule publishing and management.
进一步地,在一可选的实施例中,在上述图1的实施例的基础上,本实施例在利用业务规则的发布管理系统来更新业务规则的版本时,包括如下步骤:Further, in an optional embodiment, on the basis of the above-mentioned embodiment of FIG. 1, when using the release management system of a business rule to update the version of a business rule, this embodiment includes the following steps:
下载现有的规则集。Download an existing rule set.
开发人员上传修改后的规则集zip包。开发人员可在业务规则的发布管理系统中设置的规则编译工具rule builder(规则生成器)上对业务规则进行修改,修改完成后可点击“上传”按钮,业务规则的发布管理系统可对开发人员编写的修改后的业务规则进行压缩成统一格式如zip的处理。当然,开发人员也可自行将编写的修改后的业务规则压缩成统一格式如zip,再将该业务规则zip包上传至业务规则的发布管理系统,以便业务规则的发布管理系统对统一格式的业务规则zip包进行后续处理。The developer uploads the modified ruleset zip package. Developers can modify business rules on the rule compilation tool (rule builder) set in the release management system of the business rules. After the modification is completed, they can click the "Upload" button. The release management system of the business rules can The modified business rules written are compressed into a uniform format such as zip. Of course, developers can also compress and write the modified business rules into a unified format, such as zip, and then upload the business rule zip package to the business rule's release management system, so that the business rule's release management system can handle the business of the unified format. The regular zip package is used for subsequent processing.
业务规则的发布管理系统将上传的规则集zip包进行解压、分析、编译等操作后生成ear包和SDK包。The business rule release management system decompresses, analyzes, compiles and uploads the uploaded ruleset zip package to generate ear packages and SDK packages.
权限和参数设置等(应用关联配置比如访问权限和归属等)。Permissions and parameter settings (application-related configuration such as access permissions and ownership, etc.).
一键推送测试平台。建立规则CQ版本号,推送到测试环境部署。One-click push test platform. Establish the rule CQ version number and push it to the test environment for deployment.
若测试成功,则推送生产环境;若测试不过,则进行版本回滚。If the test is successful, the production environment is pushed; if the test is not successful, the version is rolled back.
进一步地,在一可选的实施例中,本实施例在当前版本的业务规则有问题时利用业务规则的发布管理系统来更改业务规则,包括如下步骤:Further, in an optional embodiment, when there is a problem with the current version of the business rule, this embodiment uses the business rule release management system to change the business rule, including the following steps:
回滚最新版本的业务规则集到前一个版本。Roll back the latest version of the business rule set to the previous version.
开发人员从业务规则的发布管理系统上获取回滚的前一个版本业务规则,并基于前一个版本业务规则进行修改,如开发人员可在业务规则的发布管理系统中设置的规则编译工具rule builder(规则生成 器)上对前一个版本业务规则进行修改,修改完成后可点击“上传”按钮,业务规则的发布管理系统可对开发人员编写的修改后的业务规则进行压缩成统一格式如zip的处理。当然,开发人员也可自行将编写的修改后的业务规则压缩成统一格式如zip,再将该业务规则zip包上传至业务规则的发布管理系统,以便业务规则的发布管理系统对统一格式的业务规则zip包进行后续处理。The developer obtains the rolled-back version of the business rule from the business rule's release management system, and makes modifications based on the previous version of the business rule. For example, the developer can set the rule compilation tool rule builder in the release management system of the business rule. Rule generator) to modify the previous version of the business rules. After the modification is complete, click the "Upload" button. The business rule release management system can compress the modified business rules written by the developer into a unified format such as zip processing. . Of course, developers can also compress and write the modified business rules into a unified format, such as zip, and then upload the business rule zip package to the business rule's release management system, so that the business rule's release management system can handle the business of the unified format. The regular zip package is used for subsequent processing.
业务规则的发布管理系统将上传的规则集zip包进行解压、分析、编译等操作后生成ear包和SDK包。The business rule release management system decompresses, analyzes, compiles and uploads the uploaded ruleset zip package to generate ear packages and SDK packages.
权限和参数设置等(应用关联配置比如访问权限和归属等)。Permissions and parameter settings (application-related configuration such as access permissions and ownership, etc.).
一键推送测试平台。建立规则CQ版本号,推送到测试环境部署。One-click push test platform. Establish the rule CQ version number and push it to the test environment for deployment.
若测试成功,则推送生产环境;若测试不过,则进行版本回滚。If the test is successful, the production environment is pushed; if the test is not successful, the version is rolled back.
进一步的,本实施例的业务规则的发布管理系统中支持下载功能,如可让符合权限的用户下载不同版本业务规则的ear包、SDK包,用户可下载不同版本业务规则的ear包、SDK包进行开发测试,也可以直接调用下载的SDK包来应用于其他需用到的规则引擎中。Further, the business rule issuance management system in this embodiment supports a download function. For example, users who comply with the authority can download ear packages and SDK packages of different versions of business rules, and users can download ear packages and SDK packages of different versions of business rules. For development testing, you can also directly call the downloaded SDK package to apply to other rule engines that need to be used.
如图2所示,图2为本申请业务规则的发布管理方法一实施例的流程示意图,该业务规则的发布管理方法包括以下步骤:As shown in FIG. 2, FIG. 2 is a schematic flowchart of an embodiment of a method for publishing and managing a business rule of this application. The method for managing and publishing a business rule includes the following steps:
步骤S10,在收到发布业务规则的请求后,提供预设的规则生成界面;Step S10: After receiving a request for publishing a business rule, a preset rule generation interface is provided;
步骤S20,获取用户在所述规则生成界面上传的预设统一格式的原始业务规则,并按预设规则将所述原始业务规则编译生成可执行业务规则文件;Step S20: Obtain a preset unified format original business rule uploaded by the user on the rule generation interface, and compile the original business rule into an executable business rule file according to the preset rule;
步骤S30,对生成的可执行业务规则文件进行预设权限设置,并将生成的可执行业务规则文件推送至预先部署有测试环境的测试平台上进行测试;Step S30: Perform preset permission setting on the generated executable business rule file, and push the generated executable business rule file to a test platform with a test environment deployed in advance for testing;
步骤S40,若测试成功,则对生成的可执行业务规则文件建立规则版本号,并将所述规则版本号的可执行业务规则文件发布至对应的一个或多个业务系统。Step S40: If the test is successful, establish a rule version number for the generated executable business rule file, and publish the executable business rule file with the rule version number to the corresponding one or more business systems.
本实施例中,业务规则的发布管理系统接收用户发出的业务规则发布请求,例如,接收用户通过手机、平板电脑、自助终端设备等终端发送的业务规则发布请求,如接收用户在手机、平板电脑、自助终端设备等终端中预先安装的客户端上发送来的业务规则发布请求,或接收用户在手机、平板电脑、自助终端设备等终端中的浏览器系统上发送来的业务规则发布请求。In this embodiment, the business rule publishing management system receives a business rule publishing request from a user, for example, a business rule publishing request sent by a user through a terminal such as a mobile phone, a tablet computer, or a self-service terminal device, such as receiving a user on a mobile phone or tablet computer. , A business rule publishing request sent from a pre-installed client in a terminal such as a self-service terminal device, or a business rule publishing request sent by a user on a browser system in a terminal such as a mobile phone, tablet computer, or self-service terminal device.
本实施例中用户如开发人员可在预设的规则生成界面上编写原始业务规则如各种规则集,对开发人员编写的规则集进行解压、分析、 编译后形成可运行的规则程序,针对由开发人员编写的规则集编译形成的可运行规则程序进行权限、参数(如访问权限和归属等)设置后,可将形成的可运行规则程序推送至预设的测试平台,该预设的测试平台上部署有测试环境,该测试环境与真实的生产环境即多个业务系统的规则引擎应用环境一致,若测试形成的可运行规则程序在测试环境中运行成功,则可自动将形成的可运行规则程序推送至真实的生产环境即多个业务系统的规则引擎应用环境,以实现自动配置、发布及管理业务规则。In this embodiment, a user such as a developer can write original business rules such as various rule sets on a preset rule generation interface, and decompress, analyze, and compile the rule set written by the developer to form a runnable rule program. After the rule set compiled by the developer compiles the runnable rule program and sets the permissions and parameters (such as access rights and ownership), the runnable rule program can be pushed to a preset test platform. The preset test platform A test environment is deployed on the test environment, which is consistent with the real production environment, that is, the rule engine application environment of multiple business systems. If the testable runnable rule program runs successfully in the test environment, the formed runnable rule can be automatically The program is pushed to the real production environment, that is, the rule engine application environment of multiple business systems, to automatically configure, publish, and manage business rules.
具体的,本实施例中在收到用户发出的业务规则发布请求,需要建立新版本的业务规则时,包括如下步骤:Specifically, in this embodiment, when a business rule publication request from a user is received and a new version of a business rule needs to be established, the following steps are included:
获取用户如开发人员上传编写的原始业务规则如规则集zip包。例如,预先设置有规则生成界面如规则编译工具rule builder(规则生成器),开发人员要为业务系统增加新的业务规则时,可在业务规则的发布管理系统上点击“规则编写”按钮,业务规则的发布管理系统提供并显示规则生成器rule builder,开发人员可在rule builder上编写增加的新的业务规则,开发人员编写业务规则完成后可点击“上传”按钮,业务规则的发布管理系统可对开发人员编写好的业务规则进行压缩成统一格式如zip的处理。当然,开发人员也可自行将编写好的业务规则压缩成统一格式如zip,再将该业务规则zip包上传至业务规则的发布管理系统,以便业务规则的发布管理系统对统一格式的业务规则zip包进行后续处理。Obtain users such as developers upload and write original business rules such as rule set zip packages. For example, a rule generation interface such as a rule compilation tool rule builder is set in advance. When a developer wants to add a new business rule to a business system, he can click the "rule writing" button on the business rule release management system. The rule release management system provides and displays the rule generator rule builder. Developers can write additional new business rules on the rule builder. Developers can click the "Upload" button after writing business rules. The business rule release management system can Compress the business rules written by developers into a unified format such as zip. Of course, developers can also compress the written business rules into a unified format such as zip, and then upload the business rule zip package to the business rule release management system, so that the business rule release management system zips the business rules in a uniform format. Package for subsequent processing.
业务规则的发布管理系统将上传的规则集zip包进行解压、分析、编译等操作后生成可执行业务规则文件。由于开发人员基于规则编译工具rule builder编写的业务规则文件,不是直接可以运行的程序,需要进行解析和编译才能成为可以运行的程序。因此,业务规则的发布管理系统将上传的规则集zip包进行解压、分析、编译等操作后生成可执行业务规则文件,该可执行业务规则文件包括企业级应用业务规则ear包、可执行程序SDK包。其中,ear包为可以运行的业务规则集,SDK包为可以被其他系统如业务系统直接使用的可执行程序包。例如,在一种具体的实施方式中,业务规则的发布管理系统中设置的规则编译工具rule builder可支持自然语言编写,则开发人员可在业务规则的发布管理系统中的rule builder上使用自然语言编写增加的新的业务规则,然后,业务规则的发布管理系统将上传的规则集zip包解压、分析、编译,将编写的自然语言规则集编译成为可以运行的程序语言。例如,获取用户在所述规则生成界面即规则编译工具rule builder上编写的自然语言规则;提取出获取的自然语言规则中的预设标识词汇及预设关键词汇;根据预先确定的预设标识词汇与Java规则模板之间的映射关系确定出所述自然语言规则中的预设标识词汇 对应的Java规则模板,并将所述自然语言规则中的预设关键词汇转换为对应的代码,将转换的代码填充至确定的Java规则模板中的对应位置;将填充后的Java规则模板进行编译生成可执行Java规则文件。The business rules release management system will decompress, analyze, and compile the uploaded rule set zip package to generate executable business rule files. Because the business rule file written by the developer based on the rule compilation tool rule builder is not a program that can be directly run, it needs to be parsed and compiled to become a program that can be run. Therefore, the business rule release management system decompresses, analyzes, and compiles the uploaded rule set zip package to generate an executable business rule file. The executable business rule file includes an enterprise-level application business rule ear package and an executable program SDK. package. Among them, the ear package is a set of business rules that can be run, and the SDK package is an executable program package that can be directly used by other systems such as business systems. For example, in a specific implementation, the rule compilation tool rule builder set in the release management system of the business rule can support natural language writing, and the developer can use the natural language on the rule builder in the release management system of the business rule. Write the added new business rules. Then, the business rules release management system decompresses, analyzes, and compiles the uploaded rule set zip package, and compiles the written natural language rule set into a working program language. For example, acquiring a natural language rule written by a user on the rule generation interface, that is, a rule compiling tool rule builder; extracting a preset identification vocabulary and a preset keyword vocabulary in the acquired natural language rule; The mapping relationship with the Java rule template determines the Java rule template corresponding to the preset identification word in the natural language rule, and converts the preset keyword sink in the natural language rule into a corresponding code, and converts the converted The code is filled to the corresponding position in the determined Java rule template; the filled Java rule template is compiled to generate an executable Java rule file.
权限和参数设置。用户可在业务规则的发布管理系统上针对由开发人员编写的规则集编译成的可执行业务规则文件进行权限设置,包括对生成的可执行业务规则文件中的企业级应用业务规则ear包及可执行程序SDK包的访问、下载权限设置,以及生成的可执行业务规则文件对应归属的业务系统权限设置,等。例如,可设置该可执行业务规则文件的访问权限即哪些用户可以访问查看、下载该可执行业务规则文件中的ear包及SDK包,或限定该可执行业务规则文件可归属应用在哪些对应的业务系统上,或设置该可执行业务规则文件可与其他版本的可执行业务规则文件进行关联应用,等等。进一步的,本实施例的业务规则的发布管理系统中在不同用户登录使用时,可根据用户名、账号等方式识别不同用户的身份信息,并对不同身份的用户进行分类设置权限,如可将用户分为开发人员、部署人员、运营人员、管理人员这四种角色,这四种角色在业务规则的发布管理系统上的操作权限有所不同,具体的如下:对于开发人员,可允许其在业务规则的发布管理系统中进行业务规则的编译、下载(ear包和SDK包的下载)、应用关联配置(例如,同一个业务系统可能会同时用到多个业务规则集,则可对该多个业务规则集进行关联)。对于部署人员,可允许其在业务规则的发布管理系统中进行业务规则的发布(如由部署人员将测试ok的业务规则自动推送至真实的生产环境即对应的业务系统)。对于运营人员,可允许其在业务规则的发布管理系统中进行业务规则的关联系统管理(将业务规则用到几个关联的业务系统中)、操作日志(如业务规则编译日志、版本日志、发布日志等)查询、权限管理(可管理不同角色在业务规则的发布管理系统上的操作权限)、角色授权(根据不同的用户身份授权为对应的角色)。对于管理人员,可允许其在业务规则的发布管理系统中进行业务规则的关联系统管理(将业务规则用到几个关联的业务系统中)、操作日志(如业务规则编译日志、版本日志、发布日志等)查询、权限管理(可管理不同角色在业务规则的发布管理系统上的操作权限)、角色授权(根据不同的用户身份授权为对应的角色)以及下载(ear包和SDK包的下载)。Permissions and parameter settings. Users can set permissions on an executable business rule file compiled by a rule set compiled by a developer on the business rule release management system, including the enterprise-level application business rule ear package and the The access and download permission settings of the executable program SDK package, and the business system permission settings corresponding to the generated executable business rule file, etc. For example, you can set the access permissions of the executable business rules file, that is, which users can access to view and download the ear package and SDK package in the executable business rules file, or limit which corresponding applications the executable business rules file can belong to. On the business system, or set the executable business rule file to be associated with other versions of the executable business rule file, and so on. Further, in the business rule issuance management system of this embodiment, when different users log in, they can identify the identity information of different users according to their usernames, account numbers, etc., and classify and set permissions for users with different identities. Users are divided into four roles: developer, deployer, operator, and manager. These four roles have different operation rights on the release management system of business rules. The details are as follows: For developers, they can be allowed to Compile and download business rules (download the ear package and SDK package), and apply association configuration (for example, the same business system may use multiple business rule sets at the same time in the release management system of the business rules). Business rule sets). For deployers, they can be allowed to publish business rules in the release management system of the business rules (for example, the deployer will automatically push the test ok business rules to the real production environment, which is the corresponding business system). For operating personnel, they can be allowed to perform associated system management of business rules in the release management system of business rules (using business rules in several associated business systems), operation logs (such as business rule compilation logs, version logs, releases Logs, etc.) query, rights management (can manage the operation rights of different roles on the release management system of business rules), role authorization (authorize to the corresponding role according to different user identities). For management personnel, they can be allowed to perform business system related system management (using business rules in several related business systems) and operation logs (such as business rule compilation logs, version logs, and releases) in the business rule release management system. Logs, etc.) query, rights management (can manage the operation rights of different roles on the release management system of business rules), role authorization (authorize the corresponding role according to different user identities), and download (ear and SDK package download) .
一键推送测试平台。接收到用户的测试指令后,可将生成的可执行业务规则文件推送至预设的测试平台进行测试,该测试平台上部署有测试环境,该测试环境与真实的生产环境一致,真实的生产环境即设置的该可运行程序语言可应用的一个或多个业务系统的规则引擎 应用环境。同时,建立生成的可执行业务规则文件的规则版本号。One-click push test platform. After receiving the user's test instruction, the generated executable business rule file can be pushed to a preset test platform for testing. A test environment is deployed on the test platform. The test environment is consistent with the real production environment and the real production environment. That is, the rule engine application environment of one or more business systems that can be applied to the executable program language is set. At the same time, a rule version number of the generated executable business rule file is established.
自动推送生产环境。若测试生成的可执行业务规则文件在测试环境中运行成功,则可自动将生成的可执行业务规则文件推送至真实的生产环境即设置的该生成的可执行业务规则文件可应用的一个或多个业务系统的规则引擎应用环境,以实现自动发布业务规则,使得规则集发布无需规则引擎系统运营人员配合,减少了人工成本。此外,若测试形成的可执行业务规则文件在测试环境中运行失败,则根据每个可执行业务规则文件的规则版本号进行版本回滚,以保证在新增的业务规则有误时,可恢复到前一个正确的业务规则版本,从而保证相关业务系统的稳定运行。Automatically push production environment. If the test executable business rule file runs successfully in the test environment, the generated executable business rule file can be automatically pushed to the real production environment, that is, one or more of the generated executable business rule file that can be applied A rule engine application environment for each business system to automatically publish business rules, making rule set publishing without the cooperation of rule engine system operators, reducing labor costs. In addition, if the executable business rule file formed by the test fails to run in the test environment, the version is rolled back according to the rule version number of each executable business rule file to ensure that when the newly added business rule is wrong, it can be restored Go to the previous correct version of the business rules to ensure the stable operation of related business systems.
与现有技术相比,本实施例通过获取用户在预设的规则生成界面上传的预设统一格式的原始业务规则,并按预设规则将所述原始业务规则编译生成可执行业务规则文件;对生成的可执行业务规则文件进行预设权限设置,并将生成的可执行业务规则文件推送至预先部署有测试环境的测试平台上进行测试;若测试成功,则对生成的可执行业务规则文件建立规则版本号,并将所述规则版本号的可执行业务规则文件发布至对应的一个或多个业务系统。由于能针对用户上传的原始业务规则编译形成可执行业务规则文件并推送至预设的测试平台,该预设的测试平台上部署有测试环境,该测试环境与真实的生产环境即多个业务系统的规则引擎应用环境一致,若测试形成的可执行业务规则文件在测试环境中运行成功,则可自动将形成的可执行业务规则文件推送至真实的生产环境即多个业务系统的规则引擎应用环境,以实现自动配置、发布及管理业务规则,无需人工管理大量的业务规则,提高了业务规则发布及管理的效率。Compared with the prior art, this embodiment obtains an original business rule of a preset unified format uploaded by a user on a preset rule generation interface, and compiles the original business rule into an executable business rule file according to the preset rule; Perform preset permission settings on the generated executable business rule file and push the generated executable business rule file to a test platform with a test environment pre-deployed for testing; if the test is successful, the generated executable business rule file A rule version number is established, and an executable business rule file of the rule version number is released to the corresponding one or more business systems. Because the original business rules uploaded by users can be compiled into executable business rules files and pushed to a preset test platform, a test environment is deployed on the preset test platform, and the test environment and the real production environment are multiple business systems. The rule engine application environment is the same. If the executable business rule file formed by the test runs successfully in the test environment, the formed executable business rule file can be automatically pushed to the real production environment, that is, the rule engine application environment of multiple business systems. In order to realize automatic configuration, publishing and management of business rules, there is no need to manually manage a large number of business rules, which improves the efficiency of business rule publishing and management.
进一步地,在一可选的实施例中,在上述实施例的基础上,本实施例在利用业务规则的发布管理系统来更新业务规则的版本时,包括如下步骤:Further, in an optional embodiment, on the basis of the above embodiment, when using the release management system of a business rule to update the version of a business rule, this embodiment includes the following steps:
下载现有的规则集。Download an existing rule set.
开发人员上传修改后的规则集zip包。开发人员可在业务规则的发布管理系统中设置的规则编译工具rule builder(规则生成器)上对业务规则进行修改,修改完成后可点击“上传”按钮,业务规则的发布管理系统可对开发人员编写的修改后的业务规则进行压缩成统一格式如zip的处理。当然,开发人员也可自行将编写的修改后的业务规则压缩成统一格式如zip,再将该业务规则zip包上传至业务规则的发布管理系统,以便业务规则的发布管理系统对统一格式的业务规则zip包进行后续处理。The developer uploads the modified ruleset zip package. Developers can modify business rules on the rule compilation tool (rule builder) set in the release management system of the business rules. After the modification is completed, they can click the "Upload" button. The release management system of the business rules can The modified business rules written are compressed into a uniform format such as zip. Of course, developers can also compress and write the modified business rules into a unified format, such as zip, and then upload the business rule zip package to the business rule's release management system, so that the business rule's release management system can handle the business of the unified format. The regular zip package is used for subsequent processing.
业务规则的发布管理系统将上传的规则集zip包进行解压、分析、编译等操作后生成ear包和SDK包。The business rule release management system decompresses, analyzes, compiles and uploads the uploaded ruleset zip package to generate ear packages and SDK packages.
权限和参数设置等(应用关联配置比如访问权限和归属等)。Permissions and parameter settings (application-related configuration such as access permissions and ownership, etc.).
一键推送测试平台。建立规则CQ版本号,推送到测试环境部署。One-click push test platform. Establish the rule CQ version number and push it to the test environment for deployment.
若测试成功,则推送生产环境;若测试不过,则进行版本回滚。If the test is successful, the production environment is pushed; if the test is not successful, the version is rolled back.
进一步地,在一可选的实施例中,本实施例在当前版本的业务规则有问题时利用业务规则的发布管理系统来更改业务规则,包括如下步骤:Further, in an optional embodiment, when there is a problem with the current version of the business rule, this embodiment uses the business rule release management system to change the business rule, including the following steps:
回滚最新版本的业务规则集到前一个版本。Roll back the latest version of the business rule set to the previous version.
开发人员从业务规则的发布管理系统上获取回滚的前一个版本业务规则,并基于前一个版本业务规则进行修改,如开发人员可在业务规则的发布管理系统中设置的规则编译工具rule builder(规则生成器)上对前一个版本业务规则进行修改,修改完成后可点击“上传”按钮,业务规则的发布管理系统可对开发人员编写的修改后的业务规则进行压缩成统一格式如zip的处理。当然,开发人员也可自行将编写的修改后的业务规则压缩成统一格式如zip,再将该业务规则zip包上传至业务规则的发布管理系统,以便业务规则的发布管理系统对统一格式的业务规则zip包进行后续处理。The developer obtains the rolled-back version of the business rule from the business rule's release management system, and makes modifications based on the previous version of the business rule. For example, the developer can set the rule compilation tool rule builder in the release management system of the business rule. Rule generator) to modify the previous version of the business rules. After the modification is complete, click the "Upload" button. The business rule release management system can compress the modified business rules written by the developer into a unified format such as zip processing. . Of course, developers can also compress and write the modified business rules into a unified format, such as zip, and then upload the business rule zip package to the business rule's release management system, so that the business rule's release management system can handle the business of the unified format The regular zip package is used for subsequent processing.
业务规则的发布管理系统将上传的规则集zip包进行解压、分析、编译等操作后生成ear包和SDK包。The business rule release management system decompresses, analyzes, compiles and uploads the uploaded ruleset zip package to generate ear packages and SDK packages.
权限和参数设置等(应用关联配置比如访问权限和归属等)。Permissions and parameter settings (application-related configuration such as access permissions and ownership, etc.).
一键推送测试平台。建立规则CQ版本号,推送到测试环境部署。One-click push test platform. Establish the rule CQ version number and push it to the test environment for deployment.
若测试成功,则推送生产环境;若测试不过,则进行版本回滚。If the test is successful, the production environment is pushed; if the test is not successful, the version is rolled back.
进一步的,本实施例中支持下载功能,如可让符合权限的用户下载不同版本业务规则的ear包、SDK包,用户可下载不同版本业务规则的ear包、SDK包进行开发测试,也可以直接调用下载的SDK包来应用于其他需用到的规则引擎中。Further, the download function is supported in this embodiment. For example, users who comply with the authority can download ear packages and SDK packages of different versions of business rules. Users can download ear packages and SDK packages of different versions of business rules for development and testing. Invoke the downloaded SDK package to apply it to other required rule engines.
此外,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质存储有业务规则的发布管理系统,所述业务规则的发布管理系统可被至少一个处理器执行,以使所述至少一个处理器执行如上述实施例中的业务规则的发布管理方法的步骤,该业务规则的发布管理方法的步骤S10、S20、S30等具体实施过程如上文所述,在此不再赘述。In addition, the present application also provides a computer-readable storage medium, where the computer-readable storage medium stores a release management system of business rules, and the release management system of the business rules can be executed by at least one processor, so that the At least one processor executes the steps of the method for publishing and managing a business rule in the foregoing embodiment. The specific implementation processes of steps S10, S20, and S30 of the method for publishing and managing a business rule are as described above, and are not repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何 其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this article, the terms "including", "including" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, It also includes other elements not explicitly listed, or elements inherent to such a process, method, article, or device. Without more restrictions, an element limited by the sentence "including a ..." does not exclude that there are other identical elements in the process, method, article, or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件来实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that 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. Based on such an understanding, 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.
以上参照附图说明了本申请的优选实施例,并非因此局限本申请的权利范围。上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。另外,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The preferred embodiments of the present application have been described above with reference to the accompanying drawings, and thus do not limit the scope of rights of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the superiority or inferiority of the embodiments. In addition, although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than here.
本领域技术人员不脱离本申请的范围和实质,可以有多种变型方案实现本申请,比如作为一个实施例的特征可用于另一实施例而得到又一实施例。凡在运用本申请的技术构思之内所作的任何修改、等同替换和改进,均应在本申请的权利范围之内。Those skilled in the art can implement this application without departing from the scope and essence of this application. For example, the features of one embodiment can be used in another embodiment to obtain another embodiment. Any modification, equivalent replacement and improvement made within the application of the technical idea of this application shall fall within the scope of rights of this application.
Claims (20)
- 一种电子装置,其特征在于,所述电子装置包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的业务规则的发布管理系统,所述业务规则的发布管理系统被所述处理器执行时实现如下步骤:An electronic device is characterized in that the electronic device includes a memory and a processor, and the memory stores a release management system of a business rule that can run on the processor, and the release management system of the business rule is When the processor executes, the following steps are implemented:在收到发布业务规则的请求后,提供预设的规则生成界面;Provide a preset rule generation interface after receiving a request to publish a business rule;获取用户在所述规则生成界面上传的预设统一格式的原始业务规则,并按预设规则将所述原始业务规则编译生成可执行业务规则文件;Acquiring a preset unified format original business rule uploaded by the user on the rule generation interface, and compiling the original business rule into an executable business rule file according to the preset rule;对生成的可执行业务规则文件进行预设权限设置,并将生成的可执行业务规则文件推送至预先部署有测试环境的测试平台上进行测试;Perform preset permission settings on the generated executable business rule file, and push the generated executable business rule file to a test platform with a test environment pre-deployed for testing;若测试成功,则对生成的可执行业务规则文件建立规则版本号,并将所述规则版本号的可执行业务规则文件发布至对应的一个或多个业务系统。If the test is successful, a rule version number is created for the generated executable business rule file, and the executable business rule file with the rule version number is published to the corresponding one or more business systems.
- 如权利要求1所述的电子装置,其特征在于,所述处理器还用于执行所述业务规则的发布管理系统,以实现以下步骤:The electronic device according to claim 1, wherein the processor is further configured to execute a release management system of the business rule to implement the following steps:若测试失败,则根据生成的可执行业务规则文件的规则版本号进行版本回滚,将所述规则版本号的前一个规则版本号对应的可执行业务规则文件发布至对应的一个或多个业务系统;或者,If the test fails, the version is rolled back according to the rule version number of the generated executable business rule file, and the executable business rule file corresponding to the previous rule version number of the rule version number is published to the corresponding one or more services. System; or,若业务系统上的业务规则运行出错,则将所述业务系统上的业务规则自动回滚至当前规则版本号的前一个规则版本号对应的可执行业务规则。If the business rule on the business system runs incorrectly, the business rule on the business system is automatically rolled back to the executable business rule corresponding to the previous rule version number of the current rule version number.
- 如权利要求1所述的电子装置,其特征在于,所述生成的可执行业务规则文件包括企业级应用业务规则ear包、可执行程序SDK包。The electronic device according to claim 1, wherein the generated executable business rule file comprises an enterprise-level application business rule ear package and an executable program SDK package.
- 如权利要求3所述的电子装置,其特征在于,所述对生成的可执行业务规则文件进行预设权限设置包括:The electronic device according to claim 3, wherein the preset permission setting of the generated executable business rule file comprises:对生成的可执行业务规则文件中的企业级应用业务规则ear包及可执行程序SDK包的访问、下载权限设置,以及生成的可执行业务规则文件对应归属的业务系统权限设置。Access and download permission settings for the enterprise-level application business rule ear package and executable program SDK package in the generated executable business rule file, and the business system permission settings to which the generated executable business rule file corresponds.
- 如权利要求1所述的电子装置,其特征在于,用户在所述规则生成界面上传的预设统一格式的原始业务规则为自然语言规则,所述获取用户在所述规则生成界面上传的预设统一格式的原始业务规则,并按预设规则将所述原始业务规则编译生成可执行业务规则文件的步骤包括:The electronic device according to claim 1, wherein the original business rules of the preset unified format uploaded by the user on the rule generation interface are natural language rules, and the presets uploaded by the user on the rule generation interface are acquired The steps of uniformly formatting the original business rule and compiling the original business rule into an executable business rule file according to a preset rule include:获取用户在所述规则生成界面上编写的自然语言规则;Obtaining a natural language rule written by a user on the rule generation interface;提取出获取的自然语言规则中的预设标识词汇及预设关键词汇;Extracting the preset identification vocabulary and preset keywords in the acquired natural language rules;根据预先确定的预设标识词汇与Java规则模板之间的映射关系确定出所述自然语言规则中的预设标识词汇对应的Java规则模板,并将所述自然语言规则中的预设关键词汇转换为对应的代码,将转换的代码填充至确定的Java规则模板中的对应位置;Determine the Java rule template corresponding to the preset identification vocabulary in the natural language rule according to the mapping relationship between the predetermined preset identification vocabulary and the Java rule template, and convert the preset keyword pool in the natural language rule For the corresponding code, fill the converted code to the corresponding position in the determined Java rule template;将填充后的Java规则模板进行编译生成可执行Java规则文件。Compile the filled Java rule template to generate an executable Java rule file.
- 如权利要求2所述的电子装置,其特征在于,用户在所述规则生成界面上传的预设统一格式的原始业务规则为自然语言规则,所述获取用户在所述规则生成界面上传的预设统一格式的原始业务规则,并按预设规则将所述原始业务规则编译生成可执行业务规则文件的步骤包括:The electronic device according to claim 2, wherein the original business rules of the preset unified format uploaded by the user on the rule generation interface are natural language rules, and the presets uploaded by the user on the rule generation interface are acquired The steps of uniformly formatting the original business rule and compiling the original business rule into an executable business rule file according to a preset rule include:获取用户在所述规则生成界面上编写的自然语言规则;Obtaining a natural language rule written by a user on the rule generation interface;提取出获取的自然语言规则中的预设标识词汇及预设关键词汇;Extracting the preset identification vocabulary and preset keywords in the acquired natural language rules;根据预先确定的预设标识词汇与Java规则模板之间的映射关系确定出所述自然语言规则中的预设标识词汇对应的Java规则模板,并将所述自然语言规则中的预设关键词汇转换为对应的代码,将转换的代码填充至确定的Java规则模板中的对应位置;Determine the Java rule template corresponding to the preset identification vocabulary in the natural language rule according to the mapping relationship between the predetermined preset identification vocabulary and the Java rule template, and convert the preset keyword pool in the natural language rule For the corresponding code, fill the converted code to the corresponding position in the determined Java rule template;将填充后的Java规则模板进行编译生成可执行Java规则文件。Compile the filled Java rule template to generate an executable Java rule file.
- 如权利要求3所述的电子装置,其特征在于,用户在所述规则生成界面上传的预设统一格式的原始业务规则为自然语言规则,所述获取用户在所述规则生成界面上传的预设统一格式的原始业务规则,并按预设规则将所述原始业务规则编译生成可执行业务规则文件的步骤包括:The electronic device according to claim 3, wherein the original business rules of the preset unified format uploaded by the user on the rule generation interface are natural language rules, and the presets uploaded by the user on the rule generation interface are acquired The steps of uniformly formatting the original business rule and compiling the original business rule into an executable business rule file according to a preset rule include:获取用户在所述规则生成界面上编写的自然语言规则;Obtaining a natural language rule written by a user on the rule generation interface;提取出获取的自然语言规则中的预设标识词汇及预设关键词汇;Extracting the preset identification vocabulary and preset keywords in the acquired natural language rules;根据预先确定的预设标识词汇与Java规则模板之间的映射关系确定出所述自然语言规则中的预设标识词汇对应的Java规则模板,并将所述自然语言规则中的预设关键词汇转换为对应的代码,将转换的代码填充至确定的Java规则模板中的对应位置;Determine the Java rule template corresponding to the preset identification vocabulary in the natural language rule according to the mapping relationship between the predetermined preset identification vocabulary and the Java rule template, and convert the preset keyword pool in the natural language rule For the corresponding code, fill the converted code to the corresponding position in the determined Java rule template;将填充后的Java规则模板进行编译生成可执行Java规则文件。Compile the filled Java rule template to generate an executable Java rule file.
- 如权利要求4所述的电子装置,其特征在于,用户在所述规则生成界面上传的预设统一格式的原始业务规则为自然语言规则,所述获取用户在所述规则生成界面上传的预设统一格式的原始业务规则,并按预设规则将所述原始业务规则编译生成可执行业务规则文件的步骤包括:The electronic device according to claim 4, wherein the original business rules of the preset uniform format uploaded by the user on the rule generation interface are natural language rules, and the presets uploaded by the user on the rule generation interface are acquired The steps of uniformly formatting the original business rule and compiling the original business rule into an executable business rule file according to a preset rule include:获取用户在所述规则生成界面上编写的自然语言规则;Obtaining a natural language rule written by a user on the rule generation interface;提取出获取的自然语言规则中的预设标识词汇及预设关键词汇;Extracting the preset identification vocabulary and preset keywords in the acquired natural language rules;根据预先确定的预设标识词汇与Java规则模板之间的映射关系确定出所述自然语言规则中的预设标识词汇对应的Java规则模板, 并将所述自然语言规则中的预设关键词汇转换为对应的代码,将转换的代码填充至确定的Java规则模板中的对应位置;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 convert the preset keyword pool in the natural language rule For the corresponding code, fill the converted code to the corresponding position in the determined Java rule template;将填充后的Java规则模板进行编译生成可执行Java规则文件。Compile the filled Java rule template to generate an executable Java rule file.
- 一种业务规则的发布管理方法,其特征在于,所述业务规则的发布管理方法包括:A method for publishing and managing a business rule is characterized in that the method for publishing and managing a business rule includes:在收到发布业务规则的请求后,提供预设的规则生成界面;Provide a preset rule generation interface after receiving a request to publish a business rule;获取用户在所述规则生成界面上传的预设统一格式的原始业务规则,并按预设规则将所述原始业务规则编译生成可执行业务规则文件;Acquiring a preset unified format original business rule uploaded by the user on the rule generation interface, and compiling the original business rule into an executable business rule file according to the preset rule;对生成的可执行业务规则文件进行预设权限设置,并将生成的可执行业务规则文件推送至预先部署有测试环境的测试平台上进行测试;Perform preset permission settings on the generated executable business rule file, and push the generated executable business rule file to a test platform with a test environment pre-deployed for testing;若测试成功,则对生成的可执行业务规则文件建立规则版本号,并将所述规则版本号的可执行业务规则文件发布至对应的一个或多个业务系统。If the test is successful, a rule version number is created for the generated executable business rule file, and the executable business rule file with the rule version number is published to the corresponding one or more business systems.
- 如权利要求9所述的业务规则的发布管理方法,其特征在于,还包括:The method for publishing and managing a business rule according to claim 9, further comprising:若测试失败,则根据生成的可执行业务规则文件的规则版本号进行版本回滚,将所述规则版本号的前一个规则版本号对应的可执行业务规则文件发布至对应的一个或多个业务系统;或者,If the test fails, the version is rolled back according to the rule version number of the generated executable business rule file, and the executable business rule file corresponding to the previous rule version number of the rule version number is published to the corresponding one or more services. System; or,若业务系统上的业务规则运行出错,则将所述业务系统上的业务规则自动回滚至当前规则版本号的前一个规则版本号对应的可执行业务规则。If the business rule on the business system runs incorrectly, the business rule on the business system is automatically rolled back to the executable business rule corresponding to the previous rule version number of the current rule version number.
- 如权利要求9所述的业务规则的发布管理方法,其特征在于,所述生成的可执行业务规则文件包括企业级应用业务规则ear包、可执行程序SDK包。The method according to claim 9, wherein the generated executable business rule file comprises an enterprise-level application business rule ear package and an executable program SDK package.
- 如权利要求11所述的业务规则的发布管理方法,其特征在于,所述对生成的可执行业务规则文件进行预设权限设置包括:The method according to claim 11, wherein the preset permission setting of the generated executable business rule file comprises:对生成的可执行业务规则文件中的企业级应用业务规则ear包及可执行程序SDK包的访问、下载权限设置,以及生成的可执行业务规则文件对应归属的业务系统权限设置。Access and download permission settings for the enterprise-level application business rule ear package and executable program SDK package in the generated executable business rule file, and the business system permission settings to which the generated executable business rule file corresponds.
- 如权利要求9所述的业务规则的发布管理方法,其特征在于,用户在所述规则生成界面上传的预设统一格式的原始业务规则为自然语言规则,所述获取用户在所述规则生成界面上传的预设统一格式的原始业务规则,并按预设规则将所述原始业务规则编译生成可执行业务规则文件的步骤包括:The method for publishing and managing a business rule according to claim 9, characterized in that the original business rule of the preset uniform format uploaded by the user on the rule generation interface is a natural language rule, and the acquiring user uses the rule generation interface The steps of uploading the original business rules in a preset unified format, and compiling the original business rules into an executable business rule file according to the preset rules include:获取用户在所述规则生成界面上编写的自然语言规则;Obtaining a natural language rule written by a user on the rule generation interface;提取出获取的自然语言规则中的预设标识词汇及预设关键词汇;Extracting the preset identification vocabulary and preset keywords in the acquired natural language rules;根据预先确定的预设标识词汇与Java规则模板之间的映射关系确定出所述自然语言规则中的预设标识词汇对应的Java规则模板,并将所述自然语言规则中的预设关键词汇转换为对应的代码,将转换的代码填充至确定的Java规则模板中的对应位置;Determine the Java rule template corresponding to the preset identification vocabulary in the natural language rule according to the mapping relationship between the predetermined preset identification vocabulary and the Java rule template, and convert the preset keyword pool in the natural language rule For the corresponding code, fill the converted code to the corresponding position in the determined Java rule template;将填充后的Java规则模板进行编译生成可执行Java规则文件。Compile the filled Java rule template to generate an executable Java rule file.
- 如权利要求10所述的业务规则的发布管理方法,其特征在于,用户在所述规则生成界面上传的预设统一格式的原始业务规则为自然语言规则,所述获取用户在所述规则生成界面上传的预设统一格式的原始业务规则,并按预设规则将所述原始业务规则编译生成可执行业务规则文件的步骤包括:The method for publishing and managing a business rule according to claim 10, wherein the original business rule of a preset uniform format uploaded by the user on the rule generating interface is a natural language rule, and the acquiring user uses the rule generating interface The steps of uploading the original business rules in a preset unified format, and compiling the original business rules into an executable business rule file according to the preset rules include:获取用户在所述规则生成界面上编写的自然语言规则;Obtaining a natural language rule written by a user on the rule generation interface;提取出获取的自然语言规则中的预设标识词汇及预设关键词汇;Extracting the preset identification vocabulary and preset keywords in the acquired natural language rules;根据预先确定的预设标识词汇与Java规则模板之间的映射关系确定出所述自然语言规则中的预设标识词汇对应的Java规则模板,并将所述自然语言规则中的预设关键词汇转换为对应的代码,将转换的代码填充至确定的Java规则模板中的对应位置;Determine the Java rule template corresponding to the preset identification vocabulary in the natural language rule according to the mapping relationship between the predetermined preset identification vocabulary and the Java rule template, and convert the preset keyword pool in the natural language rule For the corresponding code, fill the converted code to the corresponding position in the determined Java rule template;将填充后的Java规则模板进行编译生成可执行Java规则文件。Compile the filled Java rule template to generate an executable Java rule file.
- 如权利要求11所述的业务规则的发布管理方法,其特征在于,用户在所述规则生成界面上传的预设统一格式的原始业务规则为自然语言规则,所述获取用户在所述规则生成界面上传的预设统一格式的原始业务规则,并按预设规则将所述原始业务规则编译生成可执行业务规则文件的步骤包括:The method for managing the issuance of a business rule according to claim 11, characterized in that the original business rules of the preset uniform format uploaded by the user on the rule generation interface are natural language rules, and the acquiring user uses the rule generation interface The steps of uploading an original business rule in a preset unified format and compiling the original business rule into an executable business rule file according to the preset rule include:获取用户在所述规则生成界面上编写的自然语言规则;Obtaining a natural language rule written by a user on the rule generation interface;提取出获取的自然语言规则中的预设标识词汇及预设关键词汇;Extracting the preset identification vocabulary and preset keywords in the acquired natural language rules;根据预先确定的预设标识词汇与Java规则模板之间的映射关系确定出所述自然语言规则中的预设标识词汇对应的Java规则模板,并将所述自然语言规则中的预设关键词汇转换为对应的代码,将转换的代码填充至确定的Java规则模板中的对应位置;Determine the Java rule template corresponding to the preset identification vocabulary in the natural language rule according to the mapping relationship between the predetermined preset identification vocabulary and the Java rule template, and convert the preset keyword pool in the natural language rule For the corresponding code, fill the converted code to the corresponding position in the determined Java rule template;将填充后的Java规则模板进行编译生成可执行Java规则文件。Compile the filled Java rule template to generate an executable Java rule file.
- 如权利要求12所述的业务规则的发布管理方法,其特征在于,用户在所述规则生成界面上传的预设统一格式的原始业务规则为自然语言规则,所述获取用户在所述规则生成界面上传的预设统一格式的原始业务规则,并按预设规则将所述原始业务规则编译生成可执行业务规则文件的步骤包括:The method for managing the issuance of a business rule according to claim 12, wherein the original business rule of a preset unified format uploaded by the user on the rule generation interface is a natural language rule, and the acquiring user is on the rule generation interface The steps of uploading an original business rule in a preset unified format and compiling the original business rule into an executable business rule file according to the preset rule include:获取用户在所述规则生成界面上编写的自然语言规则;Obtaining a natural language rule written by a user on the rule generation interface;提取出获取的自然语言规则中的预设标识词汇及预设关键词汇;Extracting the preset identification vocabulary and preset keywords in the acquired natural language rules;根据预先确定的预设标识词汇与Java规则模板之间的映射关系确定出所述自然语言规则中的预设标识词汇对应的Java规则模板, 并将所述自然语言规则中的预设关键词汇转换为对应的代码,将转换的代码填充至确定的Java规则模板中的对应位置;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 convert the preset keyword pool in the natural language rule For the corresponding code, fill the converted code to the corresponding position in the determined Java rule template;将填充后的Java规则模板进行编译生成可执行Java规则文件。Compile the filled Java rule template to generate an executable Java rule file.
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有业务规则的发布管理系统,所述业务规则的发布管理系统被处理器执行时实现如下步骤:A computer-readable storage medium is characterized in that a release management system of a business rule is stored on the computer-readable storage medium, and when the release management system of the business rule is executed by a processor, the following steps are implemented:在收到发布业务规则的请求后,提供预设的规则生成界面;Provide a preset rule generation interface after receiving a request to publish a business rule;获取用户在所述规则生成界面上传的预设统一格式的原始业务规则,并按预设规则将所述原始业务规则编译生成可执行业务规则文件;Acquiring a preset unified format original business rule uploaded by the user on the rule generation interface, and compiling the original business rule into an executable business rule file according to the preset rule;对生成的可执行业务规则文件进行预设权限设置,并将生成的可执行业务规则文件推送至预先部署有测试环境的测试平台上进行测试;Perform preset permission settings on the generated executable business rule file, and push the generated executable business rule file to a test platform with a test environment pre-deployed for testing;若测试成功,则对生成的可执行业务规则文件建立规则版本号,并将所述规则版本号的可执行业务规则文件发布至对应的一个或多个业务系统。If the test is successful, a rule version number is created for the generated executable business rule file, and the executable business rule file with the rule version number is published to the corresponding one or more business systems.
- 如权利要求17所述的计算机可读存储介质,其特征在于,还包括:The computer-readable storage medium of claim 17, further comprising:若测试失败,则根据生成的可执行业务规则文件的规则版本号进行版本回滚,将所述规则版本号的前一个规则版本号对应的可执行业务规则文件发布至对应的一个或多个业务系统;或者,If the test fails, the version is rolled back according to the rule version number of the generated executable business rule file, and the executable business rule file corresponding to the previous rule version number of the rule version number is published to the corresponding one or more services. System; or,若业务系统上的业务规则运行出错,则将所述业务系统上的业务规则自动回滚至当前规则版本号的前一个规则版本号对应的可执行业务规则。If the business rule on the business system runs incorrectly, the business rule on the business system is automatically rolled back to the executable business rule corresponding to the previous rule version number of the current rule version number.
- 如权利要求17所述的计算机可读存储介质,其特征在于,所述生成的可执行业务规则文件包括企业级应用业务规则ear包、可执行程序SDK包。The computer-readable storage medium of claim 17, wherein the generated executable business rule file comprises an enterprise-level application business rule ear package and an executable program SDK package.
- 如权利要求19所述的计算机可读存储介质,其特征在于,所述对生成的可执行业务规则文件进行预设权限设置包括:The computer-readable storage medium of claim 19, wherein the preset permission setting of the generated executable business rule file comprises:对生成的可执行业务规则文件中的企业级应用业务规则ear包及可执行程序SDK包的访问、下载权限设置,以及生成的可执行业务规则文件对应归属的业务系统权限设置。Access and download permission settings for the enterprise-level application business rule ear package and executable program SDK package in the generated executable business rule file, and the business system permission settings to which the generated executable business rule file corresponds.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810792782.5A CN109284106A (en) | 2018-07-18 | 2018-07-18 | Method for release management, electronic device and the readable storage medium storing program for executing of business rule |
CN201810792782.5 | 2018-07-18 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020015191A1 true WO2020015191A1 (en) | 2020-01-23 |
Family
ID=65182725
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/108214 WO2020015191A1 (en) | 2018-07-18 | 2018-09-28 | Business rule releasing and managing method, electronic device and readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109284106A (en) |
WO (1) | WO2020015191A1 (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109918079B (en) * | 2019-01-31 | 2022-03-18 | 平安科技(深圳)有限公司 | Rule updating method and device of rule engine system and computer equipment |
CN109960654A (en) * | 2019-02-22 | 2019-07-02 | 德联易控科技(北京)有限公司 | Test method, device, equipment and the storage medium of setting loss rule |
CN111427789B (en) * | 2020-03-26 | 2022-08-16 | 平安医疗健康管理股份有限公司 | Method, device, computer equipment and storage medium for automatically verifying rule |
CN111782262B (en) * | 2020-06-30 | 2024-05-14 | 深圳赛安特技术服务有限公司 | Data dynamic publishing method, device, system, equipment and storage medium |
CN112131560B (en) * | 2020-08-05 | 2022-05-24 | 新华三大数据技术有限公司 | Role authority adjustment method and device |
CN114371867B (en) * | 2020-10-14 | 2024-08-16 | 腾讯科技(深圳)有限公司 | Information processing method, device and medium for business rule |
CN112492000B (en) * | 2020-11-18 | 2022-10-04 | 中盈优创资讯科技有限公司 | Method and device for loading Internet of things access network rules |
CN112685400A (en) * | 2021-01-22 | 2021-04-20 | 浪潮云信息技术股份公司 | Method and system for detecting quality of health medical data based on SDK rule engine |
CN112860629B (en) * | 2021-03-05 | 2021-11-30 | 中邮消费金融有限公司 | Method and system for attributing performance, computer equipment and readable storage medium thereof |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019685A (en) * | 2012-11-20 | 2013-04-03 | 北京思特奇信息技术股份有限公司 | System and method for generating business interface based on page element |
WO2015186256A1 (en) * | 2014-06-06 | 2015-12-10 | 株式会社日立製作所 | Development support system |
CN105471665A (en) * | 2014-08-21 | 2016-04-06 | 北京奇虎科技有限公司 | Website function testing method, website function testing system and website server |
CN106161097A (en) * | 2016-07-20 | 2016-11-23 | 宁波公众信息产业有限公司 | A kind of method configuring data |
CN107797823A (en) * | 2017-09-27 | 2018-03-13 | 平安科技(深圳)有限公司 | Business Rule Management method, apparatus, storage medium and computer equipment |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019726B (en) * | 2012-12-19 | 2016-08-10 | 中国电子科技集团公司第十五研究所 | The management method of software system business rule and device |
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 (en) * | 2016-06-17 | 2019-06-21 | 深圳市麦斯杰网络有限公司 | Business rule scenario generation method and device |
CN106649212A (en) * | 2016-09-12 | 2017-05-10 | 济南浪潮高新科技投资发展有限公司 | Business data processing method and device |
CN106990967B (en) * | 2017-04-05 | 2020-12-25 | 百融云创科技股份有限公司 | Data processing method of rule engine |
-
2018
- 2018-07-18 CN CN201810792782.5A patent/CN109284106A/en active Pending
- 2018-09-28 WO PCT/CN2018/108214 patent/WO2020015191A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019685A (en) * | 2012-11-20 | 2013-04-03 | 北京思特奇信息技术股份有限公司 | System and method for generating business interface based on page element |
WO2015186256A1 (en) * | 2014-06-06 | 2015-12-10 | 株式会社日立製作所 | Development support system |
CN105471665A (en) * | 2014-08-21 | 2016-04-06 | 北京奇虎科技有限公司 | Website function testing method, website function testing system and website server |
CN106161097A (en) * | 2016-07-20 | 2016-11-23 | 宁波公众信息产业有限公司 | A kind of method configuring data |
CN107797823A (en) * | 2017-09-27 | 2018-03-13 | 平安科技(深圳)有限公司 | Business Rule Management method, apparatus, storage medium and computer equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109284106A (en) | 2019-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020015191A1 (en) | Business rule releasing and managing method, electronic device and readable storage medium | |
US11789715B2 (en) | Systems and methods for transformation of reporting schema | |
CN111783103B (en) | Maven-based dependency management method, device, electronic device and storage medium | |
CN106663002B (en) | REST service source code generation | |
US10481884B2 (en) | Systems and methods for dynamically replacing code objects for code pushdown | |
US11429365B2 (en) | Systems and methods for automated retrofitting of customized code objects | |
US8671222B2 (en) | Systems and methods for dynamically deploying an application transformation tool over a network | |
US20230297369A1 (en) | Software pipeline configuration | |
US20240045850A1 (en) | Systems and methods for database orientation transformation | |
CN113867913B (en) | Micro-service-oriented business request processing method, device, equipment and storage medium | |
US20120089931A1 (en) | Lightweight operation automation based on gui | |
US10564961B1 (en) | Artifact report for cloud-based or on-premises environment/system infrastructure | |
CN108959086B (en) | Program package testing deployment method, device, system, electronic equipment and storage medium | |
CN111104103A (en) | Visualization method and system for software editing microservice | |
WO2021093672A1 (en) | Method for embedding external system, workflow system, device and computer readable storage medium | |
US9244706B2 (en) | Command line shell command generation based on schema | |
WO2024002302A1 (en) | Application management method, application subscription method, and related device | |
CN113032004B (en) | Method, apparatus and program product for managing development jobs in a development environment | |
US11853727B2 (en) | Group control and management among electronic devices | |
CN116382718A (en) | Code offline deployment method and device, computer equipment and storage medium | |
CN116431200A (en) | Configuration method, device, equipment and storage medium for application data configuration information | |
US11928627B2 (en) | Workflow manager | |
CN114489674A (en) | Data verification method and device of dynamic data model | |
CN114389936A (en) | Cross-cloud multi-cluster deployment operation and maintenance method, system, processor and storage medium | |
JP6705482B2 (en) | System construction parameter management device, system construction parameter management system, system construction parameter management method, and system construction parameter management program |
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: 18926799 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: 18926799 Country of ref document: EP Kind code of ref document: A1 |