Method and device for configuring business rule strategy, storage medium and electronic equipment

By parsing and generating business operation activity configuration templates, editing and generating business rule policies, it solves the high cost and inefficiency problems of developing customized rule interfaces in complex business operation activities, realizes flexible configuration and rapid update of business rules, and improves efficiency. Operational efficiency.

CN118780258APending Publication Date: 2024-10-15JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410736926.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In complex business operation activity scenarios, existing technology requires the development of customized business rule interfaces for each business operation activity to be carried out, resulting in high development costs, long development time, low efficiency, and the need to readjust when business rules change. and writing rules, increasing development and testing resources and costs.

Method used

By parsing business operation activity configuration requests, obtain business operation activity identifiers, query pre-built databases, display or obtain similar business operation activity configuration templates, edit business rules and logic, generate business rule policies, and use configuration methods to implement business rule settings. and verification, reducing development complexity and cost.

Benefits of technology

It effectively reduces the development time and cost of business operation activities, improves development efficiency, supports flexible configuration and rapid update of business rules, and improves the efficiency and scalability of business operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780258A_ABST
    Figure CN118780258A_ABST
Patent Text Reader

Abstract

The invention relates to a method and device for configuring a service rule strategy, a storage medium and electronic equipment, and the method for configuring the service rule strategy comprises the steps: analyzing a received service operation activity configuration request, and obtaining a service operation activity identifier; querying a pre-constructed database; if the business operation activity configuration template corresponding to the business operation activity identifier exists, displaying the business operation activity configuration template on an editable display interface; if not, obtaining a service operation activity configuration template most similar to the service operation activity identifier from the database, and displaying the service operation activity configuration template on a display interface; and generating a business rule strategy according to business rules edited in the business operation activity configuration template and business logic among the business rules. The development efficiency of business operation activities can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet data configuration, and in particular to a method, device, storage medium and electronic device for configuring a business rule strategy. Background Art

[0002] In business operation activities, developers need to develop real-time business rule interfaces for front-end and back-end interaction for different operation stages of different business scenarios, so as to perform business rule verification on users who submit business rule verification requests in the operation stage. For example, in business marketing activities, after the user completes the marketing business push or purchases the marketing business, the business reward interface can be used to call the corresponding business reward rules for the user who submits the reward acquisition request, and the business reward rule verification can be performed on the user, that is, to determine which level of business reward rules the user meets, so as to determine the business reward amount based on the business reward rules of the determined level. However, due to the different time nodes of business operation activities, this method will have different business rules at different stages, corresponding to different business rule interfaces. Therefore, in more complex business operation activity scenarios, it is necessary to develop corresponding business rule interfaces for each business operation activity to be carried out, which has a high development cost, resulting in a long development time and low development efficiency for implementing business operation activities. Summary of the invention

[0003] In view of this, the present invention provides a method, device, storage medium and electronic device for configuring a business rule policy.

[0004] Specifically, the present invention is achieved through the following technical solutions:

[0005] According to a first aspect of the present invention, a method for configuring a business rule policy is provided, the method for configuring a business rule policy comprising:

[0006] Parse the received business operation activity configuration request and obtain the business operation activity identifier;

[0007] Query pre-built databases;

[0008] If there is a business operation activity configuration template corresponding to the business operation activity identifier, display the business operation activity configuration template on the editable display interface;

[0009] If it does not exist, obtain the business operation activity configuration template that is most similar to the business operation activity identifier from the database and display it on the display interface;

[0010] A business rule policy is generated based on the business rules edited in the business operation activity configuration template and the business logic between the business rules.

[0011] Optionally, the method further comprises:

[0012] A business rule verification request is received, a business rule policy of a business operation activity corresponding to the business rule verification request is called, and the business rule verification request is verified, so as to execute an operation corresponding to the business rule verification request after the verification of the business rule verification request passes.

[0013] Optionally, generating a business rule strategy based on the business rules edited in the business operation activity configuration template and the business logic between the business rules includes:

[0014] Based on a pre-set generalized calling method, traverse each business rule in the business operation activity configuration template, preload the traversed business rules in the business operation activity configuration interface of the business marketing platform, and preload the business logic corresponding to each business rule based on the pre-loaded business rules;

[0015] Based on the target business rule selected by the user, a generalized calling method interface of the target business rule is displayed;

[0016] Determine that the user has finished editing each target business rule, and load the business logic corresponding to each target business rule;

[0017] It is determined that the user has completed editing the business logic, and based on the edited target business rules and business logic, a business rule strategy for the business operation activity is generated.

[0018] Optionally, the method further comprises:

[0019] A policy number is configured for the business rule policy corresponding to each business operation activity, and a mapping relationship between business operation activities, business rule policies, and policy numbers is constructed and stored in the database of the business marketing platform.

[0020] Optionally, calling a business rule policy of a business operation activity corresponding to the business rule verification request to verify the business rule verification request includes:

[0021] According to the policy number and the target business operation activity carried in the business rule verification request, query the database of the business marketing platform to obtain the target business rule policy that matches the policy number and the target business operation activity;

[0022] Traversing each business rule of the target business rule policy, and obtaining a business rule value corresponding to the business rule based on the business rule verification request;

[0023] The business rule value corresponding to each business rule is verified according to the business rule condition corresponding to the business rule in the target business rule policy and the business logic of each business rule.

[0024] Optionally, the business rules are set in a microservice manner, and each microservice corresponds to a business rule.

[0025] Optionally, the business logic includes: OR, AND, NOT, XOR, XNOR, NAND, and NOR.

[0026] The method for configuring business rule strategies in the present technical solution obtains the business operation activity identifier by parsing the received business operation activity configuration request; queries the pre-built database; if there is a business operation activity configuration template corresponding to the business operation activity identifier, the business operation activity configuration template is displayed on the editable display interface; if not, the business operation activity configuration template most similar to the business operation activity identifier is obtained from the database and displayed on the display interface; based on the business rules edited in the business operation activity configuration template and the business logic between the business rules, a business rule strategy is generated. In this way, by editing the business rules and the business logic between the business rules in the business operation activity configuration template and generating a business rule strategy, the development time required for business operation activities can be effectively reduced and development efficiency can be improved through configuration-based editing.

[0027] According to a second aspect of the present invention, there is provided a device for configuring a business rule policy, the device for configuring a business rule policy comprising:

[0028] A request parsing module, used to parse the received business operation activity configuration request and obtain the business operation activity identifier;

[0029] A template acquisition module is used to query a pre-built database; if a business operation activity configuration template corresponding to the business operation activity identifier exists, the business operation activity configuration template is displayed on an editable display interface; if not, the business operation activity configuration template most similar to the business operation activity identifier is obtained from the database and displayed on the display interface;

[0030] A policy generation module, used to generate a business rule policy based on the business rules edited in the business operation activity configuration template and the business logic between the business rules;

[0031] The rule verification module is used to receive a business rule verification request, call the business rule policy of the business operation activity corresponding to the business rule verification request, verify the business rule verification request, and execute the operation corresponding to the business rule verification request after the verification of the business rule verification request passes.

[0032] According to a third aspect of the present invention, there is provided a storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for configuring a business rule policy in any possible implementation of the first aspect.

[0033] According to a fourth aspect of the present invention, there is provided an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method for configuring a business rule policy in any possible implementation of the first aspect are implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0036] Figure 1 A flowchart of a method for configuring a business rule strategy provided by an embodiment of the present invention;

[0037] Figure 2 A schematic diagram of a business operation activity configuration interface in a method for configuring a business rule policy provided by an embodiment of the present invention;

[0038] Figure 3 A schematic diagram of an interface for generating a business rule policy in a method for configuring a business rule policy provided by an embodiment of the present invention;

[0039] Figure 4 A schematic diagram of a device for configuring a business rule strategy provided by an embodiment of the present invention;

[0040] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] In the related technologies, for the same business operation activity, since business operation activities at different time nodes have different business rules at different operation stages, and each business rule corresponds to different business rewards, in a more complex business operation activity scenario, it is necessary to develop a corresponding customized business rule interface for each business operation activity to be carried out, and the development cost is high, resulting in low efficiency in achieving business operations. Furthermore, since business rules at different time nodes change, it is also necessary to readjust and rewrite the business rules, and develop, test and deploy them online based on the adjusted business rules. Not only do the resources required for development and testing increase, and the development and online costs are high, resulting in high business operation costs, but also low efficiency in business changes.

[0043] In this embodiment, by providing a general business marketing platform, the business rules in each server are collected to form a business rule interface. Through the business rule interface, the corresponding business rules in the server are called for verification, and the business rules of each business operation activity are configured in a configured manner to realize the development of the business rule interface of the business operation activity, so as to reduce business operation costs and improve business operation efficiency.

[0044] See also Figure 1 The embodiment of the present invention provides a method for configuring a business rule policy, which may include the following steps:

[0045] S101, parsing the received business operation activity configuration request, obtaining the business operation activity identifier; querying a pre-built database;

[0046] In this embodiment, as an optional embodiment, the business operation activity identifier includes but is not limited to: a business operation activity name, a business operation activity alias, and a business operation activity identifier character string.

[0047] S102: If a business operation activity configuration template corresponding to the business operation activity identifier exists, display the business operation activity configuration template on an editable display interface; if not, obtain a business operation activity configuration template most similar to the business operation activity identifier from the database and display it on the display interface;

[0048] In this embodiment, a business operation activity configuration request submitted by a user is received, the received business operation activity configuration request is parsed, a business operation activity identifier is obtained, and a business operation activity configuration template corresponding to the business operation activity configuration request is displayed according to the obtained business operation activity identifier.

[0049] In this embodiment, business operation activities at different time nodes or different operation stages of business operation activities contain many identical business rules. Therefore, in this embodiment, business rules in each server are collected and encapsulated to form a business rule interface, so that one business rule corresponds to one business rule interface. According to the business rules and business logic required by each business operation activity, each business rule interface is combined to form a business operation activity configuration template for the business operation activity, which is stored in the database of the business marketing platform. In this way, when it is necessary to configure a business operation activity, the corresponding business rule interface can be obtained from the database to set the business logic, thereby eliminating the need to develop a business rule interface for each business operation activity. When it is necessary to verify the business rules of the user, the corresponding business rules of the server are called through the business rule interface according to the business logic setting to verify the user.

[0050] In this embodiment, as an optional embodiment, a corresponding business operation activity configuration template may be pre-configured for the business operation activity based on the constructed database, so that the configuration efficiency may be improved when configuring the business operation activity.

[0051] In this embodiment, some business operation activity configuration templates are pre-configured in the database. In the business operation activity configuration templates, various business rules are configured. Each business rule corresponds to a business rule interface, and the business logic between the business rules. By calling the business operation activity configuration template, users can quickly set business rules.

[0052] In this embodiment, when a business operation activity needs to be configured, a request is made to the business marketing platform to construct a business rule policy corresponding to the business operation activity. As an optional embodiment, the user submits a business operation activity configuration request to the rule engine processing module through the gateway module, wherein the gateway module is used to receive the business operation activity configuration request initiated by the front-end user and transmit the received business operation activity configuration request to the rule engine processing module.

[0053] In this embodiment, the rule engine processing module displays a business operation activity configuration template based on the received business operation activity configuration request, so that the user can configure the business rules.

[0054] In this embodiment, the rule engine is a software system that can automatically execute a set of business rules to process data, events or other information. As an optional embodiment, the rule engine implements data processing for business operations through a combination of conditions and operations. For example, when a request submitted by a user meets a business rule condition, the rule engine will execute the operation specified for the business rule condition.

[0055] In this embodiment, as an optional embodiment, the business operation activity configuration request includes but is not limited to: Hypertext Transfer Protocol (HTTP) request, Hypertext Transfer Protocol over Secure Socket Layer (HTTPS) request, File Transfer Protocol (FTP) request, and Real-time Transfer Protocol (RTP) request.

[0056] In this embodiment, as an optional embodiment, the business marketing platform adopts a microservice architecture, which is composed of multiple microservices. Each microservice can be independently deployed and upgraded, and each microservice corresponds to a business rule interface. Each microservice forms a business rule strategy for business operation activities through combination (business logic). By adopting a microservice architecture, each microservice is independently deployed and upgraded, which can improve the stability, portability and reliability of the business marketing platform.

[0057] S103: Generate a business rule policy according to the business rules edited in the business operation activity configuration template and the business logic between the business rules.

[0058] In this embodiment, by editing each displayed business rule in the displayed business operation activity configuration template, the business rules required for the business operation activity and the associations between the business rules are obtained, and the business rules and the associations between the business rules are encapsulated to obtain the business rule strategy for the business operation activity.

[0059] In this embodiment, as an optional embodiment, the correlation between business rules, i.e., business logic, includes but is not limited to: or, and, not, xor, xor, and not, and not, etc. Based on the set business rules and the correlation between business rules, a business rule strategy for the business operation activity is formed, so that after the business operation activity is carried out, the business rule strategy is used to parse the business rule verification request initiated by the front-end user, and the parsing result is obtained, so that the business processing module performs corresponding operations according to the parsing result. For example, issuing business rewards.

[0060] In the embodiment of the present invention, the service reward refers to a reward issued to a user under certain conditions, including but not limited to: points, coupons, shopping vouchers, red envelopes, etc.

[0061] In this embodiment, as an optional embodiment, the business operation activity configuration interface of the business marketing platform is used to display the business operation activity configuration template, wherein the business operation activity configuration template is provided with a business rule configuration column for configuring business rules and the association between business rules to generate a business rule strategy (business rule engine) to implement the business logic setting of the business rules.

[0062] In this embodiment, as an optional embodiment, a business rule policy is generated according to the business rules edited in the business operation activity configuration template and the business logic between the business rules, including:

[0063] B11, based on the pre-set generalized calling method, traverse each business rule in the business operation activity configuration template, preload the traversed business rules in the business operation activity configuration interface of the business marketing platform, and preload the business logic corresponding to each business rule based on the pre-loaded business rules;

[0064] B12, based on the target business rule selected by the user, displaying the generalized calling method interface of the target business rule;

[0065] B13, determining that the user has finished editing each target business rule, and loading the business logic corresponding to each target business rule;

[0066] B14, determining that the user has completed editing the business logic, and generating a business rule strategy for the business operation activity based on the edited target business rules and business logic.

[0067] In this embodiment, as an optional embodiment, the business rule engine, that is, the business rule strategy, is configured using the business rule interface or the generalized calling method of the business rule. The generalized calling method implements the call by specifying the interface type, method name, parameter type, parameter value, etc. in a configured manner. The business marketing platform provides a visual business operation activity configuration interface, making the business rule configuration operation simpler and easier to understand, and lowering the threshold for use.

[0068] Figure 2 A schematic diagram of a business operation activity configuration interface in a method for configuring a business rule strategy provided by an embodiment of the present invention. Figure 2 As shown, in this embodiment, as an optional embodiment, the business rule parameters in the business rule configuration column of the business operation activity configuration interface include but are not limited to: business rule environment, business rule interface type, business rule request parameters, business rule class name, business rule method name, business rule parameters, input parameter template, output parameter template, business rule interface alias, and business rule interface timeout. Among them,

[0069] Business rule environments include but are not limited to: online and offline;

[0070] Business rule interface types include but are not limited to: configuration-based implementation and non-configuration-based implementation;

[0071] Business rule request parameters include but are not limited to: parameter name, parameter type, whether it is a constant, constant value, parameter value path, and operation, where operations include but are not limited to: add, modify, and delete;

[0072] Business rule class name, which is the class name set for the business rule. For example, it can be set to: com.jd.cf.timely.group.api.service.RealTimeGroupService.

[0073] Business rule method name, which is the method name set for the business rule. For example, it can be set to: hitTargetGroupNormal.

[0074] Business rule parameters (Parameter), which can be input by the user;

[0075] Input parameter template, set the template to be called, for example, it can be set to:

[0076] [{"classname"."com.jd.cf.timely.group.api.beans.request.HitTargetGroupN normalRequest"."Value".{"class"."com.jd.cf.timely.group.api.beans.request.Hit TargetGroupNormalRequest"."source"."marketing_rule"."group"."fd-0001"."pin"."$jdPin$"}}].

[0077] The output parameter template can be set to: {"code"."errorCode"."result"."response.hitResult"."expression"."code!="000000"?"-1":result="1"?"1":result=="0"?"0":"-1""}.

[0078] Business rule interface alias, for example, can be set to: prod;

[0079] The business rule interface timeout period, for example, can be set to: 50.

[0080] In this embodiment, for each business rule, after the above-mentioned configuration settings are performed, a configured implementation of the business rule interface is obtained. As an optional embodiment, a business rule table is constructed based on the configured business rules. In the business rule table, an interface id is configured for each business rule interface. The business rule interface in the business rule table is represented by the interface id, business rule interface type and business rule class name.

[0081] In this embodiment, after the business rule table is constructed, that is, after the user has finished editing the target business rules required for the business operation activities, a business rule policy for the business rule table is constructed based on the preloaded business logics and the business rules (business rule interfaces) in the business rule table. In the business rule policy, the business logic is configured for each business rule interface, that is, a rule group is set. For example, for a business rule policy containing two business rules, the business logic between the two business rules is configured to be or, and for each business rule, the conditions for the effectiveness of the business rule are configured. Taking the policy name of a business rule policy as plus member as an example, the business rule policy contains two business rules, namely the first user attribute and the second user attribute, wherein the business logic between the first user attribute and the second user attribute is or, the first user attribute is plus member, and the configured effective business rule condition is: equal; the second user attribute is the fund wealth voucher fee upper limit rule, and the configured effective business rule condition is: equal.

[0082] In this embodiment, the generated business rule interface is registered to the business marketing platform in a configuration manner, one or more business rule interfaces are associated with the business logic in a page manner, and the business rule strategy (business rule engine) is generated using the business logic, and a unique strategy number is set for each business rule strategy to identify the business rule strategy. In this way, the definition of business rules, message templates, etc. is realized through a configuration-based development method, and non-coding software functions are realized, making the business marketing platform highly scalable and flexible.

[0083] In this embodiment, as an optional embodiment, the method further includes:

[0084] A policy number is configured for the business rule policy corresponding to each business operation activity, and a mapping relationship between business operation activities, business rule policies, and policy numbers is constructed and stored in the database of the business marketing platform.

[0085] In this embodiment, the business operation activity is configured in the business operation activity configuration interface, the required business rules are selected, the business logic between the business rules is configured, and the business rule policy is generated. Among them, one business operation activity corresponds to one business rule policy, and a unique activity number (policy number) is generated for each business operation activity to identify the business rule policy or business operation activity.

[0086] Figure 3 A schematic diagram of an interface for generating a business rule strategy in a method for configuring a business rule strategy provided by an embodiment of the present invention. Figure 3 As shown, in this embodiment, a business marketing activity is obtained from a business rule verification request, and the activity name is entered in the editable interface. For example, in the basic information field, the activity name is entered: Fund Channel-Confirm Award Activity, and the activity number is set to: 57230403102649000004, and the status is online; a business rule policy is generated, including: policy group number, return text for verification failure, group entry verification, etc.; in the subsequent action field, the action is set to real-time awarding, the prize type is financial management gold, the awarding information is obtained by manual input or policy platform configuration, and the awarding activity id is: 9230404013705663944.

[0087] In this embodiment, the business rule policies corresponding to each business operation activity can be pre-configured in the database. When a user makes a request, the business rule policies corresponding to the requested business operation activity are displayed in an editable interface. If the user needs to modify it, he can make corresponding edits in the editable interface. After the editing is completed, a new policy number can be set.

[0088] In this embodiment, as an optional embodiment, the method further includes:

[0089] A business rule verification request is received, a business rule policy of a business operation activity corresponding to the business rule verification request is called, and the business rule verification request is verified, so as to execute an operation corresponding to the business rule verification request after the verification of the business rule verification request passes.

[0090] In this embodiment, as an optional embodiment, when a business rule verification request is received from a front-end user, the business rule policy related to the policy number is obtained by polling the database of the business marketing platform based on the policy number carried in the business rule verification request, thereby achieving precise positioning.

[0091] In this embodiment, the user performs operations in the displayed business operation activities, and when the business rule verification is triggered, for example, after purchasing goods or pushing business operation activities, when redeeming based on the points obtained, a business rule verification request is initiated.

[0092] In this embodiment, as an optional embodiment, calling the business rule policy of the business operation activity corresponding to the business rule verification request to verify the business rule verification request includes:

[0093] According to the policy number and the target business operation activity carried in the business rule verification request, query the database of the business marketing platform to obtain the target business rule policy that matches the policy number and the target business operation activity;

[0094] Traversing each business rule of the target business rule policy, and obtaining a business rule value corresponding to the business rule based on the business rule verification request;

[0095] The business rule value corresponding to each business rule is verified according to the business rule condition corresponding to the business rule in the target business rule policy and the business logic of each business rule.

[0096] In this embodiment, as an optional embodiment, take the target business rule strategy including 3 business rules as an example, namely real-name rule, risk control rule and asset rule, wherein the business rule condition corresponding to the real-name rule is passing the real-name authentication, the business rule condition corresponding to the risk control rule is passing the risk control authentication, and the business rule condition corresponding to the asset rule is passing the asset greater than or equal to 1 million. The business logic of the 3 business rules is: passing the real-name authentication or risk control authentication, and the assets are greater than or equal to 1 million, then based on the user who submits the business rule verification request, call the real-name rule interface, and use the authentication server linked to the real-name rule interface to perform real-name authentication on the user. If the real-name authentication passes, call the asset rule interface, and use the asset rule authentication server to authenticate the user. The asset server linked to the interface will perform asset authentication on the user. If the assets are greater than or equal to 1 million, it is determined that the verification of the business rule verification request has passed. If the real-name authentication fails, the risk control rule interface will be called, and the risk control server linked to the risk control rule interface will be used to perform risk control authentication on the user. If the risk control authentication passes, the asset rule interface will be called, and the asset server linked to the asset rule interface will be used to perform asset authentication on the user. If the assets are greater than or equal to 1 million, it is determined that the verification of the business rule verification request has passed. If the real-name authentication fails and the risk control authentication fails, or if either the real-name authentication or the risk control authentication passes but the asset authentication fails, it is determined that the verification of the business rule verification request has failed.

