CN112950302A - Order processing method and device - Google Patents

Order processing method and device Download PDF

Info

Publication number
CN112950302A
CN112950302A CN201911261703.9A CN201911261703A CN112950302A CN 112950302 A CN112950302 A CN 112950302A CN 201911261703 A CN201911261703 A CN 201911261703A CN 112950302 A CN112950302 A CN 112950302A
Authority
CN
China
Prior art keywords
order
state
standardized
configuration data
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911261703.9A
Other languages
Chinese (zh)
Inventor
张宾
武斌
于晓昆
李琳
刘坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yingda Business Services Ltd
State Grid E Commerce Co Ltd
Original Assignee
Yingda Business Services Ltd
State Grid E Commerce Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yingda Business Services Ltd, State Grid E Commerce Co Ltd filed Critical Yingda Business Services Ltd
Priority to CN201911261703.9A priority Critical patent/CN112950302A/en
Publication of CN112950302A publication Critical patent/CN112950302A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/407Cancellation of a transaction

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Computer Security & Cryptography (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides an order processing method and device, relates to the technical field of computers, and can construct a finite state machine suitable for multiple order platforms to achieve order state management of the multiple order platforms. The method comprises the following steps: the server acquires configuration data of a plurality of order platforms; the server analyzes the configuration data of the plurality of order platforms to obtain a standardized configuration data set; the standardized configuration data set includes: standardized order state data and standardized order state transition data; the standardized order state data is used for representing the state of an order of any order platform of the plurality of order platforms; the standardized order state transition data is used for representing the transition process of orders of each order platform among different states; the server constructs a finite state machine according to the standardized configuration data set; and the server calls a finite state machine to process the target order. The method and the device are used in the order processing process.

Description

Order processing method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for processing an order.
Background
The state transition of the current order mainly depends on Spring statechip technology. The Spring statechip technology is an application development framework created under a Spring framework. The migration of the order between different states can be completed through the Spring statechip technology. However, this technique relies primarily on program code to complete. After an order platform determines, the workload to modify the program code of the platform is large. If multiple order platforms need to be managed, the amount of code modification required is enormous and the applicability is poor.
Disclosure of Invention
The application provides an order processing method and device, which can be used for constructing a finite state machine suitable for multiple order platforms and realizing order state management of the multiple order platforms.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, the present application provides a method for processing an order, including: the server acquires configuration data of a plurality of order platforms; the configuration data includes: order state data, and order state transition data; the order state data represents the state of the order; the order state transition data represents the transition flow of the order among different states; the server analyzes the configuration data of the plurality of order platforms to obtain a standardized configuration data set; the standardized configuration data set includes: standardized order state data and standardized order state transition data; the standardized order state data is used for representing the state of an order of any order platform of the plurality of order platforms; the standardized order state transition data is used for representing the transition process of orders of each order platform among different states; the server constructs a finite state machine according to the standardized configuration data set; the server calls a finite state machine to process the target order; the target order is any one of a plurality of order platforms.
Based on the technical scheme, according to the order processing method provided by the embodiment of the application, the server acquires configuration data of a plurality of order platforms; the configuration data includes: order state data, and order state transition data; the order state data represents the state of the order; the order state migration data characterizes the migration flow of orders between different states. The server analyzes the configuration data of the plurality of order platforms to obtain a standardized configuration data set; the standardized configuration data set includes: standardized order state data and standardized order state transition data; the standardized order state data is used for representing the state of an order of any order platform of the plurality of order platforms; the standardized order state migration data is used for representing migration processes of orders of each order platform among different states. The server constructs a finite state machine according to the standardized configuration data set; the server calls a finite state machine to process the target order; the target order is any one of a plurality of order platforms.
In this way, the server generates a standardized configuration data set based on the configuration data of the plurality of order platforms, so that the standardized configuration data set can be applied to the plurality of order platforms. Furthermore, the priority state machine generated by the server according to the standardized configuration data set can be also suitable for a plurality of order platforms, and seamless management of order state transition in the plurality of order platforms is achieved.
In a second aspect, the present application provides a method for processing an order, including: the finite state machine determines a first state of a target order and a state transition triggering action of the order; the first state is the current state of the target order; the finite state machine calls the standardized configuration data set to determine a second state of the target order; the second state is a state after the state transition is carried out according to the state transition triggering action when the target order is in the first state; the finite state machine migrates the state of the target order to a second state.
In a third aspect, the present application provides an order processing apparatus, comprising: the communication unit is used for acquiring configuration data of a plurality of order platforms; the configuration data includes: order state data, and order state transition data; the order state data represents the state of the order; the order state transition data represents the transition flow of the order among different states; the processing unit is used for analyzing the configuration data of the plurality of order platforms to obtain a standardized configuration data set; the standardized configuration data set includes: standardized order state data and standardized order state transition data; the standardized order state data is used for representing the state of an order of any order platform of the plurality of order platforms; the standardized order state transition data is used for representing the transition process of orders of each order platform among different states; the processing unit is also used for constructing a finite state machine according to the standardized configuration data set; the processing unit is also used for calling a finite state machine to process the target order; the target order is any one of a plurality of order platforms.
In a fourth aspect, the present application provides an order processing apparatus, comprising: the processing unit is used for determining a first state of the target order and a state transition triggering action of the order; the first state is the current state of the target order; the processing unit is also used for calling the standardized configuration data set and determining a second state of the target order; the second state is a state after the state transition is carried out according to the state transition triggering action when the target order is in the first state; and the processing unit is also used for migrating the state of the target order to the second state.
In a fifth aspect, the present application provides an order processing apparatus, comprising: a processor and a communication interface; the communication interface is coupled to a processor for executing a computer program or instructions for implementing the method of processing an order as described in the first aspect and any one of the possible implementations of the first aspect.
In a sixth aspect, the present application provides an order processing apparatus, comprising: a processor and a communication interface; the communication interface is coupled to a processor for executing a computer program or instructions for implementing the method of processing an order as described in the second aspect and any possible implementation of the second aspect.
In a seventh aspect, the present application provides a computer-readable storage medium, which stores instructions that, when executed on a terminal, cause the terminal to execute the method for processing an order as described in the first aspect and any possible implementation manner of the first aspect.
In an eighth aspect, the present application provides a computer-readable storage medium having stored therein instructions that, when executed on a terminal, cause the terminal to perform a method of processing an order as described in the second aspect and any one of the possible implementations of the second aspect.
In a ninth aspect, embodiments of the present application provide a computer program product containing instructions, which when run on a processing apparatus of an order, causes the processing apparatus of the order to execute the processing method of the order as described in the first aspect and any one of the possible implementations of the first aspect.
In a tenth aspect, embodiments of the present application provide a computer program product containing instructions that, when run on a processing apparatus of an order, cause the processing apparatus of the order to perform the processing method of the order as described in the second aspect and any possible implementation manner of the second aspect.
In an eleventh aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, and the communication interface is coupled to the processor, and the processor is configured to execute a computer program or instructions to implement the method for processing an order as described in the first aspect and any possible implementation manner of the first aspect.
In a twelfth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, and the communication interface is coupled to the processor, and the processor is configured to execute a computer program or instructions to implement the order processing method described in the second aspect and any possible implementation manner of the second aspect.
In particular, the chip provided in the embodiments of the present application further includes a memory for storing a computer program or instructions.
Drawings
Fig. 1 is a flowchart of an order processing method according to an embodiment of the present application;
FIG. 2 is a flow chart of another method for processing an order according to an embodiment of the present disclosure;
FIG. 3 is a flow chart illustrating the complete state flow from order placement to order receipt according to an embodiment of the present application;
FIG. 4 is a flow chart illustrating the complete state flow from refund to successful refund of an order according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an order processing apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of another order processing apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of another order processing apparatus according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of another order processing apparatus according to an embodiment of the present disclosure;
fig. 9 is a schematic device structure diagram of a chip according to an embodiment of the present disclosure.
Detailed Description
The following describes in detail an order processing method and apparatus provided in an embodiment of the present application with reference to the accompanying drawings.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
The terms "first" and "second" and the like in the description and drawings of the present application are used for distinguishing different objects or for distinguishing different processes for the same object, and are not used for describing a specific order of the objects.
Furthermore, the terms "including" and "having," and any variations thereof, as referred to in the description of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the present application, the meaning of "a plurality" means two or more unless otherwise specified.
Hereinafter, terms related to the embodiments of the present application are explained for the convenience of the reader.
(1) Finite state machine
A finite state machine is a mathematical model that represents a finite number of states, and the behavior of actions that transition between those states. The finite state machine can simplify complex logic into a finite number of stable states, construct mathematical models of the behaviors of transition, action and the like among the states, and judge the state of an event in the stable state. When the state receives an input, the state machine may determine a unique transition state based on the current state of the event and the time of the trigger.
The finite state machine includes the following four elements:
1. the current state is as follows: the current state refers to the state in which the input object is currently located. 2. Conditions are as follows: the condition refers to an action triggered by an input object; when an input object meets a certain condition, a corresponding action can be triggered. 3. The actions are as follows: the action is the action executed by the finite state machine after the input object meets the trigger condition; the action performed by the finite state machine may be to migrate an object from one state to another state, or may be to maintain the state of the object as it is. 4. The next state: the secondary state is a state after the finite state machine carries out state transition on the input object.
It should be noted that the operation elements among the four elements are not essential. The finite state machine can directly transfer the state of the input object after the input object meets the trigger condition.
In order to solve the problem that unified management of orders in a plurality of order platforms is difficult to achieve in the prior art, the application provides an order processing method. The server generates a finite state machine based on the standardized configuration data. When the server needs to migrate the state of the order, the finite state machine is called to realize the migration of the state of the order. Causing the server to manage orders for the plurality of platforms.
As shown in fig. 1, a flowchart of a method for processing an order provided in an embodiment of the present application includes the following steps:
s101, the server acquires configuration data of a plurality of order platforms.
Wherein the configuration data comprises: order state data, and order state migration data.
The order status data characterizes the status of the order. The order state migration data characterizes the migration flow of orders between different states.
An example, order status data for a system platform of a merchant (To Business, TOB) includes: outstanding, paid, not shipped, partial shipped, full shipped, not committed, partial committed, cancelled, transaction complete, transaction close.
Accordingly, the order state transition data may be: 1. after the user terminal selects the commodity, the server creates an order and sets the state of the order as a state to be paid. 2. And after the server receives the payment operation of the user terminal, the server transfers the state of the order from the state to be paid to the state to be paid. 3. The server sends a shipping address confirmation message and migrates the status of the order from a paid status to a non-shipping status. 4. After the server determines that the item has been shipped, the status of the order is migrated from the undelivered status to the shipped status. 5. And when the server confirms that the goods arrive at the express delivery distribution node and does not confirm the receiving, the state of the order is transferred from the delivered state to the untreated state. 6. When the server determines that the user has confirmed the receipt, the status of the order is migrated from the non-due status to the due status. 7. And if the server does not receive the goods return application of the user terminal within the preset time, the state of the order is transferred from the state of being put in due place to the state of completing the transaction.
And in the to-be-paid stage, the user does not pay, and the server transfers the state of the order from the to-be-paid state to the cancelled state in response to the transaction cancellation application of the buyer terminal.
And in the to-be-paid stage, the user does not pay, and the server transfers the state of the order from the to-be-paid state to the transaction closing state in response to the transaction cancellation application of the seller terminal.
Yet another example, the order status for a platform of a consumer (To Customer, TOC) system includes: the method comprises the steps of payment waiting, delivery receiving, transaction completion, transaction closing, cancellation, refund application, payment approval to return, logistics information to be filled, failure of verification, delivery waiting of a merchant, delivery refusal, payment waiting and payment completion.
Accordingly, the order state transition data may be: 1. after the user terminal selects the commodity, the server creates an order and sets the state of the order as a state to be paid. 2. And after the server receives the payment operation of the user terminal, the server transfers the state of the order from the state to be paid to the state to be paid. 3. The server sends a shipping address confirmation message and migrates the status of the order from a paid status to a non-shipping status. 4. After the server determines that the goods have been shipped, the status of the order is migrated from the undelivered status to the to-be-shipped status. 5. And when the server determines that the user confirms the delivery, the state of the order is transferred from the delivery waiting state to the delivery receiving state. 6. And if the server does not receive the goods return application of the user terminal within the preset time, the state of the order is transferred from the received goods state to the transaction completion state. 7. And the server receives the goods return application of the user terminal within the preset time, and then the server transfers the state of the order from the transaction completion state to the goods return application state. 8. And after receiving the goods returning approval from the seller terminal, the server transfers the state of the order from the goods returning application state to the goods returning approval logistics information to be filled state.
And in the to-be-paid stage, the user does not pay, and the server transfers the state of the order from the to-be-paid state to the cancelled state in response to the transaction cancellation application of the buyer terminal.
And in the to-be-paid stage, the user does not pay, and the server transfers the state of the order from the to-be-paid state to the transaction closing state in response to the transaction cancellation application of the seller terminal.
S102, the server analyzes the configuration data of the order platforms to obtain a standardized configuration data set.
Wherein normalizing the configuration data set comprises: standardized order state data, and standardized order state migration data.
The standardized order status data is used to characterize a status of an order of any of the plurality of order platforms.
The standardized order state migration data is used for representing migration processes of orders of each order platform among different states.
In one possible implementation, the standardized order status data includes a first status and a second status of the order; the first state is the current state of the target order; the second state is a state after the target order is subjected to state transition from the first state; the target order is any order of any order platform in the plurality of order platforms.
The standardized order state migration data comprises a migration flow of a target order; the migration process has a first state and a second state of the target order and a mapping relation between state migration trigger actions; the state transition triggering action is used for transitioning the order state of the target order from the first state to the second state.
An example, normalizing order status data includes: the standardized order status and the standardized order details are described below.
1. Standardizing order status includes: order state name, order state code, reference data table and reference field; the current standardized order status includes: the method comprises the steps of waiting for confirmation, waiting for payment, paid, waiting for delivery, received, transaction completed, transaction closed, cancelled, clearance failed, refund application, refund in-progress, refund successful, refund application for refund, in-progress in refund, failure in-progress in refund, goods returned successful, goods change application, re-delivery in-progress, goods change successful, and goods change failed.
2. The order detail state comprises four stages in total, which are respectively: 2.1, a payment stage; 2.2 a delivery stage; 2.3 transaction completion phase; 2.4 after-market stage.
2.1 the payment phase includes: the payment status (invoice), and the payment status (payment batch number).
The payment status (the invoice) specifically includes: unpaid, partial, full.
The payment status (payment batch number) specifically includes: unpaid, in-payment, successful payment, failed payment.
2.2 the shipping phase includes: shipping status (order), committed status (order), and committed status (manifest).
The shipping status (manifest) specifically includes: undelivered, partial, full.
The appropriate state (the order) specifically includes: not properly dosed, partially properly dosed, and properly dosed.
The state of the appropriate (waybill) includes: not properly dosed, has been properly dosed.
2.3 the transaction completion phase includes: settlement status (entire order), and settlement status (payment batch number).
The settlement status (the whole order) specifically includes: unsettled, partial settlement, full settlement.
The settlement status (payment batch number) specifically includes: unsettled, settled.
2.4 the after-market stage includes: a return logistics state.
And (4) a receipt return logistics state: filling logistics information by a buyer, receiving goods by a merchant, confirming the receiving goods by the merchant and refusing the receiving goods by the merchant; reason for order failure.
The whole order refers to all the products that a user purchases in an order. The waybill refers to one of all goods purchased by a user in an order.
For example, in addition to purchasing a mobile phone, a user also purchases a headset, a mobile power source, and a mobile phone housing in a mobile phone order. The several items may be shipped separately. The commodities form a whole list, and each commodity is a freight note.
One example, standardizes order state transition data, including the mapping between the above states and the state transition triggering actions.
For example, after the user terminal selects a commodity, the server creates an order and sets the order status to a pending payment status.
It should be noted that the standardized order state transition data includes a mapping relationship between each state in the standardized order state data and the state transition trigger action.
In one possible implementation, the normalizing the configuration data set further includes: standardizing order platform configuration data; the standardized order platform configuration data manages configuration data for a plurality of order platforms for a finite state machine.
Exemplary standardized order platform configuration data includes:
1. and (3) service type coding: and the server allocates the service type for the accessed service system.
2. Encoding the order type: the trading center distributes order type numbers for the accessed orders for identifying different order types; and if the order number is not distributed to the order, uniformly configuring the server according to the service type.
3. Sequence number: and the order states are generated by the trading center according to the configured sequence.
The standardized order status data may be described in a table shown in table 1 below.
TABLE 1
Figure BDA0002311769610000081
Figure BDA0002311769610000091
Figure BDA0002311769610000101
Figure BDA0002311769610000111
In one possible implementation, the status of the order may be divided among the service node, the standardized status, and the stage detail status. The relationship between the order status and the order detail status at the order location stage is shown in table 2 below.
TABLE 2
Figure BDA0002311769610000112
Figure BDA0002311769610000121
S103, the server constructs a finite state machine according to the standardized configuration data set.
In one possible implementation, the server creates a statemachien builder object (i.e., a state machine builder), creates custom Context class parameters (which are an environment that carries a priority state machine), and the standardized configuration data set. The server associates a binding state machine, a standardized configuration data set, and custom Context class parameters. The processing of the order is completed.
And S104, the server calls a finite state machine to process the target order.
The target order is any order in a plurality of order platforms.
It should be noted that, after the finite state machine is built and completed by the server, if a new order state is added to the order platform, the server may update the new order state and the order state transition triggering action corresponding to the order state, and the state after transition corresponding to the order state transition triggering action to the standardized configuration data set, so that the finite state machine may implement correct state transition on all orders of the order platform.
Based on the technical scheme, according to the order processing method provided by the embodiment of the application, the server acquires configuration data of a plurality of order platforms; the configuration data includes: order state data, and order state transition data; the order state data represents the state of the order; the order state migration data characterizes the migration flow of orders between different states. The server analyzes the configuration data of the plurality of order platforms to obtain a standardized configuration data set; the standardized configuration data set includes: standardized order state data and standardized order state transition data; the standardized order state data is used for representing the state of an order of any order platform of the plurality of order platforms; the standardized order state migration data is used for representing migration processes of orders of each order platform among different states. The server constructs a finite state machine according to the standardized configuration data set; the server calls a finite state machine to process the target order; the target order is any one of a plurality of order platforms.
In this way, the server generates a standardized configuration data set based on the configuration data of the plurality of order platforms, so that the standardized configuration data set can be applied to the plurality of order platforms. Furthermore, the priority state machine generated by the server according to the standardized configuration data set can be also suitable for a plurality of order platforms, and seamless management of order state transition in the plurality of order platforms is achieved.
In the embodiment of the present application, after the server constructs the finite state machine, an order processing method is further provided in the embodiment of the present application, which is used for managing orders in an order platform. As shown in fig. 2, the method includes:
s201, the finite state machine determines a first state of the target order and a state transition triggering action of the order.
Wherein the first state is a current state of the target order.
In connection with S102, the first state may be any one of the states of the standardized order state data. This state covers all possible order states that may occur in multiple order platforms.
It should be noted that the finite state machine in the embodiment of the present application may interface with multiple order platforms, and process orders of the multiple order platforms by the finite state machine according to a standardized configuration data set associated and bound in advance in the finite state machine.
S201, the finite state machine calls the standardized configuration data set to determine a second state of the target order.
And the second state is the state after the state transition of the target order in the first state according to the state transition triggering action.
S203, the finite state machine transfers the state of the target order to a second state.
Illustratively, the first state of the target order is a pending payment state, and the finite state machine receives a state transition trigger for the target order as: an act of the user successfully paying. The finite state machine migrates the state of the target order to the paid state. The paid status is the second status.
The finite state machine will be described below with reference to specific examples to perform a complete life cycle state transition on an order.
As shown in fig. 3, a complete status flow process from order placement to receipt is provided for the present embodiment.
As shown in FIG. 4, a complete state flow process from refund to refund success is provided for an order according to an embodiment of the present application.
In the embodiment of the present application, the order processing apparatus may be divided into the functional modules or the functional units according to the above method examples, for example, each functional module or functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional module or a functional unit. The division of the modules or units in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
As shown in fig. 5, a schematic structural diagram of an order processing apparatus provided in an embodiment of the present application is shown, where the apparatus includes:
a communication unit 202, configured to obtain configuration data of a plurality of order platforms; the configuration data includes: order state data, and order state transition data; the order state data represents the state of the order; the order state migration data characterizes the migration flow of orders between different states.
The processing unit 201 is configured to analyze configuration data of a plurality of order platforms to obtain a standardized configuration data set; the standardized configuration data set includes: standardized order state data and standardized order state transition data; the standardized order state data is used for representing the state of an order of any order platform of the plurality of order platforms; the standardized order state migration data is used for representing migration processes of orders of each order platform among different states.
The processing unit 201 is further configured to construct a finite state machine according to the standardized configuration data set.
The processing unit 201 is further configured to invoke a finite state machine to process the target order; the target order is any one of a plurality of order platforms.
Optionally, the standardized order state data includes a first state and a second state of the order; the first state is the current state of the target order; the second state is a state after the target order is subjected to state transition from the first state; the target order is any order of any order platform in the plurality of order platforms. The standardized order state migration data comprises a migration flow of a target order; the migration process has a first state and a second state of the target order and a mapping relation between state migration trigger actions; the state transition triggering action is used for transitioning the order state of the target order from the first state to the second state.
Optionally, the standardized configuration data set further comprises: standardizing order platform configuration data; the standardized order platform configuration data manages configuration data for a plurality of order platforms for a finite state machine.
As shown in fig. 6, a schematic structural diagram of another order processing apparatus provided in the embodiment of the present application is shown, where the apparatus includes:
a communication unit 302 for obtaining the target order.
The processing unit 301 is configured to determine a first state of the target order and a state transition triggering action of the order; the first state is a current state of the target order.
The processing unit 301 is further configured to invoke a standardized configuration data set, and determine a second state of the target order; and the second state is the state after the state transition of the target order in the first state according to the state transition triggering action.
The processing unit 301 is further configured to migrate the state of the target order to the second state.
When implemented by hardware, the communication unit 202 in the embodiment of the present application may be integrated on a communication interface, and the processing unit 201 may be integrated on a processor. The specific implementation is shown in fig. 7.
Fig. 7 shows a schematic diagram of another possible structure of the order processing device involved in the above embodiment. The order processing device comprises: a processor 702, and a communications interface 703. The processor 702 is configured to control and manage the actions of the processing device of the order, for example, to perform the steps performed by the processing unit 201 described above, and/or to perform other processes for the techniques described herein. The communication interface 703 is used to support communication between the processing device of the order and other network entities, for example, to perform the steps performed by the communication unit 202. The processing means of the order may further comprise a memory 701 and a bus 704, the memory 701 being adapted to store program codes and data of the processing means of the order.
Wherein the memory 701 may be a memory in a processing device of an order or the like, which may include a volatile memory, such as a random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
The processor 702 may be implemented or performed with various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor may be a central processing unit, general purpose processor, digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others.
The bus 704 may be an Extended Industry Standard Architecture (EISA) bus or the like. The bus 704 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
When implemented by hardware, the communication unit 302 in the embodiment of the present application may be integrated on a communication interface, and the processing unit 301 may be integrated on a processor. The specific implementation is shown in fig. 8.
Fig. 8 shows a schematic diagram of another possible structure of the order processing device involved in the above embodiment. The order processing device comprises: a processor 802 and a communications interface 803. The processor 802 is used to control and manage the actions of the processing device of the order, e.g., to perform the steps performed by the processing unit 301 described above, and/or other processes for performing the techniques described herein. The communication interface 803 is used to support the communication of the processing device of the order with other network entities, e.g. to perform the steps performed by the communication unit 302 described above. The processing means of the order may further comprise a memory 801 and a bus 804, the memory 801 being used for storing program codes and data of the processing means of the order.
Wherein the memory 801 may be a memory in a processing device of an order or the like, which may include a volatile memory, such as a random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
The processor 802 may be any logic block, module or circuitry that may implement or perform the various illustrative logical blocks, modules and circuits described in connection with the disclosure herein. The processor may be a central processing unit, general purpose processor, digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others.
The bus 804 may be an Extended Industry Standard Architecture (EISA) bus or the like. The bus 804 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 8, but this is not intended to represent only one bus or type of bus.
Fig. 9 is a schematic structural diagram of a chip 170 according to an embodiment of the present disclosure. Chip 170 includes one or more (including two) processors 1710 and a communication interface 1730.
Optionally, the chip 170 further includes a memory 1740, where the memory 1740 may include both read-only memory and random access memory, and provides operational instructions and data to the processor 1710. A portion of memory 1740 may also include non-volatile random access memory (NVRAM).
In some embodiments, memory 1740 stores elements, execution modules, or data structures, or a subset thereof, or an expanded set thereof.
In the embodiment of the present application, the corresponding operation is performed by calling an operation instruction stored in the memory 1740 (the operation instruction may be stored in an operating system).
The processor 1710 may implement or execute various illustrative logical blocks, units, and circuits described in connection with the disclosure herein. The processor may be a central processing unit, general purpose processor, digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, units, and circuits described in connection with the disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others.
Memory 1740 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
Bus 1720 may be an Extended Industry Standard Architecture (EISA) bus or the like. Bus 1720 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one line is shown in FIG. 9, but this does not represent only one bus or one type of bus.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
The present application provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the order processing method in the above method embodiments.
The embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a computer, the computer is caused to execute the order processing method in the method flow shown in the above method embodiment.
The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a register, a hard disk, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, any suitable combination of the above, or any other form of computer readable storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuit (ASIC). In embodiments of the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Embodiments of the present invention provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform a method of processing an order as described in figures 1 to 2.
Since the order processing apparatus, the computer-readable storage medium, and the computer program product in the embodiments of the present invention may be applied to the method described above, for technical effects that can be obtained by the order processing apparatus, the computer-readable storage medium, and the computer program product, reference may also be made to the method embodiments described above, and details of the embodiments of the present invention are not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The above is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A method for processing an order, the method comprising:
the server acquires configuration data of a plurality of order platforms; the configuration data includes: order state data, and order state transition data; the order state data represents the state of the order; the order state transition data represents the transition flow of the order among different states;
the server analyzes the configuration data of the plurality of order platforms to obtain a standardized configuration data set; the standardized configuration data set includes: standardized order state data and standardized order state transition data; the standardized order state data is used for representing the state of an order of any one of the order platforms; the standardized order state transition data is used for representing the transition process of the order of each order platform between different states;
the server constructs a finite state machine according to the standardized configuration data set;
the server calls the finite state machine to process the target order; the target order is any order in the plurality of order platforms.
2. The method of claim 1, wherein the standardized order status data comprises a first status and a second status of an order; the first state is the current state of the target order; the second state is a state after the target order is subjected to state transition from the first state; the target order is any order of any order platform in the order platforms;
the standardized order state migration data is provided with a migration flow of the target order; the migration flow has a mapping relation among a first state, a second state and a state migration triggering action of the target order; the state transition triggering action is used for transitioning the order state of the target order from a first state to a second state.
3. The method of any of claims 1-2, wherein the normalizing the configuration data set further comprises: standardizing order platform configuration data; the standardized order platform configuration data manages configuration data of the plurality of order platforms for the finite state machine.
4. A method for processing an order, which is applied to the finite-state machine constructed according to any one of claims 1 to 3; the method comprises the following steps:
the finite state machine determines a first state of a target order and a state transition triggering action of the order; the first state is the current state of the target order;
the finite state machine calls a standardized configuration data set to determine a second state of the target order; the second state is a state after the target order is subjected to state transition according to the state transition triggering action in the first state;
and the finite state machine transfers the state of the target order to the second state.
5. An apparatus for processing an order, the apparatus comprising:
the communication unit is used for acquiring configuration data of a plurality of order platforms; the configuration data includes: order state data, and order state transition data; the order state data represents the state of the order; the order state transition data represents the transition flow of the order among different states;
the processing unit is used for analyzing the configuration data of the plurality of order platforms to obtain a standardized configuration data set; the standardized configuration data set includes: standardized order state data and standardized order state transition data; the standardized order state data is used for representing the state of an order of any one of the order platforms; the standardized order state transition data is used for representing the transition process of the order of each order platform between different states;
the processing unit is further configured to construct the finite state machine according to the standardized configuration data set;
the processing unit is also used for calling a finite state machine to process the target order; the target order is any one of a plurality of order platforms.
6. The apparatus of claim 5, wherein the standardized order status data comprises a first status and a second status of an order; the first state is the current state of the target order; the second state is a state after the target order is subjected to state transition from the first state; the target order is any order of any order platform in the order platforms;
the standardized order state migration data is provided with a migration flow of the target order; the migration flow has a mapping relation among a first state, a second state and a state migration triggering action of the target order; the state transition triggering action is used for transitioning the order state of the target order from a first state to a second state.
7. The apparatus of any of claims 5-6, wherein the standardized configuration dataset further comprises: standardizing order platform configuration data; the standardized order platform configuration data manages configuration data of the plurality of order platforms for the finite state machine.
8. An order processing device, which is applied to the finite-state machine constructed according to any one of claims 1-3; the device comprises:
the processing unit is used for determining a first state of a target order and a state transition triggering action of the order; the first state is the current state of the target order;
the processing unit is further configured to invoke a standardized configuration data set and determine a second state of the target order; the second state is a state after the target order is subjected to state transition according to the state transition triggering action in the first state;
the processing unit is further configured to migrate the state of the target order to the second state.
9. An apparatus for processing an order, comprising: a processor and a communication interface; the communication interface is coupled to the processor for executing a computer program or instructions for implementing the method of processing an order as claimed in any one of claims 1-3.
10. An apparatus for processing an order, comprising: a processor and a communication interface; the communication interface is coupled to the processor for executing a computer program or instructions for implementing the method of processing an order as claimed in claim 4.
11. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a computer, cause the computer to perform the method of processing an order as claimed in any one of claims 1 to 3.
12. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a computer, cause the computer to perform the method of processing an order as recited in claim 4.
CN201911261703.9A 2019-12-10 2019-12-10 Order processing method and device Pending CN112950302A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911261703.9A CN112950302A (en) 2019-12-10 2019-12-10 Order processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911261703.9A CN112950302A (en) 2019-12-10 2019-12-10 Order processing method and device

Publications (1)

Publication Number Publication Date
CN112950302A true CN112950302A (en) 2021-06-11

Family

ID=76225914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911261703.9A Pending CN112950302A (en) 2019-12-10 2019-12-10 Order processing method and device

Country Status (1)

Country Link
CN (1) CN112950302A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114037496A (en) * 2021-11-17 2022-02-11 广域铭岛数字科技有限公司 State machine-based order state management method, device, equipment and medium
CN115729642B (en) * 2022-11-16 2023-09-19 北京志凌海纳科技有限公司 Method, system, equipment and storage medium for processing user behavior based on state machine

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388096A (en) * 2007-09-14 2009-03-18 阿里巴巴集团控股有限公司 Multi-platform data standardization processing method and system
US20100217988A1 (en) * 2007-04-12 2010-08-26 Avow Systems, Inc. Electronic document management and delivery
US20150278321A1 (en) * 2014-03-31 2015-10-01 Wal-Mart Stores, Inc. Synchronizing database data to a database cache
CN105844480A (en) * 2016-03-23 2016-08-10 上海极鲜网电子商务有限公司 Raw and fresh food electronic transaction platform
CN107742242A (en) * 2017-10-16 2018-02-27 苏州赛科计算机信息系统有限公司 Order processing method and device
US20180101455A1 (en) * 2016-10-10 2018-04-12 AlphaPoint Immediate order book failover
US20180276175A1 (en) * 2017-03-22 2018-09-27 National Instruments Corporation Direct Network Access by a Memory Mapped Peripheral Device for Scheduled Data Transfer on the Network
US20190068437A1 (en) * 2017-08-29 2019-02-28 Disney Enterprises Inc. Standardized Remote Access And Set-Up For Electronic Devices
US10248987B1 (en) * 2013-03-15 2019-04-02 Poshmark, Inc. Using digital item tracking to drive e-commerce
CN110310170A (en) * 2019-05-24 2019-10-08 深圳壹账通智能科技有限公司 Order processing method, apparatus, electronic equipment and storage medium
CN110503480A (en) * 2019-08-26 2019-11-26 联想(北京)有限公司 A kind of data processing method, system and electronic equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100217988A1 (en) * 2007-04-12 2010-08-26 Avow Systems, Inc. Electronic document management and delivery
CN101388096A (en) * 2007-09-14 2009-03-18 阿里巴巴集团控股有限公司 Multi-platform data standardization processing method and system
US10248987B1 (en) * 2013-03-15 2019-04-02 Poshmark, Inc. Using digital item tracking to drive e-commerce
US20150278321A1 (en) * 2014-03-31 2015-10-01 Wal-Mart Stores, Inc. Synchronizing database data to a database cache
CN105844480A (en) * 2016-03-23 2016-08-10 上海极鲜网电子商务有限公司 Raw and fresh food electronic transaction platform
US20180101455A1 (en) * 2016-10-10 2018-04-12 AlphaPoint Immediate order book failover
US20180276175A1 (en) * 2017-03-22 2018-09-27 National Instruments Corporation Direct Network Access by a Memory Mapped Peripheral Device for Scheduled Data Transfer on the Network
US20190068437A1 (en) * 2017-08-29 2019-02-28 Disney Enterprises Inc. Standardized Remote Access And Set-Up For Electronic Devices
CN107742242A (en) * 2017-10-16 2018-02-27 苏州赛科计算机信息系统有限公司 Order processing method and device
CN110310170A (en) * 2019-05-24 2019-10-08 深圳壹账通智能科技有限公司 Order processing method, apparatus, electronic equipment and storage medium
CN110503480A (en) * 2019-08-26 2019-11-26 联想(北京)有限公司 A kind of data processing method, system and electronic equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
SUVOROV, D.; ULYANTSEV, V.: "Smart contract design meets state machine synthesis: case studies", 《ARXIV》, 18 November 2019 (2019-11-18), pages 8 *
上官霞: "基于智能电表拆退管理新方式的技术研究", 《通讯世界 》, no. 22, 25 November 2016 (2016-11-25), pages 192 - 193 *
陈宁: "基于非集中控制机制的组合Web服务性能优化", 《中国优秀硕士学位论文全文数据库 信息科技辑 (月刊)》, no. 7, 15 July 2011 (2011-07-15), pages 139 - 116 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114037496A (en) * 2021-11-17 2022-02-11 广域铭岛数字科技有限公司 State machine-based order state management method, device, equipment and medium
CN115729642B (en) * 2022-11-16 2023-09-19 北京志凌海纳科技有限公司 Method, system, equipment and storage medium for processing user behavior based on state machine

Similar Documents

Publication Publication Date Title
US8204794B1 (en) Processing orders for wireless service
US8473316B1 (en) System and method for order processing state management
CN105447734B (en) Order information processing method and system
CN103677771A (en) Processing method and device for concurrent transactions
CN105335521A (en) Order data processing method and device for electronic mall
CN110264214A (en) It is a kind of trade bill generation and check and write off method, device and equipment
CN112950302A (en) Order processing method and device
CN108876338A (en) The single unification declaration inspection declaration method, apparatus of one kind three, server and storage medium
US20230344912A1 (en) Methods and systems for automatic installation of software applications for online stores
CN113763127A (en) Intelligent purchasing method and system based on supply chain sales order
US20230359984A1 (en) Methods and systems for inventory management for blockchain-based transactions
CN109310916B (en) System and method for resolving conflicts in ordering data products
CN113296912B (en) Task processing method, device, system, storage medium and electronic equipment
CA3169556A1 (en) Systems, apparatus, and methods for providing data entry feedback at electronic user devices
EP3719726A1 (en) Multi-location delivery
CN115705560A (en) Message mapping method and system for processing template changes
CN113228080B (en) System and method for digital product loading and distribution using cloud service proxy infrastructure
US20220108380A1 (en) Methods and systems for processing high frequency requests with limited throughput
CN114581088A (en) Aggregated payment method, device and system for SaaS (software as a service) system
US20210264347A1 (en) Product cycle management
US10970702B2 (en) Systems and methods for facilitating multi-party payment transactions
CN111612392A (en) Logistics monitoring method and system based on block chain
US8977305B1 (en) Initiation of wireless service
US20210090035A1 (en) System and method for transmitting data over authorized transmission channels
US20240211873A1 (en) Embedded shipping label management

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination