CN112953754A - Configuration method and device of differentiated service, electronic equipment and storage medium - Google Patents

Configuration method and device of differentiated service, electronic equipment and storage medium Download PDF

Info

Publication number
CN112953754A
CN112953754A CN202010398061.3A CN202010398061A CN112953754A CN 112953754 A CN112953754 A CN 112953754A CN 202010398061 A CN202010398061 A CN 202010398061A CN 112953754 A CN112953754 A CN 112953754A
Authority
CN
China
Prior art keywords
service
client
differentiated
process node
information
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.)
Granted
Application number
CN202010398061.3A
Other languages
Chinese (zh)
Other versions
CN112953754B (en
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.)
Shenzhen Mingyuan Yunke E Commerce Co ltd
Original Assignee
Shenzhen Mingyuan Yunke E Commerce 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 Shenzhen Mingyuan Yunke E Commerce Co ltd filed Critical Shenzhen Mingyuan Yunke E Commerce Co ltd
Priority to CN202010398061.3A priority Critical patent/CN112953754B/en
Publication of CN112953754A publication Critical patent/CN112953754A/en
Application granted granted Critical
Publication of CN112953754B publication Critical patent/CN112953754B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • H04L41/5048Automatic or semi-automatic definitions, e.g. definition templates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application provides a configuration method, a configuration device, electronic equipment and a storage medium of differentiated services, wherein the method comprises the following steps: acquiring service process node information of a client, wherein the service process node information comprises a service differentiation processing identifier for identifying whether the service process node of the client contains the service differentiation processing identifier; when the service process node information of the client contains a service differentiation processing identifier, acquiring a service implementation class matched with the service process node of the client from a preset service implementation class configuration list; and operating the service process nodes of the client according to the service implementation classes matched with the service process nodes of the client. The method avoids the problem that a service system writes a large amount of ifelse logic in the service code to meet the differentiated service requirements of different clients, and solves the problems of serious coupling and difficult expansion caused by coupling of the code with various service party information.

Description

Configuration method and device of differentiated service, electronic equipment and storage medium
Technical Field
The present application belongs to the technical field of computer processing, and in particular, to a differentiated service configuration method and apparatus, an electronic device, and a storage medium.
Background
At present, in order to stimulate the liveness of users and attract more new users, more and more business parties (such as merchants) usually implement various differentiated services for different business parties in a service system. For example, the lottery activity is different for different service parties, and the corresponding applicable lottery algorithm is different when the lottery activity is executed, and the lottery activity can have various different lottery algorithms, such as calculation according to the lottery probability, calculation according to the lottery item probability, or setting of a specified rule to specify personnel winning, etc. However, in the prior art, in order to meet the requirements of different service parties for differentiated services, a large amount of ifelse logic is usually written in service codes according to the requirements of the service parties, so that the codes are coupled with information of various service parties, and the coupling is serious and difficult to expand.
Disclosure of Invention
In view of this, embodiments of the present application provide a differentiated service configuration method, an apparatus, an electronic device, and a storage medium, and aim to at least solve the technical defects that in order to meet the requirements of different service parties for differentiated services, a large amount of ifelse logic is usually written in a service code according to the requirements of the service parties, so that the code is coupled with information of various service parties, and the coupling is severe and difficult to expand in some service systems in the prior art.
A first aspect of an embodiment of the present application provides a differentiated service configuration method, where the differentiated service configuration method includes:
acquiring service process node information of a client, wherein the service process node information comprises a service differentiation processing identifier for identifying whether the service process node of the client contains the service differentiation processing identifier;
when the service process node information of the client contains a service differentiation processing identifier, acquiring a service implementation class matched with the service process node of the client from a preset service implementation class configuration list;
and operating the service process nodes of the client according to the service implementation classes matched with the service process nodes of the client.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the obtaining service flow node information of a client, where before the step of identifying whether the service flow node of the client contains a service differentiation processing identifier, the method includes:
acquiring differentiated service configuration information of a client, wherein the differentiated service configuration information of the client comprises service process node information and differentiated service operation rule information corresponding to the service process node;
and establishing an association relation between the differentiated service interface of the client and the service implementation class according to the differentiated service configuration information of the client.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the obtaining service flow node information of the client includes identifying whether the service flow node of the client includes a service differentiation processing identifier, and includes:
when the service is started, the service name is used as a parameter to pull the differentiated service configuration information of the client;
storing the differentiated service configuration information of the client as a global variable;
and during service operation, acquiring the currently operated business process node information of the client and traversing the global variable according to the currently operated business process node information to identify whether the business process node of the client contains a business differentiation processing identifier.
With reference to the first aspect, in a third possible implementation manner of the first aspect, when it is recognized that the service flow node of the client does not contain the service differentiation processing identifier, a service implementation class set as a default is obtained from a preset service implementation class configuration list as a service implementation class matched with the service flow node of the client.
With reference to the first aspect, in a fourth possible implementation manner of the first aspect, a mapping relationship between a differentiated service interface of a client and an implementation class is configured in the preset service implementation class configuration list.
A second aspect of the embodiments of the present application provides a differentiated service configuration device, where the differentiated service configuration device includes:
the acquisition module is used for acquiring the service process node information of the client, wherein the service process node information comprises the step of identifying whether the service process node of the client contains a service differentiation processing identifier;
the processing module is used for acquiring a service implementation class matched with the service process node of the client from a preset service implementation class configuration list when the service process node information of the client contains a service differentiation processing identifier;
and the execution module is used for operating the business process nodes of the client according to the business implementation classes matched with the business process nodes of the client.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the configuring device of the differentiated service further includes:
the system comprises a first obtaining submodule and a second obtaining submodule, wherein the first obtaining submodule is used for obtaining differentiated service configuration information of a client, and the differentiated service configuration information of the client comprises service process node information and differentiated service operation rule information corresponding to the service process node;
and the first establishing submodule is used for establishing an association relation between the differentiated service interface of the client and the service implementation class according to the differentiated service configuration information of the client.
With reference to the second aspect or the first possible implementation manner of the second aspect, in a first possible implementation manner of the second aspect, the apparatus for configuring a differentiated service further includes:
the first pulling submodule is used for pulling the differentiated service configuration information of the client by taking the service name as a parameter when the service is started;
the first storage submodule is used for storing the differentiated service configuration information of the client as a global variable;
and the first identification submodule is used for acquiring the currently-operated business process node information of the client during service operation and traversing the global variable according to the currently-operated business process node information so as to identify whether the business process node of the client contains a business differentiation processing identifier.
With reference to the second aspect, in a third possible implementation manner of the second aspect, the configuring device of the differentiated service further includes:
and the second obtaining submodule is used for obtaining a service implementation class set as default from a preset service implementation class configuration list as a service implementation class matched with the service flow node of the client when the service flow node of the client is identified not to contain the service differentiation processing identifier.
With reference to the second aspect, in a fourth possible implementation manner of the second aspect, the configuring device of a differentiated service further includes:
and the mapping submodule is used for configuring the mapping relation between the differentiated service interface and the implementation class of the client in the preset service implementation class configuration list.
Compared with the prior art, the embodiment of the application has the advantages that:
according to the method and the device, whether the business process node of the client needs to execute the differentiated service is identified by acquiring the business process node information of the client, if so, the business process node of the client is operated by acquiring the business implementation class matched with the business process node of the client from a preset business implementation class configuration list, so that the problem that a service system writes a large amount of ifelse logic in business codes to meet the differentiated business requirements of different clients is avoided, and the problems that the coupling is serious and difficult to expand due to the fact that the codes are coupled with various business side information are solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a basic method of a differentiated service configuration method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a method for establishing an association relationship between a differentiated service interface and a service implementation class in a service flow node at a client in the configuration method of a differentiated service according to the embodiment of the present application;
fig. 3 is a schematic flow chart of a method for identifying whether a service flow node of a client includes a service differentiation processing identifier in the configuration method of differentiation services according to the embodiment of the present application;
fig. 4 is a schematic structural diagram of a configuration apparatus for differentiated services according to an embodiment of the present application;
fig. 5 is another schematic structural diagram of a configuration apparatus for differentiated services according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a configuration apparatus for differentiated services according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
The configuration method of the differentiated services provided by the embodiment of the application aims to freely switch the service implementation classes corresponding to the interfaces by implementing pluggable differentiated services in the service system, so that the required differentiated services are configured for the client according to the self requirements of the client, a large amount of ifelse logic is prevented from being written in service codes by the service system to meet the differentiated service requirements of different clients, and the problems of serious coupling and difficult expansion caused by coupling of codes with various service party information are solved.
In some embodiments of the present application, please refer to fig. 1, and fig. 1 is a basic method flowchart of a differentiated service configuration method provided in the embodiments of the present application. The details are as follows:
in step S101, service process node information of the client is obtained, where the service process node information includes identifying whether the service process node of the client contains a service differentiation processing identifier.
The service system may integrate business processing operations of a plurality of different business parties, wherein, in the service system, one business party (such as a merchant, a supplier, etc.) corresponds to one client for executing business processes of the business party in the service system. For example, the SaaS service can perform corresponding differentiated service configuration on different clients in the SaaS service by combining differentiated requirements of the different clients on services. In this embodiment, when the SaaS service operates, whether a service flow node of the client includes a service differentiation processing identifier may be identified by acquiring service flow node information of the client, and if it is identified that the service flow node information of the client includes the service differentiation processing identifier, it indicates that a service party corresponding to the client needs to configure a specific differentiation service at the service flow node.
In step S102, when the service process node information of the client includes the service differentiation processing identifier, a service implementation class matched with the service process node of the client is obtained from a preset service implementation class configuration list.
In this embodiment, based on the service, a configuration list of the service implementation classes may be preset, where a mapping relationship between the differentiated service interface and the multiple implementation classes is configured in the configuration list of the service implementation classes, so that the differentiated service interface is made to be polymorphic during service operation, and the service implementation classes of the differentiated interface may be freely switched. In this embodiment, when it is recognized that the service flow node information of the client contains a service differentiation processing identifier in the service operation process, it is indicated that the client needs to execute processing service at the service flow node by using a specific implementation class thereof, so as to implement differentiation processing of the service. Specifically, the preset service implementation class configuration list further includes an association relationship between the differentiated service interfaces of the different clients in the service flow nodes and the service implementation classes. Therefore, by combining the pre-stored client information, the service implementation class matched with the service process node of the client can be obtained from the preset service implementation class configuration list, and the service implementation class is the service implementation class required by the differentiated service set by the client for the service process node.
In step S103, the service process node of the client is operated according to the service implementation class matched with the service process node of the client.
In this embodiment, after obtaining a service implementation class required by a differentiated service set by a client for a service flow node by combining configuration information of the client, the service flow node of the client is executed by using the service implementation class in the service, so as to implement the differentiated service of the client.
The configuration method for differentiated services provided in the above embodiment operates the service flow node of the client by obtaining the service flow node information of the client and identifying whether the service flow node of the client needs to operate the differentiated services, and if so, obtaining the service implementation class matched with the service flow node of the client from a preset service implementation class configuration list to operate the service flow node of the client, thereby avoiding writing a large amount of ifelse logic in service codes in order to meet the differentiated service requirements of different clients by a service system, and solving the problems of serious coupling and difficult expansion caused by coupling of codes with various service party information.
In some embodiments of the present application, please refer to fig. 2, and fig. 2 is a schematic method flow diagram when an association relationship between a differentiated service interface and a service implementation class in a service flow node of a client is established in a configuration method of a differentiated service provided in the embodiments of the present application. The details are as follows:
in step S201, obtaining differentiated service configuration information of a client, where the differentiated service configuration information of the client includes service flow node information and differentiated service operation rule information corresponding to the service flow node;
in step S202, an association relationship between the differentiated service interface of the client and the service implementation class is established according to the differentiated service configuration information of the client.
In this embodiment, when the service is started, the differentiated service of the service flow may be configured for each client in the service. The method comprises the steps of obtaining differentiated service configuration information when a client performs service, wherein the differentiated service configuration information comprises service process node information and differentiated service operation rule information corresponding to the service process node. After obtaining the differentiated service configuration information of the client, performing differentiated service configuration on the service flow of the client, and establishing an association relation between the differentiated service interface of the client and the service implementation class. Taking a lottery service as an example, when a lottery service in a client is started, the service acquires the position of a service flow node where the lottery service is located and an operation rule specifically set for the lottery service by a service party, wherein the operation rule of the lottery service may be at least one of lottery algorithms such as calculating according to a lottery probability, calculating according to a prize probability, or setting a specified rule to specify personnel to win a lottery according to needs. In this embodiment, for the lottery service, the service implementation class corresponding to the configuration list of the service implementation class is the lottery algorithm. In this embodiment, the implementation classes corresponding to the differentiated service interfaces in different clients and different service process nodes may be registered in an interface configurator for encapsulation, where the interface configurator is an AdapterMap and is used for unifying the service implementation classes used for executing the differentiated services of the clients in the management service. Therefore, whether the business process node of the client contains the business differentiation processing identifier or not is identified during service operation, and the business process node is operated by rapidly configuring the business implementation class matched with the business process node of the client from the interface configurator when the business process node contains the business differentiation processing identifier.
In some embodiments of the present application, please refer to fig. 3, and fig. 3 is a schematic flow chart of a method for identifying whether a service flow node of a client includes a service differentiation processing identifier in a configuration method of a differentiation service provided in the embodiments of the present application. The details are as follows:
in step S301, when the service is started, the service name is used as a parameter to pull the differentiated service configuration information of the client;
in step S302, storing the differentiated service configuration information of the client as a global variable;
in step S303, in service operation, obtaining currently-operating service flow node information of the client and traversing the global variable according to the currently-operating service flow node information, so as to identify whether the service flow node of the client contains a service differentiation processing identifier.
When the service system starts different services, the business models run by the client end are different. In this embodiment, when the service system starts a service, the service name of the service may be used as a parameter to pull the differentiated service configuration information in the service model corresponding to the client when the service is running. In this embodiment, after obtaining the differentiated service configuration information of the client corresponding to the currently started service by pulling, the differentiated service configuration information is stored as a global variable, where the global variable is a ConfigMap, the personalized configuration of the client in the service is stored by the ConfigMap, and the personalized configuration is identified to form a service differentiated processing identifier. And then, when the service runs, acquiring the currently running business process node information of the client, traversing the global variable according to the currently running business process node information, and searching whether a differentiated business configuration scheme exists in the client. Therefore, whether the service process node of the client contains the service differentiation processing identifier can be identified.
In some embodiments of the application, in the preset service implementation class configuration list, one service implementation class may be predefined from a plurality of implementation classes as a default service implementation class, so that a service party does not configure a specific differentiated service for a service flow node, that is, when it is recognized that the service flow node of the client does not contain a service differentiation processing identifier, a service implementation class set as the default is obtained from the preset service implementation class configuration list as a service implementation class matched with the service flow node of the client, so that the service flow node can be operated according to the default service implementation class, and smooth operation of the service flow node is ensured.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In some embodiments of the present application, please refer to fig. 4, where fig. 4 is a schematic structural diagram of a differentiated service configuration apparatus provided in the embodiments of the present application, and the detailed description is as follows:
in this embodiment, the configuration device of the differentiated service includes: an acquisition module 401, a processing module 402 and an execution module 403. The obtaining module 401 is configured to obtain service process node information of a client, where the obtaining includes identifying whether a service process node of the client contains a service differentiation processing identifier; the processing module 402 is configured to, when the service flow node information of the client includes a service differentiation processing identifier, obtain a service implementation class matched with the service flow node of the client from a preset service implementation class configuration list; the execution module 403 is configured to run the service flow node of the client according to the service implementation class matched with the service flow node of the client.
In some embodiments of the present application, please refer to fig. 5, and fig. 5 is another schematic structural diagram of a configuration device of a differentiated service provided in the embodiments of the present application, which is detailed as follows: the configuration apparatus of the differentiated service further includes a first obtaining sub-module 501 and a first establishing sub-module 502. The first obtaining sub-module 501 is configured to obtain differentiated service configuration information of a client, where the differentiated service configuration information of the client includes service flow node information and differentiated service operation rule information corresponding to the service flow node; the first establishing sub-module 502 is configured to establish an association relationship between the differentiated service interface of the client and a service implementation class according to the differentiated service configuration information of the client.
In some embodiments of the present application, please refer to fig. 6, and fig. 6 is a schematic structural diagram of a configuration apparatus for differentiated services provided in the embodiments of the present application, which is detailed as follows: the configuration apparatus of differentiated services further includes a first pulling sub-module 601, a first saving sub-module 602, and a first identifying sub-module 603. The first pulling submodule 601 is configured to pull differential service configuration information of a client using a service name as a parameter when a service is started; the first saving sub-module 602 is configured to save the differentiated service configuration information of the client as a global variable; the first identifying submodule 603 is configured to, during service operation, acquire currently-operating business process node information of the client and traverse the global variable according to the currently-operating business process node information, so as to identify whether the business process node of the client contains a business differentiation processing identifier.
In some embodiments of the present application, the configuration apparatus for differentiated services further includes a second obtaining sub-module, where the second obtaining sub-module is configured to, when it is identified that the service flow node of the client does not include the service differentiation processing identifier, obtain, from a preset service implementation class configuration list, a service implementation class set as a default as a service implementation class matched with the service flow node of the client.
In some embodiments of the present application, the configuration device for differentiated services further includes a mapping sub-module, where the mapping sub-module is configured to configure a mapping relationship between a differentiated service interface and an implementation class of a client in the preset service implementation class configuration list.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for configuring differentiated services, comprising:
acquiring service process node information of a client, wherein the service process node information comprises a service differentiation processing identifier for identifying whether the service process node of the client contains the service differentiation processing identifier;
when the service process node information of the client contains a service differentiation processing identifier, acquiring a service implementation class matched with the service process node of the client from a preset service implementation class configuration list;
and operating the service process nodes of the client according to the service implementation classes matched with the service process nodes of the client.
2. The method according to claim 1, wherein the step of obtaining the service process node information of the client, which includes identifying whether the service process node of the client contains the service differentiation processing identifier, comprises:
acquiring differentiated service configuration information of a client, wherein the differentiated service configuration information of the client comprises service process node information and differentiated service operation rule information corresponding to the service process node;
and establishing an association relation between the differentiated service interface of the client and the service implementation class according to the differentiated service configuration information of the client.
3. The method according to claim 1 or 2, wherein the step of obtaining the service process node information of the client includes identifying whether the service process node of the client contains a service differentiation processing identifier, and the step of obtaining the service process node information of the client includes:
when the service is started, the service name is used as a parameter to pull the differentiated service configuration information of the client;
storing the differentiated service configuration information of the client as a global variable;
and during service operation, acquiring the currently operated business process node information of the client and traversing the global variable according to the currently operated business process node information to identify whether the business process node of the client contains a business differentiation processing identifier.
4. The method for configuring differentiated services according to claim 1, further comprising:
and when the service process node of the client does not contain the service differentiation processing identifier, acquiring a service implementation class set as default from a preset service implementation class configuration list as a service implementation class matched with the service process node of the client.
5. The method according to claim 1, wherein the preset service implementation class configuration list is configured with a mapping relationship between a differentiated service interface of the client and an implementation class.
6. A differentiated services configuration device, comprising:
the acquisition module is used for acquiring the service process node information of the client, wherein the service process node information comprises the step of identifying whether the service process node of the client contains a service differentiation processing identifier;
the processing module is used for acquiring a service implementation class matched with the service process node of the client from a preset service implementation class configuration list when the service process node information of the client contains a service differentiation processing identifier;
and the execution module is used for operating the business process nodes of the client according to the business implementation classes matched with the business process nodes of the client.
7. The apparatus for configuring differentiated services according to claim 6, further comprising:
the system comprises a first obtaining submodule and a second obtaining submodule, wherein the first obtaining submodule is used for obtaining differentiated service configuration information of a client, and the differentiated service configuration information of the client comprises service process node information and differentiated service operation rule information corresponding to the service process node;
and the first establishing submodule is used for establishing an association relation between the differentiated service interface of the client and the service implementation class according to the differentiated service configuration information of the client.
8. The apparatus for configuring differentiated services according to claim 6 or 7, further comprising:
the first pulling submodule is used for pulling the differentiated service configuration information of the client by taking the service name as a parameter when the service is started;
the first storage submodule is used for storing the differentiated service configuration information of the client as a global variable;
and the first identification submodule is used for acquiring the currently-operated business process node information of the client during service operation and traversing the global variable according to the currently-operated business process node information so as to identify whether the business process node of the client contains a business differentiation processing identifier.
9. The differentiated configuration device according to claim 6, wherein the configuration device of differentiated services further comprises:
and the second obtaining submodule is used for obtaining a service implementation class set as default from a preset service implementation class configuration list as a service implementation class matched with the service flow node of the client when the service flow node of the client is identified not to contain the service differentiation processing identifier.
10. The differentiated configuration device according to claim 6, wherein the configuration device of differentiated services further comprises:
and the mapping submodule is used for configuring the mapping relation between the differentiated service interface and the implementation class of the client in the preset service implementation class configuration list.
CN202010398061.3A 2020-05-12 2020-05-12 Configuration method and device of differentiated service, electronic equipment and storage medium Active CN112953754B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010398061.3A CN112953754B (en) 2020-05-12 2020-05-12 Configuration method and device of differentiated service, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010398061.3A CN112953754B (en) 2020-05-12 2020-05-12 Configuration method and device of differentiated service, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112953754A true CN112953754A (en) 2021-06-11
CN112953754B CN112953754B (en) 2023-04-07