[0097] In this embodiment, in business operation activities, business rule verification is performed on the business requested by the user based on the business rule conditions corresponding to each business rule in the business rule strategy corresponding to the business operation activity and the business logic between each business rule to determine whether it passes the business rule verification. If it passes, it is processed, otherwise it is abandoned.

[0098] In this embodiment, after the business rule verification request is passed, subsequent actions can be performed. For example, for a business rule verification request for obtaining a business reward, the corresponding business reward is obtained by calling a business reward service of a business marketing platform.

[0099] In this embodiment, the business marketing platform is utilized to quickly configure business rules through a visual interface and configuration method, and the business rules and business logic can be edited and updated, thereby reducing the development time required for business operation activities, improving development efficiency, and making the business marketing platform highly scalable and flexible, which can support the business operation activity requirements of any front-end, thereby improving the efficiency of business operations. Furthermore, the business rules adopt a microservice architecture, which can enable the microservices corresponding to each business rule to be independently deployed and upgraded, thereby improving the stability and reliability of the business marketing platform. Moreover, the business rule policies containing business rules and business logic can be edited through a visual operation interface, and the business rules and business logic can be freely expanded according to the needs of each business operation activity, thereby facilitating the deployment and maintenance of the business marketing platform, and making the operations of developing business operation activities simpler and easier to understand, thereby lowering the threshold for use.

[0100] Based on the same inventive concept, Figure 4 As shown, an embodiment of the present invention further provides a device for configuring a business rule policy, the device comprising:

[0101] The request parsing module 401 is used to parse the received business operation activity configuration request and obtain the business operation activity identifier;

[0102] The template acquisition module 402 is used to query a pre-built database; if there is a business operation activity configuration template corresponding to the business operation activity identifier, the business operation activity configuration template is displayed on the editable display interface; if not, the business operation activity configuration template most similar to the business operation activity identifier is obtained from the database and displayed on the display interface;

[0103] In this embodiment, the business rules in each server are collected and encapsulated to form a business rule interface, so that one business rule corresponds to one business rule interface. According to the business rules and business logic required for each business operation activity, the business rule interfaces are combined to form a business operation activity configuration template for the business operation activity, which is stored in the database of the business marketing platform.

[0104] In this embodiment, as an optional embodiment, the business operation activity configuration request includes but is not limited to: HTTP request, HTTPS request, FTP request, and RTP request.

[0105] The policy generation module 403 is used to generate a business rule policy according to the business rules edited in the business operation activity configuration template and the business logic between the business rules.

[0106] In this embodiment, the business operation activity configuration template can be edited, including but not limited to: adding, deleting, and modifying the business logic between business rules.

[0107] In this embodiment, as an optional embodiment, the strategy generation module 403 includes:

[0108] A traversal unit, used to traverse each business rule in the business operation activity configuration template based on a pre-set generalized calling method, preload the traversed business rules in the business operation activity configuration interface of the business marketing platform, and preload the business logic corresponding to each business rule based on the preloaded business rules;

[0109] A display unit, used to display a generalized calling method interface of a target business rule according to the target business rule selected by the user;

[0110] A loading unit, used to determine that the user has finished editing each target business rule, and load the business logic corresponding to each target business rule;

[0111] The business rule strategy generating unit is used to determine that the user has finished editing the business logic, and to generate the business rule strategy for the business operation activity based on the edited target business rules and business logic.

[0112] In this embodiment, as an optional embodiment, the business rule parameters corresponding to the business rules include but are not limited to: business rule environment, business rule interface type, business rule request parameters, business rule class name, business rule method name, business rule parameters, input parameter template, output parameter template, business rule interface alias, and business rule interface timeout period.

[0113] In this embodiment, as an optional embodiment, the strategy generation module 403 further includes:

[0114] The storage unit is used to configure a policy number for the business rule policy corresponding to each business operation activity, build a mapping relationship between the business operation activity, the business rule policy, and the policy number, and store it in the database of the business marketing platform.

[0115] In this embodiment, as an optional embodiment, the device further includes:

[0116] A rule verification module (not shown in the figure) is used to receive a business rule verification request, call the business rule policy of the business operation activity corresponding to the business rule verification request, and verify the business rule verification request so as to execute the operation corresponding to the business rule verification request after the verification of the business rule verification request passes.

[0117] In this embodiment, as an optional embodiment, the rule verification module includes:

[0118] A matching unit, configured to query a database of a business marketing platform according to the policy number and the target business operation activity carried in the business rule verification request, and obtain a target business rule policy that matches the policy number and the target business operation activity;

[0119] A value acquisition unit, configured to traverse each business rule of the target business rule policy and acquire a business rule value corresponding to the business rule based on the business rule verification request;

[0120] The verification unit is used to verify the business rule value corresponding to each business rule according to the business rule condition corresponding to the business rule in the target business rule policy and the business logic of each business rule.

[0121] In this embodiment, the user performs an operation in the displayed business operation activities, and when a business rule verification is triggered, for example, after purchasing a product or pushing a business operation activity, when redeeming the points obtained, a business rule verification request is initiated.

[0122] In this embodiment, as an optional embodiment, the business rules are set in a microservice manner, and each microservice corresponds to a business rule or a business rule interface.

[0123] In this embodiment, as an optional embodiment, the business logic includes: OR, AND, NOT, XOR, XOR, NOR, AND NOT, OR NOT.

[0124] Based on the same inventive concept, an embodiment of the present invention further provides a storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the method for configuring a business rule policy in any possible implementation manner described above are implemented.

[0125] Alternatively, the storage medium may be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0126] Based on the same inventive concept, see Figure 5 The embodiment of the present invention also provides an electronic device, including a memory 101 (such as a non-volatile memory), a processor 102, and a computer program stored in the memory 101 and executable on the processor 102. When the processor 102 executes the program, the steps of the method for configuring a business rule strategy in any possible implementation manner described above can be equivalent to the device for configuring a business rule strategy as described above. Of course, the processor can also be used to process other data or operations. The electronic device can be a PC, a server, a terminal, and other devices.

[0127] like Figure 5As shown, the electronic device may also generally include: a memory 103, a network interface 104, and an internal bus 105. In addition to these components, other hardware may also be included, which will not be described in detail.

[0128] It should be noted that the above-mentioned device for configuring business rule policies can be implemented by software. As a device in a logical sense, it is formed by the processor 102 of the electronic device in which it is located reading the computer program instructions stored in the non-volatile memory into the memory 103 for execution.

[0129] The embodiments of the subject matter and functional operations described in this specification may be implemented in the following: digital electronic circuits, tangibly embodied computer software or firmware, computer hardware including the structures disclosed in this specification and their structural equivalents, or a combination of one or more of them. The embodiments of the subject matter described in this specification may be implemented as one or more computer programs, i.e., one or more modules in computer program instructions encoded on a tangible non-temporary program carrier to be executed by a data processing device or to control the operation of the data processing device. Alternatively or additionally, the program instructions may be encoded on an artificially generated propagation signal, such as a machine-generated electrical, optical or electromagnetic signal, which is generated to encode information and transmit it to a suitable receiver device for execution by a data processing device. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them.

[0130] The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform the corresponding functions by operating on input data and generating output. The processes and logic flows can also be performed by special purpose logic circuits, such as FPGAs (field programmable gate arrays) or ASICs (application specific integrated circuits), and the apparatus can also be implemented as special purpose logic circuits.

[0131] Computers suitable for executing computer programs include, for example, general and / or special microprocessors, or any other type of central processing unit. Typically, the central processing unit will receive instructions and data from a read-only memory and / or a random access memory. The basic components of a computer include a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data. Typically, the computer will also include one or more large-capacity storage devices for storing data, such as magnetic disks, magneto-optical disks, or optical disks, or the computer will be operably coupled to this large-capacity storage device to receive data from it or to transmit data to it, or both. However, the computer does not necessarily have such a device. In addition, the computer can be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device such as a universal serial bus (USB) flash drive, to name a few.

[0132] Computer readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including, for example, semiconductor memory devices (e.g., EPROM, EEPROM and flash memory devices), magnetic disks (e.g., internal hard disks or removable disks), magneto-optical disks, and CD-ROM and DVD-ROM disks. The processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.

