Service rule engine execution system and method

An execution system and execution method technology, applied in the direction of instruments, data processing applications, office automation, etc., can solve the problems of complex use, no additional support for calls, high server configuration requirements, etc., to facilitate maintenance and development, and reduce machine configuration requirements. Effect

Pending Publication Date: 2020-04-10
盈佳云创科技(成都)有限公司
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. The code intrusion is large, and the modification of the data model will cause the code that accesses the current rules to also need to be modified;
[0005] 2. The deployment is complex and the system is huge, which requires high server configuration;
[0007] 4. There is no additional support for calls under the SpringCloud system, and the use is more complicated

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Service rule engine execution system and method
  • Service rule engine execution system and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] see figure 1 , the present embodiment provides a business rule engine execution system, including a SpringBoot architecture and a Mysql database, the SpringBoot architecture is connected to the Mysql database, and the SpringBoot architecture includes a Drools rule engine, a Javascript engine, a database operation layer, a Spring boot web layer and Log module, this system integrates two engines of Drools and Javascript based on the SpringBoot framework to realize the overall business framework, and the Drools rule engine and the Javascript engine are connected to the Mysql database through the database operation layer.

[0035] Principle: Store the corresponding rule script in the Mysql database, obtain the corresponding rule script from the Mysql database when receiving a request, and judge whether the corresponding rule belongs to the Drools rule engine or the Javascript engine, then perform corresponding interpretation and execution, and return the corresponding conten...

Embodiment 2

[0040] see figure 2 , a method for executing a business rule engine in this embodiment, comprising the following steps:

[0041] (1) External call input;

[0042] (2) Get the corresponding rules from the database;

[0043] (3) Determine whether the corresponding rule belongs to the Drools rule engine or the Javascript engine;

[0044] (4) Drools interpretation execution or Javascript interpretation execution;

[0045] (5) Return the execution result.

[0046] Wherein, the database is a Mysql database.

[0047] The overall principle: store the corresponding rule script in the Mysql database, obtain the corresponding rule script from the Mysql database when receiving a request, and judge whether the corresponding rule belongs to the Drools rule engine or the Javascript engine, then perform corresponding interpretation and execution, and return the corresponding content.

[0048] The Mysql database is provided with an interface for configuring rules. When the user configu...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a service rule engine execution system and method. The system comprises a SpringBoot framework and a Mysql database, the SpringBoot architecture comprises a Drools rule engine,a Javascript engine and a database operation layer, the Drools rule engine and the Javascript engine are connected with the Mysql database through the database operation layer; scripts of corresponding rules are stored by using the Mysql database, the corresponding rule scripts are obtained from the Mysql database when a request is received, whether the corresponding rules belong to the Drools rule engine or a Javascript engine is judged, then corresponding interpretation execution is performed, and corresponding contents are returned. According to the system and the method, calling in a Springed Cloud Feign mode is supported, and the influence on calling codes is small when service rules and corresponding data models are changed; and no additional component dependence is required.

Description

technical field [0001] The invention relates to a business system, in particular to a business rule engine execution system and method. Background technique [0002] Modern business rules and processes are complex and changeable. In order to shorten the business development time, it is necessary to extract the complex and changeable business rule logic and analyze it through a unified script engine, so that business implementation and branch judgment can be split, reducing code coupling Improve the maintainability and readability of the code. [0003] The existing technology has an open source rule engine drools, which has the following problems: [0004] 1. The code intrusion is large, and the modification of the data model will cause the code that accesses the current rules to also need to be modified; [0005] 2. The deployment is complex and the system is huge, which requires high server configuration; [0006] 3. Only supports drools rule scripts, low learning cost a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/20G06Q10/10
CPCG06F8/22G06Q10/103
Inventor 王洋
Owner 盈佳云创科技(成都)有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products