Business order process creation and implementation method, device, storage medium and system

By building a limited state machine for order flow and calling the basic services of the online mall platform, the problem of e-commerce platforms repeatedly building order processes in the global expansion of virtual business systems is solved, and a business order process that is simplified, convenient maintenance and flexible expansion is achieved. manage.

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

Patent Information

Application Number
CN201910099616.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-01-31
Publication Date
2025-01-17
Estimated Expiration
2039-01-31

AI Technical Summary

Technical Problem

In the global expansion of virtual business systems, existing e-commerce platforms need to frequently and repeatedly build order processes, resulting in high labor costs and difficult maintenance, and the order status flow is not intuitive, making it difficult to maintain and expand the system.

Method used

By building a limited state machine for order flow, obtaining order flow status configuration information, declaring the trigger events of order status and status flow, and calling the basic services of the online mall platform to realize the creation and execution of business order processes.

Benefits of technology

It simplifies the construction of business order processes, reduces duplicate labor, improves the convenience of maintenance and expansion, and realizes flexible management of order status and overall system control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111507676B_ABST
    Figure CN111507676B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, device, storage medium and system for creating and implementing a business order process. The business order process creation method includes: obtaining order flow state configuration information corresponding to the business order process to be created to build a corresponding order flow finite state machine, wherein the order flow state configuration information is used to declare the order state involved in the business order process and the trigger event corresponding to the state flow; based on the order flow finite state machine, the corresponding basic service in the online mall platform is determined and called according to the trigger event corresponding to the state flow to create the business order process. In the technical solution of the embodiment of the present disclosure, by building its own basic workflow and integrating external basic service resources, the construction of the business order process is simpler, and it is convenient to maintain and expand.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer application technology, and in particular to a method, device, storage medium and system for creating and implementing a business order process. Background Art

[0002] With the rapid development of Internet e-commerce business, various e-commerce platforms are gradually realizing globalization. In the context of the globalization of e-commerce platforms, some large-scale e-commerce platforms are copying the core models of domestic e-commerce platforms based on the successful experience of building domestic online platforms, quickly building overseas sites for e-commerce platforms, and realizing the rapid implementation of globalization strategies.

[0003] For virtual businesses on e-commerce platforms, whether it is a domestic virtual business system or a virtual business system on an overseas site, the core process is the order flow. Virtual business is generally provided by external agents to sell virtual goods. At the same time, the core order process of the virtual business system is designed based on the entire e-commerce platform, that is, it is necessary to rely on the overall basic order model, order process and related core basic services of the e-commerce platform. Therefore, the current implementation plan of the virtual business system is generally to integrate the external agent service into the order process of the e-commerce platform, which is roughly divided into the following steps: 1. According to the characteristics of the virtual business system, based on the order process of the e-commerce platform, connect to some core basic services of the e-commerce platform order process, mainly including order placement, reconciliation, settlement, refund and other core services, to design the order process of the virtual business system. 2. Relying on the basic order model of the e-commerce platform, integrate the business-related characteristic fields of the business system, and design the business system order model. 3. Connect with the external agent service of the business system, design the service interaction between the business system order flow and the agent for specific business, and realize the sale of agent products on the e-commerce platform.

[0004] However, the above solution has the following problems: 1. For the expansion of virtual new business lines, each business system needs to understand and connect with the core basic services of the e-commerce platform, design the business system order process, and start building a new business system from scratch, which is repetitive and wastes manpower costs. 2. The core basic services of the e-commerce platform generally define services from the perspective of their own systems. Therefore, developers of different business systems need to understand the business logic of the core basic services corresponding to the system to ensure the correctness of their respective business system processes. 3. For the construction of overseas sites for virtual business systems, it is necessary to rebuild the system based on the core services of the overseas site e-commerce platform, which involves a large amount of repetitive work. With the increase in overseas sites and multiple sets of core services, it is inconvenient to maintain the system. 4. For the core order process of the business system, the flow of order status is scattered in every corner of the system, and there is no overall intuitive global control, which is inconvenient for system maintenance and expansion. Summary of the invention

[0005] In view of this, the embodiments of the present disclosure provide a method, device, storage medium and system for creating and implementing a business order process that is easy to build, maintain and expand.

[0006] The technical solution of the embodiment of the present disclosure is implemented as follows:

[0007] In a first aspect, an embodiment of the present disclosure provides a method for creating a business order process, comprising: obtaining order flow state configuration information corresponding to a business order process to be created, so as to construct a corresponding order flow finite state machine, wherein the order flow state configuration information is used to declare an order state involved in the business order process and a trigger event corresponding to a state flow;

[0008] Based on the order flow finite state machine, the corresponding basic service in the online shopping mall platform is determined and called according to the triggering event corresponding to the state flow to create the business order process.

[0009] In a second aspect, the embodiment of the present disclosure further provides a method for implementing a business order process, including:

[0010] The order flow finite state machine obtains the trigger information of the trigger event sent by the business system or the online shopping platform;

[0011] Based on the trigger information, the corresponding basic service in the online shopping mall platform is determined and called, and the order flow finite state machine is executed to implement the business order process.

[0012] In a third aspect, the embodiment of the present disclosure further provides a business order process creation device, including: a state machine building module and a creation module; wherein,

[0013] The state machine construction module is used to obtain order flow state configuration information corresponding to the business order process to be created, so as to construct a corresponding order flow finite state machine, wherein the order flow state configuration information is used to declare the order state involved in the business order process and the triggering event corresponding to the state flow;

[0014] The creation module is used to determine and call the corresponding basic service in the online shopping mall platform based on the order flow finite state machine and the trigger event corresponding to the state flow to create the business order process.

[0015] In a fourth aspect, the embodiment of the present disclosure further provides a business order process implementation device, including: a trigger module and an operation module; wherein:

[0016] The trigger module is used for the order flow finite state machine to obtain trigger information of the trigger event sent by the business system or the online shopping mall platform;

[0017] The operation module is used to determine and call the corresponding basic service in the online shopping mall platform based on the trigger information, and execute the order flow finite state machine to realize the business order process.

[0018] In a fifth aspect, an embodiment of the present disclosure further provides a business order process creation device, comprising a memory, a processor, and a computer program stored and running on the memory, wherein when the processor executes the computer program, an order process creation method as described in any one of the embodiments of the present disclosure is implemented.

[0019] In a sixth aspect, an embodiment of the present disclosure further provides a business order process implementation device, comprising a memory, a processor, and a computer program stored and running on the memory, wherein when the processor executes the computer program, an order process implementation method as described in any one of the embodiments of the present disclosure is implemented.

[0020] In the seventh aspect, the embodiments of the present disclosure further provide a computer-readable storage medium, on which an order process creation program is stored. When the order process creation program is executed by a processor, an order process creation method as described in any one of the embodiments of the present disclosure is implemented.

[0021] In an eighth aspect, an embodiment of the present disclosure further provides a business system, comprising an order process creation device as described in any one of the embodiments of the present disclosure.

[0022] In the business order process creation method provided by the embodiment of the present disclosure, the order flow state configuration information corresponding to the business order process to be created is obtained to construct the corresponding order flow finite state machine, and the order flow state configuration information is used to declare the order state involved in the business order process and the trigger event corresponding to the state flow. In this way, the basic workflow of the order business itself is obtained by creating a business order flow finite state machine. Then, based on the order flow finite state machine, the corresponding basic service in the online mall platform is determined and called according to the trigger event corresponding to the state flow to create the business order process. In this way, based on the constructed order flow finite state machine, the creation of the complete business order process is completed by calling the basic service resources in the online mall platform. In the technical solution of the embodiment of the present disclosure, by constructing the basic workflow corresponding to the order flow finite state machine and integrating the basic service resources in the external online mall platform, the construction of the business order process is simpler and convenient for maintenance and expansion. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A flowchart of a method for creating a business order process provided by an embodiment of the present disclosure;

[0024] Figure 2A flowchart of another method for creating a business order process provided by an embodiment of the present disclosure;

[0025] Figure 3 A schematic diagram of a finite state machine model provided by an embodiment of the present disclosure;

[0026] Figure 4 A flowchart of another method for creating a business order process provided by an embodiment of the present disclosure;

[0027] Figure 5 A flowchart of another method for creating a business order process provided by an embodiment of the present disclosure;

[0028] Figure 6 A flowchart of another method for creating a business order process provided by an embodiment of the present disclosure;

[0029] Figure 7 A flowchart of a method for implementing a business order process provided by an embodiment of the present disclosure;

[0030] Figure 8 A flowchart of another method for implementing a business order process provided by an embodiment of the present disclosure;

[0031] Fig. 9 A flowchart of another method for implementing a business order process provided by an embodiment of the present disclosure;

[0032] Fig.10 A flowchart of another method for implementing a business order process provided by an embodiment of the present disclosure;

[0033] Fig.11 A schematic diagram of a business order process creation device structure provided by an embodiment of the present disclosure;

[0034] Fig.12 A schematic diagram of a business order process implementation device provided by an embodiment of the present disclosure;

[0035] Fig.13 A schematic diagram of the structure of another device for creating a business order process provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0036] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments provided herein are only used to explain the present disclosure and are not intended to limit the present disclosure. In addition, the embodiments provided below are partial embodiments for implementing the present disclosure, rather than providing all embodiments for implementing the present disclosure. In the absence of conflict, the technical solutions recorded in the embodiments of the present disclosure can be implemented in any combination.

[0037] It should be noted that, in the embodiments of the present disclosure, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a method or apparatus including a series of elements includes not only the elements explicitly recorded, but also includes other elements not explicitly listed, or also includes elements inherent to the implementation of the method or apparatus. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other related elements in the method or apparatus including the element (such as a step in the method or a unit in the apparatus, for example, a unit may be a part of a circuit, a part of a processor, a part of a program or software, etc.).

[0038] For example, the order process creation method provided in the embodiment of the present disclosure includes a series of steps, but the order process creation method provided in the embodiment of the present disclosure is not limited to the recorded steps. Similarly, the order process creation device provided in the embodiment of the present disclosure includes a series of modules, but the device provided in the embodiment of the present disclosure is not limited to including the modules explicitly recorded, and may also include modules required to obtain relevant information or perform processing based on the information.

[0039] The following will describe the embodiments of the present disclosure in detail. Figure 1 , is a flow chart of a method for creating a business order process provided by an embodiment of the present disclosure, comprising the following steps:

[0040] Step 11: Obtain order flow state configuration information corresponding to the business order process to be created to construct a corresponding order flow finite state machine, wherein the order flow state configuration information is used to declare the order state involved in the business order process and the triggering event corresponding to the state flow;

[0041] Here, the finite state machine refers to a mathematical model of a finite number of states and the transitions and actions between these states. In the disclosed embodiment, the finite number of states of the order flow finite state machine corresponds to the order state, for example, order initialization state, order created state, order paid state, etc.; the transitions and actions between these states of the order flow finite state machine correspond to the triggering events corresponding to the state flow, for example, the order creation triggering event indicates that the order state changes from the order initialization state to the order created state.

[0042] Here, the order flow state configuration information may include configuration information corresponding to specific functions that need to be implemented in the business order process. For example, in order to implement a specific business order process, it is necessary to configure initialization information, order creation information, order payment information, order production information, order application settlement information, order settlement information, order application refund information, order refund information, etc. When constructing the corresponding order flow finite state machine, it is only necessary to declare the order flow state configuration information, and then call it based on the declaration when running the business order process.

[0043] Here, the order status may include two attributes: order status value and name. The order status may be declared in a configuration file. The order status configuration in the configuration file may use the following format: state.value=name. For example:

[0044] Order initialization state: state.1 = order initialization;

[0045] Order created status: state.2 = Order created;

[0046] Order paid status: state.3 = Order paid;

[0047] Order produced status: state.4 = Order produced;

[0048] Order has been applied for settlement status: state.5 = Order has been applied for settlement;

[0049] Order settled status: state.6 = Order settled;

[0050] Order refund application status: state.7 = Order refund application;

[0051] Order refunded status: state.8 = Order refunded.

[0052] Based on this declarative approach, the order flow finite state machine has a concise structure and is easy to build. It can flexibly expand and trim order states, making it easier to build business order processes. This configuration method has a clear structure and is convenient for later maintenance of the business order process.

[0053] Here, the trigger event corresponding to the state flow may include the trigger event of the transition between the two order states, and the properties included may include the input order state source, the output order state target, and the event name eventName. The configuration method of the order state flow event in the configuration file may use the following format: event.source.target=eventName. For example:

[0054] Create order trigger event: event.1.2 = create order;

[0055] Payment reconciliation trigger event: event.2.3 = payment reconciliation;

[0056] Order production trigger event: event.3.4 = order production;

[0057] Application settlement trigger event: event.4.5 = Application settlement;

[0058] Settlement success triggers event: event.5.6 = Settlement success;

[0059] Application for refund trigger event: event.4.7 = Application for refund;

[0060] The event triggered by a successful refund is: event.7.8 = Refund successful.

[0061] Based on this declarative approach, the order flow finite state machine has a concise structure and is easy to build. It can flexibly expand and tailor events, making it easier to build a business order process. This configuration method has a clear structure and is convenient for later maintenance of the business order process.

[0062] Here, order flow expansion generally refers to the addition of order status and order status flow events. You only need to add a new configuration file, configure the information according to the rules of order status and event configuration, and then specify the custom configuration file path when introducing the order process component to complete the order flow expansion.

[0063] Here, the order status and trigger event information can be loaded through a state machine loader to achieve the construction of the order flow finite state machine.

[0064] See also Figure 2 , the loading process may include:

[0065] Step 21: Obtain configuration information of the order status and trigger event information;

[0066] Step 22: Read the configuration information;

[0067] Step 23: Verify the configuration information and write the configuration information into the finite state machine context.

[0068] See also Figure 3, which is a schematic diagram of a finite state machine model provided in an embodiment of the present disclosure, wherein the order status includes order initialization, order creation, order payment, order generation, order settlement application, order settlement, and order refund application; and the triggering events include: order creation, payment reconciliation, order production, settlement application, settlement success, refund application, and refund success.

[0069] Step 12: Based on the order flow finite state machine, determine and call the corresponding basic service in the online shopping platform according to the triggering event corresponding to the state flow to create the business order process.

[0070] Here, the trigger event may include a trigger event within the business system and a trigger event in the online shopping platform. The corresponding basic business in the online shopping platform may be the existing resources required for the specific implementation of functions such as creating an order, payment reconciliation, order generation, applying for settlement, and applying for refund, such as platform resources, program modules for implementing characteristic functions, etc.

[0071] In the business order process creation method provided by the embodiment of the present disclosure, the order flow state configuration information corresponding to the business order process to be created is obtained to construct the corresponding order flow finite state machine, and the order flow state configuration information is used to declare the order state involved in the business order process and the trigger event corresponding to the state flow. In this way, the basic workflow of the order business itself is obtained by creating a business order flow finite state machine. Then, based on the order flow finite state machine, the corresponding basic service in the online mall platform is determined and called according to the trigger event corresponding to the state flow to create the business order process. In this way, based on the constructed order flow finite state machine, the creation of the complete business order process is completed by calling the basic service resources in the online mall platform. In the technical solution of the embodiment of the present disclosure, by constructing the basic workflow corresponding to the order flow finite state machine and integrating the basic service resources in the external online mall platform, the construction of the business order process is simpler and convenient for maintenance and expansion.

[0072] In some embodiments, in step 12, based on the order flow finite state machine, determining and calling the corresponding basic service in the online shopping mall platform according to the triggering event corresponding to the state flow to create the business order process includes:

[0073] Based on the order flow finite state machine, according to the trigger event corresponding to the state flow, the trigger event is distributed to the corresponding event processor, and the corresponding basic service in the online shopping mall platform is determined and called through the event processor to create the business order process.

[0074] Here, the event handler can be simply declared in the finite state machine and called when a triggering event is received. The event handler can be used to declare the event handler name corresponding to a specific event, and the properties included may include the input order status source, the output order status target, and the event handler name handlerName. The format of the event handler configuration in the configuration file may be eventHandler.source.target = handlerName, where eventHandler.source.target can be agreed to be the event handler identifier for a specific event. For example:

[0075] Create an order event handler: eventHandler.1.2 = Create an order event handler;

[0076] Payment reconciliation event handler: eventHandler.2.3 = Payment reconciliation event handler;

[0077] Order production event handler: eventHandler.3.4 = Order production event handler;

[0078] Apply for settlement event handler: eventHandler.4.5 = Apply for settlement event handler;

[0079] Settlement success event handler: eventHandler.5.6 = Settlement success event handler;

[0080] Apply for refund event handler: eventHandler.4.7 = Apply for refund event handler;

[0081] Refund success event handler: eventHandler.7.8 = Refund success event handler.

[0082] The disclosed embodiment calls the basic service through the event processor, which has clear functions and simple construction. It can flexibly expand and tailor events by adding and deleting event processors, which is convenient for building business order processes. This configuration method has a clear structure and is convenient for the maintenance and management of the business order process in the later stage.

[0083] In some embodiments, in step 21, before distributing the trigger event to the corresponding event processor based on the order flow finite state machine according to the trigger event corresponding to the state flow, the step further includes:

[0084] Obtaining configuration information of the event handler;

[0085] parsing an identifier of the event handler based on the configuration information;

[0086] The event handler is obtained according to the identifier and registration of the event handler in the order flow finite state machine context is completed.

[0087] Here, the registration of the event handler in the context of the order flow finite state machine can be completed by loading the event handler. Figure 4 , the registration process includes the following steps:

[0088] Step 41, start the event processing loader;

[0089] Step 42, obtaining configuration information of the event handler;

[0090] Step 43, parsing the identifier of the event handler based on the configuration information;

[0091] Step 44, obtaining the event handler according to the identifier;

[0092] Step 45, completing the registration of the event handler in the context of the order flow finite state machine;

[0093] Step 46, end.

[0094] In some embodiments, in step 21, the order flow state configuration information corresponding to the business order process to be created is obtained to construct the corresponding order flow finite state machine, which also includes the following steps, see Figure 5 ,

[0095] Step 51: Get the paths of the configuration files corresponding to the order status, triggering event and event handler respectively;

[0096] Here, in the embodiment of the present disclosure, the order status, triggering events and their event handlers can be pre-configured in a file named order_machine_default.properties as a default configuration file. When the order process is introduced into the business system, no configuration is required and the finite state machine can be directly addressed. The path can be expressed as: AAA / BBB / CCC / order_machine_default.properties.

[0097] Step 52: Read the configuration file of the order status, the configuration file of the trigger event and the configuration file of the event handler respectively according to the path of the configuration file;

[0098] Here, after finding the corresponding configuration file according to the path, reading the configuration file includes reading the order status, trigger event and its event handler configuration information. For example, the order status configuration information includes: order initialization status state.1 = order initialization, order created status state.2 = order created; trigger event configuration information includes: create order trigger event event.1.2 = create order; event handler configuration information includes: create order event handler eventHandler.1.2 = create order event handler. Step 53: Based on the configuration file of the order status, the configuration file of the trigger event and the configuration file of the event handler, write the order status, the trigger event and the event handler into the context of the order flow finite state machine.

[0099] Here, the order status, the trigger event and the event handler are written into the order flow finite state machine context, including embedding the order status, the trigger event and the event handler into the logical processing flow of the order processing. The logical processing flow here, i.e., the order flow state machine context, may correspond to the main program of the order business processing, and the order status, the trigger event and the event handler may correspond to the state transfer parameter or subroutine in the main program. For example, the order status may be the state transfer parameter in the program, and the event handler may be the sub-function corresponding to processing the trigger event.

[0100] In some embodiments, before writing the order status, the trigger event and the event handler into the order flow finite state machine context, the process further includes:

[0101] Based on the order status, the trigger event and the event handler, at least one of the following is performed:

[0102] Check whether the order status, the trigger event and the event handler are repeated;

[0103] Verify whether the trigger event is legal;

[0104] Check whether the trigger event has the corresponding event handler.

[0105] Here, checking whether the order status, the trigger event and the event processor are repeated may include: respectively obtaining the order status, the trigger event and the event processor information in the configuration file; respectively counting the number of each order status, each trigger event and each time processor; when the number is multiple, determining the result is repeated, and when the duplication occurs, an alarm prompt can be used to remind the user to modify the configuration file to avoid causing logical confusion of the order flow finite state machine. Checking whether the trigger event is legal may include checking whether the trigger event complies with the actual operation process and rules of the business order. When an illegal situation occurs, an alarm prompt can be set to remind the user to modify the configuration file to avoid the order flow finite state machine not complying with the actual operation rules of the order. Checking whether the trigger event has a corresponding event processor includes confirming whether the trigger event has a corresponding event processor to avoid the situation where no event processor can be called when the order status is transferred. Therefore, the above-mentioned verification process can effectively avoid the situation of logical confusion, illegality and missing event processors of the finite state machine, and the above-mentioned verification provided by the embodiment of the present disclosure can make the order process more stable and reliable when running.

[0106] In some embodiments, the attributes of the order status include an order status value and an order name, and the step of obtaining order flow status configuration information corresponding to the business order process to be created includes:

[0107] Obtaining a configuration file having attributes of the order status; and / or,

[0108] The attributes of the trigger event include input order status, output order status and event name, and the order flow status configuration information corresponding to the business order process to be created is obtained, including:

[0109] Obtain a configuration file that carries the attributes of the trigger event.

[0110] Here, the order flow state configuration information corresponding to the business order process to be created can include a configuration file for obtaining the attributes of the order state, wherein the configuration file is configured with the order state value and the order name, for example: state.1 = order initialization; it can also include obtaining a configuration file carrying the attributes of the trigger event, wherein the attributes of the trigger event include the input order state, the output order state and the event name, for example, event.1.2 = create order; it can also include both a configuration file for obtaining the attributes of the order state and a configuration file for obtaining the attributes of the trigger event. The disclosed embodiment sets the relevant configuration information in the configuration file for easy calling and management.

[0111] In some embodiments, in step 12, based on the order flow finite state machine, determining and calling the corresponding basic service in the online shopping mall platform according to the triggering event corresponding to the state flow to create the business order process includes:

[0112] Receive trigger event trigger information sent by the business system; obtain the order status of the trigger event based on the trigger information; obtain the corresponding event handler according to the order status based on the order flow finite state machine; determine and call the corresponding basic service in the online mall platform through the event handler to create the business order process;

[0113] Or, receiving trigger event trigger information sent by the online shopping mall platform; obtaining an event processor identifier based on the trigger information; based on the order flow finite state machine, calling the corresponding event processor according to the event processor identifier; determining and calling the corresponding basic service in the online shopping mall platform through the event processor to create the business order process.

[0114] Here, the events in the order flow finite state machine can generally be divided into two types, one is the internal trigger event of the business system, and the other is the external trigger event triggered by the basic system of the e-commerce platform. When the trigger event trigger information sent by the business system corresponds to an internal trigger event, the order status conversion can be triggered by a certain function point of the business system. The business system needs to provide the input order status and output order status to the order process component. The order flow finite state machine context will complete the event processing, obtain the corresponding event handler according to the order status, and determine and call the corresponding basic service in the online mall platform through the event handler.

[0115] When the trigger event trigger information sent by the online shopping mall platform corresponds to an external trigger event, the external event trigger can be that the online shopping mall platform basic system sends a message to the business system to trigger the order status flow of the business system. The order flow finite state machine context encapsulates the analysis of the message content, triggers different order flow events according to different message types, and calls the custom event handler implemented by the business system. The corresponding service in the online shopping mall platform is determined and called through the event handler.

[0116] Here, according to the default order flow finite state machine configuration information provided by the order process component, the internal trigger events of the business system may include: creating an order, applying for order settlement, and applying for order refund. External trigger events include: order payment reconciliation, successful order settlement, and successful order refund. The following lists several event processors to illustrate the event processors corresponding to the internal trigger events and external trigger events of each business system:

[0117] Create order processor: Processes the trigger event in the business system to create an order. The processor is identified as "eventHandler.1.2", which is encapsulated and implemented by the order process component and calls the create order service in the virtual order service.

[0118] Payment reconciliation processor: handles order payment reconciliation triggered by external system. The processor is identified as "eventHandler.2.3" and is implemented by the business system. The order process component completes the reception and verification of the external system trigger data and calls the order payment reconciliation processor implemented by the business system.

[0119] Application settlement processor: handles the order application settlement event triggered by the business system. The processor is identified as "eventHandler.4.5", which is encapsulated and implemented by the order process component and calls the application settlement service in the virtual order service.

[0120] Settlement success processor: handles the order settlement success event triggered by the external system. The processor is identified as "eventHandler.5.6" and is implemented by the business system. The order process component completes the reception and verification of the external system trigger data, and calls the order settlement success processor implemented by the business system.

[0121] Refund application processor: handles the order refund application event triggered within the business system. The processor is identified as "eventHandler.4.7", which is encapsulated and implemented by the order process component and calls the refund application service in the virtual order service.

[0122] Successful refund processor: handles the successful order refund event triggered by the external system. The processor name is "eventHandler.7.8", which is implemented by the business system. The order process component completes the reception and verification of the external system trigger data, and calls the successful order refund processor implemented by the business system.

[0123] Here, custom event handlers can refer to the processing of events that are implemented by yourself. Since the event handler loader loads the event handler according to the event handler identifier, the custom event handler identifier must be consistent with the event handler identifier in the configuration file. If a new event handler is added, a new configuration file needs to be added to configure the event handler information, and the custom configuration file path needs to be specified when the order process component is introduced.

[0124] In the disclosed embodiment, by distinguishing internal trigger information from external trigger information and using different implementation methods to call event processors, the processing of order processes is made more efficient and convenient to manage.

[0125] In some embodiments, before calling the corresponding basic service in the online shopping platform, the process includes:

[0126] Obtaining service input parameters and service output parameters in a set format corresponding to each basic service in the online shopping platform, wherein the service input parameter includes at least one of the following: order number, online payment information, discount information, product information, settlement information, and refund information; the service output parameter includes at least one of the following: return entity and response status code;

[0127] The calling parameters for the basic service are formed according to the service input parameters and the service output parameters.

[0128] See also Figure 6 Before determining and calling the corresponding basic service in the online shopping platform according to the trigger event corresponding to the state flow, the following steps are also included:

[0129] Step 61: Obtain service input parameters and service output parameters in a set format corresponding to each basic service in the online shopping mall platform, such as input and output parameter 1, input and output parameter 2, and input and output parameter 3.

[0130] Step 62: Form the calling parameters for the basic service according to the service input parameters and the service output parameters. For example, response code 1 and response code 2. Response code 1 corresponds to the domestic virtual service implementation submodule calling the basic service of the domestic e-commerce platform; response code 2 corresponds to the foreign virtual service implementation submodule calling the basic service of the foreign e-commerce platform.

[0131] Here, the calling parameters are obtained according to the service input parameters and service output parameters in the set format, which essentially standardizes the order process, defines a unified order model and a unified service response result, improves the compatibility of the business order process, and makes the entire system more efficient.

[0132] See also Figure 7 In another aspect, the present disclosure provides a method for implementing a business order process, including the following steps:

[0133] Step 71: The order flow finite state machine obtains trigger information of the trigger event sent by the business system or the online shopping platform;

[0134] Step 72: Based on the trigger information, determine and call the corresponding basic service in the online shopping mall platform, and execute the order flow finite state machine to implement the business order process.

[0135] Here, the finite state machine refers to a mathematical model of a finite number of states and the transitions and actions between these states. In the disclosed embodiment, the finite number of states of the order flow finite state machine corresponds to the order state, for example: order initialization state, order created state, order paid state, etc.; the transitions and actions between these states of the order flow finite state machine correspond to the trigger events corresponding to the state flow, for example, the creation of an order trigger event indicates that the order state changes from the order initialization state to the order created state. The mathematical model specifies the operation logic of the business order process, and the trigger event can trigger the business order process to run according to the mathematical model according to the specified operation logic through the trigger information. For example, the business order process receives the user's order instruction, and the order instruction corresponds to a trigger event, which will trigger the execution of the order flow finite state machine. The program of the order flow finite state machine will run from the order initialization state to the order created state. In this process, the basic service in the online mall platform can be called to realize the above operation. Among them, the basic service here can be a callable functional module that already exists in the online mall platform, for example, a functional subroutine.

[0136] See also Figure 8 In order to further understand the business order process implementation method provided by the embodiment of the present disclosure, the following takes obtaining the trigger information of the trigger event sent by the online shopping mall platform to implement the business order process as an example to illustrate the implementation process of the business order process implementation method, and the method includes:

[0137] Step 81: Start the order flow finite state machine initialization; specifically, start the state loader and event processor to register the order status, trigger event, etc.; the registration may include completing the declaration of the order status, trigger event and event processor in the order flow finite state machine.

[0138] Step 82: The order flow finite state machine obtains the business system trigger information. Here, the trigger information may be sent by each functional module of the virtual business system, for example, function 1, function 2, and function 3;

[0139] Step 83: The order flow finite state machine obtains the system trigger information sent by the e-commerce platform. Here, the trigger information may be a message sent by the online shopping platform, such as message 1, message 2, and message 3;

[0140] Step 84: Based on the trigger information, determine and call the corresponding virtual order service in the online shopping mall platform, and execute the order flow finite state machine to implement the business order process.

[0141] Here, the order process implementation method described in the embodiment of the present disclosure includes the process of starting the order flow finite state machine initialization, specifically starting the state loader and event processor to register the order status, trigger events, etc., which can complete the declaration of the order status, trigger events and event processors in the finite state machine, and provide operating conditions for subsequent finite state machines to call related functional modules to implement the business order process.

[0142] Wherein, based on the trigger information, determining and calling the corresponding basic service in the online shopping mall platform, executing the order flow finite state machine to implement the business order process, includes:

[0143] Receive trigger event trigger information sent by the business system; obtain the order status of the trigger event based on the trigger information; based on the order flow finite state machine, obtain the corresponding event handler according to the order status; determine and call the corresponding basic service in the online mall platform through the event handler to create the business order process; or, receive trigger event trigger information sent by the online mall platform; obtain the event handler identifier based on the trigger information; based on the order flow finite state machine, call the corresponding event handler according to the event handler identifier; determine and call the corresponding basic service in the online mall platform through the event handler to create the business order process.

[0144] See also Fig. 9 In order to further understand the business order process implementation method provided by the embodiment of the present disclosure, the implementation process of the business order process implementation method is described below by taking the trigger information of the trigger event sent by the business system to implement the business order process as an example, including the following steps:

[0145] Step 91: receiving trigger event trigger information sent by the business system function point;

[0146] Step 92: Perform business logic processing;

[0147] Step 93: Obtaining the input and output order status of the trigger event based on the trigger information;

[0148] Step 94: Based on the order flow finite state machine, obtain a corresponding event handler according to the order status;

[0149] Step 95: executing the event processor, determining and calling the corresponding basic service in the online shopping platform through the event processor to create the business order process;

[0150] Step 96: Perform business logic processing.

[0151] Here, the embodiment of the present disclosure receives trigger event trigger information sent by the business system function point. For internal trigger information, there is no need to perform in-depth analysis of the trigger information. The event processor can be obtained based on the input and output order status of the trigger event of the trigger information and the corresponding basic service in the online shopping mall platform can be called through the event processor to complete the business logic processing.

[0152] See also Fig.10 In order to further understand the business order process implementation method provided by the embodiment of the present disclosure, the implementation process of the business order process implementation method is described below by taking the trigger information message sent by the online e-commerce platform to implement the business order process as an example, including the following steps:

[0153] Step 101: receiving a trigger event trigger information message sent by the e-commerce platform A / B basic system;

[0154] Step 102: Parse the message and obtain an event processor identifier;

[0155] Step 103: Based on the order flow finite state machine, call the corresponding custom event handler according to the event handler identifier;

[0156] Step 104: executing the event processor, determining and calling the corresponding basic service in the online shopping platform through the event processor to create the business order process;

[0157] Step 105: Perform business logic processing.

[0158] Here, the embodiment of the present disclosure receives a trigger event trigger information message sent by the A / B basic system of the e-commerce platform, and obtains an event processor identifier by parsing the message for the external trigger information, and calls a corresponding customized event processor according to the identifier and calls the corresponding basic service in the online shopping mall platform through the event processor to complete business logic processing. By unifying the acquisition rules of the event processor, the problem of calling difficulties caused by inconsistent formats of external trigger information is effectively solved.

[0159] See also Fig.11 In another aspect, the present disclosure provides a schematic diagram of a business order process creation device structure, including: a state machine construction module 111 and a creation module 112; wherein,

[0160] The state machine construction module 111 is used to obtain order flow state configuration information corresponding to the business order process to be created, so as to construct a corresponding order flow finite state machine, wherein the order flow state configuration information is used to declare the order state involved in the business order process and the triggering event corresponding to the state flow;

[0161] The creation module 112 is used to determine and call the corresponding basic service in the online shopping mall platform based on the order flow finite state machine and the triggering event corresponding to the state flow, so as to create the business order process.

[0162] Among them, the creation module 112 is specifically used to distribute the trigger event to the corresponding event processor based on the order flow finite state machine according to the trigger event corresponding to the state flow, and determine and call the corresponding basic service in the online shopping mall platform through the event processor to create the business order process.

[0163] Among them, the business order process creation device also includes an initialization module 114, and the initialization module 114 is used to obtain the configuration information of the event processor; parse the identifier of the event processor based on the configuration information; obtain the event processor according to the identifier and complete the registration of the event processor in the context of the order flow finite state machine.

[0164] Among them, the initialization module 114 is also used to obtain the paths of the configuration files corresponding to the order status, trigger event and event handler respectively; read the configuration file of the order status, the configuration file of the trigger event and the configuration file of the event handler respectively according to the paths of the configuration files; based on the configuration file of the order status, the configuration file of the trigger event and the configuration file of the event handler, write the order status, the trigger event and the event handler into the context of the order flow finite state machine.

[0165] Among them, the initialization module 114 is also used to perform verification based on the order status, the trigger event and the event handler, and execute at least one of the following: verifying whether the order status, the trigger event and the event handler are repeated; verifying whether the trigger event is legal; verifying whether the trigger event has a corresponding event handler.

[0166] The state machine construction module 111 is specifically used to obtain a configuration file carrying the attributes of the order status; and / or obtain a configuration file carrying the attributes of the trigger event.

[0167] The creation module 112 includes an internal trigger unit 113 and an external trigger unit 116.

[0168] The internal trigger unit 113 is used to receive the trigger event trigger information sent by the business system; obtain the order status of the trigger event based on the trigger information; obtain the corresponding event processor according to the order status based on the order flow finite state machine; determine and call the corresponding basic service in the online mall platform through the event processor to create the business order process;

[0169] The external trigger unit 116 is used to receive trigger event trigger information sent by the online shopping mall platform; obtain an event processor identifier based on the trigger information; call the corresponding event processor according to the event processor identifier based on the order flow finite state machine; determine and call the corresponding basic service in the online shopping mall platform through the event processor to create the business order process.

[0170] Among them, the business order process creation device also includes a standardization module 115, and the standardization module 115 is used to obtain service input parameters and service output parameters in a set format corresponding to each basic service in the online shopping mall platform, wherein the service input parameters include at least one of the following: order number, online payment information, discount information, product information, settlement information and refund information; the service output parameters include at least one of the following: return entity and response status code; and the call parameters for the basic service are formed according to the service input parameters and the service output parameters.

[0171] See also Fig.12 In another aspect, the present disclosure provides a device for implementing a business order process, including: a trigger module 121 and an operation module 122; wherein,

[0172] The trigger module 121 is used for the order flow finite state machine to obtain trigger information of a trigger event sent by a business system or an online shopping mall platform;

[0173] The operation module 122 is used to determine and call the corresponding basic service in the online shopping mall platform based on the trigger information, and execute the order flow finite state machine to realize the business order process.

[0174] The operation module includes an internal processing module 123 and an external processing module 124;

[0175] The internal processing module 123 is used to obtain the order status of the trigger event based on the trigger event trigger information sent by the business system; based on the order flow finite state machine, obtain the corresponding event processor according to the order status; determine and call the corresponding basic service in the online mall platform through the event processor to create the business order process;

[0176] The external processing module 124 is used to obtain an event processor identifier based on the trigger event trigger information sent by the online shopping mall platform; based on the order flow finite state machine, call the corresponding event processor according to the event processor identifier; determine and call the corresponding basic service in the online shopping mall platform through the event processor to create the business order process.

[0177] See also Fig.13 On the other hand, the embodiment of the present disclosure provides a business order process creation device, including a memory 132, a processor 131 and a computer program stored and running on the memory, wherein the processor 131 implements the following steps when executing the computer program: obtaining order flow state configuration information corresponding to the business order process to be created to construct a corresponding order flow finite state machine, wherein the order flow state configuration information is used to declare the order state involved in the business order process and the trigger event corresponding to the state flow; based on the order flow finite state machine, determining and calling the corresponding basic service in the online shopping mall platform according to the trigger event corresponding to the state flow to create the business order process.

[0178] When the processor 131 executes the computer program, the following steps are also implemented: based on the order flow finite state machine, the trigger event is distributed to the corresponding event processor according to the trigger event corresponding to the state flow, and the corresponding basic service in the online shopping mall platform is determined and called through the event processor to create the business order process.

[0179] When the processor 131 executes the computer program, the following steps are also implemented: obtaining configuration information of the event processor; parsing the identifier of the event processor based on the configuration information; obtaining the event processor according to the identifier and completing the registration of the event processor in the context of the order flow finite state machine.

[0180] When the processor 131 executes the computer program, the following steps are also implemented: obtaining the paths of the configuration files corresponding to the order status, the trigger event, and the event handler; reading the configuration files of the order status, the trigger event, and the event handler respectively according to the paths of the configuration files; writing the order status, the trigger event, and the event handler into the context of the order flow finite state machine based on the configuration files of the order status, the trigger event, and the event handler. When the processor executes the computer program, the following steps are also implemented: performing verification based on the order status, the trigger event, and the event handler, and performing at least one of the following: verifying whether the order status, the trigger event, and the event handler are repeated; verifying whether the trigger event is legal; and verifying whether the trigger event has the corresponding event handler.

[0181] When the processor 131 executes the computer program, the following steps are also implemented: obtaining a configuration file carrying the attributes of the order status; and / or the attributes of the trigger event include input order status, output order status and event name, and obtaining the order flow status configuration information corresponding to the business order process to be created includes: obtaining a configuration file carrying the attributes of the trigger event.

[0182] When the processor 131 executes the computer program, it also implements the following steps: receiving trigger event trigger information sent by the business system; obtaining the order status of the trigger event based on the trigger information; obtaining the corresponding event handler according to the order status based on the order flow finite state machine; determining and calling the corresponding basic service in the online mall platform through the event handler to create the business order process; or, receiving trigger event trigger information sent by the online mall platform; obtaining the event handler identifier based on the trigger information; calling the corresponding event handler according to the event handler identifier based on the order flow finite state machine; determining and calling the corresponding basic service in the online mall platform through the event handler to create the business order process.

[0183] When the processor 131 executes the computer program, the following steps are also implemented: obtaining service input parameters and service output parameters in a set format corresponding to each basic service in the online shopping mall platform, wherein the service input parameters include at least one of the following: order number, online payment information, discount information, product information, settlement information and refund information; the service output parameters include at least one of the following: return entity and response status code; and forming call parameters for the basic service based on the service input parameters and the service output parameters.

[0184] On the other hand, the embodiments of the present disclosure provide a business order process implementation device, including a memory 132, a processor 131 and a computer program stored and running on the memory 132, wherein the processor 131 implements the following steps when executing the computer program: an order flow finite state machine obtains trigger information of a trigger event sent by a business system or an online shopping mall platform; based on the trigger information, a corresponding basic service in the online shopping mall platform is determined and called, and the order flow finite state machine is executed to implement the business order process.

[0185] The processor 131 further implements the following steps when executing the computer program: receiving trigger event trigger information sent by the business system; obtaining the order status of the trigger event based on the trigger information; obtaining the corresponding event processor according to the order status based on the order flow finite state machine; determining and calling the corresponding basic service in the online mall platform through the event processor to create the business order process;

[0186] Or, receiving trigger event trigger information sent by the online shopping mall platform; obtaining an event processor identifier based on the trigger information; based on the order flow finite state machine, calling the corresponding event processor according to the event processor identifier; determining and calling the corresponding basic service in the online shopping mall platform through the event processor to create the business order process.

[0187] On the other hand, the embodiments of the present disclosure provide a computer-readable storage medium having an order process creation program stored thereon, and the order process creation program implements the following steps when executed by a processor: obtaining order flow state configuration information corresponding to the business order process to be created, so as to construct a corresponding order flow finite state machine, wherein the order flow state configuration information is used to declare the order states involved in the business order process and the trigger events corresponding to the state flow; based on the order flow finite state machine, determining and calling the corresponding basic services in the online shopping mall platform according to the trigger events corresponding to the state flow, so as to create the business order process.

[0188] When the order process creation program is executed by the processor, the following steps are also implemented: based on the order flow finite state machine, the trigger event is distributed to the corresponding event processor according to the trigger event corresponding to the state flow, and the corresponding basic service in the online mall platform is determined and called through the event processor to create the business order process.

[0189] When the order flow creation program is executed by the processor, the following steps are also implemented: obtaining the configuration information of the event processor; parsing the identifier of the event processor based on the configuration information; obtaining the event processor according to the identifier and completing the registration of the event processor in the context of the order flow finite state machine.

[0190] When the order flow creation program is executed by the processor, the following steps are also implemented: obtaining the paths of the configuration files corresponding to the order status, the trigger event and the event processor respectively; reading the configuration files of the order status, the trigger event and the event processor respectively according to the paths of the configuration files; based on the configuration files of the order status, the trigger event and the event processor, writing the order status, the trigger event and the event processor into the context of the order flow finite state machine. When the processor executes the computer program, the following steps are also implemented: performing verification based on the order status, the trigger event and the event processor, and performing at least one of the following: verifying whether the order status, the trigger event and the event processor are repeated; verifying whether the trigger event is legal; verifying whether the trigger event has the corresponding event processor.

[0191] When the order process creation program is executed by the processor, the following steps are also implemented: obtaining a configuration file carrying the attributes of the order status; and / or the attributes of the trigger event include input order status, output order status and event name, and obtaining the order flow status configuration information corresponding to the business order process to be created includes: obtaining a configuration file carrying the attributes of the trigger event.

[0192] When the order process creation program is executed by the processor, the following steps are also implemented: receiving trigger event trigger information sent by the business system; obtaining the order status of the trigger event based on the trigger information; obtaining the corresponding event handler according to the order status based on the order flow finite state machine; determining and calling the corresponding basic service in the online mall platform through the event handler to create the business order process; or, receiving trigger event trigger information sent by the online mall platform; obtaining the event handler identifier based on the trigger information; calling the corresponding event handler according to the event handler identifier based on the order flow finite state machine; determining and calling the corresponding basic service in the online mall platform through the event handler to create the business order process.

[0193] When the order process creation program is executed by the processor, the following steps are also implemented: obtaining service input parameters and service output parameters in a set format corresponding to each basic service in the online shopping mall platform, wherein the service input parameters include at least one of the following: order number, online payment information, discount information, product information, settlement information and refund information; the service output parameters include at least one of the following: return entity and response status code; and forming call parameters for the basic service based on the service input parameters and the service output parameters.

[0194] In another aspect, the present disclosure provides a business system, including an order flow creation device as described in any one of the embodiments of the present disclosure and a business order flow implementation device as described in any one of the embodiments of the present disclosure.

[0195] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A method for creating a business order process, characterized in that: include: Obtaining order flow state configuration information corresponding to the business order process to be created to construct a corresponding order flow finite state machine, wherein the order flow state configuration information is used to declare the order state involved in the business order process and the triggering event corresponding to the state flow; Based on the order flow finite state machine, determine and call the corresponding basic service in the online shopping platform according to the trigger event corresponding to the state flow to create the business order process; The step of obtaining order flow state configuration information corresponding to the business order process to be created to construct a corresponding order flow finite state machine includes: Get the paths of the configuration files corresponding to the order status, trigger events and event handlers; Read the configuration file of the order status, the configuration file of the trigger event and the configuration file of the event handler respectively according to the path of the configuration file; Based on the configuration file of the order status, the configuration file of the trigger event and the configuration file of the event handler, the order status, the trigger event and the event handler are written into the order flow finite state machine context.

2. The business order process creation method according to claim 1, characterized in that: Based on the order flow finite state machine, determining and calling the corresponding basic service in the online shopping mall platform according to the triggering event corresponding to the state flow to create the business order process includes: Based on the order flow finite state machine, the trigger event is distributed to the corresponding event processor according to the trigger event corresponding to the state flow, and the corresponding basic service in the online shopping mall platform is determined and called through the event processor to create the business order process.

3. The business order process creation method according to claim 2, characterized in that: Before distributing the trigger event to the corresponding event processor according to the trigger event corresponding to the state flow based on the order flow finite state machine, the method further includes: Obtaining configuration information of the event handler; parsing an identifier of the event handler based on the configuration information; The event handler is obtained according to the identifier and registration of the event handler in the order flow finite state machine context is completed.

4. The business order process creation method according to claim 1, characterized in that: Before writing the order status, the trigger event and the event handler into the order flow finite state machine context, the method further includes: Based on the order status, the trigger event and the event handler, at least one of the following is performed: Check whether the order status, the trigger event and the event handler are repeated; Verify whether the trigger event is legal; Check whether the trigger event has the corresponding event handler.

5. The method for creating a business order process according to claim 1, characterized in that: The attributes of the order status include an order status value and an order name. The order flow status configuration information corresponding to the business order process to be created is obtained, including: Obtaining a configuration file having attributes of the order status; and / or, The attributes of the trigger event include input order status, output order status and event name, and the order flow status configuration information corresponding to the business order process to be created is obtained, including: Obtain a configuration file that carries the attributes of the trigger event.

6. The business order process creation method according to claim 1, characterized in that: Based on the order flow finite state machine, determining and calling the corresponding basic service in the online shopping mall platform according to the triggering event corresponding to the state flow to create the business order process includes: Receive trigger event trigger information sent by the business system; obtain the order status of the trigger event based on the trigger information; obtain the corresponding event handler according to the order status based on the order flow finite state machine; determine and call the corresponding basic service in the online mall platform through the event handler to create the business order process; Or, receiving trigger event trigger information sent by the online shopping mall platform; obtaining an event processor identifier based on the trigger information; based on the order flow finite state machine, calling the corresponding event processor according to the event processor identifier; determining and calling the corresponding basic service in the online shopping mall platform through the event processor to create the business order process.

