CN114219585A - Business processing method, business processing device, electronic equipment, storage medium and program product - Google Patents
Business processing method, business processing device, electronic equipment, storage medium and program product Download PDFInfo
- Publication number
- CN114219585A CN114219585A CN202210033355.5A CN202210033355A CN114219585A CN 114219585 A CN114219585 A CN 114219585A CN 202210033355 A CN202210033355 A CN 202210033355A CN 114219585 A CN114219585 A CN 114219585A
- Authority
- CN
- China
- Prior art keywords
- rule
- service
- service processing
- target
- identifier
- 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
Links
- 238000012545 processing Methods 0.000 title claims abstract description 741
- 238000003672 processing method Methods 0.000 title claims abstract description 23
- 238000000034 method Methods 0.000 claims abstract description 73
- 230000008569 process Effects 0.000 claims description 50
- 238000004590 computer program Methods 0.000 claims description 6
- 238000012423 maintenance Methods 0.000 abstract description 6
- 230000007246 mechanism Effects 0.000 abstract description 6
- 230000004044 response Effects 0.000 description 13
- 238000010586 diagram Methods 0.000 description 11
- 230000000694 effects Effects 0.000 description 7
- 238000007781 pre-processing Methods 0.000 description 4
- 230000006978 adaptation Effects 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present disclosure provides a service processing method, an apparatus, an electronic device, a storage medium and a program product, which relate to the technical field of data processing, and the service processing method includes: receiving a service processing request sent by a service side server; determining a target rule calling mode applicable to a service processing request in a preset rule calling mode; determining and calling a target business processing rule corresponding to the business processing request in the pre-configured business processing rules according to the parameter information corresponding to the target rule calling mode; and executing the target service processing rule to obtain a processing result corresponding to the service processing request. The method and the device reduce the maintenance cost of the business processing mechanism of the business side and improve the processing efficiency and accuracy of the business processing request.
Description
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a service processing method, a service processing apparatus, an electronic device, a computer storage medium, and a program product.
Background
With the development of electronic commerce, in the process of conducting transaction activities using electronic commerce, it is generally necessary to determine an execution policy corresponding to a business operation according to the business operation of a user, for example, a user performs a commodity payment operation, and it is necessary to determine whether a user purchases a commodity successfully or not according to an account balance of the user and a commodity amount.
In the related art, different business parties can develop and maintain their own business processing mechanisms, and in the development process of the business processing mechanisms, the business parties need to perform all processes of development, testing, online and the like, which consumes time and energy; when the number of the service operations that can be responded by the service party is large, the number of the execution strategies that the service party needs to maintain is large, and the maintenance cost of the execution strategies is high.
Disclosure of Invention
The present disclosure provides a business processing method, apparatus, electronic device, storage medium, and program product, to at least solve the problems of high maintenance cost, low decision efficiency, and low decision accuracy of a business decision mechanism in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for processing a service is provided, which includes:
receiving a service processing request sent by a service side server;
determining a target rule calling mode applicable to a service processing request in a preset rule calling mode;
determining and calling a target service processing rule corresponding to the service processing request in a pre-configured service processing rule according to parameter information corresponding to the target rule calling mode, wherein the parameter information comprises a service party identifier and a scene identifier;
and executing the target service processing rule to obtain a processing result corresponding to the service processing request.
Optionally, the target rule invoking mode is a first rule invoking mode, and determining and invoking a target service processing rule corresponding to the service processing request in a pre-configured service processing rule according to parameter information corresponding to the target rule invoking mode includes:
and determining and calling a target service processing rule corresponding to the service processing request in the pre-configured service processing rules according to the service party identifier and the scene identifier in the service processing request.
Optionally, the determining and invoking a target service processing rule corresponding to the service processing request in a pre-configured service processing rule according to the service party identifier and the scene identifier in the service processing request includes:
determining a target rule acquisition mode corresponding to a service party identifier and a scene identifier in the service processing request in a preset rule acquisition mode;
and acquiring at least one target business processing rule corresponding to the business processing request from pre-configured business processing rules according to the business party identifier and the scene identifier in the business processing request based on the target rule acquisition mode.
Optionally, the obtaining, based on the target rule obtaining mode, at least one target service processing rule corresponding to the service processing request from pre-configured service processing rules according to the service party identifier and the scene identifier in the service processing request includes:
if the target rule obtaining mode is a first rule obtaining mode, obtaining a target service processing rule corresponding to the service processing request from pre-configured service processing rules according to a service party identifier and a scene identifier in the service processing request;
and if the target rule acquisition mode is a second rule acquisition mode, acquiring a plurality of target service processing rules corresponding to the service processing request from pre-configured service processing rules according to the service party identifier and the scene identifier in the service processing request.
Optionally, the obtaining, according to the service party identifier and the scene identifier in the service processing request, a target service processing rule corresponding to the service processing request from pre-configured service processing rules includes:
acquiring a plurality of candidate service processing rules corresponding to the service processing request from pre-configured service processing rules according to the service party identifier and the scene identifier in the service processing request;
and determining the service processing rule with the highest priority in a plurality of candidate service processing rules corresponding to the service processing request to obtain a target service processing rule corresponding to the service processing request.
Optionally, the target rule invoking mode is a second rule invoking mode, the parameter information further includes a decision parameter value, and determining and invoking a target service processing rule corresponding to the service processing request in a pre-configured service processing rule according to the parameter information corresponding to the target rule invoking mode includes:
and determining and calling a target service processing rule corresponding to the service processing request in a pre-configured service processing rule according to the service party identifier, the scene identifier and the decision parameter value in the service processing request.
Optionally, the determining and calling a target service processing rule corresponding to the service processing request in a pre-configured service processing rule according to the service party identifier, the scene identifier, and the decision parameter value in the service processing request includes:
determining a target rule acquisition mode corresponding to a service party identifier and a scene identifier in the service processing request in a preset rule acquisition mode;
and acquiring at least one target business processing rule corresponding to the business processing request from pre-configured business processing rules according to the business party identifier, the scene identifier and the decision parameter value in the business processing request based on the target rule acquisition mode.
Optionally, the obtaining, based on the target rule obtaining mode, at least one target service processing rule corresponding to the service processing request from pre-configured service processing rules according to the service party identifier, the scene identifier, and the decision parameter value in the service processing request includes:
if the target rule obtaining mode is a first rule obtaining mode, obtaining a target service processing rule corresponding to the service processing request from pre-configured service processing rules according to a service party identifier, a scene identifier and a decision parameter value in the service processing request;
and if the target rule acquisition mode is a second rule acquisition mode, acquiring a plurality of target business processing rules corresponding to the business processing request from pre-configured business processing rules according to the business party identification, the scene identification and the decision parameter value in the business processing request.
Optionally, the obtaining, according to the service party identifier, the scene identifier, and the decision parameter value in the service processing request, a target service processing rule corresponding to the service processing request from pre-configured service processing rules includes:
acquiring a plurality of candidate service processing rules corresponding to the service processing request from pre-configured service processing rules according to the service party identifier, the scene identifier and the decision parameter value in the service processing request;
and determining the service processing rule with the highest priority in a plurality of candidate service processing rules corresponding to the service processing request to obtain a target service processing rule corresponding to the service processing request.
Optionally, the method further includes:
acquiring at least one service party identifier, at least one scene identifier and at least one rule parameter;
responding to a combination instruction, acquiring a combination of at least one service party identifier and the scene identifier, and obtaining a rule template corresponding to the combination of each service party identifier and the scene identifier based on the at least one service party identifier, the at least one scene identifier and the at least one rule parameter;
and generating a service processing rule corresponding to the combination of each service party identifier and the scene identifier according to the rule template corresponding to the combination of each service party identifier and the scene identifier.
Optionally, obtaining a rule template corresponding to a combination of each service party identifier and each scene identifier based on at least one rule parameter includes:
in response to the rule parameter selection instruction, acquiring at least one rule parameter corresponding to each combination of the service party identifier and the scene identifier from among the at least one rule parameter:
responding to an operator selection instruction, and acquiring an operator between at least one rule parameter corresponding to the combination of each service party identifier and the scene identifier;
and obtaining a rule template corresponding to the combination of each service party identifier and the scene identifier according to at least one rule parameter and operator corresponding to the combination of each service party identifier and the scene identifier.
Optionally, generating a service processing rule corresponding to the combination of each service party identifier and each scene identifier according to the rule template corresponding to the combination of each service party identifier and each scene identifier includes:
responding to a rule template selection instruction, acquiring a rule template corresponding to the combination of each service party identifier and the scene identifier, and acquiring a first service rule processing condition;
and responding to the rule template selection instruction, acquiring at least one processing result corresponding to the first service processing rule condition, and acquiring a service processing rule corresponding to the combination of each service party identifier and the scene identifier.
Optionally, generating a service processing rule corresponding to the combination of each service party identifier and each scene identifier according to the rule template corresponding to the combination of each service party identifier and each scene identifier includes:
responding to a rule template selection instruction, and acquiring a plurality of rule templates corresponding to the combination of each service party identifier and each scene identifier;
responding to an operator selection instruction, acquiring operators among a plurality of rule templates corresponding to the combination of each business side identifier and the scene identifier, and obtaining a second business rule processing condition;
and responding to the operator selection instruction, and acquiring at least one processing result corresponding to the second service processing rule condition to obtain a service processing rule corresponding to the combination of each service party identifier and each scene identifier.
Optionally, after generating a service processing rule corresponding to a combination of each service party identifier and each scene identifier, the method further includes:
performing precompilation and rule analysis on the service processing rules to obtain executable service processing rules corresponding to the combination of each service party identifier and each scene identifier;
executing the target business processing rule to obtain a processing result corresponding to the business processing request, wherein the processing result comprises the following steps:
acquiring an executable target service processing rule corresponding to the target service processing rule;
executing the executable target service processing rule to obtain a processing result corresponding to the service processing request;
according to a second aspect of the embodiments of the present disclosure, there is provided a service processing apparatus, including:
the receiving module is configured to receive a service processing request sent by a service side server;
the determining module is configured to determine a target rule calling mode applicable to the service processing request in the preset rule calling modes;
the rule calling module is configured to determine and call a target business processing rule corresponding to the business processing request in a pre-configured business processing rule according to parameter information corresponding to the target rule calling mode, wherein the parameter information comprises a business party identifier and a scene identifier;
and the rule execution module is configured to execute the target business processing rule and obtain a processing result corresponding to the business processing request.
Optionally, the target rule invoking mode is a first rule invoking mode, and the rule invoking module is configured to:
and determining and calling a target service processing rule corresponding to the service processing request in the pre-configured service processing rules according to the service party identifier and the scene identifier in the service processing request.
Optionally, the rule invoking module is configured to:
determining a target rule acquisition mode corresponding to a service party identifier and a scene identifier in the service processing request in a preset rule acquisition mode;
and acquiring at least one target business processing rule corresponding to the business processing request from pre-configured business processing rules according to the business party identifier and the scene identifier in the business processing request based on the target rule acquisition mode.
Optionally, the rule invoking module is configured to:
if the target rule obtaining mode is a first rule obtaining mode, obtaining a target service processing rule corresponding to the service processing request from pre-configured service processing rules according to a service party identifier and a scene identifier in the service processing request;
and if the target rule acquisition mode is a second rule acquisition mode, acquiring a plurality of target service processing rules corresponding to the service processing request from pre-configured service processing rules according to the service party identifier and the scene identifier in the service processing request.
Optionally, the rule invoking module is configured to:
acquiring a plurality of candidate service processing rules corresponding to the service processing request from pre-configured service processing rules according to the service party identifier and the scene identifier in the service processing request;
and determining the service processing rule with the highest priority in a plurality of candidate service processing rules corresponding to the service processing request to obtain a target service processing rule corresponding to the service processing request.
Optionally, the target rule invoking mode is a second rule invoking mode, the parameter information further includes a decision parameter value, and the rule invoking module is configured to:
and determining and calling a target service processing rule corresponding to the service processing request in a pre-configured service processing rule according to the service party identifier, the scene identifier and the decision parameter value in the service processing request.
Optionally, the rule invoking module is configured to:
determining a target rule acquisition mode corresponding to a service party identifier and a scene identifier in the service processing request in a preset rule acquisition mode;
and acquiring at least one target business processing rule corresponding to the business processing request from pre-configured business processing rules according to the business party identifier, the scene identifier and the decision parameter value in the business processing request based on the target rule acquisition mode.
Optionally, the rule invoking module is configured to:
if the target rule obtaining mode is a first rule obtaining mode, obtaining a target service processing rule corresponding to the service processing request from pre-configured service processing rules according to a service party identifier, a scene identifier and a decision parameter value in the service processing request;
and if the target rule acquisition mode is a second rule acquisition mode, acquiring a plurality of target business processing rules corresponding to the business processing request from pre-configured business processing rules according to the business party identification, the scene identification and the decision parameter value in the business processing request.
Optionally, the rule invoking module is configured to:
acquiring a plurality of candidate service processing rules corresponding to the service processing request from pre-configured service processing rules according to the service party identifier, the scene identifier and the decision parameter value in the service processing request;
and determining the service processing rule with the highest priority in a plurality of candidate service processing rules corresponding to the service processing request to obtain a target service processing rule corresponding to the service processing request.
Optionally, the apparatus further includes a rule management module configured to:
acquiring at least one service party identifier, at least one scene identifier and at least one rule parameter;
responding to a combination instruction, acquiring a combination of at least one service party identifier and the scene identifier, and obtaining a rule template corresponding to the combination of each service party identifier and the scene identifier based on at least one rule parameter;
and generating a service processing rule corresponding to the combination of each service party identifier and the scene identifier according to the rule template corresponding to the combination of each service party identifier and the scene identifier.
Optionally, the rule management module is configured to:
in response to the rule parameter selection instruction, acquiring at least one rule parameter corresponding to each combination of the service party identifier and the scene identifier from among the at least one rule parameter:
responding to an operator selection instruction, and acquiring an operator between at least one rule parameter corresponding to the combination of each service party identifier and the scene identifier;
and obtaining a rule template corresponding to the combination of each service party identifier and the scene identifier according to at least one rule parameter and operator corresponding to the combination of each service party identifier and the scene identifier.
Optionally, the rule management module is configured to:
responding to an operator selection instruction, and acquiring a rule template corresponding to the combination of each service party identifier and each scene identifier to obtain a first service rule processing condition;
and responding to the processing result editing instruction, acquiring at least one processing result corresponding to the first service processing rule condition, and acquiring a service processing rule corresponding to the combination of each service party identifier and the scene identifier.
Optionally, the rule management module is configured to:
responding to a rule template selection instruction, and acquiring a plurality of rule templates corresponding to the combination of each service party identifier and each scene identifier;
responding to a rule template selection instruction, acquiring operators among a plurality of rule templates corresponding to the combination of each service party identifier and the scene identifier, and obtaining a second service rule processing condition;
and responding to the processing result editing finger, acquiring at least one processing result corresponding to the second service processing rule condition, and acquiring the service processing rule corresponding to the combination of each service party identifier and the scene identifier.
Optionally, the service processing apparatus further includes:
the rule preprocessing module is configured to perform precompilation and rule analysis on the service processing rules to obtain executable service processing rules corresponding to the combination of each service party identifier and each scene identifier;
a rule execution module configured to:
acquiring an executable target service processing rule corresponding to the target service processing rule;
executing the executable target service processing rule to obtain a processing result corresponding to the service processing request;
according to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the business process method of the first aspect;
according to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions of the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the business processing method of the first aspect;
according to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the business processing method of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the embodiment of the disclosure provides a service processing method, a service processing device, an electronic device, a storage medium and a program product, wherein the service processing method can determine a target rule calling mode applicable to a service processing request in a preset rule calling mode after receiving the service processing request sent by a service side server; determining and calling a target business processing rule corresponding to a business processing request in a pre-configured business processing rule according to parameter information corresponding to a target rule calling mode, wherein the parameter information comprises a business party identifier and a scene identifier; executing the target service processing rule to obtain a processing result corresponding to the service processing request; on one hand, after the service processing request is received, the processing result determined by the called target service processing rule is more in line with the requirement of the service party, and the adaptation degree of the processing result of the obtained service processing request and the requirement of the service party can be improved; on the other hand, the calling efficiency of the business processing rule can be improved, so that the processing efficiency of the business processing request is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a schematic diagram illustrating a structure of a business processing system according to an exemplary embodiment.
Fig. 2 is a schematic diagram illustrating a structure of a service processor server according to an exemplary embodiment.
FIG. 3 is a flow diagram illustrating a method of business processing in accordance with an exemplary embodiment;
FIG. 4 is a flow diagram illustrating a method for business process rule configuration in accordance with an exemplary embodiment.
FIG. 5 is a flow diagram illustrating a method for determining a target business process rule in accordance with an exemplary embodiment.
FIG. 6 is a flow diagram illustrating another method of determining a target business process rule in accordance with an illustrative embodiment.
Fig. 7 is a schematic diagram illustrating a structure of a business process rule apparatus according to an exemplary embodiment.
Fig. 8 is a schematic structural diagram of an electronic device according to an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
An exemplary embodiment of the present disclosure provides a business processing system, of which fig. 1 shows a schematic architecture diagram. As shown in fig. 1, the service processing system 100 may include at least one service provider server 110 and a service provider server 120. The service side server 110 may be a server of a service processing demand side, for example, a server of an e-commerce platform, a server of a live broadcast platform or a server of a music platform, etc. The business processor server 120 may be a server of a business processing service provider. The service side server 110 and the service processing side server 120 can establish connection through a network to provide service processing service for a service processing service demand side, and reduce the maintenance cost of a service side service processing mechanism.
The service side server 110 may send a service processing request to the service processing side server 120, where the service processing request may be generated after the service side server 110 receives a service operation processing request of a user, the service operation processing request may be generated by a user terminal in response to a service operation of the user, the service operation may be a commodity payment operation of the user, a commodity purchase adding operation of the user in a live broadcast room, and the like; the business process request may also be generated based on business activities of the business party, such as membership gifting activities.
The service processor server 120 may receive the service processing request, and determine a target rule calling mode applicable to the service processing request from among the preconfigured rule calling modes; determining and calling a target business processing rule corresponding to the business processing request in the pre-configured business processing rules according to the parameter information corresponding to the target rule calling mode; and executing the target service processing rule to obtain a processing result corresponding to the service processing request, and sending the processing result to the service side server 110, wherein the service side server 110 can process the service operation processing request of the user according to the processing result. The parameter information comprises a service party identifier and a scene identifier, and can allow a service party to pre-configure a plurality of service processing rules of the service party in different service scenes in a service processing party server and configure different rule calling modes, so that the service processing party server can directly call a target service processing rule corresponding to a service processing request according to the service party identifier and the scene identifier in the service processing request after receiving the service processing request, the efficiency of obtaining the target service processing rule and the processing efficiency of the service processing request are improved, the service processing party can provide service processing service for the plurality of service parties, and various costs of a self-maintenance decision mechanism of the service party are reduced.
In an optional implementation manner, a schematic structural diagram of the service processing side server 120 may be as shown in fig. 2, where the service processing side server includes a rule execution module, an operation management module, a rule management module, and a version management module, where the rule execution module includes a rule preprocessing submodule and a rule execution submodule, the rule preprocessing submodule is used to perform pre-compilation and rule analysis on a pre-configured service processing rule, and the pre-compilation refers to loading the pre-configured service processing rule into a cache and analyzing the service processing rule into a service processing rule executable by the rule execution submodule; the operation management module comprises a view configuration submodule and an authority management submodule, wherein the view configuration submodule is used for providing a visual interface for a user to perform service processing rule configuration, and the authority management submodule is used for managing the rule use authority of a service party; the rule management module comprises a template management submodule and a rule management submodule, wherein the template management submodule is used for a user to manage the rule template forming the service processing rule, and the rule management submodule is used for the user to manage the service processing rule; the version management module comprises a version management submodule and a dependence management submodule, wherein the version management submodule is used for a user to manage the business processing rule, for example, the version of the business processing rule is upgraded, rolled back or processed in a gray scale mode, and the dependence management submodule is used for analyzing the business processing rule into an expression which can be identified by the rule execution module.
Fig. 3 is a flowchart illustrating a service processing method according to an exemplary embodiment, where the service processing method is used in a service processor server, as shown in fig. 3, and the service processing method includes the following steps S301 to S304.
In step S301, a service processing request sent by the service server is received.
In the embodiment of the present disclosure, the service processing request may include a service party identifier and a scenario identifier, the scenario identifier may be an identifier of an application scenario of a service operation of a user, and the service party identifier may be an identifier of a service processing demand party.
In step S302, a target rule calling pattern to which the service processing request applies is determined among the preconfigured rule calling patterns.
In the embodiment of the present disclosure, a service party may pre-configure rule calling modes of the service party in different service scenarios, where the rule calling modes may include a first rule calling mode and a second rule calling mode, where the first rule calling mode is to determine, according to a service party identifier and a scenario identifier, a target service processing rule corresponding to a service processing request in pre-configured service processing rules; the second rule calling mode is to determine a target service processing rule corresponding to the service processing request in the service processing rules configured in advance according to the service party identifier, the scene identifier and the decision parameter value.
In step S303, a target business process rule corresponding to the business process request is determined and invoked in the pre-configured business process rules according to the parameter information corresponding to the target rule invocation mode.
In the embodiment of the present disclosure, if the target rule invoking mode is the first rule invoking mode, the parameter information may include a service party identifier and a scene identifier; if the target rule calling mode is the second rule calling mode, the parameter information may further include a decision parameter value.
In step S304, the target business process rule is executed to obtain a process result corresponding to the business process request.
To sum up, in the service processing method provided in the embodiment of the present disclosure, after receiving a service processing request, a target rule applicable to the service processing request may be utilized in a preconfigured rule calling mode to determine and call a target service processing rule corresponding to the service processing request, and a processing result corresponding to the service processing request is obtained by executing the target service processing rule, on one hand, after receiving the service processing request, a processing result determined by the called target service processing rule better meets the requirement of a service party, and thus the adaptability between the obtained processing result of the service processing request and the requirement of the service party may be improved; on the other hand, the calling efficiency of the business processing rule can be improved, so that the processing efficiency of the business processing request is improved.
In an alternative embodiment, in step S301, the service processing side server receives the service processing request sent by the service side server.
In this disclosure, the service processing request may be a service processing request that is received by the service server and sent by the user terminal, and is generated according to the service processing request, where the service processing request may be generated by the user terminal in response to a service operation of the user, and the service operation may include: the method comprises the following steps that commodity purchase adding operation of a user in a live broadcast room or commodity payment operation of the user and the like; the business process request can also be generated according to business activities of business parties, such as member giving activities of a music platform.
The process of generating the service processing request according to the service processing request may include: analyzing the service processing request to obtain a decision parameter value, and packaging the decision parameter value, the service party identifier, and the scene identifier to generate the service processing request, where a process of analyzing the service processing request to obtain the decision parameter may be determined based on actual needs, which is not limited in the embodiments of the present disclosure, for example, if the service processing request is determined according to a commodity payment operation of a user, a process of analyzing the service processing request to obtain the decision parameter value may include: and acquiring the price of the commodity purchased by the user, and acquiring the account balance of the user to obtain the decision parameter value. The scene identifier is a scene identifier of a service scene of the service party, and the service scene may correspond to a service operation of the user, for example, a commodity payment scene, a commodity purchase adding scene, or an account login scene, and the service scene may also correspond to an activity scene of the service party, for example, a shopping festival scene or a time-limited preference scene, and the like.
In an optional implementation manner, the service processing side server may receive a service processing request sent by the service side server, where the service processing request may include a decision parameter value, a service side identifier, and a scenario identifier.
In an alternative embodiment, in step S302, the service processing side server determines a target rule calling mode to which the service processing request applies, from among the preconfigured rule calling modes.
In the embodiment of the present disclosure, in order to meet rule calling requirements of different service parties in different service scenarios, the service handler server may provide multiple rule calling modes, where the rule calling modes are used to specify a mode for determining a target service processing rule corresponding to a service processing request after the service handler server receives the service processing request, and the rule calling modes may include a first rule calling mode and a second rule calling mode. It should be noted that the rule calling mode corresponding to the combination of different service parties and different service scenarios may be preconfigured by the service party.
In an optional implementation manner, the service processing side server may determine, in the pre-configured rule calling modes, a target rule calling mode to which the service processing request applies; the pre-configured rule calling mode may include rule calling modes corresponding to combinations of different business party identifiers and scene identifiers.
The process of the service processing side server determining the target rule calling mode applicable to the service processing request in the preset rule calling modes may include: and obtaining a service party identifier and a scene identifier in the service processing request, and determining a rule calling mode corresponding to the combination of the service party identifier and the scene identifier in the service processing request in a preset rule calling mode to obtain a target rule calling mode applicable to the service processing request.
For example, assume that the preconfigured rule invocation pattern includes: the service party identifier A and the scene identifier a1, the rule calling mode corresponding to the service party identifier A and the scene identifier a1 is a first rule calling mode, the service party identifier A and the scene identifier a2, and the rule calling mode corresponding to the service party identifier A and the scene identifier a2 is a first rule calling mode; the service party identifier B and the scene identifier B1, and the rule calling mode corresponding to the service party identifier B and the scene identifier B1 are the second rule calling mode. If the service party identifier B and the scene identifier B1 in the service processing request are determined, the target rule calling mode applicable to the service processing request may be determined to be the second rule calling mode in the preconfigured rule calling modes according to the service party identifier B and the scene identifier B1.
In an optional embodiment, in step S303, the service processing side server determines and invokes a target service processing rule corresponding to the service processing request in the service processing rules configured in advance according to the parameter information corresponding to the target rule invoking mode.
In the embodiment of the present disclosure, the parameter information corresponding to different rule calling modes is different, and the parameter information corresponding to the first rule calling mode may include a service party identifier and a scene identifier; the parameter information corresponding to the second rule calling mode may include a service party identifier, a scene identifier, and a decision parameter value.
It should be noted that, in the embodiment of the present disclosure, in order to facilitate the service processing side server to quickly obtain the processing result corresponding to the service processing request after receiving the service processing request, the service processing side server may provide a service processing rule configuration service for the service side, so that the service side configures the service processing rules in different service scenarios, and the service side can meet the use requirements of the service side for processing different service processing requests in different scenarios. As shown in fig. 4, the process of configuring the service processing rule by the service processing side server may include steps S401 to S403:
step S401, at least one service party identifier, at least one scene identifier and at least one rule parameter are obtained.
In the embodiment of the present disclosure, the rule parameter is a minimum unit for forming a service processing rule, and the rule parameter corresponds to a service scenario, for example, the rule parameter corresponding to a commodity payment scenario may include two parameters, namely, a user account balance and a commodity price; the rule parameter corresponding to the time-limited offer scenario may include a display offer time. The rule parameter table may include a service party identification field, a scene identification field, a parameter value field, a parameter description field, and a parameter type field. The service party identification field is used for recording the service party of the rule parameter, the scene identification field is used for recording the service scene to which the rule parameter belongs, the parameter identification field is used for recording the identification of the rule parameter, and the parameter value field is used for recording the rule parameter, such as the age of the user, the balance of the account of the user, and the like; the parameter description field is used for recording the literal description of the rule parameter, and the parameter type field is used for recording the data type of the rule parameter.
In this step S401, the service processing side server may obtain at least one service side identifier, at least one scenario identifier, and at least one rule parameter.
In an optional embodiment, the process of the service processor server obtaining at least one service party identifier, at least one scenario identifier and at least one rule parameter may include: after detecting the rule configuration operation, the service processing side server loads a plurality of rule parameter tables developed in advance, and obtains at least one service side identifier, at least one scene identifier and at least one rule parameter from the rule parameter tables.
Step S402, responding to the combination instruction, acquiring the combination of at least one service party identifier and a scene identifier, and obtaining a rule template corresponding to the combination of each service party identifier and the scene identifier based on at least one rule parameter.
In the embodiment of the present disclosure, for a service party and a service scenario that need to configure a service processing rule, a user may configure the service processing rule based on a rule parameter table in a service processing party server. The business processing rule comprises a business processing rule condition and at least one processing result corresponding to the business processing rule condition. It should be noted that, in the service processing rule corresponding to the service scenario of the service party, the service processing rule conditions may include a plurality of conditions, each of the service processing rules corresponding to the service scenario of the service party may be configured separately to obtain a plurality of rule templates, and the plurality of rule templates are combined to obtain the service processing rule corresponding to the service scenario of the service party. The maintenance of the business processing rule corresponding to the business scene of the business party is facilitated, and the configuration efficiency of the business processing rule is improved.
In this step S402, the service processing side server may respond to the combination instruction to obtain a combination of at least one service side identifier and a scene identifier, and obtain a rule template corresponding to each combination of the service side identifier and the scene identifier based on at least one rule parameter.
In an alternative embodiment, the process of the service processor server responding to the combination instruction to obtain the combination of at least one service party identifier and the scene identifier may include: and responding to the combination instruction, acquiring each service party identifier and scene identifier input by the user in response to the combination instruction, and acquiring the combination of at least one service party identifier and scene identifier according to the combination relationship of each service party identifier and scene identifier input by the user.
In an alternative embodiment, the process of the service processor server obtaining the rule template corresponding to each combination of the service party identifier and the scene identifier based on at least one rule parameter may include: in response to the rule parameter selection instruction, acquiring at least one rule parameter corresponding to each combination of the service party identifier and the scene identifier from among the at least one rule parameter: responding to an operator selection instruction, and acquiring an operator between at least one rule parameter corresponding to the combination of each service party identifier and the scene identifier; and obtaining a rule template corresponding to the combination of each service party identifier and the scene identifier according to at least one rule parameter corresponding to the combination of each service party identifier and the scene identifier and an operator between the at least one rule parameter. The operator may include a relational operator, a logical operator, an arithmetic operator, and the like, which is not limited in this disclosure. It is understood that a plurality of rule templates corresponding to each combination of the business party identifier and the scene identifier may be obtained based on the method in the above embodiment.
Wherein the rule template may be stored in the form of a rule template table, which may include a business party identification field, a scenario identification field, a template type field, a template description field, a template expression field, an expression description field, an executable expression field, and a template status field, wherein, the template identification field is used for recording the identification of the rule template, the template type field is used for recording the data type of the rule template, the template description field is used for recording the Chinese description of the rule template, the template expression field is used for recording the rule template, such as a combination of template parameters and operators, an expression description field is used to record a chinese description of a template expression, the executable expression field is used for recording the concrete representation form of the rule template in the executable state, and the template state field is used for marking the state of the rule template as an available state or an unavailable state.
For example, if the service party is an e-commerce platform and the service scenario is a user commodity payment scenario, then in the pre-developed rule parameter table, the rule parameters corresponding to the e-commerce platform in the user commodity payment scenario may at least include a user account balance and a commodity price, and then the rule parameters corresponding to the e-commerce platform in the user commodity payment scenario may be obtained in response to a rule parameter selection instruction: the balance of the user account and the price of the commodity, and responding to an operator selection instruction, acquiring an operator between rule parameters (the balance of the user account and the price of the commodity): obtaining a rule template corresponding to the e-commerce platform in the user commodity payment scene according to the obtained operator between the rule parameter and the rule parameter corresponding to the e-commerce platform in the user commodity payment scene: the balance of the user account is larger than the price of the commodity.
In an alternative embodiment, the process of the service processor server obtaining the rule template corresponding to each combination of the service party identifier and the scene identifier based on at least one rule parameter may include: in response to the rule parameter selection instruction, acquiring at least one rule parameter corresponding to each combination of the service party identifier and the scene identifier from among the at least one rule parameter: responding to a rule condition editing instruction, acquiring a condition value associated with each rule parameter corresponding to the combination of each service party identifier and the scene identifier, responding to an operator selecting instruction, and determining an operator between each rule parameter and the condition value associated with each rule parameter; and obtaining a rule template corresponding to the combination of each service party identifier and the scene identifier according to each rule parameter and condition value corresponding to the combination of each service party identifier and the scene identifier and an operator between each rule parameter and condition value. It is understood that a plurality of rule templates corresponding to each combination of the business party identifier and the scene identifier may be obtained based on the method in the above embodiment.
For example, if the service party is a music platform, and the service scenario is that the music platform presents members for a week for users who listen to songs for more than 1 ten thousand in a week, the rule parameters corresponding to the music platform in the member presentation scenario at least include the user's song listening amount in the pre-developed rule parameter table, and the rule parameters corresponding to the music platform in the member presentation scenario can be obtained in response to the rule parameter selection instruction: and (3) the user listens to the song volume, responds to the rule condition editing instruction, and acquires the condition value input by the user: 1 ten thousand, in response to an operator selection instruction, determining an operator between a rule parameter (the amount of a user listening to a song) and a condition value (1 ten thousand): if so, a rule template corresponding to the music platform in the member presentation scene can be obtained: the user listens to songs by more than 1 ten thousand.
Step S403, generating a service processing rule corresponding to each combination of the service party identifier and the scene identifier according to the rule template corresponding to each combination of the service party identifier and the scene identifier.
In an alternative embodiment, the generating of the service processing rule corresponding to each combination of the service party identifier and the scene identifier according to the rule template corresponding to each combination of the service party identifier and the scene identifier may include: responding to a rule template selection instruction, acquiring a rule template corresponding to the combination of each service party identifier and the scene identifier, and acquiring a first service rule processing condition; and responding to the processing result editing instruction, acquiring at least one processing result corresponding to the first service processing rule condition, and acquiring a service processing rule corresponding to the combination of each service party identifier and the scene identifier. It is understood that the rule template corresponding to each combination of the service party identifier and the scene identifier may be obtained from a rule parameter table developed in advance and corresponding to each combination of the service party identifier and the scene identifier.
For example, if the service party is an e-commerce platform and the service scenario is a user commodity payment scenario, in the pre-developed rule parameter table, the rule template corresponding to the e-commerce platform in the user commodity payment scenario may include: the balance of the user account is more than the commodity price; and the user account status is 1, wherein 1 represents that the user allows pre-consumption; if the rule template selection instruction is responded, the selected rule template is as follows: if the balance of the user account is larger than the commodity price, the first business rule processing condition is obtained as follows: the balance of the user account is more than the commodity price; and responding to the processing result editing instruction, and acquiring a processing result corresponding to the first business rule processing condition: if the first business rule processing condition is satisfied, the processing result is that the user successfully purchases the commodity; if the first business rule processing condition is not satisfied, the processing result is that the user fails to purchase the commodity, and a business processing rule corresponding to the E-commerce platform in the commodity payment scene of the user is obtained.
In an alternative embodiment, the generating of the service processing rule corresponding to each combination of the service party identifier and the scene identifier according to the rule template corresponding to each combination of the service party identifier and the scene identifier may include: responding to a rule template selection instruction, and acquiring a plurality of rule templates corresponding to the combination of each service party identifier and each scene identifier; responding to an operator selection instruction, acquiring operators among a plurality of rule templates corresponding to the combination of each business side identifier and the scene identifier, and obtaining a second business rule processing condition; in response to the operator selection instruction, at least one processing result corresponding to the second service processing rule condition is obtained, and a service processing rule corresponding to a combination of each service party identifier and the scene identifier is obtained.
For example, if the service party is a music platform, and the service scenario is that the music platform presents members for a week for users who listen to songs in excess of 1 ten thousand, the rule parameter table developed in advance may include a rule template corresponding to the music platform in the member presentation scenario: the song listening amount of a user is more than 1 ten thousand, the platform service age of the user is more than 5 years, and the activity degree of the user is more than two levels; if the rule template selection instruction is responded, the selected rule template is as follows: the song listening amount of a user is more than 1 ten thousand, and the platform service age of the user is more than 5 years; and in response to the rule template selection instruction, determining an operator between the two rule templates as: and, & represents and operation, the acquired second service rule processing conditions include: the song listening amount of a user is more than 1 ten thousand, and the platform using age of the user is more than 5 years; and responding to the processing result editing instruction, and acquiring a processing result corresponding to the second service rule processing condition: if the second business rule processing condition is satisfied, the processing result is that the user gives a member; and if the second business rule processing condition is not satisfied, the processing result is that the member is not given to the user, and a business processing rule corresponding to the music platform in the member giving scene is obtained.
It should be noted that, in the embodiment of the present disclosure, a plurality of service processing rules corresponding to each combination of a service party identifier and a scene identifier may form a service processing rule group, and information of the plurality of service processing rules corresponding to each combination of the service party identifier and the scene identifier may be stored in a service processing rule group table, where the service processing rule group table may include: a business party identification field, a scenario identification field, a rule group description field, a rule execution type field, a rule status field, and a rule group version field. The rule set identification field is used for recording the identification of the rule set, the rule set description field is used for recording the Chinese description of the rule set, the rule execution type field is used for recording a rule acquisition mode, and the rule acquisition mode can comprise a first rule acquisition mode and a second rule acquisition mode, wherein the first rule acquisition mode indicates to acquire one of a plurality of service processing rules corresponding to the combination of the service party identification and the scene identification; a first rule acquisition mode instruction acquires a plurality of service processing rules corresponding to the combination of the service party identifier and the scene identifier; the rule state field is used for recording the state of the rule group as an available state or an unavailable state; the rule group version field is used to record version information of the rule group.
Wherein the business process rules may be stored in a form of a rule table that may include a rule set identification field for recording an identification of a rule set, a rule identification field for recording an identification of each business process rule, a rule priority field for recording a call priority of each business process rule in a rule set corresponding to the rule set identification, a rule description field for recording a Chinese description of the business process rule, a rule expression field for recording a Chinese description of the business process rule, such as a combination of rule parameters, operators, condition values, and processing results, an expression description field for recording a Chinese description of the rule expression, the executable expression field is used for recording the concrete expression form of the business processing rule of the executable state, and the rule state field is used for marking the state of the rule as an available state or an unavailable state.
In an optional implementation manner, if the target rule invoking mode is the first rule invoking mode, and the parameter information may include a service party identifier and a scene identifier, the process of determining and invoking the target service processing rule corresponding to the service processing request in the pre-configured service processing rule according to the parameter information corresponding to the target rule invoking mode by the service processing party server may include: according to the service party identifier and the scene identifier in the service processing request, the target service processing rule corresponding to the service processing request is determined and called in the pre-configured service processing rule, the target service processing rule corresponding to the service processing request can be determined according to the service party identifier and the scene identifier, the efficiency of determining the target service processing rule is further improved, and the requirement that the service party obtains the processing result of the service processing request more quickly is met.
As shown in fig. 5, the process of determining and invoking the target service processing rule corresponding to the service processing request in the pre-configured service processing rule by the service processing side server according to the service side identifier and the scene identifier in the service processing request may include steps S501 to S502:
step S501, in the rule obtaining mode configured in advance, a target rule obtaining mode corresponding to the service party identifier and the scene identifier in the service processing request is determined.
In an optional implementation manner, the process of determining, by the service processing side server in the pre-configured rule obtaining mode, a target rule obtaining mode corresponding to the service side identifier and the scenario identifier in the service processing request may include: and acquiring a target service processing rule group table corresponding to the service party identifier and the scene identifier in the service processing request from a pre-stored service processing rule group table, and acquiring field information of a rule execution type field in the target service processing rule group table to obtain a target rule acquisition mode.
Step S502, based on the target rule obtaining mode, according to the service party identifier and the scene identifier in the service processing request, obtaining at least one target service processing rule corresponding to the service processing request from the pre-configured service processing rules.
In an optional implementation manner, if the target rule obtaining mode is the first rule obtaining mode, a target service processing rule corresponding to the service processing request is obtained in the pre-configured service processing rules according to the service party identifier and the scene identifier in the service processing request.
The process of the service processing side server obtaining a target service processing rule corresponding to the service processing request from the pre-configured service processing rules according to the service side identifier and the scene identifier in the service processing request may include: acquiring a plurality of candidate service processing rules corresponding to the service processing request from pre-configured service processing rules according to the service party identifier and the scene identifier in the service processing request; and determining the service processing rule with the highest priority in the candidate service processing rules corresponding to the service processing request to obtain a target service processing rule corresponding to the service processing request.
The process of obtaining a plurality of candidate service processing rules corresponding to the service processing request from the pre-configured service processing rules according to the service party identifier and the scene identifier in the service processing request may include:
the method comprises the steps of obtaining a target business processing rule group table corresponding to a business party identifier and a scene identifier in a business processing request from a pre-stored business processing rule group table, obtaining field information of a rule group identifier field in the target business processing rule group table to obtain the target rule group identifier corresponding to the business party identifier and the scene identifier in the business processing request, obtaining at least one candidate rule table corresponding to the target rule group identifier from a plurality of pre-established rule tables, obtaining field information of a rule expression field in each candidate rule table to obtain a plurality of candidate business processing rules corresponding to the business processing request.
The process of determining the service processing rule with the highest priority from the multiple candidate service processing rules corresponding to the service processing request to obtain a target service processing rule corresponding to the service processing request may include: and acquiring field information of the rule priority field in each candidate rule table, determining the candidate service processing rule with the highest priority, and acquiring a target service processing rule corresponding to the service processing request.
In an optional implementation manner, if the target rule obtaining mode is the second rule obtaining mode, according to the service party identifier and the scene identifier in the service processing request, a plurality of target service processing rules corresponding to the service processing request are obtained in the service processing rules configured in advance.
The process that the service processing side server obtains a plurality of target service processing rules corresponding to the service processing request from the preconfigured service processing rules according to the service side identifier and the scene identifier in the service processing request may refer to a process that the service processing side server obtains a plurality of candidate service processing rules corresponding to the service processing request from the preconfigured service processing rules according to the service side identifier and the scene identifier in the service processing request when the target rule obtaining mode is the first rule obtaining mode. The target service processing rule corresponding to the service processing request can be acquired according to a rule acquisition mode pre-configured by the service party, the efficiency of the target service processing rule corresponding to the service processing request is further improved, and the matching degree of the processing result of the service processing request and the requirements of the service party can also be improved.
In an optional implementation manner, if the rule invoking mode is the second rule invoking mode, and the parameter information may include a service party identifier, a scene identifier, and a decision parameter value, the process of determining and invoking the target service processing rule corresponding to the service processing request in the pre-configured service processing rule by the service processing party server according to the parameter information corresponding to the target rule invoking mode may include: according to the service party identifier, the scene identifier and the decision parameter value in the service processing request, the target service processing rule corresponding to the service processing request is determined and called in the pre-configured service processing rules, the target service processing rule corresponding to the service processing request can be determined according to the service party identifier, the scene identifier and the decision parameter value, the accuracy of determining the target service processing rule is further improved, and the requirement that a service party obtains a more accurate processing result of the service processing request is met.
As shown in fig. 6, the process of determining and invoking the target service processing rule corresponding to the service processing request in the pre-configured service processing rule by the service processing side server according to the service side identifier, the scene identifier, and the decision parameter value in the service processing request may include steps S601 to S602:
step S601, in the rule obtaining mode configured in advance, determining a target rule obtaining mode corresponding to the service party identifier and the scene identifier in the service processing request.
In this embodiment of the present disclosure, in the rule obtaining mode configured in advance, the process of determining the target rule obtaining mode corresponding to the service party identifier and the scene identifier in the service processing request by the service processing party server may refer to step S501, which is not repeated in this embodiment of the present disclosure.
Step S602, based on the target rule obtaining mode, according to the service party identifier, the scene identifier, and the decision parameter value in the service processing request, obtaining at least one target service processing rule corresponding to the service processing request from the pre-configured service processing rules.
In an optional implementation manner, if the target rule obtaining mode is the first rule obtaining mode, a target service processing rule corresponding to the service processing request is obtained from the pre-configured service processing rules according to the service party identifier, the scene identifier, and the decision parameter value in the service processing request.
The process of the service processing side server obtaining a target service processing rule corresponding to the service processing request from the pre-configured service processing rules according to the service side identifier, the scene identifier and the decision parameter value in the service processing request may include: acquiring a plurality of candidate service processing rules corresponding to the service processing request from pre-configured service processing rules according to the service party identifier, the scene identifier and the decision parameter value in the service processing request; and determining the service processing rule with the highest priority in the candidate service processing rules corresponding to the service processing request to obtain a target service processing rule corresponding to the service processing request.
The process of obtaining a plurality of candidate service processing rules corresponding to the service processing request from the pre-configured service processing rules according to the service party identifier, the scene identifier, and the decision parameter value in the service processing request may include:
the method comprises the steps of obtaining a target business processing rule group table corresponding to a business party identifier and a scene identifier in a business processing request from a pre-stored business processing rule group table, obtaining field information of a rule group identifier field in the target business processing rule group table to obtain the target rule group identifier corresponding to the business party identifier and the scene identifier in the business processing request, obtaining at least one candidate rule table corresponding to the target rule group identifier from a plurality of pre-established rule tables, obtaining field information of a rule expression field in each candidate rule table, obtaining field information of an expression field with rule parameters consistent with the rule parameters corresponding to decision parameter values in the field information, and obtaining a plurality of candidate business processing rules corresponding to the business processing request. The target service processing rule corresponding to the service processing request can be acquired according to a rule acquisition mode pre-configured by the service party, the efficiency of the target service processing rule corresponding to the service processing request is further improved, and the matching degree of the processing result of the service processing request and the requirements of the service party can also be improved.
The process of determining the service processing rule with the highest priority among the multiple candidate service processing rules corresponding to the service processing request to obtain the target service processing rule corresponding to the service processing request may refer to the process of determining the service processing rule with the highest priority among the multiple candidate service processing rules corresponding to the service processing request in step S502 to obtain the target service processing rule corresponding to the service processing request, which is not described in detail in this embodiment of the disclosure.
Illustratively, the service party is an e-commerce platform, and the service processing request includes a service party identifier a, a service scenario a1 and a decision parameter value: the method comprises the steps that a user account balance is 1000, a commodity price is 300, if a target rule acquisition mode is determined to be a first rule acquisition mode according to a service party identifier A and a service scene a1, and three target rule tables are determined according to the service party identifier A, the service scene a1, a pre-established service processing rule group table and a plurality of rule tables, wherein field information of a rule expression field in one target rule table S1 comprises the following steps: the balance of the user account is more than the commodity price; the field information of the rule expression field in one target rule table S2 includes: and the user account status is 1, wherein 1 represents that the user allows the advance message; the field information of the rule expression field in one target rule table S3 includes: the balance of the user account is more than the commodity price and the commodity purchase quantity is less than 5, wherein, and represents and operation. Since, the rule expression fields in the target rules table S1 and the target rules table S3 include the values associated with the decision parameter: decision parameters corresponding to the user account balance 1000 and the commodity price 300 respectively: and (4) acquiring the balance of the user account and the commodity price, and acquiring field information of the rule expression fields in the target rule table S1 and the target rule table S3 to obtain two target business processing rules.
In an optional implementation manner, if the target rule obtaining mode is the second rule obtaining mode, according to the service party identifier, the scene identifier, and the decision parameter value in the service processing request, a plurality of target service processing rules corresponding to the service processing request are obtained in the service processing rules configured in advance.
The process that the service processing side server obtains a plurality of target service processing rules corresponding to the service processing request from the preconfigured service processing rules according to the service side identifier, the scene identifier, and the decision parameter value in the service processing request may refer to a process that the service processing side server obtains a plurality of candidate service processing rules corresponding to the service processing request from the preconfigured service processing rules according to the service side identifier, the scene identifier, and the decision parameter value in the service processing request when the target rule obtaining mode is the first rule obtaining mode.
In an optional embodiment, after generating the service processing rule corresponding to each combination of the service party identifier and the scene identifier, the service processor server may further: the business processing rules are precompiled and rule analyzed to obtain executable business processing rules corresponding to the combination of each business party identifier and the scene identifier, the business processing rules corresponding to the combination of each business party identifier and the scene identifier can be precompiled, and resource consumption caused by precompiling and rule analyzing the business processing rules in each business processing process is reduced.
In an optional embodiment, in step S304, the executing, by the service processing side server, the target service processing rule to obtain a processing result corresponding to the service processing request includes: acquiring an executable target service processing rule corresponding to the target service processing rule; and executing the executable target business processing rule to obtain a processing result corresponding to the business processing request.
It should be noted that, in this embodiment of the present disclosure, if the target rule obtaining mode corresponding to the service processing request is the second rule obtaining mode, the service processing side server may obtain a plurality of target service processing rules, and in the target service processing rule executing stage, any target service processing rule in the plurality of target service processing rules may be executed to obtain a processing result, so as to improve the decision efficiency.
Fig. 7 is a schematic diagram illustrating a service processing apparatus according to an exemplary embodiment, the service processing apparatus is used in a service processor server, and as shown in fig. 7, the service processing apparatus 700 includes:
a receiving module 701 configured to receive a service processing request sent by a service side server;
a determining module 702 configured to determine a target rule calling mode to which the service processing request applies among the preconfigured rule calling modes;
a rule calling module 703 configured to determine and call a target service processing rule corresponding to the service processing request in a pre-configured service processing rule according to parameter information corresponding to the target rule calling mode, where the parameter information includes a service party identifier and a scene identifier;
and the rule executing module 704 is configured to execute the target business processing rule to obtain a processing result corresponding to the business processing request.
Optionally, the target rule invoking mode is a first rule invoking mode, and the rule invoking module 703 is configured to:
and determining and calling a target service processing rule corresponding to the service processing request in the pre-configured service processing rules according to the service party identifier and the scene identifier in the service processing request.
Optionally, the rule invoking module 703 is configured to:
determining a target rule acquisition mode corresponding to a service party identifier and a scene identifier in a service processing request in a preset rule acquisition mode;
and acquiring at least one target business processing rule corresponding to the business processing request from pre-configured business processing rules according to the business party identifier and the scene identifier in the business processing request based on the target rule acquisition mode.
Optionally, the rule invoking module 703 is configured to:
if the target rule obtaining mode is the first rule obtaining mode, obtaining a target service processing rule corresponding to the service processing request from the pre-configured service processing rules according to the service party identifier and the scene identifier in the service processing request;
and if the target rule acquisition mode is the second rule acquisition mode, acquiring a plurality of target service processing rules corresponding to the service processing request from the pre-configured service processing rules according to the service party identifier and the scene identifier in the service processing request.
Optionally, the rule invoking module 703 is configured to:
acquiring a plurality of candidate service processing rules corresponding to the service processing request from pre-configured service processing rules according to the service party identifier and the scene identifier in the service processing request;
and determining the service processing rule with the highest priority in the candidate service processing rules corresponding to the service processing request to obtain a target service processing rule corresponding to the service processing request.
Optionally, the target rule invoking mode is a second rule invoking mode, and the rule invoking module 703 is configured to:
and determining and calling a target service processing rule corresponding to the service processing request in a pre-configured service processing rule according to the service party identifier, the scene identifier and the decision parameter value in the service processing request.
Optionally, the rule invoking module 703 is configured to:
determining a target rule acquisition mode corresponding to a service party identifier and a scene identifier in a service processing request in a preset rule acquisition mode;
and acquiring at least one target business processing rule corresponding to the business processing request from pre-configured business processing rules according to the business party identifier, the scene identifier and the decision parameter value in the business processing request based on the target rule acquisition mode.
Optionally, the rule invoking module 703 is configured to:
if the target rule obtaining mode is the first rule obtaining mode, obtaining a target service processing rule corresponding to the service processing request from pre-configured service processing rules according to the service party identifier, the scene identifier and the decision parameter value in the service processing request;
and if the target rule acquisition mode is the second rule acquisition mode, acquiring a plurality of target business processing rules corresponding to the business processing request from the pre-configured business processing rules according to the business party identifier, the scene identifier and the decision parameter value in the business processing request.
Optionally, the rule invoking module 703 is configured to:
acquiring a plurality of candidate service processing rules corresponding to the service processing request from pre-configured service processing rules according to the service party identifier, the scene identifier and the decision parameter value in the service processing request;
and determining the service processing rule with the highest priority in the candidate service processing rules corresponding to the service processing request to obtain a target service processing rule corresponding to the service processing request.
Optionally, as shown in fig. 7, the service processing apparatus 700 further includes a rule management module 705 configured to:
acquiring at least one service party identifier, at least one scene identifier and at least one rule parameter;
responding to the combination instruction, acquiring a combination of at least one service party identifier and a scene identifier, and obtaining a rule template corresponding to the combination of each service party identifier and the scene identifier based on the at least one service party identifier, the at least one scene identifier and at least one rule parameter;
and generating a service processing rule corresponding to the combination of each service party identifier and the scene identifier according to the rule template corresponding to the combination of each service party identifier and the scene identifier.
Optionally, the rule management module 705 is configured to:
in response to the rule parameter selection instruction, acquiring at least one rule parameter corresponding to each combination of the service party identifier and the scene identifier from among the at least one rule parameter:
responding to an operator selection instruction, and acquiring an operator between at least one rule parameter corresponding to the combination of each service party identifier and the scene identifier;
and obtaining a rule template corresponding to the combination of each service party identifier and the scene identifier according to at least one rule parameter and operator corresponding to the combination of each service party identifier and the scene identifier.
Optionally, the rule management module 705 is configured to:
responding to a rule template selection instruction, acquiring a rule template corresponding to the combination of each service party identifier and the scene identifier, and acquiring a first service rule processing condition;
and responding to the processing result editing instruction, acquiring at least one processing result corresponding to the first service processing rule condition, and acquiring a service processing rule corresponding to the combination of each service party identifier and the scene identifier.
Optionally, the rule management module 705 is configured to:
responding to a processing result editing instruction, and acquiring a plurality of rule templates corresponding to the combination of each service party identifier and the scene identifier;
responding to an operator selection instruction, acquiring operators among a plurality of rule templates corresponding to the combination of each business side identifier and the scene identifier, and obtaining a second business rule processing condition;
and responding to the processing result editing instruction, acquiring at least one processing result corresponding to the second service processing rule condition, and acquiring a service processing rule corresponding to the combination of each service party identifier and the scene identifier.
Optionally, as shown in fig. 7, the service processing apparatus 700 further includes:
a rule preprocessing module 706 configured to perform pre-compiling and rule parsing on the service processing rule to obtain an executable service processing rule corresponding to a combination of each service party identifier and the scene identifier;
a rule execution module 704 configured to:
acquiring an executable target service processing rule corresponding to the target service processing rule;
and executing the executable target business processing rule to obtain a processing result corresponding to the business processing request.
Exemplary embodiments of the present disclosure also provide an electronic device, which may be a service processor server. The electronic device is explained below with reference to fig. 8. It should be understood that the electronic device is described below with reference to fig. 8. It should be understood that the electronic device 800 shown in fig. 8 is only one example and should not bring any limitations to the functionality or scope of use of the embodiments of the present disclosure.
As shown in fig. 8, electronic device 800 is in the form of a general purpose computing device. The components of the electronic device 800 may include, but are not limited to: at least one processing unit 810, at least one memory unit 820, and a bus 830 that couples the various system components including the memory unit 820 and the processing unit 810.
Where the memory unit stores program code, the program code may be executed by the processing unit 810 to cause the processing unit 810 to perform steps according to various exemplary embodiments of the present invention as described in the above-mentioned "exemplary methods" section of this specification. For example, processing unit 810 may perform method steps, etc., as shown in fig. 2.
The storage unit 820 may include volatile storage units such as a random access storage unit (RAM)821 and/or a cache storage unit 822, and may further include a read only storage unit (ROM) 823.
The electronic device 800 may also communicate with one or more external devices 900 (e.g., keyboard, pointing device, bluetooth device, etc.), which may be through an input/output (I/O) interface 840. The electronic device 800 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 850. As shown, the network adapter 850 communicates with the other modules of the electronic device 800 via the bus 830. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit, according to exemplary embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
In addition, the present disclosure also provides a computer-readable storage medium, wherein when the instructions in the computer-readable storage medium are executed by a processor of the electronic device, the electronic device is enabled to execute the service processing method provided in the above embodiment.
In addition, the present disclosure also provides a computer program product, which includes computer instructions, when the computer instructions are run on an electronic device, the electronic device is caused to execute the service processing method provided in the above embodiment.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Claims (10)
1. A method for processing a service, comprising:
receiving a service processing request sent by a service side server;
determining a target rule calling mode applicable to the service processing request in a preset rule calling mode;
determining and calling a target service processing rule corresponding to the service processing request in a pre-configured service processing rule according to parameter information corresponding to the target rule calling mode, wherein the parameter information comprises a service party identifier and a scene identifier;
and executing the target service processing rule to obtain a processing result corresponding to the service processing request.
2. The service processing method according to claim 1, wherein the target rule calling mode is a first rule calling mode, and determining and calling a target service processing rule corresponding to the service processing request in a service processing rule configured in advance according to parameter information corresponding to the target rule calling mode includes:
and determining and calling a target service processing rule corresponding to the service processing request in the pre-configured service processing rules according to the service party identifier and the scene identifier in the service processing request.
3. The service processing method according to claim 2, wherein the determining and invoking a target service processing rule corresponding to the service processing request in a pre-configured service processing rule according to a service party identifier and a scenario identifier in the service processing request comprises:
determining a target rule acquisition mode corresponding to a service party identifier and a scene identifier in the service processing request in a preset rule acquisition mode;
and acquiring at least one target business processing rule corresponding to the business processing request from pre-configured business processing rules according to the business party identifier and the scene identifier in the business processing request based on the target rule acquisition mode.
4. The service processing method according to claim 1, wherein the target rule invoking mode is a second rule invoking mode, the parameter information further includes a decision parameter value, and determining and invoking a target service processing rule corresponding to the service processing request in a pre-configured service processing rule according to the parameter information corresponding to the target rule invoking mode includes:
and determining and calling a target service processing rule corresponding to the service processing request in a pre-configured service processing rule according to the service party identifier, the scene identifier and the decision parameter value in the service processing request.
5. The service processing method according to claim 4, wherein the determining and invoking a target service processing rule corresponding to the service processing request in a pre-configured service processing rule according to the service party identifier, the scene identifier, and the decision parameter value in the service processing request comprises:
determining a target rule acquisition mode corresponding to a service party identifier and a scene identifier in the service processing request in a preset rule acquisition mode;
and acquiring at least one target business processing rule corresponding to the business processing request from pre-configured business processing rules according to the business party identifier, the scene identifier and the decision parameter value in the business processing request based on the target rule acquisition mode.
6. The traffic processing method according to claim 1, wherein the method further comprises:
acquiring at least one service party identifier, at least one scene identifier and at least one rule parameter;
responding to a combination instruction, acquiring a combination of at least one service party identifier and the scene identifier, and obtaining a rule template corresponding to the combination of each service party identifier and the scene identifier based on at least one rule parameter;
and generating a service processing rule corresponding to the combination of each service party identifier and the scene identifier according to the rule template corresponding to the combination of each service party identifier and the scene identifier.
7. A traffic processing apparatus, comprising:
the receiving module is configured to receive a service processing request sent by a service side server;
the determining module is configured to determine a target rule calling mode applicable to the service processing request in preset rule calling modes;
the rule calling module is configured to determine and call a target business processing rule corresponding to the business processing request in a pre-configured business processing rule according to parameter information corresponding to the target rule calling mode, wherein the parameter information comprises a business party identifier and a scene identifier;
and the rule execution module is configured to execute the target service processing rule to obtain a processing result corresponding to the service processing request.
8. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the traffic processing method of any of claims 1 to 6.
9. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the traffic processing method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the business process method of any of claims 1 to 6 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210033355.5A CN114219585A (en) | 2022-01-12 | 2022-01-12 | Business processing method, business processing device, electronic equipment, storage medium and program product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210033355.5A CN114219585A (en) | 2022-01-12 | 2022-01-12 | Business processing method, business processing device, electronic equipment, storage medium and program product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114219585A true CN114219585A (en) | 2022-03-22 |
Family
ID=80708112
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210033355.5A Pending CN114219585A (en) | 2022-01-12 | 2022-01-12 | Business processing method, business processing device, electronic equipment, storage medium and program product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114219585A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117055943A (en) * | 2023-07-17 | 2023-11-14 | 中国人民银行数字货币研究所 | Rule-based decision method and device, electronic equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107316134A (en) * | 2017-06-16 | 2017-11-03 | 深圳乐信软件技术有限公司 | A kind of risk control method, device, server and storage medium |
CN109086031A (en) * | 2018-06-28 | 2018-12-25 | 阿里巴巴集团控股有限公司 | A kind of operational decision making method and apparatus of rule-based engine |
-
2022
- 2022-01-12 CN CN202210033355.5A patent/CN114219585A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107316134A (en) * | 2017-06-16 | 2017-11-03 | 深圳乐信软件技术有限公司 | A kind of risk control method, device, server and storage medium |
CN109086031A (en) * | 2018-06-28 | 2018-12-25 | 阿里巴巴集团控股有限公司 | A kind of operational decision making method and apparatus of rule-based engine |
Non-Patent Citations (1)
Title |
---|
一点资讯技术团队: "一点推荐策略平台的探索与实践", pages 1 - 15, Retrieved from the Internet <URL:https://juejin.cn/post/7023573581728579592> * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117055943A (en) * | 2023-07-17 | 2023-11-14 | 中国人民银行数字货币研究所 | Rule-based decision method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20240204978A1 (en) | Interface for digital operator platform including response caching | |
CN110310034B (en) | Service arrangement and business flow processing method and device applied to SaaS | |
CN102202078B (en) | The method and system of a kind of multiple foreign peoples roles for configuration server field | |
US10924590B1 (en) | Virtual workspace experience visualization and optimization | |
CN111245642A (en) | Method and device for acquiring dependency relationship between multiple systems and electronic equipment | |
CN112100585A (en) | Authority management method, device and storage medium | |
CN113946328A (en) | Service processing method and system, storage medium and electronic equipment | |
CN114924751A (en) | Method and device for distributing service access request flow | |
CN111612504A (en) | Information sending method and device for task completion user and electronic equipment | |
CN114219585A (en) | Business processing method, business processing device, electronic equipment, storage medium and program product | |
CN110888800A (en) | Service interaction function test method, device, storage medium and test system | |
CN111555894B (en) | Data processing method, device, equipment and storage medium | |
CN111666166B (en) | Service providing method, device, equipment and storage medium | |
US9323509B2 (en) | Method and system for automated process distribution | |
CN116028696A (en) | Resource information acquisition method and device, electronic equipment and storage medium | |
CN113254523B (en) | Data calling method and device, electronic equipment and storage medium | |
CN115695210A (en) | Cloud server deployment method and device, electronic equipment and storage medium | |
WO2022241945A1 (en) | Data processing method and device, and computer-readable storage medium | |
CN110166272A (en) | The method, apparatus and system of terminal device index mediation service are provided | |
CN109803017B (en) | File intercommunication method and device, computing equipment and computer readable storage medium | |
CN111506340B (en) | Business rule information processing method, device and system | |
JP2021125264A (en) | Information processing device | |
CN113326052A (en) | Method and device for upgrading service component, computer equipment and storage medium | |
CN111784174A (en) | Method and device for managing risk policy based on user portrait and electronic equipment | |
CN112433821B (en) | Method and device for building business model, electronic 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 |