Business processing method and device based on rule engine

A business processing and rule technology, applied in the computer field, can solve the problems of difficulty, difficulty and low ease of use for developers, and achieve the effect of reducing duplication of work, reducing the number of writing, and increasing readability

Active Publication Date: 2018-11-30
JINGDONG TECH HLDG CO LTD
View PDF9 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] (1) The rule expression language of the rule engine is cumbersome, and it is difficult for developers to get started quickly; the rule expression language only abstracts business logic into rule files, and cannot reduce the complexity of business logic. In some cyclic business logic, the development of rule files Even more difficult than using a native development language
[0006] (2) In the face of relatively complex business logic, when using a rule engine, a large amount of writing and combination of rules are required to obtain rule files, resulting in low maintainability and ease of use of the overall project
[0007] (3) Different business requirements are both differentiated and universal. Since the rule files cannot be associated, developers need to repeatedly write rule files for repeated business logic

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
  • Business processing method and device based on rule engine
  • Business processing method and device based on rule engine
  • Business processing method and device based on rule engine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0037] figure 1 It is a schematic diagram of the main steps of the business processing method based on the rule engine according to the embodiment of the present invention. Such as figure 1 As shown, the business processing method based on the rule engine in the embodiment of the present invention mainly includes the following steps:

[0038]Step S101: Send the object e...

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 business processing method and a device based on a rule engine, and relates to the technical field of computers. One specific embodiment mode of the method comprises the following steps: sending an object entity instance with a business input object, a business output object and a business processing agent object to the rule engine; according to the object entity instance, matching a corresponding rule file from a rule file set of the rule engine, wherein the rule file comprises an executing function of business processing agents; calling the executing function of therule file to obtain a business processing object, performing corresponding business logic processing on the business input object through the business processing object, and packaging a business logic processing result in the business output object. The method is capable of declaring the executing function of the business processing agents in the rule file, transferring partial business processing logic from the rule file to the business processing object for executing, reducing a programming number of the rule files, and increasing readability and maintainability of the rule file.

Description

technical field [0001] The invention relates to the computer field, in particular to a rule engine-based business processing method and device. Background technique [0002] In the process of software development, business logic often changes continuously. In order to adapt to the change of business logic, rule engine technology is introduced into business requirements. The implementation principle of the rule engine technology is: abstract the business logic into object entities and rule files, use the rule engine to perform pattern matching, filter out the appropriate rule files for the object entities, and then use the filtered rule files to perform business logic processing on the object entities , output the result of business logic processing. [0003] In the above implementation process, the rule file needs to be written in a specific rule expression language. For example, some rule engines are implemented using Extensible Markup Language (XML), and some rule engines...

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): G06F9/448
CPCG06F9/449
Inventor 于思禹邓崇鑫
Owner JINGDONG TECH HLDG CO LTD
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