CN112860742A - Centralized rule engine service calling and controlling method, device, equipment and medium - Google Patents

Centralized rule engine service calling and controlling method, device, equipment and medium Download PDF

Info

Publication number
CN112860742A
CN112860742A CN202110092861.7A CN202110092861A CN112860742A CN 112860742 A CN112860742 A CN 112860742A CN 202110092861 A CN202110092861 A CN 202110092861A CN 112860742 A CN112860742 A CN 112860742A
Authority
CN
China
Prior art keywords
decision
execution system
condition information
judgment
condition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110092861.7A
Other languages
Chinese (zh)
Inventor
吴健成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN202110092861.7A priority Critical patent/CN112860742A/en
Publication of CN112860742A publication Critical patent/CN112860742A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0213Consumer transaction fees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0224Discounts or incentives, e.g. coupons or rebates based on user history
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0226Incentive systems for frequent usage, e.g. frequent flyer miles programs or point systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Software Systems (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a centralized rule engine service calling and controlling method, a device, equipment and a medium thereof, wherein the method comprises the following steps: one or more decision execution systems respectively receive condition decision requests related to the same user, and action response instructions correspondingly triggered when the decision condition information and the decision condition information meet preset conditions are separated from the decision requests; the decision execution system submits the judgment condition information to a rule engine for condition judgment, and the rule engine calls a preset rule associated with the decision execution system to judge the judgment condition information and then returns a judgment result; and when the judgment result represents that the judgment condition information meets the corresponding preset condition, the decision execution system triggers and executes the action response instruction to change the attribute maintained by the decision execution system in the personal account information of the user. The application provides a centralized rule system which is suitable for rule services of various types of internet platforms and improves the development efficiency of the rule services.

Description

Centralized rule engine service calling and controlling method, device, equipment and medium
Technical Field
The application belongs to the technical field of internet, and particularly relates to a centralized rule engine service calling and controlling method, and a corresponding device, electronic equipment and a nonvolatile storage medium thereof.
Background
In the field of internet, an internet platform and a sub-platform under the flag thereof can set corresponding rules, and a rule business system is set to maintain the relationship between the internet platform and the sub-platform and a user, so as to improve the enthusiasm of the user for using an application program of the internet platform or logging in a website of the user, so as to promote the activity of the user in the internet platform and the sub-platform under the flag thereof and improve the viscosity of a user pair, thereby bringing GMV conversion.
In order to manage various types of rules issued by an internet platform and a sub-platform to a user, the various types of rules can be uniformly managed through a middle platform system, but at present, in the middle platform system for managing various types of integration, the multi-dimensional rationality of the architecture is not well considered, the rules and conditions set by various types of rule services cannot be reused, the expansibility of the rule services is poor, and the following problems exist in the practical service application scene:
first, in the current middlebox system for managing various types of rules, the internet platform cannot effectively manage the set rules and manage the association between each rule service and the user through the middlebox system.
Secondly, the operation of deploying new rules by the internet platform through the middlebox system for managing various types of rules is tedious, so that the deployed rules cannot be used quickly.
Moreover, various types of rules set by the internet platform cannot be reused through the middle platform system, and are only suitable for a certain rule service.
In summary, how to solve the problems existing in the current various types of service management stations is a problem to be solved urgently in the field.
Disclosure of Invention
The primary object of the present application is to provide a centralized rule engine service invocation method and a corresponding apparatus, device and nonvolatile storage medium thereof.
Another object of the present application is to provide a centralized rules engine service control method and a corresponding apparatus, device and non-volatile storage medium thereof.
In order to meet the purpose of the application, the following technical scheme is adopted in the application:
the centralized rule engine service calling method adapted to one of the purposes of the application comprises the following steps:
one or more decision execution systems respectively receive condition decision requests related to the same user, and separate decision condition information and action response instructions correspondingly triggered when the decision condition information meets preset conditions from the decision requests;
one or more decision execution systems submit the decision condition information to a rule engine for condition decision, so that the rule engine calls a preset rule associated with the corresponding decision execution system to decide the decision condition information and then returns a corresponding decision result;
when the judgment result represents that the judgment condition information meets the corresponding preset condition, the corresponding decision execution system triggers the execution of the action response instruction corresponding to the judgment condition information, and correspondingly changes one attribute maintained by the decision execution system in the personal account information of the user.
In a further embodiment, in the step of making the rule engine call a preset rule associated with the corresponding decision execution system to determine the decision condition information and return to the corresponding decision result, the decision condition information submitted by the one or more decision execution systems contains the same decision condition, so that when the rule engine calls the preset rule associated with the corresponding decision execution system, the preset rules of the same type are respectively called.
In a further embodiment, in the step of making the rule engine call a preset rule associated with a corresponding decision execution system to decide the decision condition information and return the decision condition information to a corresponding decision result, each submitted decision condition information includes a plurality of decision conditions, and after being submitted to the rule engine, the rule engine is caused to arrange the decision conditions according to a default rule, and the decision conditions are decided one by one according to the arranged sequence, and finally, each decision result is subjected to logic operation, and the logic operation result is output as a final decision result.
In a preferred embodiment, the step of changing an attribute of the personal account information of the user, which is maintained by the decision execution system, includes:
one decision execution system responds to the corresponding action response instruction to change a first attribute in the personal account information of the user so as to realize the member grade change of the user;
and the other decision execution system responds to the corresponding action response instruction thereof to change the second attribute in the personal account information of the user so as to realize the change of the membership identity of the user.
The centralized rule engine service calling method adapted to one of the purposes of the application comprises the following steps:
the rule engine responds to decision requests submitted by a plurality of decision execution systems concurrently and obtains decision condition information aiming at each decision request;
the rule engine calls a preset rule associated with the decision execution system to judge the decision according to the decision condition information submitted by each decision execution system, and returns a judgment result to the corresponding decision execution system, wherein the judgment condition information submitted by the two decision execution systems contains the same judgment condition, and the same preset rule is applied according to the same judgment condition.
In a further embodiment, in the step of calling, by the rule engine, a preset rule associated with a decision execution system to which the decision execution system belongs to perform decision for the decision information submitted by each decision execution system, the decision information submitted by one decision execution system includes a plurality of decision conditions, the rule engine arranges the decision information according to a default rule, performs decision-by-decision on the decision conditions according to the arranged sequence, finally performs logical operation on each decision result, and outputs the logical operation result as a final decision result.
A centralized rules engine service invocation apparatus adapted to one of the purposes of the present application is provided, which comprises:
a request receiving unit, configured to receive condition decision requests associated with the same user by one or more decision execution systems, respectively, and separate decision condition information and action response instructions triggered correspondingly when the decision condition information satisfies a preset condition from the decision requests;
the information submitting unit is used for submitting the judgment condition information to a rule engine by one or more decision executing systems for condition judgment, so that the rule engine calls a preset rule associated with the corresponding decision executing system to judge the judgment condition information and returns a corresponding judgment result;
and the attribute maintenance unit is used for triggering the execution of the action response instruction corresponding to the judgment condition information by the corresponding decision execution system when the judgment result represents that the judgment condition information meets the corresponding preset condition, and correspondingly changing one attribute maintained by the decision execution system in the personal account information of the user.
In some embodiments, the attribute maintenance unit includes:
the system comprises a level change unit, a level change unit and a control unit, wherein the level change unit is used for changing a first attribute in the personal account information of the user by one decision execution system in response to a corresponding action response instruction of the decision execution system so as to realize member level change of the user;
and the identity change unit is used for changing a second attribute in the personal account information of the user by another decision execution system in response to the corresponding action response instruction so as to realize the change of the membership identity of the user.
A centralized rules engine service control apparatus adapted to one of the purposes of the present application, comprising:
the request response unit is used for the rule engine to concurrently respond to the judgment requests submitted by the decision execution systems and acquire judgment condition information aiming at each judgment request;
and the information judgment unit is used for calling a preset rule associated with the decision execution system to judge the decision by the rule engine according to the judgment condition information submitted by each decision execution system and returning a judgment result to the corresponding decision execution system, wherein the judgment condition information submitted by the two decision execution systems contains the same judgment condition, and the same preset rule is applied according to the same judgment condition.
An electronic device adapted for one of the purposes of the present application includes a central processing unit and a memory, the central processing unit being configured to invoke and run a computer program stored in the memory to execute the centralized rule engine service invocation method or the centralized rule engine service control method.
A non-volatile storage medium adapted for one of the purposes of the present application is provided, which stores in the form of computer readable instructions a computer program for implementing said method according to said centralized rules engine service invocation method or centralized rules engine service control method, which computer program, when invoked by a computer, performs the steps comprised by the method.
Compared with the prior art, the method has the following advantages:
firstly, the application constructs a centralized rule service management system, and realizes that a plurality of decision execution systems process the condition decision requests of the same user, so that each decision execution system separately obtains the decision condition information and corresponding action response instructions contained in the requests, and the judgment condition information is submitted to a rule engine for judgment processing to obtain a judgment result, so as to modify a certain attribute in the personal account information of the user through the judgment result and the action response instruction, each decision execution system shares a rule engine and takes charge of each fact, one or more attributes in the personal account information of the user are maintained by load, the method and the system can conveniently realize the request processing when the request is judged to be realized concurrently according to the condition of the user, and maintain the personal account information of the user in a modularized manner, so that the user can quickly obtain feedback after sending the request.
Secondly, the method and the device can provide and process the submitted judgment condition information for each decision execution system through the realization of the rule engine, the rule engine calls the corresponding preset rule to judge according to the received judgment condition information and feeds back the judgment result to the decision execution system so that the decision execution system can maintain the personal account information of the user according to the judgment result, and the rule engine has the capability of concurrently processing a plurality of decision execution systems and can greatly improve the speed of obtaining the request feedback result by the user.
Moreover, each type of preset rule is stored in the rule engine, each type of preset rule is associated with a plurality of decision execution systems, and when a platform needs to develop a new rule service, the preset rules stored in the rule engine can be called for multiplexing, so that the development efficiency of the rule service is improved, and unnecessary repeated labor development is reduced.
The centralized rule management system realized by combining the logics can manage all types of rule services in a multidimensional way, so that the Internet platform can manage all types of rule services in a multidimensional way through the system, and the rule services of the platform and the sub-platform can be expanded by adding new rule services and corresponding preset rules in the rule engine.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic diagram of a typical network deployment architecture related to implementing the technical solution of the present application;
FIG. 2 is a flow diagram illustrating an exemplary embodiment of a centralized rules engine service invocation method of the present application;
FIG. 3 is a schematic flow chart illustrating a specific step of step S13 in FIG. 2;
FIG. 4 is a schematic flow chart diagram illustrating an exemplary embodiment of a centralized rules engine service control method of the present application;
FIG. 5 is a functional block diagram of an exemplary embodiment of a centralized rules engine service invocation mechanism of the present application;
FIG. 6 is a functional block diagram of an exemplary embodiment of a centralized rules engine service control apparatus of the present application;
fig. 7 is a block diagram of a basic structure of a computer device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those within the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As will be appreciated by those skilled in the art, "client," "terminal," and "terminal device" as used herein include both devices that are wireless signal receivers, which are devices having only wireless signal receivers without transmit capability, and devices that are receive and transmit hardware, which have receive and transmit hardware capable of two-way communication over a two-way communication link. Such a device may include: cellular or other communication devices such as personal computers, tablets, etc. having single or multi-line displays or cellular or other communication devices without multi-line displays; PCS (Personal Communications Service), which may combine voice, data processing, facsimile and/or data communication capabilities; a PDA (Personal Digital Assistant), which may include a radio frequency receiver, a pager, internet/intranet access, a web browser, a notepad, a calendar and/or a GPS (Global Positioning System) receiver; a conventional laptop and/or palmtop computer or other device having and/or including a radio frequency receiver. As used herein, a "client," "terminal device" can be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or situated and/or configured to operate locally and/or in a distributed fashion at any other location(s) on earth and/or in space. The "client", "terminal Device" used herein may also be a communication terminal, a web terminal, a music/video playing terminal, such as a PDA, an MID (Mobile Internet Device) and/or a Mobile phone with music/video playing function, and may also be a smart tv, a set-top box, and the like.
The hardware referred to by the names "server", "client", "service node", etc. is essentially an electronic device with the performance of a personal computer, and is a hardware device having necessary components disclosed by the von neumann principle such as a central processing unit (including an arithmetic unit and a controller), a memory, an input device, an output device, etc., a computer program is stored in the memory, and the central processing unit calls a program stored in an external memory into the internal memory to run, executes instructions in the program, and interacts with the input and output devices, thereby completing a specific function.
It should be noted that the concept of "server" as referred to in this application can be extended to the case of a server cluster. According to the network deployment principle understood by those skilled in the art, the servers should be logically divided, and in physical space, the servers may be independent from each other but can be called through an interface, or may be integrated into one physical computer or a set of computer clusters. Those skilled in the art will appreciate this variation and should not be so limited as to restrict the implementation of the network deployment of the present application.
Referring to fig. 1, the hardware basis required for implementing the related art embodiments of the present application can be deployed according to the architecture shown in the figure, and the functions and functions of the components are disclosed as follows:
the decision execution system is deployed in the server 82, and the server 82 establishes a data communication link with the server 83 deploying the rule engine, so that the server 82 deploying the decision execution system sends the decision condition information received to the terminal devices 80 and 81 to the server 83, and the server 82 is triggered to perform condition decision according to the decision condition information through the rule engine.
The present application can be implemented by deploying a plurality of servers 82 of the decision execution system, so as to process the condition decision requests of different types sent by the terminal devices 80 and 81 in parallel, and the server 83 deployed with the rule engine has a service for processing the decision condition information sent by the plurality of servers 82, so that the server 83 performs condition decision according to the decision condition information of different types in parallel, and feeds back the corresponding decision result to the corresponding server 82, so that the server 82 maintains a certain attribute in the personal account information to which the user of the terminal device 80 or 81 belongs according to the decision result.
It can be understood that the decision execution system and the rule engine referred to in the present application may be deployed in the same server, and the server may set a function of an interface for data transmission through the decision execution system and the rule engine to perform the sending of the decision condition information and the feedback of the decision result.
The middle station is mainly used for realizing a certain practical function, responding to an external request, providing access parameters from the external request if necessary, and correspondingly feeding back a result expected by the external request after internal processing to finish the response to the external request.
The person skilled in the art will know this: although the various methods of the present application are described based on the same concept so as to be common to each other, they may be independently performed unless otherwise specified. In the same way, for each embodiment disclosed in the present application, it is proposed based on the same inventive concept, and therefore, concepts of the same expression and concepts of which expressions are different but are appropriately changed only for convenience should be equally understood.
With the above disclosure of the deployment environment and the application environment relevant to the technical solution of the present application in mind, reference is made to the following description for further understanding of various embodiments of the present application:
referring to fig. 2, in the centralized rule engine service invocation method of the present application, an application installed and running on a server is responsible for executing an embodiment to construct a middle station service of the present application, which is open to external invocation, and in an exemplary embodiment, the method includes the following steps:
step S11, one or more decision execution systems respectively receive the condition decision requests associated with the same user, and separate the decision condition information and the action response instruction triggered correspondingly when the decision condition information satisfies the preset condition from the decision request:
one or more decision execution systems respectively receive the condition decision requests associated with the same user, and separate the condition decision requests through a separation event to obtain the decision condition information corresponding to the condition decision requests and the action response instructions correspondingly triggered when the decision condition information meets the preset conditions.
The action response instruction is used for maintaining a certain attribute in the personal account information of the user corresponding to the instruction, and the action response instruction is executed after the decision execution system obtains a decision result that the decision condition information meets the corresponding preset condition from the rule engine. Please refer to the subsequent steps for the decision result fed back by the rule engine, which is not repeated.
In one embodiment, when the number of the decision execution systems is one, after receiving the condition decision request sent by the user, the decision execution system separates the condition decision request through a separation event to obtain the decision condition information included in the condition decision request and the action response instruction corresponding to the decision condition information.
In another example, when there are a plurality of decision execution systems, each decision execution system receives that the conditional decision request sent by the user is the same request, and each decision execution system separates the conditional decision request by a separation event; the separation event separates the condition decision request according to the type corresponding to the decision execution system in which the separation event is located, and obtains the decision condition information and the action response instruction corresponding to the decision execution system, for example, when the decision execution system is a type for processing member upgrade of a user, the separation event obtains the decision condition information and the action response instruction corresponding to the member upgrade, which are included in the condition decision request sent by the user.
In another embodiment, when there are multiple decision-making execution systems, the decision-making execution system may provide an interface to which the decision-making execution system belongs to a user, so that the user sends the condition decision request corresponding to the interface to the corresponding decision-making execution system through the interface, and further triggers the decision-making execution separation event to separate the condition decision request, and obtain the decision condition information and the corresponding action response instruction included in the request.
In another embodiment, when there are a plurality of decision execution systems, the conditional decision requests received by each decision execution system and associated with the same user are the same, and each decision execution system separates the conditional decision requests by a separation event to obtain the same conditional decision request and the corresponding action response instruction.
It can be understood that, with reference to the above-mentioned various embodiments, the decision condition information obtained by each decision execution system may include a same decision condition or a decision condition corresponding to its own type, and a person skilled in the art may design, according to an actual service scenario, an execution logic of the decision execution system for receiving the condition decision request and the separation event, and only needs to satisfy that the decision execution system can obtain the decision condition information and the action response instruction included in the condition decision request received by the decision execution system through the separation event.
Step S12, one or more decision execution systems submit the decision condition information to a rule engine for condition decision, so that the rule engine invokes a preset rule associated with the corresponding decision execution system to decide the decision condition information and then returns a corresponding decision result:
the decision execution system submits the decision condition information contained in the condition decision request obtained by separating the separation event to the implemented rule engine for condition decision, the rule engine calls the preset rule associated with the decision execution system to decide the decision condition information, and feeds back the decision result to the decision execution system.
In one embodiment, each type of the preset rule carries a mapping tag for characterizing the decision execution system associated with the preset rule itself, and the decision condition information sent by the corresponding decision execution system includes a mapping tag for characterizing the decision execution system itself, so that the rule engine determines the decision execution system to which the rule engine belongs according to the mapping tag of the decision condition information, and invokes the preset rule associated with the mapping tag of the decision execution system to further determine the decision condition information.
In another embodiment, the rule engine opens a corresponding interface for the decision execution system to submit the decision condition information, and the rule engine determines the decision execution system to which the decision condition information belongs according to the interface, so as to call the associated preset rule for the decision execution system to perform the decision on the decision condition information.
The decision condition information comprises one or more decision conditions, the rule engine analyzes the decision condition information to obtain one or more decision conditions contained in the decision condition information after receiving the decision condition information submitted by a decision execution system, judges whether the decision conditions meet the corresponding preset conditions according to the preset rules associated with the decision execution system, and further generates the decision result to be fed back to the decision execution system.
In one embodiment, when the decision condition information submitted by the decision execution systems includes the same decision condition, the rule engine calls the preset rules of the same type for each decision execution system to decide the decision condition, for example, when the decision condition information submitted by each decision execution system includes the same decision condition as the consumption amount, the rule engine calls the preset rules about the consumption amount type for each decision execution system, and decides the decision condition according to the specific rules of the preset rules of the consumption amount type associated with each decision execution system.
In another embodiment, when the decision condition information submitted by the decision execution system includes a plurality of decision conditions, the rule engine arranges each decision condition according to a default rule, further decides the decision conditions and the preset rules associated with the decision execution system in order according to the arranged sequence to generate the decision results to which the decision conditions belong, and performs a logical operation on each decision result to output the logical operation result as the final decision result, for example, when the decision execution system is a membership scoring decision execution system and the decision conditions submitted by the decision execution system include a plurality of decision conditions, the rule engine arranges each decision condition according to the default rule, for example, the default rule sets a decision condition as a primary decision condition as to determine whether a user is a member, taking the judgment condition about the user consumption amount as a second judgment condition, taking the historical consumption amount of the user as a third judgment condition, so that the rule engine judges that the user is a member according to the judgment condition, then judging the judgment condition about the user consumption amount, then judging according to the judgment condition about the historical consumption amount of the user, generating the judgment results of the second judgment condition and the third judgment condition, so that the rule engine performs logical operation on the judgment results, and calculates the final judgment result of the user (the judgment condition information) and feeds the final judgment result back to the decision execution system.
Step S13, when the decision result indicates that the decision condition information satisfies the corresponding preset condition, the corresponding decision execution system triggers execution of the action response instruction corresponding to the decision condition information, and accordingly changes an attribute maintained by the decision execution system in the personal account information of the user:
and after the decision execution system submits the judgment condition information to the rule engine and receives the judgment result fed back by the rule engine, the action response instruction is executed according to the preset condition which is determined to be met by the judgment condition information according to the judgment result, and then a certain attribute in the personal account information of the user to which the condition judgment request belongs is changed and maintained.
The action response instruction is used for the decision execution system to execute modification maintenance of a certain attribute in the personal account information of the corresponding user according to the decision result received by the decision execution system from the rule engine, for example, when the decision execution system is used for modifying and maintaining the member points of the user, and when the decision result indicates that the decision execution system meets the preset condition that the user is a member and meets the consumption amount set in the preset condition, the decision execution system executes the action response instruction according to the decision result to modify and maintain the member points of the user in the personal account information of the user.
The personal account information refers to a user personal information database related to various attributes of the user, such as rights, levels, virtual currency, and the like, set by various internet platforms, and for example, the personal account information set by the e-commerce platform generally includes a member level attribute, a member identity attribute, a member point attribute, a rights (e-discount volume) attribute, and the like of the user. Those skilled in the art can design the personal account information according to the actual service scene, which is not repeated.
In one embodiment, when the action response instruction of the decision execution system is used to change multiple attributes in the personal account information of the user, and the decision execution system receives the decision result that meets one or more preset conditions, it modifies one or more corresponding attributes in the personal account information according to the decision result.
In one embodiment, the decision execution system only needs to modify and maintain one or more specific attributes in the personal account information of the user, for example, when the decision execution system loads the member points of the user, the decision execution system can maintain and modify the attributes related to the member points and other attributes associated with the attributes in the personal account information of the user. Through the logic, each decision execution system can perform its own function, so that a centralized personal account information maintenance service is constructed, and the maintenance work of each decision execution system is facilitated. The setting of the attribute in the personal account information for maintenance and modification in charge of each decision execution system can be flexibly designed by those skilled in the art, and details are not repeated.
In a further embodiment, referring to fig. 3, the specific implementation steps of each decision execution system executing the action response instruction according to the decision result to modify and maintain a certain attribute in the personal account information of the user are as follows:
step S131, one of the decision execution systems changes the first attribute in the personal account information of the user in response to the corresponding action response instruction, so as to implement the member level change of the user:
when the decision execution system loads the first attribute in the personal account information of the user about the change of the member level, and the decision result meets the preset condition corresponding to the first attribute, the decision execution system modifies the change of the first attribute in the personal account information of the user according to the decision result, for example, when the user represented by the decision result received by the decision execution system meets the preset condition of member level upgrade 2, the member level of the attribute (first attribute) representing the member level in the personal account information of the user is changed, so as to realize the change of the member level of the user.
Step S132, the other decision execution system changes the second attribute in the personal account information of the user in response to the corresponding action response instruction, so as to implement the change of the membership identity of the user:
when the change of the member identity in the personal account information of the user loaded by the decision execution system is the second attribute and the judgment result meets the preset condition corresponding to the second attribute, the decision execution system modifies the change of the second attribute in the personal account information of the user according to the judgment result, for example, when the user represented by the judgment result received by the decision execution system meets the preset condition of upgrading the member identity to a platinum member, the member identity representing the attribute of the member identity (second attribute) in the personal account information of the user is changed to the platinum member, so as to realize the change of the member identity of the user.
Referring to fig. 4, in a centralized rule engine service control method of the present application, an application installed and running on a server is responsible for executing a program to construct a middle station service of the present application, which is open to external calls, and in an exemplary embodiment, the method includes the following steps:
step S21, the rule engine concurrently responds to the decision requests submitted by the multiple decision execution systems, and obtains, for each decision request, decision condition information therein:
the rule engine has a service for concurrently responding to the decision requests sent by the decision execution systems, and when the rule engine concurrently receives the decision requests submitted by the decision execution systems, the rule engine acquires the decision condition information of each request for each decision execution system, calls the corresponding preset rule according to each decision execution system, and then concurrently executes the decision on each decision condition information.
Step S22, the rule engine calls, for the decision condition information submitted by each decision execution system, a preset rule associated with the decision execution system to decide the decision, and returns the decision result to the corresponding decision execution system, where the decision condition information submitted by two decision execution systems contains the same decision condition, and for the same decision condition, the same preset rule applies:
the rule engine calls the preset rules associated with each decision execution system for the decision condition information of each decision execution system condition, and judges the decision conditions contained in each decision condition information according to the corresponding preset rules, so that the judgment results of each decision condition information are generated and fed back to the corresponding decision execution system.
When the rule engine receives that the types of the decision conditions contained in the decision condition information submitted by two or more decision execution systems are the same, the preset rule applicable to the decision condition is called for the decision condition of the system, for example, when the types of the same decision conditions are all the user expense amounts, the rule engine calls the preset rule related to the expense amount to judge the two or more decision conditions, and the specific expense amount is judged by the rule engine according to the expense amount preset by the decision execution system to which the decision condition belongs.
In one embodiment, when the decision condition information submitted by the decision execution system received by the rule engine includes a plurality of decision conditions, the rule engine arranges the decision conditions according to default rules so as to perform decision conditions on the decision conditions in sequence, and finally performs logical operation on each decision result, and outputs the logical operation result as a final decision result. For a specific implementation, reference may be made to the description in step S12, which is not repeated herein.
In another embodiment, the rule engine may receive a preset rule description set from a manager, where the rule description set includes preset rules of each type and mapping tags of the decision execution systems associated with the preset rules for characterizing each type, so that the rule engine updates or adds the stored preset rules according to the preset rule description set, thereby implementing extensible services of the rule engine.
Further, a centralized rule engine service invoking device of the present application can be constructed by functionalizing the steps in the methods disclosed in the above embodiments, and according to this idea, please refer to fig. 5, wherein in an exemplary embodiment, the device includes: a request receiving unit 11, an information submitting unit 12 and an attribute maintaining unit 13. The request receiving unit 11 is configured to receive condition decision requests associated with the same user by one or more decision execution systems, and separate decision condition information and action response instructions triggered correspondingly when the decision condition information meets a preset condition from the decision requests; an information submitting unit 12, configured to submit the decision condition information to a rule engine for condition decision by one or more decision executing systems, so that the rule engine invokes a preset rule associated with a corresponding decision executing system to make a decision on the decision condition information and returns a corresponding decision result; and an attribute maintenance unit 13, configured to, when the decision result indicates that the decision condition information satisfies the corresponding preset condition, trigger, by the corresponding decision execution system, execution of an action response instruction corresponding to the decision condition information, and correspondingly change an attribute maintained by the decision execution system in the personal account information of the user.
In one embodiment, the attribute maintenance unit 13 includes: the system comprises a level change unit, a level change unit and a control unit, wherein the level change unit is used for changing a first attribute in the personal account information of the user by one decision execution system in response to a corresponding action response instruction of the decision execution system so as to realize member level change of the user; and the identity change unit is used for changing a second attribute in the personal account information of the user by another decision execution system in response to the corresponding action response instruction so as to realize the change of the membership identity of the user.
Further, a centralized rules engine service control apparatus of the present application can be constructed by functionalizing the steps in the methods disclosed in the above embodiments, and according to this idea, please refer to fig. 6, wherein in an exemplary embodiment, the apparatus includes a request response unit 21 and an information decision unit 22. The request response unit 21 is configured to enable the rule engine to concurrently respond to decision requests submitted by multiple decision execution systems, and acquire decision condition information in each decision request; and an information decision unit 22, configured to invoke, by the rule engine, a preset rule associated with the decision execution system to which the decision execution system belongs to the decision condition information submitted by each decision execution system to decide the decision, and return a decision result to the corresponding decision execution system, where the decision condition information submitted by two decision execution systems includes the same decision condition, and the same preset rule is applied to the same decision condition.
In order to solve the foregoing technical problem, an embodiment of the present application further provides a computer device, configured to run a computer program implemented according to the centralized rule engine service invoking method or the centralized rule engine control method. Referring to fig. 7, fig. 7 is a block diagram of a basic structure of a computer device according to the present embodiment.
Fig. 7 is a schematic diagram of the internal structure of the computer device. The computer device includes a processor, a non-volatile storage medium, a memory, and a network interface connected by a system bus. The non-volatile storage medium of the computer device stores an operating system, a database and computer readable instructions, the database can store control information sequences, and the computer readable instructions when executed by the processor can enable the processor to implement a centralized rule engine service calling method or a centralized rule engine control method. The processor of the computer device is used for providing calculation and control capability and supporting the operation of the whole computer device. The memory of the computer device may have stored therein computer readable instructions that, when executed by the processor, may cause the processor to execute a centralized rules engine service invocation method or a centralized rules engine control method. The network interface of the computer device is used for connecting and communicating with the terminal. Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In this embodiment, the processor is configured to execute specific functions of each module/sub-module in the centralized rule engine service invoking device or the centralized rule engine control device according to the present invention, and the memory stores program codes and various data required for executing the modules. The network interface is used for data transmission to and from a user terminal or a server. The memory in this embodiment stores program codes and data necessary for executing all modules/submodules in the centralized rule engine service invocation device or the centralized rule engine control device, and the server can invoke the program codes and data of the server to execute the functions of all the submodules.
The present application also provides a non-volatile storage medium, in which the centralized rule engine service invocation method or the centralized rule engine control method is written as a computer program, and the computer program is stored in the storage medium in the form of computer readable instructions, and when executed by one or more processors, the computer readable instructions mean the execution of the program in a computer, thereby causing the one or more processors to execute the steps of the centralized rule engine service invocation method or the centralized rule engine control method according to any one of the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
In summary, the present application constructs a centralized rule processing architecture, which is suitable for the user personal information maintenance service of various internet platforms, and realizes the multiplexing of various types of rules and conditions through the centralized design, thereby improving the development efficiency of developing various types of rules and reducing the maintenance cost of various types of rules.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
Those of skill in the art will appreciate that the various operations, methods, steps in the processes, acts, or solutions discussed in this application can be interchanged, modified, combined, or eliminated. Further, other steps, measures, or schemes in various operations, methods, or flows that have been discussed in this application can be alternated, altered, rearranged, broken down, combined, or deleted. Further, steps, measures, schemes in the prior art having various operations, methods, procedures disclosed in the present application may also be alternated, modified, rearranged, decomposed, combined, or deleted.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.

Claims (10)

1. A centralized rule engine service calling method is characterized by comprising the following steps:
one or more decision execution systems respectively receive condition decision requests related to the same user, and separate decision condition information and action response instructions correspondingly triggered when the decision condition information meets preset conditions from the decision requests;
one or more decision execution systems submit the decision condition information to a rule engine for condition decision, so that the rule engine calls a preset rule associated with the corresponding decision execution system to decide the decision condition information and then returns a corresponding decision result;
when the judgment result represents that the judgment condition information meets the corresponding preset condition, the corresponding decision execution system triggers the execution of the action response instruction corresponding to the judgment condition information, and correspondingly changes one attribute maintained by the decision execution system in the personal account information of the user.
2. The method according to claim 1, wherein in the step of making the rule engine call a preset rule associated with the corresponding decision execution system to decide the decision condition information and return the decision result, the decision condition information submitted by the one or more decision execution systems contains the same decision condition, so that when the rule engine calls the preset rule associated with the corresponding decision execution system, the preset rules of the same type are respectively called.
3. The method according to claim 1, wherein in the step of making the rule engine call a preset rule associated with a corresponding decision execution system to decide the decision condition information and return the decided decision result, each submitted decision condition information contains a plurality of decision conditions, which are submitted to the rule engine to cause the rule engine to arrange the decision conditions according to a default rule, to make decision-by-decision of the decision conditions according to the arranged sequence, to finally perform logical operation on each decision result, and to output the logical operation result as the final decision result.
4. The method according to any one of claims 1 to 3, wherein the step of changing an attribute of the user's personal account information maintained by the decision execution system accordingly comprises:
one decision execution system responds to the corresponding action response instruction to change a first attribute in the personal account information of the user so as to realize the member grade change of the user;
and the other decision execution system responds to the corresponding action response instruction thereof to change the second attribute in the personal account information of the user so as to realize the change of the membership identity of the user.
5. A centralized rule engine service control method is characterized by comprising the following steps:
the rule engine responds to decision requests submitted by a plurality of decision execution systems concurrently and obtains decision condition information aiming at each decision request;
the rule engine calls a preset rule associated with the decision execution system to judge the decision according to the decision condition information submitted by each decision execution system, and returns a judgment result to the corresponding decision execution system, wherein the judgment condition information submitted by the two decision execution systems contains the same judgment condition, and the same preset rule is applied according to the same judgment condition.
6. The method according to claim 5, wherein in the step of the rule engine calling the preset rule associated with the decision execution system to decide the decision information submitted by each decision execution system, the decision information submitted by one decision execution system contains a plurality of decision conditions, the rule engine arranges the decision information according to the default rule, decides the decision conditions one by one according to the arranged sequence, finally performs the logical operation on the decision results, and outputs the logical operation result as the final decision result.
7. A centralized rules engine service invocation mechanism, comprising:
a request receiving unit, configured to receive condition decision requests associated with the same user by one or more decision execution systems, respectively, and separate decision condition information and action response instructions triggered correspondingly when the decision condition information satisfies a preset condition from the decision requests;
the information submitting unit is used for submitting the judgment condition information to a rule engine by one or more decision executing systems for condition judgment, so that the rule engine calls a preset rule associated with the corresponding decision executing system to judge the judgment condition information and returns a corresponding judgment result;
and the attribute maintenance unit is used for triggering the execution of the action response instruction corresponding to the judgment condition information by the corresponding decision execution system when the judgment result represents that the judgment condition information meets the corresponding preset condition, and correspondingly changing one attribute maintained by the decision execution system in the personal account information of the user.
8. A centralized rules engine service control apparatus, comprising:
the request response unit is used for the rule engine to concurrently respond to the judgment requests submitted by the decision execution systems and acquire judgment condition information aiming at each judgment request;
and the information judgment unit is used for calling a preset rule associated with the decision execution system to judge the decision by the rule engine according to the judgment condition information submitted by each decision execution system and returning a judgment result to the corresponding decision execution system, wherein the judgment condition information submitted by the two decision execution systems contains the same judgment condition, and the same preset rule is applied according to the same judgment condition.
9. An electronic device comprising a central processor and a memory, characterized in that the central processor is configured to invoke execution of a computer program stored in the memory to perform the steps of the method according to any one of claims 1 to 6.
10. A non-volatile storage medium, characterized in that it stores, in the form of computer-readable instructions, a computer program implemented according to the method of any one of claims 1 to 6, which, when invoked by a computer, performs the steps comprised by the method.
CN202110092861.7A 2021-01-25 2021-01-25 Centralized rule engine service calling and controlling method, device, equipment and medium Pending CN112860742A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110092861.7A CN112860742A (en) 2021-01-25 2021-01-25 Centralized rule engine service calling and controlling method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110092861.7A CN112860742A (en) 2021-01-25 2021-01-25 Centralized rule engine service calling and controlling method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN112860742A true CN112860742A (en) 2021-05-28

Family

ID=76008232

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110092861.7A Pending CN112860742A (en) 2021-01-25 2021-01-25 Centralized rule engine service calling and controlling method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112860742A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113760267A (en) * 2021-11-09 2021-12-07 深圳市明源云科技有限公司 Conditional rule multiplexing method based on interactive rule engine

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109146662A (en) * 2018-07-16 2019-01-04 蜜小蜂智慧(北京)科技有限公司 A kind of risk control method and device
CN110941419A (en) * 2019-11-27 2020-03-31 北京天元创新科技有限公司 Operation configuration implementation method and system based on rule engine
CN111260389A (en) * 2019-01-17 2020-06-09 青岛特锐德电气股份有限公司 Multi-tenant configurable member behavior service system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109146662A (en) * 2018-07-16 2019-01-04 蜜小蜂智慧(北京)科技有限公司 A kind of risk control method and device
CN111260389A (en) * 2019-01-17 2020-06-09 青岛特锐德电气股份有限公司 Multi-tenant configurable member behavior service system
CN110941419A (en) * 2019-11-27 2020-03-31 北京天元创新科技有限公司 Operation configuration implementation method and system based on rule engine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113760267A (en) * 2021-11-09 2021-12-07 深圳市明源云科技有限公司 Conditional rule multiplexing method based on interactive rule engine

Similar Documents

Publication Publication Date Title
US20040230670A1 (en) Method and system for representing, configuring and deploying distributed applications
CN112579319B (en) Service calling method and device based on LRU Cache optimization
CN112787999B (en) Cross-chain calling method, device, system and computer readable storage medium
KR20110044210A (en) Method, apparatus and computer program product for providing context triggered distribution of context models
CN114610474A (en) Multi-strategy job scheduling method and system in heterogeneous supercomputing environment
CN113691511B (en) Service request processing method and device, equipment and medium thereof
CN112860742A (en) Centralized rule engine service calling and controlling method, device, equipment and medium
CN113204368B (en) Application processing method, server and storage medium
CN111813529B (en) Data processing method, device, electronic equipment and storage medium
CN1472911A (en) Wireless facility synchronizing system and method
US9323509B2 (en) Method and system for automated process distribution
CN109408212B (en) Task scheduling component construction method and device, storage medium and server
CN114647702A (en) Data synchronous processing method and device, equipment and medium thereof
CN114661726A (en) Data type mapping processing method and device, equipment, medium and product thereof
CN112862500A (en) Dynamic assembling method for user interest processor, device, equipment and medium thereof
CN113992509B (en) SDN network service configuration issuing method, device and storage medium
CN112565340B (en) Service scheduling method, device, computer system and medium for distributed application
CN114969067A (en) Commodity redundant data updating method and device, equipment and medium thereof
WO2021179343A1 (en) Chatbot system with model lifecycle management
CN114064311A (en) Message agent transmission control method and device, equipment, medium and product thereof
CN112883300B (en) Function label customizing method and device, equipment and medium thereof
CN112819519A (en) Member rule batch processing method and device, equipment and medium thereof
CN112767020A (en) Intermediate component condition matching execution method and device, equipment and medium thereof
CN116302450B (en) Batch processing method and device for tasks, computer equipment and storage medium
CN112804329A (en) Message relay and interaction method, and corresponding device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination