CN105447680A - Order processing method and system based on workflow - Google Patents

Order processing method and system based on workflow Download PDF

Info

Publication number
CN105447680A
CN105447680A CN201510815868.1A CN201510815868A CN105447680A CN 105447680 A CN105447680 A CN 105447680A CN 201510815868 A CN201510815868 A CN 201510815868A CN 105447680 A CN105447680 A CN 105447680A
Authority
CN
China
Prior art keywords
module
workflow
order processing
execution
service logic
Prior art date
Application number
CN201510815868.1A
Other languages
Chinese (zh)
Inventor
纪承周
Original Assignee
上海携程商务有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海携程商务有限公司 filed Critical 上海携程商务有限公司
Priority to CN201510815868.1A priority Critical patent/CN105447680A/en
Publication of CN105447680A publication Critical patent/CN105447680A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06QDATA PROCESSING SYSTEMS OR METHODS, SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation, e.g. computer aided management of electronic mail or groupware; Time management, e.g. calendars, reminders, meetings or time accounting
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06QDATA PROCESSING SYSTEMS OR METHODS, SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce, e.g. shopping or e-commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping
    • G06Q30/0603Catalogue ordering

Abstract

The invention discloses an order processing method and system based on a workflow, and the method comprises the steps: executing a business logic of a first module; executing the workflow when the business logic of the first module is executed completely, and waiting till a second module receives input; storing the execution result of the first module into a database when the workflow is in operation and the input receiving of the second module is waited; extracting the execution result of the first module and carrying out reloading when the second module starts to receive input and the workflow is in operation; and executing the business logic of the second module through employing the reloaded execution result of the first module. The system irons out the defects that a conventional order processing system is poor in readability and maintainability, is high in readability and maintainability, and saves system resources.

Description

基于工作流的订单处理方法及系统 Based order processing method and system workflow

技术领域 FIELD

[0001]本发明涉及一种基于工作流的订单处理方法及系统。 [0001] The present invention relates to a method and order processing system based on workflow.

背景技术 Background technique

[0002]当前订单处理系统通常是先按照业务逻辑区分成不同的独立的模块,然后根据各模块的先后关系顺序执行。 [0002] Current systems are generally first order processing logic according to the service area is divided into different independent modules, and then successively performing the sequential relationship of each module. 例如当用户在网站下单订票时,订单处理系统会对订单按照预设的流程调用相应的模块进行定位、确认客户、出票等处理。 For example, when a user at a single booking web site, order processing, order system will call the corresponding module in accordance with a preset positioning process, confirm that the client, invoicing and other processing. 这样的订单处理系统会存在以下问题: This order processing system has the following problems:

[0003] 1、当项目相对简单,业务逻辑不复杂的时候,当前订单处理系统可以在一定程度上满足需求。 [0003] 1, when the project is relatively simple business logic is not complicated, the current order processing system can meet the demand to a certain extent. 但随着需求的增加、项目变得庞大、业务逻辑变得错综复杂,执行控制流程会变得相对模糊,由于各模块之间被独立开来,模块之间需要互相通信的代价将变高,系统可读性和可维护性随之下降。 However, with the increased demand, the project becomes enormous, becomes complicated service logic, execution control will become relatively blurred, since independence between the modules are open, the cost of the module needs to communicate with each other becomes high, the system readability and maintainability decreases.

[0004] 2、当前订单处理系统的每一级流程的执行是通过上一级流程的触发实现的,本流程在收到上一级流程的通知前必须常驻占据在内存中监听消息,保存一系列的程序状态以供消息到达时使用,占用了大量的系统资源。 [0004] 2, the current implementation of each stage of the process order processing system is achieved by triggering on a process, this process must occupy a permanent monitor messages in memory before the receipt of a notice on a process, save a series of state program for use when a message arrives, takes up a lot of system resources.

发明内容 SUMMARY

[0005]本发明要解决的技术问题是为了克服现有的订单处理系统可读性和可维护性低以及占用大量的系统资源的缺陷,提供一种可读性和可维护性高并且节省系统资源的基于工作流的订单处理方法及系统。 [0005] The present invention is to solve the technical problem to overcome existing order processing system low readability and maintainability of system resources and take a lot of defects, there is provided a high readability and maintainability of the system and saves order processing method and system for workflow-based resources.

[0006]本发明是通过以下技术方案解决上述技术问题的: [0006] The present invention is to solve the above problems by the following technical solution:

[0007]本发明提供一种基于工作流的订单处理方法,其特点是,包括: [0007] The present invention provides a method for order processing workflow-based, which is characterized by comprising:

[0008]执行第一模块的业务逻辑; [0008] The service logic execution of the first module;

[0009]当第一模块执行完毕时,工作流中止执行,等待第二模块接受输入; [0009] When the first module is executed, the workflow execution suspended, waiting for receiving a second input module;

[0010]工作流运行时在等待第二模块接受输入时将所述第一模块的执行结果存储进数据库中; [0010] While waiting for the second module receives an input of the execution result stored in the database of the first module in the workflow runtime;

[0011 ]当第二模块开始接受输入时,工作流运行时将所述第一模块的执行结果从所述数据库中取出重新载入; [0011] When the second module starts to accept input, the result of the first execution of the workflow runtime module removed from the database reload;

[0012]利用重新载入的所述第一模块的执行结果,执行第二模块的业务逻辑。 [0012] Results of using reload the first module, the second module performs service logic.

[0013]其中,订单处理过程依据订单的处理状态划分为不同的模块,包括第一模块和第二模块,甚至还有第三模块、第四模块等,模块的划分使得模块之间边际更清晰,耦合度大大降低。 [0013] wherein, based on the order processing status of the order processing is divided into different modules, including a first and second modules, and even a third module, a fourth module, the module is divided between the modules such that the marginal clearer the degree of coupling is greatly reduced. 第一模块和第二模块具有不同的业务逻辑,所述执行结果包括订单的处理状态,如订单处理成功或失败及产生的数据等。 The first and second modules have different business logic, the results of the execution data including order processing state, such as order processing and production of success or failure, and the like. 所述订单处理方法在第二模块等待输入时利用工作流运行时(workflow runtime)将第一模块的执行结果存储在数据库中,从而无需占用内存。 The order processing method of the second workflow runtime module (workflow runtime) in a database, eliminating the need for a first memory for storing results of execution by waiting for input module. 由于无需占用内存,所以即使第二模块等待了很长时间才有输入,也不会因为内存不足而影响到整个系统的运行。 Because without taking up memory, so even if the second module inputs have to wait a long time, not because of lack of memory and affect the operation of the whole system. 此外,第一模块的执行结果的重新载入不一定发生在特定的机器的特定进程中,这也意味着本技术方案中不同模块可以充分利用分布式系统的优势,缩短订单处理时间,提高处理效率,以及提高可读性和可维护性。 In addition, the results of the first module reload not necessarily occur in a particular machine in a particular process, it also means that the technical solution in different modules can take full advantage of the distributed system, shortening order processing time and improve processing efficiency, and to improve readability and maintainability.

[0014]较佳地,所述订单处理方法还包括在执行第一模块的业务逻辑之前执行以下步骤: [0014] Preferably, said order processing method further comprising performing the following steps prior to executing the first module of the service logic:

[0015]构造外层的工作流序列化事件,每个工作流序列化事件分别是多个模块的集合; [0015] The configuration outer serialized workflow event, each workflow is a collection of sequences of events are a plurality of modules;

[0016]分别以工作流消息的形式表示每个工作流序列化事件的各模块的业务代码; [0016] represent the code of each module for each service workflow sequence of event messages in the form of a workflow;

[0017]指定每个工作流序列化事件的各模块之间的依赖关系; [0017] dependencies between each workflow specified sequence of events for each module;

[0018]所述第一模块为根据订单的种类选取的工作流序列化事件的一个模块,所述第二模块为被选取的工作流序列化事件的一个与所述第一模块具有依赖关系的模块。 [0018] The first module is a module according to the kind of the selected order of the sequence of events in a workflow, said workflow module is a second sequence of events is selected having a dependency relationship with the first module module.

[0019]其中,构造的工作流序列化事件可以为多个,在订单处理过程中,根据订单的种类不同,会从多个工作流序列化事件中选择一个来执行。 [0019] wherein the configuration of the workflow may be a plurality of sequences of events, in the order processing, order different depending on the kind, selects a workflow from a plurality of event sequences performed. 每个模块在执行完自身的业务逻辑完成自己的工作后,都会将当前新的状态推送给工作流处理引擎,这个状态推送代码都是同样的,可以在所有模块中复用,使其具有高的可复用性。 After each module completes its work in executing the service logic itself, the new state will be pushed to the current workflow processing engine, the push status codes are the same, can be multiplexed in all the modules, so as to have a high reusability.

[0020]较佳地,所述第一模块和所述第二模块部署在独立的集群上。 [0020] Preferably, the first module and the second module deployed on separate clusters.

[0021]所述第一模块和所述第二模块部署的集群不同,即使其中一个模块出现故障,也不会影响其它模块。 Different [0021] the first module and the second module deploy clusters, even if one module fails, it will not affect other modules.

[0022]较佳地,所述订单处理方法还包括: [0022] Preferably, said order processing method further comprising:

[0023]当所述第二模块的业务逻辑执行完毕时,将所述第二模块的执行结果存储进数据库中。 [0023] When the service logic after the execution of the second module, the second execution result stored in the database module.

[0024]存储进数据库的第二模块的执行结果可被后续的其它模块使用。 [0024] Results of a second module of the database may be stored into the subsequent use of other modules.

[0025]较佳地,所述数据库部署于一服务器上。 [0025] Preferably, the database deployed on a server.

[0026]本发明还提供一种基于工作流的订单处理系统,其特点,包括: [0026] The present invention further provides an order processing system based on workflow, characterized in, comprising:

[0027]第一执行模块,用于执行第一模块的业务逻辑; [0027] a first execution module, for performing a first service logic module;

[0028]控制模块,用于在第一模块的业务逻辑执行完毕时中止执行工作流,等待第二模块接受输入; [0028] The control module for executing a workflow aborted when the service logic after the execution of the first module, the second module waits for receiving an input;

[0029]工作流运行时用于在等待第二模块接受输入时将所述第一模块的执行结果存储进数据库中; [0029] While waiting for the workflow module receives an input of the second execution result is stored into a first database runtime module;

[0030]工作流运行时还用于当第二模块开始接受输入时,将所述第一模块的执行结果从所述数据库中取出重新载入; [0030] The workflow runtime further configured to, when the second module receives an input of the start, the execution result of the first module is removed from the database and reload;

[0031]第二执行模块,用于利用重新载入的所述第一模块的执行结果,执行第二模块的业务逻辑。 [0031] a second execution module, for using the execution result of the first module is reloaded, the execution of the second service logic module.

[0032]较佳地,所述订单处理系统还包括: [0032] Preferably, said order processing system further comprises:

[0033]构造模块,用于在执行第一模块的业务逻辑之前,构造外层的工作流序列化事件,每个工作流序列化事件分别是多个模块的集合; [0033] The configuration module, configured to perform service logic before the first module, the sequence of events workflow configuration of the outer layer, each workflow is a collection of sequences of events are a plurality of modules;

[0034]表示模块,用于分别以工作流消息的形式表示每个工作流序列化事件的各模块的业务代码; [0034] a block, respectively, for the code of each module for each service workflow sequence of event messages in the form of a workflow;

[0035]关系模块,用于指定每个工作流序列化事件的各模块之间的依赖关系; [0035] The relationship module, for specifying dependencies between each workflow sequence of events for each module;

[0036]所述第一模块为根据订单的种类选取的工作流序列化事件的一个模块,所述第二模块为被选取的工作流序列化事件的一个与所述第一模块具有依赖关系的模块。 [0036] The first module is a module according to the kind of the selected order of the sequence of events in a workflow, said workflow module is a second sequence of events is selected having a dependency relationship with the first module module.

[0037]较佳地,所述第一模块和所述第二模块部署在独立的集群上。 [0037] Preferably, the first module and the second module deployed on separate clusters.

[0038] 较佳地,所述订单处理系统还包括: [0038] Preferably, said order processing system further comprises:

[0039]写入模块,用于当所述第二模块的业务逻辑执行完毕时,将所述第二模块的执行结果存储进数据库中。 [0039] writing means for performing a result, when the second module when the service logic is finished, the second module is stored into the database.

[0040] 较佳地,所述订单处理系统还包括: [0040] Preferably, said order processing system further comprises:

[0041 ]服务器,用于部署所述数据库部。 [0041] server, for deploying the database portion.

[0042]在符合本领域常识的基础上,上述各优选条件,可任意组合,即得本发明各较佳实例。 [0042] On the basis of compliance with the general knowledge in the art, the above-described preferred conditions, can be any combination, i.e., to obtain various preferred examples of the present invention.

[0043]本发明的积极进步效果在于:本发明能够具有高的可读性和可扩展性,节省了系统资源,缩短了订单处理时间,提高了处理效率。 [0043] The positive effect of the present invention is characterized in progress: the present invention can have high readability and scalability, saving system resources, order processing time is shortened, processing efficiency is improved.

附图说明 BRIEF DESCRIPTION

[0044]图1为本发明的实施例的基于工作流的订单处理方法的流程图。 Order processing flowchart of a method embodiment of the workflow-based [0044] FIG. 1 embodiment of the present invention.

[0045]图2为本发明的实施例的基于工作流的订单处理系统的系统框图。 System block diagram of a processing system based on the order workflow Embodiment [0045] FIG. 2 of the present invention.

具体实施方式 Detailed ways

[0046]下面通过实施例的方式进一步说明本发明,但并不因此将本发明限制在所述的实施例范围之中。 [0046] The present invention is further described below by way of example, but not to limit the invention thus described embodiments within the scope of embodiments.

[0047] 实施例 [0047] Example

[0048] 一种基于工作流的订单处理方法,如图1所示,包括: [0048] An order processing method based on the workflow shown in Figure 1, comprising:

[0049]步骤101、构造外层的多个工作流序列化事件,每个工作流序列化事件分别是多个模块的集合。 [0049] Step 101, a plurality of event sequences workflow configuration of the outer layer, each workflow is a collection of sequences of events are a plurality of modules.

[0050]步骤102、分别以工作流消息的形式表示每个工作流序列化事件的各模块的业务代码。 [0050] Step 102, respectively, the code of each module for each service workflow sequence of events in the form of workflow message.

[0051]步骤103、指定每个工作流序列化事件的各模块之间的依赖关系。 [0051] Step 103, the specified dependencies between each workflow sequence of events for each module.

[0052]其中,每个工作流序列化事件均包括一个第一模块和一个第二模块,但是不同的工作流序列化事件的第一模块可以具有相同或不同业务逻辑,不同的工作流序列化事件的第二模块也可以具有相同或不同业务逻辑。 [0052] wherein each workflow sequence of events includes a first module and a second module, the first module but of different workflow sequence of events may be the same or different service logic, the sequence of different workflow the second event module may have the same or a different service logic.

[0053]步骤104、根据订单的种类,从多个工作流序列化事件中选取一个工作流序列化事件。 [0053] Step 104, depending on the type of order, selecting a workflow from a plurality of event serialized serialized workflow event.

[0054]步骤105、执行被选取的工作流序列化事件的第一模块的业务逻辑。 [0054] Step 105, performing service logic of the first module of the workflow sequence of the selected event.

[0055]步骤106、当第一模块的业务逻辑执行完毕时,工作流中止执行,等待第二模块接受输入。 [0055] Step 106, when the service logic after the execution of the first module, the workflow execution suspended, waiting for the second module accepts input. 所述第二模块为被选取的工作流序列化事件的一个模块且与所述第一模块具有依赖关系。 The second module is a module of the selected workflow sequence of events and having a dependency relationship with the first module.

[0056]步骤107、工作流运行时在等待第二模块接受输入时将所述第一模块的执行结果存储进数据库中。 [0056] Step 107, while waiting for the second module receives an input of the execution result of the first storage module into the workflow runtime database.

[0057]步骤108、当第二模块开始接受输入时,工作流运行时将所述第一模块的执行结果从所述数据库中取出重新载入。 [0057] Step 108, when the second module receives an input of the start, the execution result of the first module of the workflow runtime withdrawn from the database reload.

[0058]步骤109、利用重新载入的所述第一模块的执行结果,执行第二模块的业务逻辑。 [0058] Step 109, by using the execution result of the first module is reloaded, the second module performs service logic.

[0059]步骤110、当所述第二模块的业务逻辑执行完毕时,将所述第二模块的执行结果存储进数据库中,以备后续的其它模块使用。 [0059] Step 110, when the service logic of the second module is finished, the execution result is stored in the database of the second module to other modules for subsequent use.

[0060]其中,所述第一模块和所述第二模块部署在独立的集群上。 [0060] wherein the first module and the second module deployed on separate clusters. 所述数据库部署于一服务器上。 The deployed on a database server.

[0061]若还有第三模块、第四模块等需要执行,所述订单处理方法还参照步骤105-108在所述第二模块的业务逻辑执行完毕时,工作流中止执行,等待第三模块接受输入,直至所有模块均执行完毕。 [0061] If there is a third module, a fourth module needs to be performed, said order processing method further with reference to step 105-108 when the service logic after the execution of the second module, the workflow execution suspended, waiting for the third module accept input until all modules are executed.

[0062]本实施例的一种基于工作流的订单处理系统,如图2所示,包括: [0062] An embodiment according to the present embodiment of the order processing system based on workflow shown in Figure 2, comprising:

[0063]构造模块201,用于构造外层的多个工作流序列化事件,每个工作流序列化事件分别是多个模块的集合。 [0063] The construction module 201, a plurality of event sequences workflow configuration of the outer layer, each workflow is a collection of sequences of events are a plurality of modules.

[0064]表示模块202,用于分别以工作流消息的形式表示每个工作流序列化事件的各模块的业务代码。 [0064] a block 202, respectively, for the code of each module for each service workflow sequence of event messages in the form of a workflow.

[0065]关系模块203,用于指定每个工作流序列化事件的各模块之间的依赖关系。 [0065] The relationship module 203, is used to specify dependencies between each workflow sequence of events for each module.

[0066]其中,每个工作流序列化事件均包括一个第一模块和一个第二模块,但是不同的工作流序列化事件的第一模块可以具有相同或不同业务逻辑,不同的工作流序列化事件的第二模块也可以具有相同或不同业务逻辑。 [0066] wherein each workflow sequence of events includes a first module and a second module, the first module but of different workflow sequence of events may be the same or different service logic, the sequence of different workflow the second event module may have the same or a different service logic.

[0067]选取模块204,用于根据订单的种类不同,从多个工作流序列化事件中选取一个工作流序列化事件。 [0067] The selection module 204 is configured depending on the type of order, selecting a workflow from a plurality of event serialized serialized workflow event.

[0068]第一执行模块205,用于执行被选取的工作流序列化事件的第一模块的业务逻辑。 [0068] The first execution module 205, service logic module for performing a first sequence of the workflow of the selected event.