[0133] Although this specification includes many specific implementation details, these should not be interpreted as limiting the scope of any invention or the scope of protection claimed, but are mainly used to describe the features of the specific embodiments of specific inventions. Certain features described in multiple embodiments in this specification may also be implemented in combination in a single embodiment. On the other hand, the various features described in a single embodiment may also be implemented separately in multiple embodiments or in any suitable sub-combination. In addition, although the features may work as above in certain combinations and even initially claim protection, one or more features from the claimed combination may be removed from the combination in some cases, and the claimed combination may point to a sub-combination or a variation of a sub-combination.

[0134] Similarly, although operations are depicted in a particular order in the accompanying drawings, this should not be understood as requiring that these operations be performed in the particular order shown or performed sequentially, or requiring that all illustrated operations be performed to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of various system modules and components in the above-described embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product, or packaged into multiple software products.

[0135] Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the particular order or sequential order shown to achieve the desired results. In some implementations, multitasking and parallel processing may be advantageous.

[0136] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" 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, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0137] The above is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features applied herein.

Claims

1. A method for configuring a business rule strategy, It is characterized in that include: Parse the received business operation activity configuration request and obtain the business operation activity identifier; Query pre-built databases; If there is a business operation activity configuration template corresponding to the business operation activity identifier, display the business operation activity configuration template on the editable display interface; If it does not exist, obtain the business operation activity configuration template that is most similar to the business operation activity identifier from the database and display it on the display interface; A business rule policy is generated based on the business rules edited in the business operation activity configuration template and the business logic between the business rules.

2. The method for configuring a business rule strategy according to claim 1, It is characterized in that The method further comprises: A business rule verification request is received, a business rule policy of a business operation activity corresponding to the business rule verification request is called, and the business rule verification request is verified, so as to execute an operation corresponding to the business rule verification request after the verification of the business rule verification request passes.

3. The method for configuring a business rule strategy according to claim 1, It is characterized in that The generating of the business rule strategy according to the business rules edited in the business operation activity configuration template and the business logic between the business rules includes: Based on the pre-set generalized calling method, traverse each business rule in the business operation activity configuration template, preload the traversed business rules in the business operation activity configuration interface of the business marketing platform, and preload the business logic corresponding to each business rule based on the pre-loaded business rules; Based on the target business rule selected by the user, a generalized calling method interface of the target business rule is displayed; Determine that the user has finished editing each target business rule, and load the business logic corresponding to each target business rule; It is determined that the user has completed editing the business logic, and based on the edited target business rules and business logic, a business rule strategy for the business operation activity is generated.

4. The method for configuring a business rule strategy according to claim 3, It is characterized in that The method further comprises: A policy number is configured for the business rule policy corresponding to each business operation activity, and a mapping relationship between business operation activities, business rule policies, and policy numbers is constructed and stored in the database of the business marketing platform.

5. The method for configuring a business rule strategy according to claim 2, It is characterized in that The calling of the business rule policy of the business operation activity corresponding to the business rule verification request to verify the business rule verification request includes: According to the policy number and the target business operation activity carried in the business rule verification request, query the database of the business marketing platform to obtain the target business rule policy that matches the policy number and the target business operation activity; Traversing each business rule of the target business rule policy, and obtaining a business rule value corresponding to the business rule based on the business rule verification request; The business rule value corresponding to each business rule is verified according to the business rule condition corresponding to the business rule in the target business rule policy and the business logic of each business rule.

6. The method for configuring a business rule strategy according to any one of claims 1 to 5, It is characterized in that The business rules are set in a microservice manner, and each microservice corresponds to a business rule.

7. The method for configuring a business rule strategy according to any one of claims 1 to 5, It is characterized in that The business logic includes: OR, AND, NOT, XOR, XNOR, AND NOT, OR NOT.

8. A device for configuring a business rule strategy, It is characterized in that The device for configuring the business rule strategy includes: A request parsing module, used to parse the received business operation activity configuration request and obtain the business operation activity identifier; A template acquisition module is used to query a pre-built database; if a business operation activity configuration template corresponding to the business operation activity identifier exists, the business operation activity configuration template is displayed on an editable display interface; if not, the business operation activity configuration template most similar to the business operation activity identifier is obtained from the database and displayed on the display interface; The policy generation module is used to generate a business rule policy based on the business rules edited in the business operation activity configuration template and the business logic between the business rules.

9. A storage medium, It is characterized in that The storage medium stores a program or an instruction, and when the program or the instruction is executed by a processor, the steps of the method for configuring a business rule policy as claimed in any one of claims 1 to 7 are implemented.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of the method for configuring a business rule policy according to any one of claims 1 to 7 are implemented.