7. The business order process creation method according to claim 1, characterized in that: Before determining and calling the corresponding basic service in the online shopping platform according to the triggering event corresponding to the state flow, the method includes: Obtaining service input parameters and service output parameters in a set format corresponding to each basic service in the online shopping platform, wherein the service input parameter includes at least one of the following: order number, online payment information, discount information, product information, settlement information, and refund information; the service output parameter includes at least one of the following: return entity and response status code; The calling parameters for the basic service are formed according to the service input parameters and the service output parameters.

8. A method for implementing a business order process, characterized in that: include: The order flow finite state machine obtains the trigger information of the trigger event sent by the business system or the online shopping platform; Based on the trigger information, determine and call the corresponding basic service in the online shopping mall platform, execute the order flow finite state machine to implement the business order process; Before executing the order flow finite state machine, the paths of the configuration files corresponding to the order status, trigger event and event handler are obtained; the configuration files of the order status, the trigger event and the event handler are read respectively according to the paths of the configuration files; based on the configuration files of the order status, the trigger event and the event handler, the order status, the trigger event and the event handler are written into the context of the order flow finite state machine.

9. The method for implementing a business order process according to claim 8, characterized in that: Based on the trigger information, determining and calling the corresponding basic service in the online shopping mall platform, executing the order flow finite state machine to implement the business order process, includes: Receive trigger event trigger information sent by the business system; obtain the order status of the trigger event based on the trigger information; obtain the corresponding event handler according to the order status based on the order flow finite state machine; determine and call the corresponding basic service in the online mall platform through the event handler to create the business order process; Or, receiving trigger event trigger information sent by the online shopping mall platform; obtaining an event processor identifier based on the trigger information; based on the order flow finite state machine, calling the corresponding event processor according to the event processor identifier; determining and calling the corresponding basic service in the online shopping mall platform through the event processor to create the business order process.

10. A business order process creation device, characterized in that: include: The state machine builds the module, creates the module, and initializes the module; among them, The state machine construction module is used to obtain order flow state configuration information corresponding to the business order process to be created, so as to construct a corresponding order flow finite state machine, wherein the order flow state configuration information is used to declare the order state involved in the business order process and the triggering event corresponding to the state flow; The creation module is used to determine and call the corresponding basic service in the online shopping platform according to the trigger event corresponding to the state flow based on the order flow finite state machine to create the business order process; The initialization module is used to obtain the paths of the configuration files corresponding to the order status, trigger event and event handler respectively; read the configuration files of the order status, the trigger event and the event handler respectively according to the paths of the configuration files; based on the configuration files of the order status, the trigger event and the event handler, write the order status, the trigger event and the event handler into the context of the order flow finite state machine.

11. The order flow creation device according to claim 10, characterized in that: The creation module is specifically used to distribute the trigger event to the corresponding event processor based on the order flow finite state machine according to the trigger event corresponding to the state flow, and determine and call the corresponding basic service in the online shopping mall platform through the event processor to create the business order process.

12. The order flow creation device according to claim 10, characterized in that: The initialization module is further used to obtain configuration information of the event processor; parse the identifier of the event processor based on the configuration information; obtain the event processor according to the identifier and complete the registration of the event processor in the context of the order flow finite state machine.

13. The order flow creation device according to claim 10, characterized in that: The initialization module is also used to perform verification based on the order status, the trigger event and the event handler, and execute at least one of the following: verifying whether the order status, the trigger event and the event handler are repeated; verifying whether the trigger event is legal; verifying whether the trigger event has the corresponding event handler.

14. The order flow creation device according to claim 10, characterized in that: The state machine construction module is specifically used to obtain a configuration file carrying attributes of the order status; and / or obtain a configuration file carrying attributes of the trigger event.

15. The order flow creation device according to claim 10, characterized in that: The creation module includes an internal trigger unit and an external trigger unit, wherein: The internal trigger unit is used to receive trigger event trigger information sent by the business system; obtain the order status of the trigger event based on the trigger information; obtain the corresponding event processor according to the order status based on the order flow finite state machine; determine and call the corresponding basic service in the online mall platform through the event processor to create the business order process; The external trigger unit is used to receive trigger event trigger information sent by the online shopping mall platform; obtain an event processor identifier based on the trigger information; call the corresponding event processor according to the event processor identifier based on the order flow finite state machine; determine and call the corresponding basic service in the online shopping mall platform through the event processor to create the business order process.

16. The order flow creation device according to claim 10, characterized in that: It also includes a standardization module, which is used to obtain service input parameters and service output parameters in a set format corresponding to each basic service in the online shopping platform, wherein the service input parameters include at least one of the following: order number, online payment information, discount information, product information, settlement information and refund information; the service output parameters include at least one of the following: return entity and response status code; and the call parameters for the basic service are formed according to the service input parameters and the service output parameters.

17. A business order process implementation device, characterized in that: include: Trigger module and run module; among them, The trigger module is used for the order flow finite state machine to obtain trigger information of the trigger event sent by the business system or the online shopping mall platform; The operation module is used to determine and call the corresponding basic service in the online shopping mall platform based on the trigger information, execute the order flow finite state machine, and realize the business order process; wherein, before executing the order flow finite state machine, obtain the paths of the configuration files corresponding to the order status, the trigger event and the event handler respectively; read the configuration files of the order status, the trigger event and the event handler respectively according to the paths of the configuration files; based on the configuration files of the order status, the trigger event and the event handler, write the order status, the trigger event and the event handler into the context of the order flow finite state machine.

18. The business order process implementation device according to claim 17, characterized in that: The operation module includes an internal processing module and an external processing module; wherein, The internal processing module is used to obtain the order status of the trigger event based on the trigger event trigger information sent by the business system; based on the order flow finite state machine, obtain the corresponding event processor according to the order status; determine and call the corresponding basic service in the online mall platform through the event processor to create the business order process; The external processing module is used to obtain an event processor identifier based on the trigger event trigger information sent by the online shopping mall platform; based on the order flow finite state machine, call the corresponding event processor according to the event processor identifier; determine and call the corresponding basic service in the online shopping mall platform through the event processor to create the business order process.

19. A business order process creation device, comprising a memory, a processor, and a computer program stored and executed on the memory, characterized in that: When the processor executes the computer program, the order process creation method according to any one of claims 1 to 7 is implemented.

20. A business order process implementation device, comprising a memory, a processor, and a computer program stored and executed on the memory, characterized in that: When the processor executes the computer program, the order process implementation method according to any one of claims 8 to 9 is implemented.

21. A computer-readable storage medium having an order flow creation program stored thereon, wherein the order flow creation program, when executed by a processor, implements the order flow creation method according to any one of claims 1 to 7.

22. A business system, characterized in that: It comprises the order process creation device as described in claim 19 and the business order process implementation device as described in claim 20.

Citation Information

Patent Citations

  • Business-based flow processing method and system

    CN103246945A

  • Transaction system construction method, transaction flow control device, and third-party transaction platform

    CN105184575A