[0069]控制模块206,用于在第一模块的业务逻辑执行完毕时中止执行工作流,等待第二模块接受输入。 [0069] The control module 206, to suspend the execution of the workflow service logic when the first module is finished, waits for receiving a second input module. 所述第二模块为被选取的工作流序列化事件的一个模块且与所述第一模块具有依赖关系。 The second module is a module of the selected workflow sequence of events and having a dependency relationship with the first module.

[0070]工作流运行时207用于在等待第二模块接受输入时将所述第一模块的执行结果存储进数据库中。 [0070] The workflow runtime 207 while waiting for the second module receives an input of the execution result stored in the database of the first module.

[0071]工作流运行时207还用于在第二模块开始接受输入时将所述第一模块的执行结果从所述数据库中取出重新载入。 [0071] The workflow runtime 207 when the second module is further configured to start receiving the execution result of the first input module is removed from the database and reload.

[0072]第二执行模块208,用于利用重新载入的所述第一模块的执行结果,执行第二模块的业务逻辑。 [0072] The second execution module 208 for using the execution result of the first module is reloaded, the execution of the second service logic module.

[0073]写入模块209,用于在所述第二模块的业务逻辑执行完毕时,将所述第二模块的执行结果存储进数据库中。 [0073] The write module 209, is used when the service logic of the second module is finished, the execution result is stored in the database of the second module.

[0074]其中,所述第一模块和所述第二模块部署在独立的集群上。 [0074] wherein the first module and the second module deployed on separate clusters.

[0075] 所述订单处理系统还包括: [0075] The order processing system further comprises:

[0076]服务器210,用于部署所述数据库。 [0076] The server 210, for deploying the database.

[0077]虽然以上描述了本发明的具体实施方式,但是本领域的技术人员应当理解,这些仅是举例说明,本发明的保护范围是由所附权利要求书限定的。 [0077] While the above described specific embodiment of the present invention, those skilled in the art will appreciate that these are merely illustrative, the scope of the present invention is defined by the appended claims. 本领域的技术人员在不背离本发明的原理和实质的前提下,可以对这些实施方式做出多种变更或修改,但这些变更和修改均落入本发明的保护范围。 Those skilled in the art without departing from the principles and spirit of the present invention is the premise that various changes or modifications may be made to these embodiments, but variations and modifications fall within the scope of the present invention.

Claims (10)

