Order data processing method and order receiving system
By determining the target process and business components through configuration information, the order data processing process is dynamically configured, which solves the problems of low efficiency and low reusability caused by changes in the business processing process in the existing technology, and achieves efficient order data processing and reduced development costs. .
Patent Information
- Application Number
- CN202010280385.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-10
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-04-10
AI Technical Summary
The existing technology requires the order data processing to be suspended and the code to be re-modified when the business processing process changes, resulting in low processing efficiency, low code reusability and high development costs.
Determine the target process and business components through configuration information, generate the target process, realize dynamic configuration of different business processing processes, avoid manual modification of codes, and improve order data processing efficiency.
It is possible to change the order data processing process without interrupting the processing process, which improves efficiency and reduces code coupling and development costs.
Smart Images

Figure CN113516523B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an order data processing method and an order receiving system. Background Art
[0002] With the development of e-commerce platforms, the amount of order data processed has gradually increased. How to efficiently process order data has become a hot topic of concern.
[0003] The existing technology can only implement a single business processing process. When the business processing process changes, for example, adding a verification process, the existing technology needs to suspend the processing of order data and manually modify the code to update the existing business processing process.
[0004] Therefore, in the scenario where the business processing process changes, the efficiency of processing order data by the existing technology is low. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides an order data processing method and an order receiving system, which can improve the efficiency of processing order data.
[0006] In a first aspect, an embodiment of the present invention provides an order data processing method, comprising:
[0007] Receive order data;
[0008] Determine a target process corresponding to the order data in a plurality of processes; wherein the target process includes: a plurality of target business components determined by configuration information;
[0009] The order data is processed according to the target process to obtain a processing result of the order data.
[0010] Optionally,
[0011] Before receiving the order data, the method further includes:
[0012] Acquire the configuration information; wherein the configuration information includes: the service component calling sequence and the identifiers of the target service components;
[0013] According to the identifiers of the target business components, the target business components are selected from a plurality of preset business components;
[0014] The target process is generated according to the business component calling sequence and the plurality of target business components.
[0015] Optionally,
[0016] The target process includes: a number of target business components, business component calling methods and business component calling sequences;
[0017] The step of processing the order data according to the target process to obtain a processing result of the order data includes:
[0018] According to the business component calling mode and the business component calling sequence, the plurality of target business components are called to process the order data to obtain a processing result of the order data.
[0019] Optionally,
[0020] The target process includes: a main process and several sub-processes;
[0021] The main process includes: the execution order of the several sub-processes;
[0022] The sub-process includes: a business component calling method, a number of target business components and a business component calling sequence;
[0023] The step of processing the order data according to the target process to obtain a processing result of the order data includes:
[0024] Execute the plurality of sub-processes according to the execution order of the plurality of sub-processes;
[0025] Execute the subprocess:
[0026] According to the business component calling mode and the business component calling sequence, the plurality of target business components are called to process the order data to obtain the processing result of the sub-process.
[0027] Optionally,
[0028] The business component calling mode is synchronous calling;
[0029] The calling of the plurality of target business components to process the order data according to the business component calling mode and the business component calling sequence includes:
[0030] According to the calling sequence of the business components, the target business components are synchronously called to process the order data.
[0031] Optionally,
[0032] The business component calling mode is asynchronous calling;
[0033] The calling of the plurality of target business components to process the order data according to the business component calling mode and the business component calling sequence includes:
[0034] The preset asynchronous scheduling center is triggered so that the asynchronous task scheduling center asynchronously calls the several target business components to process the order data according to the business component calling sequence.
[0035] In a second aspect, an embodiment of the present invention provides an order receiving system, including:
[0036] A receiving module configured to receive order data;
[0037] A determination module, configured to determine a target process corresponding to the order data in a plurality of processes; wherein the target process includes: a plurality of target business components determined by the configuration information;
[0038] The execution module is configured to process the order data according to the target process to obtain a processing result of the order data.
[0039] Optionally,
[0040] The target process includes: a number of target business components, business component calling methods and business component calling sequences;
[0041] The execution module is configured to call the plurality of target business components to process the order data and obtain a processing result of the order data according to the business component calling mode and the business component calling sequence.
[0042] Optionally,
[0043] The target process includes: a main process and several sub-processes;
[0044] The main process includes: the execution order of the several sub-processes;
[0045] The sub-process includes: a business component calling method, a number of target business components and a business component calling sequence;
[0046] The execution module is configured to execute the multiple sub-processes according to the execution order of the multiple sub-processes; execute the sub-processes: according to the business component calling method and the business component calling order, call the multiple target business components to process the order data, and obtain the processing results of the sub-processes.
[0047] In a third aspect, an embodiment of the present invention provides an electronic device, including:
[0048] one or more processors;
[0049] a storage device for storing one or more programs,
[0050] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any of the above embodiments.
[0051] In a fourth aspect, an embodiment of the present invention provides a computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any of the above embodiments.
[0052] An embodiment of the above invention has the following advantages or beneficial effects: different components are configured for the process through the configuration information of the process, so that different processes can implement different business processing procedures, without the need to manually modify the code to update the existing business processing procedures, which can improve the efficiency of processing order data.
[0053] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0055] Figure 1 is a flow chart of an order data processing method provided by an embodiment of the present invention;
[0056] Figure 2 It is a code that implements existing technology;
[0057] Figure 3 is a code for implementing an order data processing method provided by an embodiment of the present invention;
[0058] Figure 4 It is a synchronous call schematic diagram provided by an embodiment of the present invention;
[0059] Figure 5 This is a schematic diagram of an asynchronous call provided by an embodiment of the present invention;
[0060] Figure 6 is a flow chart of an order data processing method provided by another embodiment of the present invention;
[0061] Figure 7 It is a code for implementing the main process provided by an embodiment of the present invention;
[0062] Figure 8 A code for implementing a synchronization sub-process provided by an embodiment of the present invention;
[0063] Fig. 9 A code for implementing an asynchronous sub-process provided by an embodiment of the present invention;
[0064] Fig.10 is a schematic diagram of a target process provided by an embodiment of the present invention;
[0065] Fig.11It is a component interface provided by an embodiment of the present invention;
[0066] Fig.12 It is a business component template class provided by an embodiment of the present invention;
[0067] Fig.13 It is a process interface provided by an embodiment of the present invention;
[0068] Fig.14 It is a synchronization process template class provided by an embodiment of the present invention;
[0069] Fig.15 An asynchronous process template class provided by an embodiment of the present invention;
[0070] Fig.16 is a context class provided by an embodiment of the present invention;
[0071] Fig.17 is a schematic diagram of an order receiving system provided by an embodiment of the present invention;
[0072] Fig.18 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0073] Fig.19 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0074] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0075] The order-taking system, also known as the middle platform, is one of the core parts of the e-commerce platform. The order-taking system can perform a series of business processing on the order data sent by the external system and provide the processing results to the execution system. It can also receive information such as order status feedback from the execution system and transmit the information back to the external system.
[0076] After the current order-taking system is coded and launched, the verification logic and business processing logic are coupled together. If the business process changes, the code needs to be modified and repackaged for online release. Therefore, the existing order-taking system has low code reusability and high development costs.
[0077] In summary, in the process of processing order data, the existing order-taking system can only implement a single business processing process. If the business processing process changes, for example, adding a verification process, the existing order-taking system needs to be updated by modifying the code. Modifying the code of the existing order-taking system will cause the order data processing process to be terminated, reducing the efficiency of order data processing.
[0078] like Figure 1 As shown, an embodiment of the present invention provides an order data processing method, including:
[0079] Step 101: Receive order data.
[0080] The order data may come from an upstream external system, such as the mobile terminal and the web terminal of the e-commerce platform, etc.; it may also come from a downstream execution system, such as the backend of the e-commerce platform, etc. That is, the order data processed by the embodiment of the present invention may be the original data of the order sent by the external system, and may also be the status tracking data of the order sent by the execution system.
[0081] Step 102: Determine a target process corresponding to the order data in a plurality of processes; wherein the target process includes: a plurality of target business components determined by the configuration information.
[0082] A process can be composed of different business components. The business components corresponding to different processes can be the same or different. If different processes correspond to the same business components, the calling order of the business components will be different.
[0083] In the embodiment of the present invention, the target process for processing the order data may be determined according to the order type corresponding to the order data, and the target process for processing the order data may also be determined according to the source of the order data.
[0084] Business components are encapsulated from business logic code and are responsible for specific business processing functions. For example, the address verification component is used to check whether the consignee address and delivery information are correct, and the pre-sorting component is used to query the distribution station order.
[0085] The configuration information of the target process may include: the identification of several target business components, the order of calling the business components, and the order type corresponding to the target process, etc. Other processes are similar and will not be described here. The identification of the business component may be the name of the business component or the number of the business component, etc., which can uniquely identify the business component.
[0086] Step 103: Process the order data according to the target process to obtain the processing result of the order data.
[0087] For example, the process corresponding to different order types is obtained through configuration information. After receiving the order data sent by the external system, the order type corresponding to the order data is determined, the target process is determined according to the order type, the order data is processed according to the target process, and the processing result of the order data is obtained. The processing result can be sent to the downstream execution system.
[0088] This method configures different components for the process through the configuration information of the process, so that different processes can implement different business processing procedures, without the need to manually modify the code to update the existing business processing procedures, which can improve the efficiency of processing order data. In addition, this method can also reduce the degree of code coupling and development costs through component configuration.
[0089] Figure 2 The code shown is the corresponding code of the prior art. Different verification logics are coupled together. If you want to change the business processing process, you can only modify the code. Figure 3 What is shown is the code corresponding to the embodiment of the present invention. Since the business components in the process are configurable, the coupling degree of the code can be reduced and the development cost can be reduced.
[0090] In one embodiment of the present invention, before receiving the order data, the method further includes:
[0091] Obtaining configuration information; wherein the configuration information includes: a business component calling sequence and identifiers of several target business components;
[0092] According to the identifiers of the target business components, select the target business components from the preset multiple business components;
[0093] Generate a target process based on the business component calling sequence and several target business components.
[0094] In the embodiment of the present invention, a business component library can be pre-set, and multiple business components are stored in the business component library. The number of business components included in the process and the calling order of the business components can be configured by configuration information. The configuration information can also include information such as the business component calling method, the main process and the sub-process. The embodiment of the present invention can obtain different processes through the configuration information configuration, thereby realizing different business processing processes.
[0095] In one embodiment of the present invention, the target process includes: a number of target business components, business component calling methods and business component calling sequences;
[0096] Process the order data according to the target process and obtain the processing results of the order data, including:
[0097] According to the business component calling method and business component calling sequence, several target business components are called to process the order data to obtain the processing result of the order data.
[0098] In the embodiment of the present invention, the service component calling mode can be synchronous calling or asynchronous calling. The target process only involves one service component calling mode.
[0099] If the business component calling mode is synchronous calling, several target business components are called to process the order data according to the business component calling mode and business component calling sequence, including:
[0100] According to the calling sequence of business components, several target business components are called synchronously to process order data.
[0101] like Figure 4 As shown in the figure, synchronous calling is to call each business component in the process in sequence, including the verification of the owner component, the verification of the store component, the verification of the warehouse component... the verification of the product component and the verification of the inventory component. That is, after the previous business component is successfully executed, the next business component is called immediately. After calling the last business component, the processing result of the order data will be obtained. In this process, the failure to call any business component will terminate the process and obtain the result of the business component call failure.
[0102] If the business component calling mode is asynchronous calling, several target business components are called to process the order data according to the business component calling mode and business component calling sequence, including:
[0103] The preset asynchronous scheduling center is triggered so that the asynchronous task scheduling center asynchronously calls several target business components to process order data according to the business component calling sequence.
[0104] like Figure 5 As shown in the figure, unlike synchronous calls, asynchronous calls rely on an external asynchronous scheduling center to control the execution process. After the process starts, the asynchronous scheduling center initiates calls to each business component in sequence, including obtaining unit components, pre-sorting components, obtaining site components...order download components. The call result of the previous business component will be fed back to the asynchronous scheduling center. The next business component will be called only after the previous business component is successfully called. If there is a problem with the call to a business component, the asynchronous scheduling center will suspend the process at the business component. When the problem is solved, the asynchronous scheduling center will be triggered to continue the execution of the process, such as verifying the store component.
[0105] In one embodiment of the present invention, the target process includes: a main process and a plurality of sub-processes;
[0106] The main process includes: the execution order of several sub-processes;
[0107] The sub-process includes: business component calling method, several target business components and business component calling sequence;
[0108] Process the order data according to the target process and obtain the processing results of the order data, including:
[0109] Execute several sub-processes according to the execution order of several sub-processes;
[0110] Execute the subprocess:
[0111] According to the business component calling method and business component calling sequence, several target business components are called to process the order data to obtain the processing result of the sub-process.
[0112] Taking into account that the business components in a process may be applicable to different component calling methods, an embodiment of the present invention provides a process including different business component calling methods. During the execution of the process, the business components in the sub-process are called according to the business component calling method corresponding to the sub-process, thereby improving the processing efficiency of order data.
[0113] Different business component calling methods can also be used for the business components in the sub-process. If the business component calling method is synchronous calling, several target business components are synchronously called in the order of business component calling to process order data; if the business component calling method is asynchronous calling, the preset asynchronous scheduling center is triggered so that the asynchronous task scheduling center asynchronously calls several target business components in the order of business component calling to process order data.
[0114] like Figure 6 As shown, an embodiment of the present invention provides an order data processing method, including:
[0115] Step 601: Acquire configuration information of several processes; wherein the configuration information of the processes includes: identifiers of several business components and process information.
[0116] The process information may include: the execution order of sub-processes, the calling method of business components of sub-processes, and other information.
[0117] Step 602: for the configuration information of each process: according to the identifiers of the several business components, several business components are selected from the preset multiple business components, and the process is generated according to the process information and the several business components.
[0118] Step 603: Receive order data sent by the external system.
[0119] Step 604: Determine the target process corresponding to the order data in several processes; wherein the target process includes: a main process and several sub-processes; the main process includes: the execution order of several sub-processes; the sub-process includes: the business component calling method, several target business components and the business component calling order.
[0120] Figure 7 The figure shows the main process No. 1. It can be seen from the main process No. 1 that the execution order of the sub-processes is sub-process X, sub-process Y, etc. Figure 8 As shown in the figure, it is a sub-process X, the business component calling mode is synchronous calling, and the business component calling order is business component a, business component b, etc. Fig. 9 As shown, this is sub-process Y, the business component calling mode is asynchronous calling, and the business component calling order is business component m, business component n, etc.
[0121] Target process such as Fig.10 shown.
[0122] Step 605: Execute several sub-processes according to the execution order of the several sub-processes; wherein executing the sub-processes includes: calling several target business components to process order data according to the business component calling method and the business component calling order, and obtaining the processing result of the sub-process.
[0123] Synchronously call business component a, business component b, etc.; asynchronously call business component m, business component n, etc.
[0124] Call each business component through the component interface. The component interface is as follows: Fig.11 As shown in the figure, it abstracts the four basic methods that business components need to support. The validate method performs verification before the business component is executed. The filter method is responsible for filtering within the business component. The execute method is the method by which the business component actually executes the business logic. The postwork method is the method by which the business component processes other steps after the execute method returns.
[0125] like Fig.12 As shown in the figure, it is a business component template class. This template abstract class implements the four interface methods of the business component and also holds a filter chain. The business component can become a business component method by inheriting this abstract class.
[0126] like Fig.13 The process interface is shown in the figure. The embodiment of the present invention executes the process through the process interface. The process interface is used to control the process execution process. It contains 6 methods, namely, init initialization method, validate verification method, start startup method, suspend suspension method, resume recovery method, and end end method. The process interface has 2 subclasses, namely Fig.14 The synchronous process template class shown and Fig.15 The asynchronous process template class shown in the figure has more suspend and resume methods than the synchronous process template class. Fig.16 Shown is the context class.
[0127] Step 606: Send the processing result of the order data to the execution system.
[0128] The embodiment of the present invention can configure different business components for the process, and provides two different business component calling methods to adapt to different business needs, thereby improving the processing efficiency of order data. Since the business components in the process can be configured through configuration information, the method can change the processing process of order data without suspending the processing process, which can further improve the processing efficiency of order data.
[0129] like Fig.17 As shown, an embodiment of the present invention provides an order receiving system, including:
[0130] Receiving module 1701, configured to receive order data;
[0131] The determination module 1702 is configured to determine a target process corresponding to the order data in a plurality of processes; wherein the target process includes: a plurality of target business components determined by the configuration information;
[0132] The execution module 1703 is configured to process the order data according to the target process and obtain the processing result of the order data.
[0133] In one embodiment of the present invention, the determination module 1702 is configured to obtain configuration information; select several target business components from a plurality of preset business components based on the identifiers of several target business components; generate a target process based on the business component calling sequence and the several target business components; wherein the configuration information includes: the business component calling sequence and the identifiers of the several target business components;.
[0134] In one embodiment of the present invention, the target process includes: a number of target business components, business component calling methods and business component calling sequences;
[0135] The execution module 1703 is configured to call several target business components to process the order data according to the business component calling mode and the business component calling sequence, and obtain the processing result of the order data.
[0136] In one embodiment of the present invention, the target process includes: a main process and a plurality of sub-processes;
[0137] The main process includes: the execution order of several sub-processes;
[0138] The sub-process includes: business component calling method, several target business components and business component calling sequence;
[0139] The execution module 1703 is configured to execute several sub-processes according to the execution order of the several sub-processes; execute the sub-processes: according to the business component calling method and the business component calling order, call several target business components to process the order data and obtain the processing results of the sub-processes.
[0140] In one embodiment of the present invention, the service component calling mode is synchronous calling;
[0141] The execution module 1703 is configured to synchronously call several target business components to process order data according to the business component calling sequence.
[0142] In one embodiment of the present invention, the service component calling mode is asynchronous calling;
[0143] The execution module 1703 is configured to trigger a preset asynchronous scheduling center so that the asynchronous task scheduling center asynchronously calls several target business components to process order data according to the business component calling sequence.
[0144] An embodiment of the present invention provides an electronic device, including:
[0145] one or more processors;
[0146] a storage device for storing one or more programs,
[0147] When one or more programs are executed by one or more processors, the one or more processors implement the method described in any of the above embodiments.
[0148] Fig.17 An exemplary system architecture 1700 is shown to which the order data processing method or order receiving system according to the embodiment of the present invention can be applied.
[0149] like Fig.17 As shown, system architecture 1700 may include terminal devices 1701, 1702, 1703, a network 1704, and a server 1705. Network 1704 is used to provide a medium for communication links between terminal devices 1701, 1702, 1703 and server 1705. Network 1704 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0150] Users can use terminal devices 1701, 1702, and 1703 to interact with server 1705 through network 1704 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 1701, 1702, and 1703, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0151] The terminal devices 1701 , 1702 , and 1703 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0152] The server 1705 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 1701, 1702, and 1703. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.
[0153] It should be noted that the order data processing method provided in the embodiment of the present invention is generally executed by the server 1705 , and accordingly, the order receiving system is generally set in the server 1705 .
[0154] It should be understood that Fig.17 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0155] Reference below Fig.18 , which shows a schematic diagram of the structure of a computer system 1800 of a terminal device suitable for implementing an embodiment of the present invention. Fig.18 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0156] like Fig.18 As shown, the computer system 1800 includes a central processing unit (CPU) 1801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1802 or a program loaded from a storage part 1808 to a random access memory (RAM) 1803. In the RAM 1803, various programs and data required for the operation of the system 1800 are also stored. The CPU 1801, the ROM 1802, and the RAM 1803 are connected to each other via a bus 1804. An input / output (I / O) interface 1805 is also connected to the bus 1804.
[0157] The following components are connected to the I / O interface 1805: an input section 1806 including a keyboard, a mouse, etc.; an output section 1807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1808 including a hard disk, etc.; and a communication section 1809 including a network interface card such as a LAN card, a modem, etc. The communication section 1809 performs communication processing via a network such as the Internet. A drive 1810 is also connected to the I / O interface 1805 as needed. A removable medium 1811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1810 as needed, so that a computer program read therefrom is installed into the storage section 1808 as needed.
[0158] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1809, and / or installed from the removable medium 1811. When the computer program is executed by the central processing unit (CPU) 1801, the above-mentioned functions defined in the system of the present invention are executed.
[0159] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0160] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0161] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes a sending module, an acquisition module, a determination module, and a first processing module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the sending module may also be described as a "module for sending a picture acquisition request to the connected server."
[0162] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes:
[0163] Receive order data;
[0164] Determine a target process corresponding to the order data in a plurality of processes; wherein the target process includes: a plurality of target business components determined by configuration information;
[0165] The order data is processed according to the target process to obtain a processing result of the order data.
[0166] According to the technical solution of the embodiment of the present invention, different components are configured for the process through the configuration information of the process, so that different processes can implement different business processing procedures, without the need to manually re-modify the code to update the existing business processing procedures, which can improve the efficiency of processing order data. In addition, the embodiment of the present invention can also reduce the coupling degree of the code and reduce the development cost through component configuration.
[0167] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for processing order data, It is characterized in that include: Receive order data; Determine a target process corresponding to the order data in a plurality of processes; wherein the target process includes: a plurality of target business components determined by configuration information; Process the order data according to the target process to obtain a processing result of the order data, Wherein, before receiving the order data, the method further includes: Acquire the configuration information; wherein the configuration information includes: the service component calling sequence and the identifiers of the target service components; According to the identifiers of the target business components, the target business components are selected from a plurality of preset business components; generating the target process according to the business component calling sequence and the target business components, The target process includes: a main process and several sub-processes; The main process includes: the execution order of the plurality of sub-processes; and The sub-process includes: a business component calling method, a number of target business components and a business component calling sequence.
2. The method according to claim 1, It is characterized in that The target process includes: a number of target business components, business component calling methods and business component calling sequences; The step of processing the order data according to the target process to obtain a processing result of the order data includes: According to the business component calling mode and the business component calling sequence, the plurality of target business components are called to process the order data to obtain a processing result of the order data.
3. The method according to claim 1, It is characterized in that The step of processing the order data according to the target process to obtain a processing result of the order data includes: Execute the plurality of sub-processes according to the execution order of the plurality of sub-processes; Execute the subprocess: According to the business component calling mode and the business component calling sequence, the plurality of target business components are called to process the order data to obtain the processing result of the sub-process.
4. The method according to claim 3, It is characterized in that The business component calling mode is synchronous calling; The calling of the plurality of target business components to process the order data according to the business component calling mode and the business component calling sequence includes: According to the calling sequence of the business components, the target business components are synchronously called to process the order data.
5. The method according to claim 3, It is characterized in that The business component calling mode is asynchronous calling; The calling of the plurality of target business components to process the order data according to the business component calling mode and the business component calling sequence includes: A preset asynchronous scheduling center is triggered so that the asynchronous scheduling center asynchronously calls the several target business components to process the order data according to the business component calling sequence.
6. An order-taking system, It is characterized in that include: A receiving module configured to receive order data; A determination module, configured to determine a target process corresponding to the order data in a plurality of processes; wherein the target process includes: a plurality of target business components determined by the configuration information; an execution module, configured to process the order data according to the target process and obtain a processing result of the order data, The configuration information includes: the service component calling sequence and the identifiers of the target service components. The target process is generated before receiving the order data according to the business component calling sequence and the target business components, and The target business components are selected from a plurality of preset business components according to the identifiers of the target business components. The target process includes: a main process and several sub-processes; The main process includes: the execution order of the plurality of sub-processes; and The sub-process includes: a business component calling method, a number of target business components and a business component calling sequence.
7. The system of claim 6, It is characterized in that The target process includes: a number of target business components, business component calling methods and business component calling sequences; The execution module is configured to call the plurality of target business components to process the order data and obtain a processing result of the order data according to the business component calling mode and the business component calling sequence.
8. The system according to claim 6, It is characterized in that The execution module is configured to execute the multiple sub-processes according to the execution order of the multiple sub-processes; execute the sub-processes: according to the business component calling method and the business component calling order, call the multiple target business components to process the order data, and obtain the processing results of the sub-processes.
9. An electronic device, It is characterized in that include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.
10. A computer readable medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
