CN111209306A - Business logic judgment method and device, electronic equipment and storage medium - Google Patents

Business logic judgment method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111209306A
CN111209306A CN202010002010.4A CN202010002010A CN111209306A CN 111209306 A CN111209306 A CN 111209306A CN 202010002010 A CN202010002010 A CN 202010002010A CN 111209306 A CN111209306 A CN 111209306A
Authority
CN
China
Prior art keywords
service
judgment
judgment rule
rule
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010002010.4A
Other languages
Chinese (zh)
Inventor
李明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010002010.4A priority Critical patent/CN111209306A/en
Publication of CN111209306A publication Critical patent/CN111209306A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Abstract

The embodiment of the disclosure discloses a method, a device, an electronic device and a storage medium for service logic judgment, wherein the method comprises the following steps: receiving a service logic judgment request sent by a user side, wherein the service logic judgment request comprises service parameters; matching in a configured judgment rule base according to the service parameters, and determining a corresponding judgment rule, wherein the judgment rule base supports dynamic adjustment; and judging the service parameters by adopting the judgment rule to obtain a judgment result. According to the technical scheme provided by the embodiment of the disclosure, the judgment rule base is configured, codes of the service platform do not need to be modified, the judgment rule can be flexibly adjusted, and the judgment rule can be adjusted even in the operation process of the service platform, so that the judgment rule is flexible and reliable and has high performance.

Description

Business logic judgment method and device, electronic equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of data processing, and in particular, to a method and an apparatus for business logic determination, an electronic device, and a storage medium.
Background
During the development of a service platform, there is often a need to control flow, enable or mask certain logic or functions according to certain conditions. Illustratively, after a product in a service platform is released, in order to ensure the integrity of a version B after the product is upgraded from the version A to the version B, gray release can be performed, that is, a part of users are selected to use the version B, and other users continue to use the version A; flow control in the service platform, a new function is developed by a product, in order to determine the performance of the new function, when the new function is on-line, a part of users can be selected to use the new function, and other users cannot use the new function; in the function test in the service platform, a product develops a function A and a function B, and the function A and the function B are respectively tested by different types of users to determine which function is better.
Generally, the business logic judgment is generally performed by setting judgment rules in the code of the business platform or storing the judgment rules in a database. However, the above-mentioned judgment rule is fixed, when the service requirement or service function to be judged changes, it can only be realized by modifying the code, the efficiency is low, and the flexibility can not meet the requirement.
Disclosure of Invention
The embodiment of the disclosure provides a method and a device for judging service logic, electronic equipment and a storage medium, so as to optimize a judgment scheme in a service logic processing process and improve judgment flexibility.
In a first aspect, an embodiment of the present disclosure provides a method for determining service logic, including:
receiving a service logic judgment request sent by a user side, wherein the service logic judgment request comprises service parameters;
matching in a configured judgment rule base according to the service parameters, and determining a corresponding judgment rule, wherein the judgment rule base supports dynamic adjustment;
and judging the service parameters by adopting the judgment rule to obtain a judgment result.
In a second aspect, an embodiment of the present disclosure further provides a service logic determining apparatus, where the apparatus includes:
the system comprises a judgment request module, a service logic judgment module and a service parameter judging module, wherein the judgment request module is used for receiving a service logic judgment request sent by a user side, and the service logic judgment request comprises a service parameter;
the rule determining module is used for matching in a configured judgment rule base according to the service parameters and determining a corresponding judgment rule, wherein the judgment rule base supports dynamic adjustment;
and the judging module is used for judging the service parameters by adopting the judging rule to obtain a judging result.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the business logic determination method as described above.
In a fourth aspect, the disclosed embodiments also provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the business logic determination method as described above.
The embodiment of the disclosure obtains the judgment result by receiving a service logic judgment request sent by a user side, wherein the service logic judgment request comprises service parameters, matching the service parameters in a configured judgment rule base according to the service parameters, determining a corresponding judgment rule, supporting dynamic adjustment by the judgment rule base, and judging the service parameters by adopting the judgment rule. According to the technical scheme provided by the embodiment of the disclosure, the judgment rule base is configured, codes of the service platform do not need to be modified, the judgment rule can be flexibly adjusted, and the judgment rule can be adjusted even in the operation process of the service platform, so that the judgment rule is flexible and reliable and has high performance.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a flowchart of a method for determining service logic in an embodiment of the present disclosure;
fig. 2 is a flowchart of another service logic determination method in an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a service logic determination apparatus in an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Fig. 1 is a flowchart of a service logic determination method in an embodiment of the present disclosure, where this embodiment is applicable to a case of determining a service logic in a service platform, and the method may be executed by a service logic determination device, where the device may be implemented in a software and/or hardware manner, and the device may be configured in an electronic device, such as a server or a terminal device, where a typical terminal device includes a mobile terminal, and specifically includes a mobile phone, a computer, or a tablet computer. As shown in fig. 1, the method may specifically include:
s110, receiving a service logic judgment request sent by a user side, wherein the service logic judgment request comprises service parameters.
The user side is a service platform for providing services for users. The service logic judgment request is an instruction for judging the on-off state of the service logic or the service function provided by the user side, that is, an instruction for judging whether the service logic is operated. The service logic judgment request comprises service parameters, wherein the service parameters are parameters related to specific service logic, and the service parameters corresponding to different service logics are different. The service parameters in this embodiment may include user data and non-user data, where the user data may include at least one of parameters such as a user list and user characteristics, and the non-user data may include at least one of parameters such as an IP address, time data, and terminal data. For example, the user characteristics may be user gender, user age, etc., and the terminal data may be browser type, etc.
Specifically, when the user operates the setting key, the user side may obtain the service logic determination request, and send the service logic determination request to the service logic determination device, where the setting key may be a virtual key in the user side, and virtual keys corresponding to different service logic determination requests may be different. In this scheme, the service logic determination device may be configured at the user side, or may be configured at another service platform, and may be specifically set according to an actual situation.
And S120, matching in the configured judgment rule base according to the service parameters, determining a corresponding judgment rule, and enabling the judgment rule base to support dynamic adjustment.
The judgment rule base is a preset service logic judgment platform comprising a calculation engine, comprises at least one judgment rule, and can judge the on-off state of service logic or service functions through the judgment rule. The decision rule base can support dynamic adjustment, even when the user side is running, the adjustment can be performed.
Specifically, matching in the configured judgment rule base according to the service parameters to determine the corresponding judgment rule may include: extracting a service identifier in the service parameter; and performing similarity matching in the judgment rule base according to the service identifier to determine the judgment rule with the similarity meeting the set requirement. The service identifier is a preset identifier used for representing service logic, and the service identifiers corresponding to different service logics are different.
After receiving the service parameters, the service identifier in the service parameters can be extracted, similarity matching is performed between the service identifier and each judgment rule in the judgment rule base, and if the similarity of one judgment rule meets the set requirement, the judgment rule is the judgment rule corresponding to the service parameters. The setting requirement may be a similarity threshold, and the similarity threshold may be set according to an actual situation.
And S130, judging the service parameters by adopting a judgment rule to obtain a judgment result.
The judgment result may include that the service condition is satisfied and that the service condition is not satisfied. The condition that the service logic is on is satisfied, and the condition that the service logic is off is not satisfied.
Specifically, after determining the judgment rule corresponding to the service parameter, a calculation expression corresponding to the judgment rule may be adopted to determine whether the service parameter satisfies the service condition. And each judgment rule is configured with a complex calculation expression for logic calculation. For example, a calculation expression corresponding to one judgment rule may be "User ID in (12345)", and if the User ID in the service parameter is 6, the judgment result is that the service condition is not satisfied, and if the User ID in the service parameter is 5, the judgment result is that the service condition is satisfied.
The embodiment of the disclosure obtains the judgment result by receiving a service logic judgment request sent by a user side, wherein the service logic judgment request comprises service parameters, matching the service parameters in a configured judgment rule base according to the service parameters, determining a corresponding judgment rule, supporting dynamic adjustment by the judgment rule base, and judging the service parameters by adopting the judgment rule. According to the technical scheme provided by the embodiment of the disclosure, the judgment rule base is configured, codes of the service platform do not need to be modified, the judgment rule can be flexibly adjusted, and the judgment rule can be adjusted even in the operation process of the service platform, so that the judgment rule is flexible and reliable and has high performance.
Fig. 2 is a flowchart of another service logic determination method in the embodiment of the present disclosure. On the basis of the foregoing embodiments, the present embodiment further optimizes the service logic determination method. Correspondingly, as shown in fig. 2, the method of the embodiment specifically includes:
s210, receiving a service logic judgment request sent by a user side.
Wherein, the service logic judgment request includes service parameters.
And S220, matching in the configured judgment rule base according to the service parameters, and determining a corresponding judgment rule.
The judgment rule base supports dynamic adjustment and comprises at least one judgment rule.
Specifically, matching in the configured judgment rule base according to the service parameters to determine the corresponding judgment rule may include: extracting a service identifier in the service parameter; and performing similarity matching in the judgment rule base according to the service identifier to determine the judgment rule with the similarity meeting the set requirement.
Optionally, after matching in the configured determination rule base according to the service parameter, the method may further include: and if the matching fails in the judgment rule base according to the service parameters, adding a judgment rule corresponding to the service parameters in the judgment rule base through a rule configuration interface.
The rule configuration interface is a preset interface capable of performing operations such as addition, deletion and modification of judgment rules, and a plurality of function keys and function interfaces can be configured in the rule configuration interface. If the service parameters are matched with the judgment rules in the judgment rule base, and the matching is determined to fail, the rule configuration interface can be called, and the corresponding judgment rules are added into the judgment rule base according to the service function requirements corresponding to the service parameters. The service function requirements can be set according to actual conditions.
And S230, judging the service parameters by adopting a judgment rule to obtain a judgment result.
Specifically, after determining the judgment rule corresponding to the service parameter, a calculation expression corresponding to the judgment rule may be adopted to determine whether the service parameter satisfies the service condition.
S240, sending the determination result to the user side, so that the user side provides a service based on the determination result.
In this scheme, after the service logic determination device obtains the determination result, the service logic determination device may send the determination result to the user side, so that the user side provides the corresponding service to the user according to the determination result. Illustratively, if the service logic determines that the service parameters in the request include parameters: the gender of the user is female and the basketball channel, and when the judgment result is that the service condition is not met, the user side does not recommend the relevant information of the basketball channel for the user corresponding to the service logic judgment request.
The embodiment of the disclosure receives a service logic judgment request sent by a user side, wherein the service logic judgment request comprises service parameters, matches the service parameters in a configured judgment rule base according to the service parameters, determines corresponding judgment rules, supports dynamic adjustment, judges the service parameters by adopting the judgment rules, obtains a judgment result, and sends the judgment result to the user side so that the user side provides services based on the judgment result. According to the technical scheme provided by the embodiment of the disclosure, a judgment rule base is configured, codes of a service platform do not need to be modified, the judgment rule can be flexibly adjusted, and the adjustment can be performed even in the operation process of the service platform, so that the judgment rule is flexible and reliable and has high performance; and new judgment rules can be added into the judgment rule base, so that the applicability is continuously improved.
Fig. 3 is a schematic structural diagram of a service logic determination apparatus in this embodiment of the disclosure, which is applicable to a case of determining a service logic in a service platform. The service logic judgment device provided by the embodiment of the disclosure can execute the service logic judgment method provided by any embodiment of the disclosure, and has the corresponding functional module and beneficial effect of the execution method.
The apparatus specifically includes a determination request module 310, a rule determination module 320, and a determination module 330, where:
a judgment request module 310, configured to receive a service logic judgment request sent by a user side, where the service logic judgment request includes a service parameter;
a rule determining module 320, configured to perform matching in a configured judgment rule base according to the service parameter, and determine a corresponding judgment rule, where the judgment rule base supports dynamic adjustment;
the judging module 330 is configured to judge the service parameter by using the judging rule, so as to obtain a judging result.
Optionally, the rule determining module 320 is specifically configured to:
extracting a service identifier in the service parameter;
and performing similarity matching in the judgment rule base according to the service identifier to determine a judgment rule with the similarity meeting a set requirement, wherein the judgment rule base comprises at least one judgment rule.
Optionally, the determining module 330 is specifically configured to:
and determining whether the service parameters meet the service conditions or not by adopting a calculation expression corresponding to the judgment rule, wherein the judgment result comprises the service conditions meeting and the service conditions not meeting.
Optionally, the apparatus further includes a rule adding module, where the rule adding module is specifically configured to:
and after matching is carried out in a configured judgment rule base according to the business parameters, if the matching fails in the judgment rule base according to the business parameters, adding judgment rules corresponding to the business parameters in the judgment rule base through a rule configuration interface.
Optionally, the apparatus further includes a result sending module, where the result sending module is specifically configured to:
and judging the service parameters by adopting the judgment rule, and sending the judgment result to the user side after obtaining the judgment result so that the user side provides services based on the judgment result.
Optionally, the service parameter includes user data and non-user data.
Optionally, the user data includes at least one of a user list and a user characteristic, and the non-user data includes at least one of an IP address, time data, and terminal data.
The service logic judgment device provided by the embodiment of the disclosure can execute the service logic judgment method provided by the embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
Fig. 4 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure. Referring now specifically to fig. 4, a schematic diagram of an electronic device 400 suitable for use in implementing embodiments of the present disclosure is shown. The electronic device 400 in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle-mounted terminal (e.g., a car navigation terminal), and the like, and fixed terminals such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, electronic device 400 may include a processing device (e.g., central processing unit, graphics processor, etc.) 401 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage device 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic apparatus 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates an electronic device 400 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 409, or from the storage device 408, or from the ROM 402. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 401.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a service logic judgment request sent by a user side, wherein the service logic judgment request comprises service parameters; matching in a configured judgment rule base according to the service parameters, and determining a corresponding judgment rule, wherein the judgment rule base supports dynamic adjustment; and judging the service parameters by adopting the judgment rule to obtain a judgment result.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, the present disclosure provides a service logic determination method, including:
receiving a service logic judgment request sent by a user side, wherein the service logic judgment request comprises service parameters;
matching in a configured judgment rule base according to the service parameters, and determining a corresponding judgment rule, wherein the judgment rule base supports dynamic adjustment;
and judging the service parameters by adopting the judgment rule to obtain a judgment result.
According to one or more embodiments of the present disclosure, in the service logic determination method provided by the present disclosure, matching is performed in a configured determination rule base according to the service parameter, and determining a corresponding determination rule includes:
extracting a service identifier in the service parameter;
and performing similarity matching in the judgment rule base according to the service identifier to determine a judgment rule with the similarity meeting a set requirement, wherein the judgment rule base comprises at least one judgment rule.
According to one or more embodiments of the present disclosure, in the service logic determination method provided by the present disclosure, determining the service parameter by using the determination rule to obtain a determination result includes:
and determining whether the service parameters meet the service conditions or not by adopting a calculation expression corresponding to the judgment rule, wherein the judgment result comprises the service conditions meeting and the service conditions not meeting.
According to one or more embodiments of the present disclosure, after matching the service parameters in the configured determination rule base according to the service logic determination method, the method further includes:
and if the matching in the judgment rule base fails according to the service parameters, adding a judgment rule corresponding to the service parameters in the judgment rule base through a rule configuration interface.
According to one or more embodiments of the present disclosure, the method for determining service logic provided by the present disclosure, which determines the service parameter by using the determination rule, and after obtaining a determination result, further includes:
and sending the judgment result to the user side so that the user side provides services based on the judgment result.
According to one or more embodiments of the present disclosure, in the service logic determination method provided by the present disclosure, the service parameter includes user data and non-user data.
According to one or more embodiments of the present disclosure, in the service logic determination method provided by the present disclosure, the user data includes at least one of a user list and a user characteristic, and the non-user data includes at least one of an IP address, time data, and terminal data.
According to one or more embodiments of the present disclosure, the present disclosure provides a business logic determination apparatus, including:
the system comprises a judgment request module, a service logic judgment module and a service parameter judging module, wherein the judgment request module is used for receiving a service logic judgment request sent by a user side, and the service logic judgment request comprises a service parameter;
the rule determining module is used for matching in a configured judgment rule base according to the service parameters and determining a corresponding judgment rule, wherein the judgment rule base supports dynamic adjustment;
and the judging module is used for judging the service parameters by adopting the judging rule to obtain a judging result.
According to one or more embodiments of the present disclosure, in the service logic determination apparatus provided by the present disclosure, the rule determining module is specifically configured to:
extracting a service identifier in the service parameter;
and performing similarity matching in the judgment rule base according to the service identifier to determine a judgment rule with the similarity meeting a set requirement, wherein the judgment rule base comprises at least one judgment rule.
According to one or more embodiments of the present disclosure, in the service logic determination apparatus provided by the present disclosure, the determination module is specifically configured to:
and determining whether the service parameters meet the service conditions or not by adopting a calculation expression corresponding to the judgment rule, wherein the judgment result comprises the service conditions meeting and the service conditions not meeting.
According to one or more embodiments of the present disclosure, in a service logic determination apparatus provided by the present disclosure, the apparatus further includes a rule adding module, where the rule adding module is specifically configured to:
and after matching is carried out in a configured judgment rule base according to the business parameters, if the matching fails in the judgment rule base according to the business parameters, adding judgment rules corresponding to the business parameters in the judgment rule base through a rule configuration interface.
According to one or more embodiments of the present disclosure, in a service logic determination apparatus provided by the present disclosure, the apparatus further includes a result sending module, where the result sending module is specifically configured to:
and judging the service parameters by adopting the judgment rule, and sending the judgment result to the user side after obtaining the judgment result so that the user side provides services based on the judgment result.
According to one or more embodiments of the present disclosure, in a service logic determination apparatus provided by the present disclosure, the service parameter includes user data and non-user data.
According to one or more embodiments of the present disclosure, in the service logic determination apparatus provided by the present disclosure, the user data includes at least one of a user list and a user characteristic, and the non-user data includes at least one of an IP address, time data, and terminal data.
In accordance with one or more embodiments of the present disclosure, there is provided an electronic device including:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement any of the business logic determination methods provided by the present disclosure.
According to one or more embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements any of the business logic determination methods provided by the present disclosure.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A method for determining service logic, comprising:
receiving a service logic judgment request sent by a user side, wherein the service logic judgment request comprises service parameters;
matching in a configured judgment rule base according to the service parameters, and determining a corresponding judgment rule, wherein the judgment rule base supports dynamic adjustment;
and judging the service parameters by adopting the judgment rule to obtain a judgment result.
2. The method of claim 1, wherein matching the service parameters in a configured judgment rule base according to the service parameters to determine corresponding judgment rules comprises:
extracting a service identifier in the service parameter;
and performing similarity matching in the judgment rule base according to the service identifier to determine a judgment rule with the similarity meeting a set requirement, wherein the judgment rule base comprises at least one judgment rule.
3. The method of claim 1, wherein determining the service parameter by using the determination rule to obtain a determination result comprises:
and determining whether the service parameters meet the service conditions or not by adopting a calculation expression corresponding to the judgment rule, wherein the judgment result comprises the service conditions meeting and the service conditions not meeting.
4. The method of claim 1, wherein after matching in the configured rule base according to the service parameter, further comprising:
and if the matching in the judgment rule base fails according to the service parameters, adding a judgment rule corresponding to the service parameters in the judgment rule base through a rule configuration interface.
5. The method of claim 1, wherein the determining the service parameter by using the determination rule further includes:
and sending the judgment result to the user side so that the user side provides services based on the judgment result.
6. The method of claim 1, wherein the traffic parameters comprise user data and non-user data.
7. The method of claim 6, wherein the user data comprises at least one of a list of users and a user profile, and wherein the non-user data comprises at least one of an IP address, time data, and terminal data.
8. A business logic determination apparatus, comprising:
the system comprises a judgment request module, a service logic judgment module and a service parameter judging module, wherein the judgment request module is used for receiving a service logic judgment request sent by a user side, and the service logic judgment request comprises a service parameter;
the rule determining module is used for matching in a configured judgment rule base according to the service parameters and determining a corresponding judgment rule, wherein the judgment rule base supports dynamic adjustment;
and the judging module is used for judging the service parameters by adopting the judging rule to obtain a judging result.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the business logic determination method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the business logic determination method according to any one of claims 1 to 7.
CN202010002010.4A 2020-01-02 2020-01-02 Business logic judgment method and device, electronic equipment and storage medium Pending CN111209306A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010002010.4A CN111209306A (en) 2020-01-02 2020-01-02 Business logic judgment method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010002010.4A CN111209306A (en) 2020-01-02 2020-01-02 Business logic judgment method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111209306A true CN111209306A (en) 2020-05-29

Family

ID=70787149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010002010.4A Pending CN111209306A (en) 2020-01-02 2020-01-02 Business logic judgment method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111209306A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984247A (en) * 2020-09-11 2020-11-24 得到(天津)文化传播有限公司 Service processing method and device and electronic equipment
CN112434952A (en) * 2020-11-26 2021-03-02 北京嘀嘀无限科技发展有限公司 Business data rule judgment method, device, equipment and storage medium
CN112506774A (en) * 2020-12-03 2021-03-16 中国人寿保险股份有限公司 Testability optimization method and device, electronic equipment and storage medium
CN113283891A (en) * 2021-05-13 2021-08-20 北京字跳网络技术有限公司 Information processing method and device and electronic equipment
CN114816577A (en) * 2022-05-11 2022-07-29 平安普惠企业管理有限公司 Method, device, electronic equipment and medium for configuring service platform function

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6473748B1 (en) * 1998-08-31 2002-10-29 Worldcom, Inc. System for implementing rules
US20120116876A1 (en) * 2010-11-09 2012-05-10 Cbs Interactive In. Apparatus and methods for providing targeted advertising from user behavior
CN106547896A (en) * 2016-11-04 2017-03-29 广州唯品会信息科技有限公司 Rules engine service processing system and method
CN107390983A (en) * 2017-04-28 2017-11-24 阿里巴巴集团控股有限公司 Service order performs method, client and storage medium
CN110389748A (en) * 2019-06-17 2019-10-29 平安银行股份有限公司 Business data processing method and terminal device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6473748B1 (en) * 1998-08-31 2002-10-29 Worldcom, Inc. System for implementing rules
US20120116876A1 (en) * 2010-11-09 2012-05-10 Cbs Interactive In. Apparatus and methods for providing targeted advertising from user behavior
CN106547896A (en) * 2016-11-04 2017-03-29 广州唯品会信息科技有限公司 Rules engine service processing system and method
CN107390983A (en) * 2017-04-28 2017-11-24 阿里巴巴集团控股有限公司 Service order performs method, client and storage medium
CN110389748A (en) * 2019-06-17 2019-10-29 平安银行股份有限公司 Business data processing method and terminal device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984247A (en) * 2020-09-11 2020-11-24 得到(天津)文化传播有限公司 Service processing method and device and electronic equipment
CN112434952A (en) * 2020-11-26 2021-03-02 北京嘀嘀无限科技发展有限公司 Business data rule judgment method, device, equipment and storage medium
CN112506774A (en) * 2020-12-03 2021-03-16 中国人寿保险股份有限公司 Testability optimization method and device, electronic equipment and storage medium
CN113283891A (en) * 2021-05-13 2021-08-20 北京字跳网络技术有限公司 Information processing method and device and electronic equipment
CN114816577A (en) * 2022-05-11 2022-07-29 平安普惠企业管理有限公司 Method, device, electronic equipment and medium for configuring service platform function

Similar Documents

Publication Publication Date Title
CN111209306A (en) Business logic judgment method and device, electronic equipment and storage medium
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN110390493B (en) Task management method and device, storage medium and electronic equipment
CN111163324B (en) Information processing method and device and electronic equipment
CN113254105B (en) Resource processing method and device, storage medium and electronic equipment
CN110795446A (en) List updating method and device, readable medium and electronic equipment
CN111432001A (en) Method, apparatus, electronic device, and computer-readable medium for jumping scenes
CN112214408A (en) Dependency conflict detection method and device, electronic equipment and computer readable medium
CN111694629A (en) Information display method and device and electronic equipment
CN111209432A (en) Information acquisition method and device, electronic equipment and computer readable medium
CN110674481A (en) Account registration method, device, equipment and storage medium of application program
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN111756953A (en) Video processing method, device, equipment and computer readable medium
CN110619101A (en) Method and apparatus for processing information
CN113518183A (en) Camera calling method and device and electronic equipment
CN113032046A (en) Method, device and equipment for repairing so file and storage medium
CN111680754A (en) Image classification method and device, electronic equipment and computer-readable storage medium
CN111580890A (en) Method, apparatus, electronic device, and computer-readable medium for processing features
CN111241443A (en) Method and device for pushing information and electronic equipment
CN111240657A (en) Method and device for generating SDK and electronic equipment
CN111625707B (en) Recommendation response method, device, medium and equipment
CN110855767B (en) Method, device, equipment and storage medium for responding operation request
CN113157365B (en) Program running method, program running device, electronic equipment and computer readable medium
CN110716885B (en) Data management method and device, electronic equipment and storage medium
CN111083196B (en) Information forwarding method and device and electronic equipment

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