1.一种基于工作流的订单处理方法,其特征在于,包括: 执行第一模块的业务逻辑; 当第一模块的业务逻辑执行完毕时,工作流中止执行,等待第二模块接受输入; 工作流运行时在等待第二模块接受输入时将所述第一模块的执行结果存储进数据库中; 当第二模块开始接受输入时,工作流运行时将所述第一模块的执行结果从所述数据库中取出重新载入; 利用重新载入的所述第一模块的执行结果,执行第二模块的业务逻辑。 An order processing method based on workflow, characterized by comprising: performing a first service logic module; when the service logic after the execution of the first module, the workflow execution suspended, waiting for receiving a second input module; Job while waiting for the second module receives an input of the execution result stored in the database of the first module in the workflow runtime; when the second module receives an input of the start, the execution result of the first module from the workflow runtime remove reload the database; using the execution result of the first module is reloaded, the second module performs service logic.
2.如权利要求1所述的订单处理方法,其特征在于,所述订单处理方法还包括在执行第一模块的业务逻辑之前执行以下步骤: 构造外层的工作流序列化事件,每个工作流序列化事件分别是多个模块的集合; 分别以工作流消息的形式表示每个工作流序列化事件的各模块的业务代码; 指定每个工作流序列化事件的各模块之间的依赖关系; 所述第一模块为根据订单的种类选取的工作流序列化事件的一个模块,所述第二模块为被选取的工作流序列化事件的一个与所述第一模块具有依赖关系的模块。 Each working sequence of events workflow configuration of the outer layer: order processing method as claimed in claim 1, wherein said order processing method further comprising performing the following steps before performing the first service logic module flow events are serialized set of a plurality of modules; respectively represent a service code modules each workflow sequence of event messages in the form of a workflow; dependencies between the specified sequence of events for each workflow, each module ; the first module is a module according to the type of order of the selected workflow sequence of events, the second module is selected to be a workflow sequence of events have a dependency relationship with the first module module.
3.如权利要求1所述的订单处理方法,其特征在于,所述第一模块和所述第二模块部署在独立的集群上。 The order processing method as claimed in claim 1, wherein the first module and the second module deployed on separate clusters.
4.如权利要求1所述的订单处理方法,其特征在于,所述订单处理方法还包括: 当所述第二模块的业务逻辑执行完毕时,将所述第二模块的执行结果存储进数据库中。 4. The order processing method according to claim 1, wherein said order processing method further comprising: when the second service logic module is executed, the execution result is stored into the second database module in.
5.如权利要求4所述的订单处理方法,其特征在于,所述数据库部署于一服务器上。 5. The order processing method according to claim 4, wherein said database deployed on a server.
6.一种基于工作流的订单处理系统,其特征在于,包括: 第一执行模块,用于执行第一模块的业务逻辑; 控制模块,用于在第一模块的业务逻辑执行完毕时中止执行工作流,等待第二模块接受输入; 工作流运行时用于在等待第二模块接受输入时将所述第一模块的执行结果存储进数据库中; 工作流运行时还用于在第二模块开始接受输入时将所述第一模块的执行结果从所述数据库中取出重新载入; 第二执行模块,用于利用重新载入的所述第一模块的执行结果,执行第二模块的业务逻辑。 An order processing system based on workflow, characterized by comprising: a first execution module to execute a first module of the service logic; a control module configured to suspend execution of the first module when the service logic is finished workflow, wait a second input receiving module; means for performing a first result of the storage module into the database while waiting for the second module accepts input workflow runtime; running workflow is also used to start the second module when receiving an input result of the first execution module is removed from the database and reload; a second execution module, for using the execution result of the first module is reloaded, the second module performs service logic .
7.如权利要求6所述的订单处理系统,其特征在于,所述订单处理系统还包括: 构造模块,用于在执行第一模块的业务逻辑之前,构造外层的工作流序列化事件,每个工作流序列化事件分别是多个模块的集合; 表示模块,用于分别以工作流消息的形式表示每个工作流序列化事件的各模块的业务代码; 关系模块,用于指定每个工作流序列化事件的各模块之间的依赖关系; 所述第一模块为根据订单的种类选取的工作流序列化事件的一个模块,所述第二模块为被选取的工作流序列化事件的一个与所述第一模块具有依赖关系的模块。 7. The order processing system according to claim 6, wherein said order processing system further comprising: a module configured to, before performing service logic for the first module, the outer configuration of the workflow event sequence, each workflow is a collection of sequences of events are a plurality of modules; represents a module, respectively, for the code of each module for each service workflow sequence of event messages in the form of a workflow; relationship module for specifying each dependencies between modules serialized workflow event; the first module is a module according to the type of order of the selected workflow sequence of events, the second module is selected workflow sequence of events a module having a dependency relationship with the first module.
8.如权利要求6所述的订单处理系统,其特征在于,所述第一模块和所述第二模块部署在独立的集群上。 8. The order processing system according to claim 6, wherein the first module and the second module deployed on separate clusters.
9.如权利要求6所述的订单处理系统,其特征在于,所述订单处理系统还包括: 写入模块,用于在所述第二模块的业务逻辑执行完毕时,将所述第二模块的执行结果存储进数据库中。 9. The order processing system according to claim 6, wherein said order processing system further comprising: a writing module configured to, when the service logic after the execution of the second module, the second module the execution result is stored into the database.
10.如权利要求9所述的订单处理系统,其特征在于,所述订单处理系统还包括: 服务器,用于部署所述数据库。 10. The order processing system according to claim 9, wherein said order processing system further comprising: a server for deploying the database.
CN201510815868.1A 2015-11-20 2015-11-20 Order processing method and system based on workflow CN105447680A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510815868.1A CN105447680A (en) 2015-11-20 2015-11-20 Order processing method and system based on workflow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510815868.1A CN105447680A (en) 2015-11-20 2015-11-20 Order processing method and system based on workflow