Family

ID=76234477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010398061.3A Active CN112953754B (en) 2020-05-12 2020-05-12 Configuration method and device of differentiated service, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112953754B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115640989A (en) * 2022-12-26 2023-01-24 凯美瑞德(苏州)信息科技股份有限公司 Configuration device and method for dynamically adjusting business process

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949894A (en) * 2006-11-08 2007-04-18 华为技术有限公司 Short message centre and short message for warding method
US20090138621A1 (en) * 2007-11-28 2009-05-28 Herbert Hackmann System and method for delegating a dependent business object
CN108377203A (en) * 2018-02-11 2018-08-07 中国联合网络通信集团有限公司 Differentiation flow service providing method based on order business and device
CN109240684A (en) * 2017-06-29 2019-01-18 武汉斗鱼网络科技有限公司 A kind of page service logic realization method and system
CN110189013A (en) * 2019-05-23 2019-08-30 上海上湖信息技术有限公司 A kind of determination method, apparatus, equipment and the medium of operation flow

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949894A (en) * 2006-11-08 2007-04-18 华为技术有限公司 Short message centre and short message for warding method
US20090138621A1 (en) * 2007-11-28 2009-05-28 Herbert Hackmann System and method for delegating a dependent business object
CN109240684A (en) * 2017-06-29 2019-01-18 武汉斗鱼网络科技有限公司 A kind of page service logic realization method and system
CN108377203A (en) * 2018-02-11 2018-08-07 中国联合网络通信集团有限公司 Differentiation flow service providing method based on order business and device
CN110189013A (en) * 2019-05-23 2019-08-30 上海上湖信息技术有限公司 A kind of determination method, apparatus, equipment and the medium of operation flow

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115640989A (en) * 2022-12-26 2023-01-24 凯美瑞德(苏州)信息科技股份有限公司 Configuration device and method for dynamically adjusting business process

Also Published As

Publication number Publication date
CN112953754B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
US8671099B2 (en) Clustering devices in an internet of things (‘IoT’)
CN104765621B (en) A kind of method and system of the deployment program in clustered node
CN112434278B (en) Bare metal authentication method, device, equipment and medium
CN113766487B (en) Cloud mobile phone information acquisition method, device, equipment and medium
CN109634764A (en) Work-flow control method, apparatus, equipment, storage medium and system
CN112306605A (en) RPA-based application program operation method, device and storage medium
CN112953754B (en) Configuration method and device of differentiated service, electronic equipment and storage medium
CN114430366B (en) Information acquisition application issuing method, related device and computer program product
CN114417780A (en) State synchronization method and device, electronic equipment and storage medium
CN112256255B (en) Dynamic configuration display method and system for map layer of electronic map
CN108089968A (en) A kind of method of host's machine monitoring virtual-machine data storehouse state
CN106020915B (en) Driver installation method and device
CN115129429B (en) Container application management method and device, electronic equipment and storage medium
CN114070889B (en) Configuration method, traffic forwarding device, storage medium, and program product
CN116483707A (en) Test method, test device, test apparatus, test program, and test program
CN117389754A (en) Method and device for sharing memory information among operating systems and vehicle
US20180246837A1 (en) Systems and methods of management console user interface pluggability
CN114546444A (en) Vehicle upgrading method and device, electronic equipment, medium and automatic driving vehicle
CN113157281A (en) Development environment creation method and device, electronic equipment and storage medium
CN113342270A (en) Volume unloading method and device and electronic equipment
CN112671567A (en) 5G core network topology discovery method and device based on service interface
CN112596922B (en) Communication management method, device, equipment and medium
CN112261072A (en) Service calling method, device, equipment and storage medium
CN109298958A (en) The call method and related system of service
CN109710427A (en) A kind of information processing method, system and server

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
GR01 Patent grant
GR01 Patent grant