Method and system for configuring business lines, and method and system for executing a business

By responding to the service party connection interface, the business operations and operation sequence are determined, and the business lines are spliced ​​using operation code splicing, which solves the problem of high business system development and maintenance costs in the existing technology, and realizes the reuse of business operations and the rapid access of new business lines.

CN111913689BActive Publication Date: 2025-06-17BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN201910387947.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-05-09
Publication Date
2025-06-17
Estimated Expiration
2039-05-09

AI Technical Summary

Technical Problem

In the prior art, when the service system is connected to multiple service lines, a large number of branch development is required, resulting in high development and maintenance costs and the inability to quickly access new service lines.

Method used

By responding to the service party connection interface, the business operations and operation sequence of the services to be configured are determined, and the business lines are spliced ​​using operation codes to form, and stored in the operation pool to realize the configuration and execution of the business lines.

Benefits of technology

It effectively reduces the development and maintenance costs of business lines, realizes the reuse of business operations, and simplifies the access process of new business lines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111913689B_ABST
    Figure CN111913689B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method and system for configuring a service line, and a method and system for executing a service. Among them, the method for configuring a service line includes: in response to a service provider connecting to at least one interface, determining at least one service operation included in the service to be configured and the operation sequence of the at least one service operation, where the at least one interface corresponds to the at least one service operation one by one; determining the operation codes of at least one service operation in the operation pool, where the operation codes are used to uniquely indicate the service operations in the operation pool; and sequentially splicing the operation codes of the at least one service operation according to the operation sequence of the at least one service operation to obtain a service line corresponding to the service to be configured, where the operation pool stores a plurality of service operations respectively indexed by a plurality of operation codes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet technologies, and more particularly, to a method and system for configuring business lines, and a method and system for executing services. Background Art

[0002] With the development of Internet technologies and the improvement of network penetration rate, various business systems for customers and consumers have emerged to facilitate service provision to customers and improve the management efficiency of customers, such as reservation business systems or query business systems.

[0003] In the process of implementing the concept of the present disclosure, the inventors found that there are at least the following problems in the prior art: as the number of connected business lines in a business system increases, a large number of identical or differentiated functions will appear, which requires more branch development. For example, when developing a reservation system, there are many similarities among the connected business lines, such as the need for some fixed steps and then a submission operation. However, there are also many differentiated contents among the connected business lines, such as differences in the order of steps, differences in the input parameters required for each step, and the data to be submitted, etc. If the configuration development of business lines is carried out according to the existing method, when the content that can be reused among different business lines is relatively high, the business system needs to separately develop and maintain the differentiated functions in a branched manner according to different services. If the content that can be reused among different business lines is relatively low, the business system needs to separately develop and maintain each business line according to the different business lines. This will undoubtedly result in a very high development and maintenance cost of the business system and cannot quickly connect to new business lines. Summary of the Invention

[0004] In view of this, the present disclosure provides a method and system for configuring business lines, and a method and system for executing services, which can reduce the development and maintenance costs of business lines.

[0005] One aspect of the present disclosure provides a method for configuring a business line, including: in response to a service provider connecting to at least one interface, determining at least one service operation included in the service to be configured and the operation order of the at least one service operation, where the at least one interface corresponds one-to-one to the at least one service operation; determining the operation code of the at least one service operation in an operation pool, where the operation code is used to uniquely indicate the service operation in the operation pool; and sequentially splicing the operation codes of the at least one service operation according to the operation order of the at least one service operation to obtain a business line corresponding to the service to be configured. Wherein, the operation pool stores a plurality of service operations respectively indexed by a plurality of operation codes.

[0006] According to an embodiment of the present disclosure, the at least one service operation includes a dynamic service operation and / or a static service operation. When the at least one service operation includes a dynamic service operation, the method for configuring a service line further includes: obtaining configuration information of the dynamic service operation via an interface corresponding to the dynamic service operation as a basis for executing the dynamic operation; and caching the configuration information of the dynamic service operation in a first predetermined space. The dynamic service operation includes an operation that requires user input data during execution, and the static service operation includes an operation that does not require user input data during execution.

[0007] According to an embodiment of the present disclosure, the method for configuring a service line further includes: determining whether the service to be configured includes a first service operation; when the service to be configured includes the first service operation, in response to a configuration instruction, configuring the first service operation; setting a first interface corresponding to the first service operation for a service party to connect; allocating a first operation code that uniquely indicates the first service operation to the first service operation; and storing the first service operation in an operation pool using the first operation code as an index.

[0008] Another aspect of the present disclosure provides a method for executing a service, including: obtaining a service line corresponding to a service to be executed, where the service to be executed includes at least one service operation, and the service line is formed by splicing operation codes of the at least one service operation according to the operation sequence of the at least one service operation, and the operation code is used to uniquely indicate a service operation; and repeatedly executing the following operations until all of the at least one service operation corresponding to the operation codes forming the service line are executed: obtaining a second operation code that is the first according to the splicing order among one or more unobtained operation codes of the service line; determining a second service operation corresponding to the second operation code in the operation pool according to the second operation code; and calling a second interface corresponding to the second service operation to execute the second service operation to obtain service information corresponding to the second service operation. The second interface is connected to a service party corresponding to the service to be executed, and the operation pool stores a plurality of service operations respectively indexed by a plurality of operation codes.

[0009] According to an embodiment of the present disclosure, the at least one service operation includes a dynamic service operation and / or a static service operation. When the second service operation is a dynamic service operation, executing the second service operation to obtain service information corresponding to the second service operation includes: obtaining configuration information of the second service operation from the first predetermined space according to the second operation code; and calling a second interface corresponding to the second service operation to execute the second service operation according to the configuration information of the second service operation to obtain service information corresponding to the second service operation. The dynamic service operation includes an operation that requires user input data during execution, the static service operation includes an operation that does not require user input data during execution; and the configuration information of the dynamic service operation is cached in the first predetermined space.

[0010] According to an embodiment of the present disclosure, the above at least one service operation includes a dynamic service operation and / or a static service operation, and the service line has a service line identification code; in the case where the second service operation is a static service operation, when executing the second service operation, obtaining the service information corresponding to the second service operation includes: according to the service line identification code and the second operation code, calling a second interface to perform the following operations: obtaining configuration information corresponding to the second service operation from a service party connected to the second interface; and according to the configuration information corresponding to the second service operation, executing the second service operation to obtain the service information corresponding to the second service operation.

[0011] According to an embodiment of the present disclosure, the service information corresponding to the dynamic service operation includes the input data of the user, and the service information corresponding to the static service operation includes the selection information of the user; the configuration information includes a page address; the method for executing the service further includes calling the second interface to perform the following operations: caching the service information corresponding to the second service operation in a second predetermined space corresponding to both the user and the service line; and submitting the service information corresponding to the second service operation cached in the second predetermined space to the page address.

[0012] According to an embodiment of the present disclosure, the input parameters of the above second interface include the user identification of the user and the service line identification code of the service line, and are used to determine the second predetermined space.

[0013] Another aspect of the present disclosure provides a system for configuring a service line. The system includes a plurality of interfaces, a first memory, and a first processor. The plurality of interfaces are used to connect to service parties. The first memory stores a plurality of service operations indexed by a plurality of operation codes respectively, and the operation codes are used to uniquely indicate a service operation. The plurality of interfaces include interfaces corresponding to the plurality of service operations one by one. The first processor is configured to: in response to a service party connecting to at least one of the plurality of interfaces, determine at least one service operation included in the service to be configured and the operation sequence of the at least one service operation; determine the operation codes of the at least one service operation in the first memory; and according to the operation sequence of the at least one service operation, sequentially splice the operation codes of the at least one service operation to obtain a service line corresponding to the service to be configured.

[0014] Another aspect of the present disclosure provides a system for performing a service, the system including a second processor and a second memory. The second memory is used to store one or more programs. When the one or more programs are executed by the second processor, the second processor is caused to perform the following operations: obtaining a service line corresponding to the service to be performed, the service to be performed including at least one service operation, the service line being formed by splicing operation codes of a plurality of service operations according to the operation sequence of the plurality of service operations, the operation code being used to uniquely indicate a service operation; and repeatedly performing the following operations until at least one service operation corresponding to the operation code forming the service line is executed: obtaining a second operation code that is the first in the splicing order among one or more unobtained operation codes of the service line; determining, according to the second operation code, a second service operation corresponding to the second operation code in the operation pool; and invoking a second interface corresponding to the second service operation to execute the second service operation, and obtaining service information corresponding to the second service operation. Wherein, the second interface is connected to a service party corresponding to the service to be performed, and the operation pool stores service operations indexed by operation codes.

[0015] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions that, when executed, are used to implement the method for configuring a service line or the method for performing a service as described above.

[0016] Another aspect of the present disclosure provides a computer program, the computer program including computer-executable instructions that, when executed, are used to implement the method for configuring a service line or the method for performing a service as described above.

[0017] According to the embodiments of the present disclosure, the technical problem of high development and maintenance costs of each service line in the existing service system can be at least partially solved. Therefore, by independentizing each operation step of the service and splicing a plurality of independent steps to form the technical solutions of each service, reusable operations can be effectively reused, and the development and maintenance costs of the service line can be effectively reduced to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Through the following description of the embodiments of the present disclosure with reference to the drawings, the above and other objects, features and advantages of the present disclosure will become clearer. In the drawings:

[0019] Figure 1 Schematically shows an application scenario of the method and system for configuring a service line and the method and system for performing a service according to an embodiment of the present disclosure;

[0020] Figure 2A Schematically shows a flowchart of the method for configuring a service line according to a first embodiment of the present disclosure;

[0021] Figure 2BSchematically shows a structural diagram of an operation pool according to an embodiment of the present disclosure;

[0022] Figure 2C Schematically shows a conceptual diagram of a service formed by splicing according to an embodiment of the present disclosure;

[0023] Figure 3 Schematically shows a flowchart of a method for configuring a service line according to a second embodiment of the present disclosure;

[0024] Figure 4 Schematically shows a flowchart of a method for configuring a service line according to a third embodiment of the present disclosure;

[0025] Figure 5 Schematically shows a flowchart of a method for executing a service according to a first embodiment of the present disclosure;

[0026] Figure 6A Schematically shows a flowchart of executing a dynamic service operation according to an embodiment of the present disclosure;

[0027] Figure 6B Schematically shows a flowchart of executing a static service operation according to an embodiment of the present disclosure;

[0028] Figure 7 Schematically shows a flowchart of a method for executing a service according to a second embodiment of the present disclosure;

[0029] Figure 8 Schematically shows a flowchart of a method for executing a service according to a third embodiment of the present disclosure;

[0030] Figure 9 Schematically shows an overall architecture diagram suitable for implementing a method for configuring a service line or a method for executing a service according to an embodiment of the present disclosure;

[0031] Figure 10 Schematically shows a structural block diagram of a system for configuring a service line according to an embodiment of the present disclosure;

[0032] Figure 11 Schematically shows a structural block diagram of a system for executing a service according to an embodiment of the present disclosure; and

[0033] Figure 12 Schematically shows a block diagram of an electronic device suitable for implementing a method for configuring a service line or a method for executing a service according to an embodiment of the present disclosure. Detailed implementation manners

[0034] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the following detailed description, for the sake of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. However, it is obvious that one or more embodiments can also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts of the present disclosure.

[0035] The terms used herein are merely for describing specific embodiments and are not intended to limit the present disclosure. The terms "including", "comprising", etc. used herein indicate the presence of the described features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0036] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0037] In cases where expressions similar to "at least one of A, B, and C, etc." are used, generally, it should be interpreted according to the meaning commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include, but not be limited to, a system having only A, only B, only C, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.). In cases where expressions similar to "at least one of A, B, or C, etc." are used, generally, it should be interpreted according to the meaning commonly understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include, but not be limited to, a system having only A, only B, only C, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.).

[0038] Embodiments of the present disclosure provide a method and system for configuring a service line to reduce the development and maintenance costs of a service line, and a method and system for executing a service. Among them, the method for configuring a service line includes: in response to a service party connecting to at least one interface, determining at least one service operation included in the service to be configured and the operation sequence of the at least one service operation, where the at least one interface corresponds to the at least one service operation one by one; determining the operation codes of at least one service operation in an operation pool, where the operation codes are used to uniquely indicate the service operations in the operation pool; and sequentially splicing the operation codes of the at least one service operation according to the operation sequence of the at least one service operation to obtain a service line corresponding to the service to be configured, where the operation pool stores a plurality of service operations indexed by a plurality of operation codes respectively.

[0039] Figure 1 Schematically illustrated is an application scenario 100 of a method and system for configuring a service line and a method and system for executing a service according to an embodiment of the present disclosure. It can be understood that Figure 1 The illustration is only an example of an application scenario to which the embodiments of the present disclosure can be applied, to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.

[0040] As Figure 1 shown, the application scenario 100 according to this embodiment may include terminal devices 111, 112, 113 and a database 120.

[0041] Among them, the terminal devices 111, 112, 113 may be various devices with a display screen and capable of communicating with the database 120 through a network, including but not limited to tablet computers, laptop computers, desktop computers or servers, etc. The database 120 is used to store one or more program segments.

[0042] According to an embodiment of the present disclosure, a page submission or a single function point operation may be set as a service operation that can be executed. Each program segment may be integrated into a component, and each component is used to execute the said service operation. For example, for a reservation system, a user needs to select a city, a package, a store and submit a reservation form, etc. Then each selection or each submission operation (single function point, such as selecting a city) is a service operation, and what is stored in the database 120 may be a component for executing this service operation.

[0043] Any one of the terminal devices 111, 112, 113 may include a front-end display module and a back-end processing module, for example. The back-end processing module is used to obtain one or more components in the database 120 through a network and execute corresponding service operations by running the one or more components, and the front-end display module is responsible for rendering and displaying the results obtained by the back-end processing module executing one or more service operations for the user to browse and operate.

[0044] According to an embodiment of the present disclosure, any one of the terminal devices 111, 112, 113 may also be provided with a plurality of interfaces 131-134, for example. Each interface encapsulates the function of calling a component in the database 120, and the terminal device can run the component corresponding to the interface by calling the interface to execute the corresponding service operation. Among them, the plurality of interfaces 131-134 may specifically be software interfaces, for example.

[0045] According to an embodiment of the present disclosure, when a service provider needs terminal devices 111, 112, and 113 to execute a service (such as a reservation service), an interface corresponding to the service operations included in the service can be selected from among the multiple interfaces provided by the terminal devices. So that in response to the access of the interface, the terminal device can know the service operations included in the service that need to be configured to meet the requirements of the service provider, and thus select components corresponding to the service operations included in the service from the database 120 for splicing, and splice the codes of each component to form a service line corresponding to the service, which is convenient for the subsequent execution of the service.

[0046] According to an embodiment of the present disclosure, considering that different data is required when the same component is executed in different services, the service provider can also configure the data required for the execution of each component through the accessed interface, so as to facilitate the terminal device to effectively execute the service. For example, when the configured service is a hotel reservation service, the data provided by the service provider may include selectable cities, stores, and the number of rooms in each hotel, etc.

[0047] According to an embodiment of the present disclosure, any one of the above terminal devices 111, 112, and 113 can also be used to configure new service operations, that is, configure new components, and write the configured new components into the database 120 to enrich the components in the database 120 for use by this terminal device or other terminal devices in subsequent executions.

[0048] It should be noted that the method for configuring the service line and / or the method for executing the service provided by the embodiments of the present disclosure can generally be executed by the terminal devices 111, 112, and 113. Correspondingly, the system for configuring the service line and / or the system for executing the service provided by the embodiments of the present disclosure can generally be set in the terminal devices 111, 112, and 113.

[0049] It can be understood that Figure 1 the number and type of the terminal devices, databases, and interfaces in

[0050] Figure 2A are only illustrative. According to the implementation requirements, there can be any number and type of terminal devices, databases, and interfaces. Figure 2B Schematically shows a flowchart of a method for configuring a service line according to a first embodiment of the present disclosure, Figure 2C Schematically shows a structural diagram of an operation pool according to an embodiment of the present disclosure, Schematically shows a conceptual diagram of a service spliced according to an embodiment of the present disclosure.

[0051] As Figure 2A shown, the method for configuring the service line in the embodiments of the present disclosure includes operations S201 to S203.

[0052] Operation S201: In response to the service provider connecting to at least one interface, determine at least one service operation included in the service to be configured and the operation sequence of the at least one service operation, where the at least one interface corresponds one-to-one to the at least one service operation.

[0053] According to an embodiment of the present disclosure, the at least one interface may specifically be, for example, Figure 1 Some of the multiple interfaces provided by the terminal device in []. Each interface corresponds to a component stored in the database for executing a service operation, so the at least one interface can correspond to at least one service operation. Therefore, after the service provider connects to at least one interface, the service operations included in the service that the service provider wants to configure can be determined according to the connected interfaces.

[0054] According to an embodiment of the present disclosure, after the service provider connects to the interface, for example, it can also feedback the operation sorting of the service operation corresponding to the interface to the interface. Then, according to the interface connected by the service provider, the operation sequence of at least one service operation included in the service to be configured can be determined simultaneously.

[0055] According to an embodiment of the present disclosure, considering that some service operations are operations that need to display options to the user, such as the operation of selecting a city; while some service operations are operations that need to display a form for the user to fill in personal information, such as a form for the user to fill in information such as name, age, and / or ID number. Then, according to whether the service operation requires user input data during execution, the service operation can be divided into dynamic service operations and static service operations. Among them, dynamic service operations include operations that require user input data during execution, and static service operations include operations that do not require user input data during execution. Then, the at least one service operation included in the above service to be configured may only include dynamic service operations, only include static service operations, or include both dynamic service operations and static service operations.

[0056] For example, for the service to be configured for hotel reservation, the service operations included may include: the service operation of selecting the reservation city, the service operation of selecting the reservation store according to the city, the service operation of filling in personal information and submitting to generate a reservation form, and the service operation of viewing the reservation details. Among them, the service operations of selecting the reservation city, selecting the reservation store according to the city, and viewing the reservation details are static service operations, while the service operation of filling in personal information and submitting to generate a reservation form is a dynamic service operation.

[0057] After determining the service operations of the service to be configured, operation S202 can be executed to determine the operation codes of at least one service operation in the operation pool, where the operation codes are used to uniquely indicate the service operations in the operation pool.

[0058] According to an embodiment of the present disclosure, the operation pool specifically may be, for example,Figure 1 In the database, since multiple components stored in the database are respectively used to execute multiple operations, the program segments stored in the database are essentially those of multiple business operations. For the convenience of corresponding interface calls, the program segments of multiple business operations stored in the operation pool can be indexed by multiple operation codes respectively. Each business operation has a unique operation code (Page No), and this code is unique throughout the system. As Figure 2B shown, for example, there can be at least eight business operations in the operation pool, and the operation codes of these eight business operations are 1 to 8 respectively. Among them, the four business operations with codes 1 to 4 are static business operations, and the four business operations with codes 5 to 8 are dynamic business operations. According to an embodiment of the present disclosure, the business operations in the operation pool can be shared by multiple services, and as long as the numbers of the shared business operations are assigned to each service at the same time.

[0059] For the convenience of calling the corresponding components to execute business operations during subsequent business execution, in the above operation S202, after obtaining the operation code of the business operation, the operation codes of at least one business operation included in the to-be-configured service can be stored in the terminal device.

[0060] Subsequently, for the convenience of executing business operations in sequence during business execution, the service line corresponding to the to-be-configured service can be configured through operation S203, and the service line should include the codes and execution sequences of each business operation. Specifically, in operation S203, according to the operation sequences of at least one business operation, the operation codes of at least one business operation are sequentially concatenated to obtain the service line corresponding to the to-be-configured service.

[0061] Specifically, when the to-be-configured service includes business operations 2, 3, 4, and 6 in the operation pool, according to the operation sequences of these four business operations, the to-be-configured service obtained by concatenation can be as Figure 2C shown, including business operation 2, business operation 6, business operation 4, and business operation 3 executed in sequence, and the service line corresponding to the to-be-configured service can be 2->6->4->3.

[0062] According to an embodiment of the present disclosure, in the case of configuring multiple service lines, a service line identification code can also be assigned to each configured service line. Specifically, a code can be assigned to each service line to ensure that the assigned code can uniquely indicate a service line. At the same time, a service line configuration table can also be configured, as shown in Table 1. The service line configuration table includes the service line code and the process of the business operations included in the service corresponding to the service line (i.e., the service line obtained by the operation codes of at least one business operation in operation S203).

[0063] Table 1

[0064] Business line identification code Business operation process 1 1->2->3->5->6 2 2->6->4->3 …… ……

[0065] In summary, in the method for configuring a service line according to the embodiments of the present disclosure, since a large number of service operations are maintained in the operation pool, when configuring a service in response to the requirements of a service provider, only a service interface needs to be provided to the service provider, and the service line can be directly formed by splicing the service operations in the operation pool without separately maintaining the service line. And if the service is adjusted by the service provider according to actual requirements, the service line can be adjusted by adjusting the numbers and the order of the service operations included in the service line, which is convenient and fast to maintain. Therefore, the development and maintenance workload of the service line can be greatly reduced. Furthermore, since the service operations are uniformly maintained in the operation pool, the service operations can be shared by multiple services, that is, each service operation can be reused. Therefore, the development and maintenance costs of the front and back ends can be effectively solved, and thus a new service line can be quickly accessed.

[0066] Figure 3 The flowchart of the method for configuring a service line according to the second embodiment of the present disclosure is schematically shown.

[0067] According to the embodiments of the present disclosure, considering that a dynamic service component is an operation that requires user input data during execution, and the data that needs to be input by the user for the same service operation may be different in different services, when at least one service operation included in the service to be configured includes a dynamic service operation, when configuring the service line, it is also necessary to determine the type of data that needs to be input by the user for the dynamic service operation in the currently configured service. Then, as Figure 3 shown, in addition to operations S201 to S203, the method for configuring a service line according to the embodiments of the present disclosure should also include operations S304 to S305. These operations S304 to S305 can be executed after operation S203 or can be executed synchronously with operation S203.

[0068] In operation S304, the configuration information of the dynamic service operation is obtained via the interface corresponding to the dynamic service operation as the basis for executing the dynamic service operation.

[0069] Among them, the configuration information of the dynamic service operation specifically may include the determined number and type of data that need to be input by the user. This configuration information can specifically be input by the service provider via the interface after connecting to the interface corresponding to the dynamic operation. The configuration information may specifically include, for example, personal information (name, address, age, ID number) that needs to be input by the user, etc.

[0070] According to the embodiments of the present disclosure, in order to facilitate the subsequent invocation of the configuration information of the dynamic service operation when executing the service, operation S305 can be executed to cache the configuration information of the dynamic service operation in a first predetermined space. The first predetermined space may be, for example, Figure 1The storage space of the middle terminal device or other spaces in the database except the space where the business operation is located.

[0071] According to the embodiments of the present disclosure, considering that the configuration information of the same dynamic service component may be different in different service lines, and the configuration information of different dynamic service components is also different in the same service line. For example, a dynamic service configuration table (see Table 2) may be maintained in the first predetermined space to store the configuration information of each dynamic service component in each service line. Then, operation S305 is specifically to write the configuration information into the dynamic service configuration table. At the same time, in order to facilitate distinguishing different service lines, the corresponding relationship between the service line identification code, the service operation code, and the configuration information may be stored in the dynamic service configuration table.

[0072] Table 2

[0073] Business line identification code Business operation 5 Business operation 6 …… 1 Name, address ID number 2 Name, age ……

[0074] In summary, through the configuration of the configuration information of the above dynamic service operation, the dynamic service operation can be reused by multiple service lines to ensure that the cost of maintaining the service configuration is relatively low.

[0075] Figure 4 Schematically shows a flowchart of a method for configuring a service line according to a third embodiment of the present disclosure.

[0076] Considering that in the services required by the business party, there may be service operations not in the operation pool. In such a case, it is necessary to configure the service operations not in the operation pool. Therefore, as Figure 4 shown, the method for configuring a service line in the embodiments of the present disclosure may further include operations S406 to S410 in addition to Figure 2A the described operations S201 to S204.

[0077] In operation S406, determine whether the service to be configured includes a first service operation.

[0078] According to the embodiments of the present disclosure, the first service operation is specifically a service operation not stored in the operation pool. This operation S406 is often determined according to the additional information provided by the business party. For example, when the business party determines that there is no interface corresponding to the first service operation according to the provided interface, the business party can provide additional information. Then, in the case where the business party provides additional information, it can be determined that the service to be configured includes the first service operation.

[0079] In operation S407, in the case where the service to be configured includes the first service operation, in response to the configuration instruction, configure the first service operation.

[0080] According to an embodiment of the present disclosure, the configuration instruction may specifically be, for example, an instruction sent by the operation pool maintainer through an operation terminal device. Specifically, the operation S407 may specifically be receiving program code input by the operation pool maintainer through the terminal device, and the program code includes code for implementing the first service operation.

[0081] In operation S408, set a first interface corresponding to the first service operation for the service party to connect.

[0082] According to an embodiment of the present disclosure, the operation S408 may specifically be setting, by running a part of the code in the input program code, a first interface corresponding to the first service operation. Then, in addition to the code for implementing the first service operation in the input program code, it also includes code for defining the first interface. The said part of the code is the code for defining the first interface.

[0083] In operation S409, assign a first operation code that uniquely indicates the first service operation to the first service operation.

[0084] According to an embodiment of the present disclosure, after receiving the input program code, a code can be automatically assigned to the program code to obtain the first operation code. Specifically, for example, a random code generator or a counter may be integrated in the terminal device, and the first operation code can be obtained through the random code generator or the counter.

[0085] In operation S410, store the first service operation in the operation pool with the first operation code as the index.

[0086] This operation specifically means using the first operation code as the index and storing the code for executing the first service operation in the storage space for service operations in the database.

[0087] According to an embodiment of the present disclosure, the above operations S406 to S410 may specifically be implemented through the following operations: First, in response to the operation of the operation pool maintainer, develop the front-end page first, then define the interface corresponding to the front-end page, then generate a service operation code for the code for implementing the front-end page, and determine the classification of the front-end page (that is, determine whether it is a page corresponding to a dynamic service operation that requires user input data or a page corresponding to a static service operation that does not require user input data), and finally submit the service operation code, the code for implementing the front-end page, and the determined classification result to the database for calling.

[0088] It can be understood that the service operations stored in the operation pool can all be obtained through the above operations S406 to S410, which will not be elaborated here.

[0089] According to an embodiment of the present disclosure, comprehensively Figures 2A - 4It can be seen that when configuring a business line for the first time, the configuration method can include four parts as a whole. The first part is the definition of the business operation, that is, setting a single function point operation as a callable business operation, and the code of each business operation can be encapsulated as a component. The second part is the storage of business operations, that is, classifying and encoding the business operations corresponding to each encapsulated component (that is, dividing them into static business operations and dynamic business operations), and maintaining the business operation codes, classification results and components in a unified manner in the database. The third part is to obtain the configuration information of dynamic business operations in response to the access of the business party. The fourth part is the process configuration process, that is, to configure the entire process of static business operations and dynamic business operations together, and obtain the business operation process shown in Table 1. At this point, the configuration of the business line is completed. If the corresponding business operation has been stored in the operation pool, the new business can be configured only through the above-mentioned third and fourth parts in response to the access of the business party.

[0090] In summary, the method for configuring business lines in the embodiment of the present disclosure can expand the business operations in the operation pool through the above operations S406 to S410 when the business operations stored in the operation pool cannot fully meet the needs of new business. Since the business operations in the operation pool are shared, as the number of configured business lines increases, the business operations in the operation pool will also continue to expand, thereby providing access to more business scenarios.

[0091] Figure 5 The flowchart of the method for executing a service according to the first embodiment of the present disclosure is schematically shown.

[0092] According to the embodiments of the present disclosure, after configuring the service line, the corresponding service can be executed according to the service line. Figure 5 As shown, the method for executing a service in the embodiment of the present disclosure may include operations S501 to S504. Operations S502 to S504 are cyclically executed until at least one service operation corresponding to the operation code spliced ​​to form a service line is executed.

[0093] In operation S501, a service line corresponding to the service to be executed is obtained.

[0094] The business to be executed may be a business corresponding to a configured business line, which may include at least one business operation. The corresponding business line is formed by splicing the operation code of at least one business operation according to the operation sequence of at least one business operation. The operation code is used to uniquely indicate the business operation. Specifically, the corresponding business line may be Figures 2A - 4 The described method for configuring the business line is configured.

[0095] After obtaining the business line corresponding to the business to be executed, each business operation can be executed in sequence according to the operation codes of each business operation that form the business line. Specifically, the execution of the business can be completed by loop-executing operation S502 to operation S504.

[0096] In operation S502, obtain a second operation code that is the first in the splicing order among one or more unobtained operation codes of the business line. In operation S503, determine a second business operation corresponding to the second operation code in the operation pool according to the second operation code. In operation S504, call a second interface corresponding to the second business operation to execute the second business operation, and obtain business information corresponding to the second business operation.

[0097] According to an embodiment of the present disclosure, the above operation S502 to operation S504 can specifically be: first determine the first business operation that has not been executed in the splicing order, and then call a component corresponding to the business operation code in the database through an interface corresponding to the business operation to execute the business operation. The process of executing the business operation can specifically be to first obtain information that needs to be displayed to the user through running code, then render the information to be displayed through the front end of the terminal device for display, and then in response to an operation of the user on the display page, obtain business information corresponding to the second business operation. According to an embodiment of the present disclosure, when the business operation is an operation of selecting a city in a hotel reservation business, that is, through running code, first determine the cities that need to be displayed; then display a list of cities to the user through front-end rendering; then in response to the user's selection, obtain the city information selected by the user. Then the city information selected by the user is the business information corresponding to the second business operation.

[0098] According to an embodiment of the present disclosure, in the case where the second business operation is a dynamic business operation, the business information corresponding to the second business operation may include, for example, the input data of the user. In the case where the second business operation is a static business operation, the business information corresponding to the second business operation may include, for example, the selection information of the user. Among them, the dynamic business operation and the static business operation are specifically the Figure 2B dynamic business operation and static business operation described in, and will not be elaborated here.

[0099] According to an embodiment of the present disclosure, in order to facilitate determining whether to end the loop operation, such as Figure 5As shown, the method of executing a service may further include operation S505. In operation S505, it is determined whether at least one service operation corresponding to the operation code for splicing to form a service line has been executed. If so, the loop ends and the execution of the service line is completed. If not, return to operation S502 and continue to loop and execute operations S502 to S505. That is, if there is still an operation code among the multiple operation codes included in the service line for which the corresponding service operation has not been executed, then return and continue to loop and execute operations S502 to S505. Otherwise, it means that the service to be executed has been completed, and the loop ends.

[0100] Figure 6A Schematically shows a flowchart of executing dynamic service operations according to an embodiment of the present disclosure.

[0101] In the case where the second service operation is a dynamic service operation, considering that it is necessary to execute the second service operation according to the configuration information, Figure 5 operation S504 in may include operations S614 to S624.

[0102] In operation S614, according to the second operation code, obtain the configuration information of the second service operation from the first predetermined space.

[0103] Among them, the configuration information of the dynamic service operation is cached in the above-mentioned first predetermined space. Specifically, the configuration information of the dynamic service operation cached in the first predetermined space may be the configuration information stored through Figure 3 the operations S304 to S305 described, and the configuration information may be stored indexed by the service identification code of the service and the operation code of the service operation. Then operation S614 may specifically be to obtain the configuration information from the dynamic service configuration table in the first predetermined space according to the service identification code of the currently executed service and the operation code of the second service operation.

[0104] In operation S624, according to the configuration information of the second service operation, call the second interface corresponding to the second service operation to execute the second service operation, and obtain the service information corresponding to the second service operation.

[0105] According to an embodiment of the present disclosure, the process of calling the second interface to execute the second service operation in operation S624 may specifically be: first determine that the information to be displayed to the user is the information type of the information that the user needs to input included in the configuration information, for example, it may be "name", "ID number", and / or "address", etc.; then send the information to the front end; then the front end renders and displays the information to be displayed to the user; finally, receive the information input by the user through the display page as the service information.

[0106] Figure 6B Schematically shows a flowchart of executing static service operations according to an embodiment of the present disclosure.

[0107] When the second service operation is a static service operation, considering that the service provider needs to provide data for subsequent rendering and display, and each business line corresponds to only one service provider, in order to facilitate determining which service provider provides the data of the static service operation during rendering and display, each business line also has a business line identification code. Then, as Figure 6B shown, Figure 5 the operation S504 in

[0108] In operation S634, obtain the configuration information corresponding to the second service operation from the service provider connected to the second interface.

[0109] According to an embodiment of the present disclosure, when the second service operation is a static service operation, the configuration information is provided by the service provider in real time through the interface. For example, in the business of booking a hotel, if the first service operation executed before the second service operation is an operation of selecting a city, the configuration information of the second service operation is the store information included in the city indicated by the service information obtained by executing the first service operation.

[0110] In operation S644, execute the second service operation according to the configuration information corresponding to the second service operation to obtain the service information corresponding to the second service operation.

[0111] According to an embodiment of the present disclosure, the process of operation S644 executing the second service operation may specifically be: first, determine that the information to be displayed to the user is the configuration information obtained in operation S634; then send the information to the front end; then the front end renders and displays the information to be displayed to the user; finally, use the information selected by the user through the display page as the service information.

[0112] Figure 7 Schematically shows a flowchart of a method for executing a service according to a second embodiment of the present disclosure.

[0113] Considering that a business line is formed by splicing multiple service operations and the process of the business line is configurable. In order to enable arbitrary plugging and unplugging of different service operations, it is necessary to unify the input parameters and output parameters of each service operation. And since the page displayed or the result returned by each service operation is related to the service attribute, it is impossible to unify the output parameters of each service operation.

[0114] In this case, in order to enable arbitrary plugging and unplugging of each service operation, as Figure 7 shown, the method for executing a service according to an embodiment of the present disclosure may further include operation S706 in addition to operations S501 to S505.

[0115] In operation S706, the service information corresponding to the second service operation is cached in a second predetermined space corresponding to both the user and the service line.

[0116] According to an embodiment of the present disclosure, considering that during the execution of a service, for different users, the operation information obtained for each service operation may be different, a unique predetermined space needs to be set for each user and each service line. To facilitate uniquely determining the second predetermined space, for each user, for example, there may be a user identifier that uniquely indicates the user, and the service line has a service line identification code that uniquely indicates the service line. Then the second predetermined space is a space that matches both the user identifier and the service line identification code.

[0117] Among them, when the second service operation is the first service operation of the service to be executed, when caching and writing the service information into the predetermined space, a user identifier (such as an information identifier context ID) can be returned as a voucher for writing the service information of the subsequent service operations of the service to be executed, so as to ensure that the service information of each service operation during the current execution of the service to be executed is cached in the same predetermined space. According to an embodiment of the present disclosure, after the service to be executed is completed, for example, the context ID can also be deleted to release the second predetermined space for re-caching information when the service to be executed is executed next time or other services are executed.

[0118] Correspondingly, to facilitate accurately writing the service information into the second predetermined space and facilitating calling the service information of the previous service operation stored in the second predetermined space, the input parameters of the second interface may include the user identifier of the user and the service line identification code of the service line to uniquely determine the second predetermined space.

[0119] Through the setting of the above operation S706, that is, the setting of the input parameters of each service operation, it can be ensured that even when the service to be executed needs to change the execution order of each service operation, the service can still be completed according to the changed execution order of the service operation. And thus, any plugging and unplugging of each service operation can be realized, effectively expanding the usage scope of the method for configuring service lines and the method for executing services in this application, and improving the flexibility of service line configuration.

[0120] According to an embodiment of the present disclosure, to facilitate the service party to obtain the data after executing the service operation and provide configuration information for the execution of subsequent static service operations. As Figure 7 shown, the method for executing a service according to an embodiment of the present disclosure further includes operation S707 of submitting the service information corresponding to the second service operation cached in the second predetermined space to a page address.

[0121] Among them, the configuration information of the second service operation includes the page address. When the second service operation is a dynamic service operation, the page address may specifically be the URL (Uniform Resource Locator) information included in the configuration information stored in the first predetermined space. When the second service operation is a static service operation, the page address may specifically be provided in real time by the service provider through the corresponding second interface.

[0122] Figure 8 Schematically shows a flowchart of a method for executing a service according to a third embodiment of the present disclosure.

[0123] According to an embodiment of the present disclosure, Figures 5 - 7 After obtaining the service line corresponding to the service to be executed, the specific implementation process of executing the service can be as Figure 8 shown.

[0124] First, query the service line process configuration table (Table 2) according to the service line identification code (business Code) and the current component code (i.e., the current service operation code current Page No) to obtain the next component number (next Page No). Determine whether the current component code is empty. If it is empty, by default, feedback the first component code in the service line corresponding to the business Code as the current Page No, and the second component code as the next Page No. If the current Page No is not empty, then pass the next component code of the current component code to the next Page No.

[0125] Then, query in the component pool (i.e., the operation pool described above) according to the service line identification code and the current component code to determine whether the component is a dynamic component (i.e., whether the service operation to be executed is a dynamic service operation). If it is a dynamic component, feedback the relevant configuration information. If it is a static component, only return null.

[0126] Then, obtain the component from the component pool and execute the corresponding service operation for rendering. For example, when it is a dynamic component, render the dynamic form items (i.e., the form that requires the user to input data) through the front end. When it is a static component, obtain the static component from the component pool and render it through the front end.

[0127] Then, obtain the service information in response to the user operation. For example, if it is a dynamic component, after rendering and displaying the form, obtain the input data filled in by the user in the form and submit the input data to the form URL. If it is a static component, after rendering and displaying the options, obtain the information selected by the user or query the information selected by the user and then submit it according to the page address provided by the service provider.

[0128] Finally, determine whether the next component code is empty. If it is empty, it means that all components of the to-be-executed service have been executed, and the to-be-executed service has been executed, then end the operation. If it is not empty, assign the next component code next Page No to current Page No, and return to re-determine whether the current component code is empty and re-determine the next component code.

[0129] Figure 9 Schematically shows an overall architecture diagram suitable for implementing a method for configuring a service line or a method for executing a service according to an embodiment of the present disclosure.

[0130] As Figure 9 shown, the architecture suitable for implementing the above method for configuring a service line or a method for executing a service may include a front end, a server end, and a back-end gateway. The server end includes a cache service and a gateway routing service. The server end is responsible for the maintenance of the operation pool, routes the components for executing service operations to the back-end gateway through the gateway routing service, and realizes the flow and transfer of information through the cache service. The service provider provides corresponding information by accessing the back-end gateway, and the second predetermined space in the above text is the space provided by the cache service here. The front end is responsible for rendering and displaying the page according to the configuration information provided by the server end. In this architecture, by designing a unified access back-end gateway, different service lines only need to access the back-end gateway according to the interface specifications to complete the use of components, eliminating the development of all content from the front end to the back-end gateway, thereby achieving the purpose of quickly launching the service line.

[0131] According to an embodiment of the present disclosure, the business process corresponding to the service line for booking a hotel configured in the server end in this architecture may be, for example: first provide a query of service cities to the user, and then provide relevant service stores to the user according to the city selected by the user; then provide a form for the user to fill in personal information and submit the form to generate a service order, and finally provide the service details queried to the user. Correspondingly, the configured components may include: a static component for configuring the city, a static component for displaying the store, a dynamic component including configuration information such as name, gender, and age, and a static component for displaying the service details. Among them, submitting the form to generate a service order may be set, for example, by executing a dynamic component to display a submit button, and setting the submit button in the form of submitting to a URL link. The corresponding callable interfaces may include: a city service interface, a store service interface, a service interface for submitting personal information to the corresponding URL, and a service details interface.

[0132] According to an embodiment of the present disclosure, the process of the server executing the hotel reservation service in this architecture may specifically include: The architecture platform queries the service line configuration table according to the business identification code business Code to obtain the service line configured as above. Then it calls the city service interface to obtain city data from the business party and renders it to the city selection page for the user to select. At this time, it is found that the city selection page is the first page (the context ID is empty), so a cache space is opened in the cache service, and the globally unique number context ID of this cache space is obtained. Then, in response to the user's operation of selecting a city (such as Beijing), when the user switches to the next page or the program automatically proceeds to the next rendering, the architecture platform stores Beijing in the cache service context ID: city Id = Beijing. Then the architecture platform calls the store service interface, and the input parameter of this interface is the context ID (the implementation logic of the business party service interface: retrieve the city Id from the cache service context ID, query the store information according to the city Id, and return it). After obtaining the return result, the page is rendered again to display the store page to the user. Then, in response to the user's operation of selecting a store (such as SA), when the user switches to the next page or the program automatically proceeds to the next rendering, SA is stored in the cache service context ID. At this time, there is city Id = Beijing and store Id = SA in the context ID. Then the dynamic submission box for name, gender, age, and the submission button are rendered. In response to the data input by the user: UN, female, 19 years old, and the user's operation of clicking the submission button, the architecture platform calls the cache service to store the filled information in the context ID. At this time, there are city Id = Beijing, store Id = SA, name = UN, age = 19, sex = female in the context ID. Then the architecture platform calls the service interface for submitting personal information to the corresponding URL, using the context ID as the input parameter, retrieves the store Id, name = UN, age = 19, sex = female from the cache service context ID to generate an order Id, stores it in the cache service order Id = 1, and returns. At this time, there are city Id = Beijing, store Id = SA, name = UN, age = 19, sex = female, order Id = 1 in the context Id. Finally, the architecture platform calls the query service details interface, using the context ID as the input parameter, retrieves the order Id from the cache service context ID, queries the details, and returns, and renders the page with the obtained result. If the user ends the operation and closes, the architecture platform determines whether this interface is the last page. If so, it clears the context ID cache in the cache platform.

[0133] Figure 10A structural block diagram of a system for configuring service lines according to an embodiment of the present disclosure is schematically shown.

[0134] As Figure 10 shown, the system 1000 for configuring service lines according to an embodiment of the present disclosure includes a plurality of interfaces 1010, a first processor 1020, and a first memory 1030.

[0135] The plurality of interfaces 1010 can be implemented as software interfaces for connecting business parties.

[0136] The first memory 1030 is used to store a plurality of service operations indexed by a plurality of operation codes respectively, where the operation code is used to uniquely indicate a service operation, and the plurality of interfaces 1010 include interfaces corresponding to the plurality of service operations one by one. The first memory 1030 may also store a computer program 1031, and the computer program 1031 may include code / computer-executable instructions. Specifically, the computer program 1031 can be configured to have, for example, computer program code including computer program modules. For example, in an exemplary embodiment, the code in the computer program 1031 may include one or more program modules, such as module 1031A, module 1031B,....

[0137] When executed by the first processor 1020, the computer program 1031 can cause the first processor 1020 to be configured to perform the following operations: operation S201, in response to a business party connecting to at least one of the plurality of interfaces, determining at least one service operation included in the service to be configured and the operation sequence of the at least one service operation; operation S202, determining the operation codes of the at least one service operation in the first memory; operation S203, sequentially splicing the operation codes of the at least one service operation according to the operation sequence of the at least one service operation to obtain a service line corresponding to the service to be configured.

[0138] According to an embodiment of the present disclosure, the first processor 1020 may specifically be further configured to execute Figure 2A and Figures 3 - 4 the method described or any variation thereof, which will not be elaborated here.

[0139] Figure 11 A structural block diagram of a system for executing services according to an embodiment of the present disclosure is schematically shown.

[0140] As Figure 11 shown, the system 1100 for executing services according to an embodiment of the present disclosure includes a second processor 1110 and a second memory 1120.

[0141] The second memory 1120 is used to store one or more programs. Specifically, the second memory 1120 may store a computer program 1121, and the computer program 1121 may include code / computer-executable instructions. Specifically, the computer program 1121 may be configured to have computer program code including, for example, computer program modules. For example, in an exemplary embodiment, the code in the computer program 1121 may include one or more program modules, such as module 1121A, module 1121B,....

[0142] When executed by the second processor 1110, the computer program 1121 may cause the second processor 1110 to execute operation S501, obtain a service line corresponding to the service to be executed, where the service to be executed includes at least one service operation, and the service line is formed by splicing the operation codes of multiple service operations according to the operation sequence of the multiple service operations, and the operation code is used to uniquely indicate the service operation; and repeatedly execute operation S502 to operation S504 until all of the at least one service operation corresponding to the operation code forming the service line are executed. In operation S502, obtain a second operation code that is the first in the splicing order among one or more unobtained operation codes of the service line; in operation S503, determine a second service operation corresponding to the second operation code in the operation pool according to the second operation code; and in operation S504, call a second interface corresponding to the second service operation to execute the second service operation to obtain service information corresponding to the second service operation. Among them, the second interface is connected to a service party corresponding to the service to be executed, and the operation pool stores service operations indexed by operation codes.

[0143] According to an embodiment of the present disclosure, the second processor 1110 may specifically be further configured to execute Figures 5 - 8 the method described or any variation thereof, which will not be elaborated herein.

[0144] Specifically, the first processor 1020 and / or the second processor 1110 may include, for example, a general microprocessor, an instruction set processor, and / or a related chipset and / or a dedicated microprocessor (e.g., an application-specific integrated circuit (ASIC)), and so on. The first processor 1020 and / or the second processor 1110 may also include on-board memory for caching purposes. The first processor 1020 and / or the second processor 1110 may be a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiments of the present disclosure.

[0145] The first memory 1030 and / or the second memory 1120 may, for example, be non-volatile computer-readable storage media, and specific examples include, but are not limited to: magnetic storage devices such as magnetic tapes or hard disk drives (HDDs); optical storage devices such as compact discs (CD-ROMs); memories such as random access memories (RAMs) or flash memories; and so on. It should be noted that the division method and number of each program module in the first memory 1030 and / or the second memory 1120 are not fixed, and those skilled in the art can use appropriate program modules or combinations of program modules according to actual situations. When these combinations of program modules are executed by the first processor 1020 and / or the second processor 1110, the first processor 1020 and / or the second processor 1110 can execute the method according to the embodiments of the present disclosure or any variations thereof.

[0146] Figure 12 FIG. schematically shows a block diagram of an electronic device suitable for implementing a method for configuring a service line or implementing a method for executing a service according to an embodiment of the present disclosure. Figure 12 The computer system shown is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.

[0147] As Figure 12 shown, the electronic device 1200 according to an embodiment of the present disclosure includes a processor 1201, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1202 or a program loaded from a storage section 1208 into a random access memory (RAM) 1203. The processor 1201 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor, and / or a related chipset, and / or a dedicated microprocessor (such as an application-specific integrated circuit (ASIC)), and so on. The processor 1201 may also include on-board memory for caching purposes. The processor 1201 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiments of the present disclosure.

[0148] In the RAM 1203, various programs and data required for the operation of the electronic device 1200 are stored. The processor 1201, the ROM 1202, and the RAM 1203 are connected to each other via a bus 1204. The processor 1201 executes various operations of the method flow according to the embodiments of the present disclosure by executing the programs in the ROM 1202 and / or the RAM 1203. It should be noted that the programs may also be stored in one or more memories other than the ROM 1202 and the RAM 1203. The processor 1201 may also execute various operations of the method flow according to the embodiments of the present disclosure by executing the programs stored in the one or more memories.

[0149] According to an embodiment of the present disclosure, the electronic device 1200 may further include an input / output (I / O) interface 1205, and the input / output (I / O) interface 1205 is also connected to the bus 1204. The electronic device 1200 may further include one or more of the following components connected to the I / O interface 1205: an input portion 1206 including a keyboard, a mouse, etc.; an output portion 1207 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 1208 including a hard disk, etc.; and a communication portion 1209 including a network interface card such as a LAN card, a modem, etc. The communication portion 1209 performs communication processing via a network such as the Internet. The drive 610 is also connected to the I / O interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1210 as needed so that a computer program read from it can be installed into the storage portion 1208 as needed.

[0150] According to an embodiment of the present disclosure, the method flow according to the embodiment of the present disclosure may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes program codes for executing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network through the communication portion 1209, and / or installed from the removable medium 1211. When the computer program is executed by the processor 1201, the above functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the above-described system, device, apparatus, module, unit, etc. may be implemented by computer program modules.

[0151] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist separately without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0152] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the above-described ROM 1202 and / or RAM 1203 and / or one or more memories other than ROM 1202 and RAM 1203.

[0153] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations 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 diagram may represent a module, a program segment, or a part of code, and the above module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, as well as the combination of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0154] Those skilled in the art can understand that the features described in various embodiments and / or claims of the present disclosure can be combined or combined in various ways, even if such combinations or combinations are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in various embodiments and / or claims of the present disclosure can be combined and combined in various ways. All such combinations and / or combinations fall within the scope of the present disclosure.

[0155] The above describes the embodiments of the present disclosure. However, these embodiments are only for illustrative purposes and not for limiting the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in each embodiment cannot be used advantageously in combination. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art can make various substitutions and modifications, and all these substitutions and modifications should fall within the scope of the present disclosure.

Claims

1. A method for configuring a business line, comprising: In response to a service provider connecting to at least one interface, determine at least one service operation included in the service to be configured and the operation sequence of the at least one service operation, where the at least one interface corresponds one-to-one to the at least one service operation; Determine the operation codes of the at least one service operation in the operation pool, where the operation codes are used to uniquely indicate the service operations in the operation pool; And According to the operation sequence of the at least one service operation, sequentially splice the operation codes of the at least one service operation to obtain a service line corresponding to the service to be configured, wherein the operation pool stores a plurality of service operations indexed by a plurality of the operation codes respectively, the plurality of service operations are uniformly maintained in the operation pool, and the plurality of service operations can be shared by multiple services.

2. The method according to claim 1, wherein The at least one service operation includes dynamic service operations and / or static service operations. In the case where the at least one service operation includes dynamic service operations, the method further includes: Obtain the configuration information of the dynamic service operation via the interface corresponding to the dynamic service operation as a basis for executing the dynamic operation; and Cache the configuration information of the dynamic service operation in a first predetermined space, wherein the dynamic service operation includes an operation that requires user input data during execution, and the static service operation includes an operation that does not require user input data during execution.

3. The method according to claim 1, further comprising: Determine whether the service to be configured includes a first service operation; In the case where the service to be configured includes the first service operation, in response to a configuration instruction, configure the first service operation; Set a first interface corresponding to the first service operation for the service provider to connect; Assign a first operation code that uniquely indicates the first service operation to the first service operation; And Deposit the first service operation into the operation pool with the first operation code as an index.

4. A method for executing a business, comprising: Obtain a service line corresponding to the service to be executed, where the service to be executed includes at least one service operation, and the service line is formed by splicing the operation codes of the at least one service operation according to the operation sequence of the at least one service operation, and the operation codes are used to uniquely indicate service operations; And Loop through the following operations until all of the at least one service operations corresponding to the operation codes forming the service line are executed: Obtain a second operation code that is the first in the splicing order among one or more unobtained operation codes of the service line; Determine a second service operation corresponding to the second operation code in the operation pool according to the second operation code; And Call a second interface corresponding to the second service operation to execute the second service operation to obtain service information corresponding to the second service operation, wherein the second interface is connected to a service provider corresponding to the service to be executed, the operation pool stores a plurality of service operations indexed by a plurality of the operation codes respectively, the plurality of service operations are uniformly maintained in the operation pool, and the plurality of service operations can be shared by multiple services.

5. The method according to claim 4, wherein The at least one service operation includes a dynamic service operation and / or a static service operation. In the case where the second service operation is a dynamic service operation, the performing the second service operation to obtain service information corresponding to the second service operation includes: obtaining configuration information of the second service operation from a first predetermined space according to the second operation code; and invoking a second interface corresponding to the second service operation according to the configuration information of the second service operation to perform the second service operation, so as to obtain service information corresponding to the second service operation, wherein the dynamic service operation includes an operation that requires user input data during execution, and the static service operation includes an operation that does not require user input data during execution; configuration information of the dynamic service operation is cached in the first predetermined space.

6. The method according to claim 4, wherein The at least one service operation includes a dynamic service operation and / or a static service operation, and the service line has a service line identification code; in the case where the second service operation is a static service operation, the performing the second service operation to obtain service information corresponding to the second service operation includes: invoking the second interface according to the service line identification code and the second operation code to perform the following operations: obtaining configuration information corresponding to the second service operation from a service party connected to the second interface; and performing the second service operation according to the configuration information corresponding to the second service operation to obtain service information corresponding to the second service operation.

7. The method according to claim 5 or 6, wherein The service information corresponding to the dynamic service operation includes user input data, and the service information corresponding to the static service operation includes user selection information; the configuration information includes a page address; the method further includes invoking the second interface to perform the following operations: caching the service information corresponding to the second service operation in a second predetermined space corresponding to both the user and the service line; submitting the service information corresponding to the second service operation cached in the second predetermined space to the page address.

8. The method according to claim 7, wherein The input parameters of the second interface include the user identification of the user and the service line identification code of the service line, and are used to determine the second predetermined space.

9. A system for configuring a service line, comprising: A plurality of interfaces for connecting service parties; A first memory storing a plurality of service operations respectively indexed by a plurality of operation codes, where the operation code is used to uniquely indicate a service operation, the plurality of interfaces include interfaces corresponding to the plurality of service operations one by one, the plurality of service operations are uniformly maintained in an operation pool, and the plurality of service operations can be shared by multiple services; and A first processor configured to perform the following operations: responding to a service party connecting to at least one of the plurality of interfaces, determining at least one service operation included in the service to be configured and the operation sequence of the at least one service operation; determining the operation codes of the at least one service operation in the first memory; sequentially splicing the operation codes of the at least one service operation according to the operation sequence of the at least one service operation to obtain a service line corresponding to the service to be configured.

10. A system for executing a service, comprising: A second processor; A second memory for storing one or more programs; Wherein, when the one or more programs are executed by the second processor, the second processor is caused to perform the following operations: Obtain a service line corresponding to the service to be executed, the service to be executed including at least one service operation, the service line being formed by splicing operation codes of the plurality of service operations according to the operation sequence of the plurality of service operations, the operation codes being used to uniquely indicate service operations; and Repeatedly perform the following operations until all of the at least one service operation corresponding to the operation code forming the service line are executed: Obtain a second operation code that is the first in the splicing order among the one or more unobtained operation codes of the service line; Determine a second service operation corresponding to the second operation code in the operation pool according to the second operation code; and Call a second interface corresponding to the second service operation to execute the second service operation, and obtain service information corresponding to the second service operation, wherein the second interface is connected to a service party corresponding to the service to be executed, the operation pool stores a plurality of service operations respectively indexed by a plurality of the operation codes, the plurality of service operations are uniformly maintained in the operation pool, and the plurality of service operations can be shared by multiple services.

Citation Information

Patent Citations

  • Service request and provision method based on service orchestration, apparatus, and electronic device

    CN109040152A