Publications (1)

Publication Number Publication Date
CN105447680A true CN105447680A (en) 2016-03-30

Family

ID=55557826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510815868.1A CN105447680A (en) 2015-11-20 2015-11-20 Order processing method and system based on workflow

Country Status (1)

Country Link
CN (1) CN105447680A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1755721A (en) * 2004-10-01 2006-04-05 微软公司 Componentized and extensible workflow model
WO2007136441A1 (en) * 2006-03-03 2007-11-29 Bayview Lending Group Llc Golf clubs and golf club heads having feel altering systems
CN102934111A (en) * 2010-06-04 2013-02-13 Mcl系统有限公司 Integrated workflow and database transactions
CN103036955A (en) * 2012-12-03 2013-04-10 上海现代先进超精密制造中心有限公司 Monitoring system and monitoring method of multimedia player terminal
CN103678591A (en) * 2013-12-12 2014-03-26 用友软件股份有限公司 Device and method for automatically executing multi-service receipt statistical treatment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1755721A (en) * 2004-10-01 2006-04-05 微软公司 Componentized and extensible workflow model
WO2007136441A1 (en) * 2006-03-03 2007-11-29 Bayview Lending Group Llc Golf clubs and golf club heads having feel altering systems
CN102934111A (en) * 2010-06-04 2013-02-13 Mcl系统有限公司 Integrated workflow and database transactions
CN103036955A (en) * 2012-12-03 2013-04-10 上海现代先进超精密制造中心有限公司 Monitoring system and monitoring method of multimedia player terminal
CN103678591A (en) * 2013-12-12 2014-03-26 用友软件股份有限公司 Device and method for automatically executing multi-service receipt statistical treatment

Similar Documents

Publication Publication Date Title
CN100437492C (en) Software image creation in a distributed build environment
US8612396B1 (en) Cloning and recovery of data volumes
CN102197388B (en) Quorum based transactionally consistent membership management in distributed storage systems
EP2535810B1 (en) System and method for performing distributed parallel processing tasks in a spot market
US8104043B2 (en) System and method for dynamic cooperative distributed execution of computer tasks without a centralized controller
US20080307258A1 (en) Distributed Job Manager Recovery
CN103635885B (en) To deploy environments for testing by providing pre-built environment of Instant availability
US8140373B2 (en) Data driven dynamic workflow
US8566641B2 (en) Fault tolerant batch processing
JP2004280839A (en) Method and system for deployment of operating system
RU2429529C2 (en) Dynamic configuration, allocation and deployment of computer systems
Yang et al. A profile-based approach to just-in-time scalability for cloud applications
JP2007213490A (en) Application server system and virtual machine program
CN101453367A (en) Software deployment method and system, software deployment server and user server
CN101866313B (en) Exchangeable application components
US20030177486A1 (en) Method and system for performing SW upgrade in a real-time system
US8572618B2 (en) Event driven change injection and dynamic extensions to a business process execution language process
US8370802B2 (en) Specifying an order for changing an operational state of software application components
US20120023162A1 (en) Executing Business Logic Extensions on a Client Computing System
CN101567013B (en) Method and apparatus for implementing ETL scheduling
US9485151B2 (en) Centralized system management on endpoints of a distributed data processing system
CN102214139B (en) Automatic test performance control and debugging method facing distributed system
CN100585563C (en) Method for servicing task of timer
US20090094605A1 (en) Method, system and program products for a dynamic, hierarchical reporting framework in a network job scheduler
JP2002007361A (en) Application interface for multiprocessor unnecessary to use multiprocessor operating system

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination