CN105631621A - Method for controlling logistics order state in distributed system and system - Google Patents
Method for controlling logistics order state in distributed system and system Download PDFInfo
- Publication number
- CN105631621A CN105631621A CN201410619911.2A CN201410619911A CN105631621A CN 105631621 A CN105631621 A CN 105631621A CN 201410619911 A CN201410619911 A CN 201410619911A CN 105631621 A CN105631621 A CN 105631621A
- Authority
- CN
- China
- Prior art keywords
- message
- logistics order
- logistics
- state
- order
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q10/00—Administration; Management
- G06Q10/08—Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Economics (AREA)
- Quality & Reliability (AREA)
- Entrepreneurship & Innovation (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Development Economics (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention relates to the field of application of a distributed system, and discloses a method for controlling a logistics order state in a distributed system and a system. In the method, a logistics order state circulation table is configured in advance which is used for describing conditions that a logistics order needs to satisfy to skip from a different current state to a next state, and the method includes the steps of: when a message that the state of the logistics order needs to be modified is received, inquiring the logistics order state circulation table according to the current state, and judging whether the received message satisfies the conditions for skipping to the next state; if yes, skipping to the next state from the current state; and if no, performing message retry, so that the message can be received for multiple times till the current state of the logistics order enables the message to satisfy the conditions for the logistics order to skip to the next state when the message is received again. The method provided by the invention effectively controls a state circulation sequence of the logistics order, and can prevent the problem of a business error caused by message receiving sequence disorder.
Description
Technical field
The present invention relates to distributed system applied technical field, particularly to the control technology of logistics order status.
Background technology
Background one, logistics order itself from after being created to finishing, centre can experience several state, and these states can be that logistics order is issued to warehouse, warehouse process packing, distribution is delivered from godown, delivery of formally packing, and order is cancelled etc. But for distributing the order delivered from godown, its state can only be refused single or be signed for, and can not cancel; And circulate warehouse and the order that do not deliver from godown can be cancelled. In a word the circulation of these order status be can be regarded as to the life cycle of order, can only move forward, it is impossible to shrink back.
Background two, electronic business system are generally based upon on distributed system basis, and each business can have the independent operation system of oneself. Each operation system realizes business datum final consistency typically via message-oriented middleware, and uses message-oriented middleware just to produce message delay unavoidably, the out of order problem of message.
Such as, when logistics company first sends, to logistics center's system, the message that warehouse packing processes, send the message that delivers from godown of distribution again, but be because various network reason or system reason, cause distributing the message that delivers from godown processes prior to packing message arrival logistics center system. If logistics center's system cannot judge to distribute deliver from godown before must have a process processing packing in storehouse, and first processed distribution and delivered from godown message, reprocessing warehouse packing processes, then can cause that logistics order status is out of order.
In background three, electronic business system, logistics system and commodity trading system are very independent operation systems. Different logistics methods of shipment, the method of shipment of online and offline is different, but only need to understand whether logistics order creates, whether delivers for commodity trading system, whether sign for, do not need to be concerned about the process of operation in concrete storehouse, but it is necessary to have a clearly unified state is informed.
Summary of the invention
It is an object of the invention to provide the control method of logistics order status in a kind of distributed system and system thereof so that under distributed system architecture, ensure that logistics order status circulates in order, it is prevented that message sink order entanglement and the service error problem that causes.
For solving above-mentioned technical problem, embodiments of the present invention disclose the control method of logistics order status in a kind of distributed system, are provided with logistics order status circulation table in the server of distributed system in advance, and the method comprises the following steps:
When receiving the message needing amendment logistics order status, according to the current-status query logistics order status of this logistics order circulation table, it is judged that whether the message received meets makes logistics order jump to the condition of NextState from current state;
If satisfied condition, then this logistics order is jumped to from current state the NextState of correspondence;
If the condition of being unsatisfactory for, then message is carried out message to retry, this message can repeatedly be received, until when again receiving this message, the current state of logistics order has been able to make this message meet the condition making this logistics order jump to NextState from current state.
Embodiments of the present invention also disclose the control system of logistics order status in a kind of distributed system, the server of distributed system is provided with in advance logistics order status circulation table, this system includes state controller, message reception module and message and retries module:
State controller, for when message reception module receives the message needing amendment logistics order status, current-status query logistics order status circulation table according to this logistics order, it is judged that whether the message received meets makes logistics order jump to the condition of NextState from current state;
If satisfied condition, then this logistics order is jumped to from current state the NextState of correspondence;
If the condition of being unsatisfactory for, then message retries module and message is carried out message retries, this message can repeatedly be received, until when message reception module receives this message again, the current state of logistics order has been able to make this message meet the condition making this logistics order jump to NextState from current state.
Compared with prior art, the main distinction and effect thereof are in that embodiment of the present invention:
The state circulation of logistics order order is control effectively by the present invention, when multiple operation systems of distributed system realize business datum final consistency, it is possible to prevent message sink order entanglement and the service error problem that causes.
Further, control to make can representation stream mode uniformly to the system beyond logistics center's system for the order of double; two physical state.
Further, message-oriented middleware will not be able to promote logistics order to carry out the message of state transition and carries out buffer memory, and the message of buffer memory is retried, and alleviates the operating pressure of server, it is to avoid server resource waste.
Further, realize message by external auxiliary server to retry, even without utilizable message-oriented middleware, it is also possible to realize message storage and the function retried, and avoid logistics center's server and realize message to retry the system coupling brought too high, the problem of high system complexity.
Further, logistics order status circulation epi-position is in server buffer, it is possible to alleviate the pressure of data base, it is possible to improve response speed.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the control method of logistics order status in a kind of distributed system in first embodiment of the invention;
Fig. 2 is the schematic flow sheet of the control method of logistics order status in a kind of distributed system in second embodiment of the invention;
Fig. 3 is the life cycle figure of second embodiment of the invention Plays order status;
Fig. 4 is service order state in second embodiment of the invention, the graph of a relation of standard order state and commodity transaction delivery state three;
Fig. 5 is the protocol procedures figure that in second embodiment of the invention, double; two physical state drive;
Fig. 6 is that in second embodiment of the invention, double; two physical state drive control cage composition;
Fig. 7 is the structural representation of the control system of logistics order status in a kind of distributed system in fifth embodiment of the invention.
Detailed description of the invention
In the following description, many ins and outs are proposed in order to make reader be more fully understood that the application. But, it will be understood by those skilled in the art that even without these ins and outs with based on the many variations of following embodiment and amendment, it is also possible to realize the application each claim technical scheme required for protection.
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiments of the present invention are described in further detail.
First embodiment of the invention relates to the control method of logistics order status in a kind of distributed system, and Fig. 1 is the schematic flow sheet of the control method of logistics order status in this distributed system.
Specifically, the server of this distributed system is provided with logistics order status circulation table, as it is shown in figure 1, the method comprises the following steps in advance:
In a step 101, when receiving the message needing amendment logistics order status, current-status query logistics order status circulation table according to this logistics order, it is judged that whether the message received meets makes logistics order jump to the condition of NextState from current state. Wherein, the NextState that logistics order status circulation table jumps to correspondence for describing logistics order from different current states needs satisfied condition.
If satisfied condition, then enter step 102, this logistics order is jumped to from current state the NextState of correspondence.
If the condition of being unsatisfactory for, then enter step 103, message is carried out message and retries so that this message can repeatedly be received, until when again receiving this message, the current state of logistics order has been able to make this message meet the condition making this logistics order jump to NextState from current state.
In addition, message is carried out message retry, this message can repeatedly be received, it should be noted that, when this message is again received, the current state of logistics order is likely to change owing to receiving other message so that the message that up-to-date current state has been able to make this retry meets the condition making this logistics order jump to NextState from current state.
Electronic business system is generally based upon on the basis of distributed system, and each business can have the independent operation system of oneself. Such as logistics center's system, commodity trading system, delivery system and warehouse flow system, each operation system realizes business datum final consistency typically via certain way, and wherein just produces message delay unavoidably at this, the out of order problem of message.
Present embodiment is then by controling effectively to the state circulation of logistics order order, when multiple operation systems of distributed system realize business datum final consistency, it is possible to prevent message sink order entanglement and the service error problem that causes.
Second embodiment of the invention relates to the control method of logistics order status in a kind of distributed system, and Fig. 2 is the schematic flow sheet of the control method of logistics order status in this distributed system.
Second embodiment has improved on the basis of the first embodiment, mainly thes improvement is that: the order of double; two physical state controls to make can representation stream mode uniformly to the system beyond logistics center's system; Logistics order status circulation epi-position is in server buffer, it is possible to alleviate the pressure of data base, it is possible to improve response speed.
Specifically, in a preference, logistics order status includes service order state and standard order state and the corresponding driving relationship that the logistics order status circulation table being pre-configured with also includes between service order state with standard order state.
After step 102 or step 103 after message retries the NextState jumping to correspondence from current state so that logistics order, also include step 104: the corresponding driving relationship according to service order state with standard order state, drive the renewal of standard order state.
It is appreciated that service order state and standard order state constitute double; two physical state.
Wherein, " service order state " alleged by the present invention refers to the order status of various line business oneself, service line every kind different has different order service conditions, express delivery delivery as domestic only general domestic pulls receipts and the state such as signs for, overseas logistics then has more complicated service order state, and the step of order status circulation also can be correspondingly more.
In electronic business system, logistics system and commodity trading system are very independent operation systems. Different logistics methods of shipment, online and offline method of shipment is different, but commodity trading system is only needed to whether logistics order creates, whether delivers, if sign for, and it is indifferent in concrete storehouse the process of operation.
" standard order state " alleged by the present invention is then the abstract a kind of expression way out from logistics order of the demand for above-mentioned commodity trading system, including state, shipped state and the state that finished in newly-built state, delivery. It is for the system beyond logistics system, for instance commodity trading system, uniformly representation stream mode.
Being illustrated in figure 3 the life cycle figure of standard order state, in logistics system, each logistics order has the life cycle of oneself, is illustrated in figure 3 order from newly-built to delivery, to finishing. And the relevant user of non-logistics system and system are only concerned these states.
Newly-built state: before not having any delivery behavior user, order is newly-built state;
In delivery: when having had a delivery behavior user, and before logistics company do not confirm to pull receipts, order belongs to state in delivery;
Shipped state: starting to send with charge free after logistics company pulls receipts, order is in shipped state;
Finished state: when logistics order is signed for, is closed, is cancelled, namely order belongs to the state that finished.
After logistics order jumps to corresponding NextState from current state, then the renewal of standard order state according to the corresponding driving relationship of service order state with standard order state, can be driven. Such that it is able to externally inform commodity transaction delivery state. Service order state, the relation of standard order state and commodity transaction this three of delivery state is as shown in Figure 4, can figurative expression be the gears of three occlusions, service order state redirect the change that can drive standard order state, thus final updated commodity transaction delivery state.
Control to be described in further detail for releases simplest in logistic industry to double; two physical state below. It is illustrated in figure 5 the protocol procedures figure that double; two physical state drives.
In the e-commerce system not having self-built logistics system, after in commodity trading system, seller selects delivery, logistics order newly-built in step 501 is issued to third-party logistics company, completing step 502, now the service condition (i.e. service order state) of logistics order should be issue state. But then only need to think that this is singly in delivery for the people beyond logistics system or system, not yet complete delivery. Therefore, when service condition redirects as issuing state, standard state can be driven to the state in delivery by this state-driven control program;
If third-party logistics company order (step 503), now the service condition of logistics order redirects as order state, but is because also parcel not being submitted to third-party logistics company, so standard state now remains the state in delivery;
If third-party logistics company refuses list (step 504), then need to re-create logistics order, now the service condition of logistics order is to re-create state, and people or the system beyond logistics system all need not understand the process re-created, therefore only need the standard state by logistics order to be driven to the newly-built state of order and get final product (regardless of whether the state through re-creating).
Logistics order continues to circulate forward, by the time third-party logistics company confirms to have pulled to receive this parcel (step 505), now the service condition of logistics order pulls receipts state exactly, and thus the standard state of logistics order will be driven to shipped state by drive control scheme.
Logistics order is hereafter in two kinds of situation:
If being signed for (step 506), then the service condition of logistics order is to sign for state; If by denial (step 507), then the service condition of logistics order is denial state. No matter signing for or denial, people or system beyond logistics system only need to think that this order finishes, and standard state can be driven to the state that order has finished by this state-driven control program.
Additionally, the reading and writing data ratio of logistics order status circulation table is very high, after once unified configuration completes, unless business delivery flow process changes, otherwise the configuration of state circulation table will not be modified. The chance that delivery operation flow changes is comparatively small, and the circulation of every next state of each order on this line be required for currently circulating according to this part of configuration determination whether legal, thus reading times is extremely frequent.
For the problems referred to above, in another preference, logistics order status circulation epi-position is in server buffer, and double; two physical state as shown in Figure 6 drive in control cage composition, and the order circulation configuration (i.e. logistics order status circulation table) in data base is arranged in server buffer. When the reading and writing data number of times of logistics order status circulation table is extremely frequent, it is possible to substantially alleviate the pressure of data base, it is possible to improve response speed.
Additionally, each server individually can externally provide service, state controller to be some functions on these servers in distributed type assemblies, calling of each service condition circulation all can be realized by state controller. By selecting use server local buffer memory, once load when service starts, it is possible to forever use.
In other embodiments of the present invention, logistics order status circulation table is not limited to be arranged in server buffer, it is also possible to record is in data base.
When considering logistics delivery type difference in addition, order status circulation is also likely to be different, and if on-line payment and the logistics delivery type cashed on delivery are different, the logistics delivery type of external order and domestic order is also different.
For the problems referred to above, in another preference, logistics order status circulation table is pre-configured with according to logistics delivery type, the logistics order status circulation table that different logistics delivery types are corresponding different.
Correspondingly, in a step 101, after " message when receiving logistics order ", further comprise the steps of:
Message according to logistics order, parses the logistics delivery type of logistics order.
Correspondingly, in a step 101, " according to the current-status query logistics order status of logistics order circulation table, it is judged that whether the message received meets makes logistics order jump to the condition of NextState from current state ":
According to the logistics delivery type queries corresponding logistics order status circulation table parsed, and judge whether the current state of logistics order can jump to NextState according to this logistics order status circulation table.
Preference as present embodiment, all delivery business needed to be configured in state controller by the state circulation situation (i.e. logistics order status circulation table) of corresponding logistics delivery type before using state controller, its situation that from certain state can jump to reachable state is described in detail and all expresses state controller.
After an order messages circulation enters this state controller, state controller can judge the logistics delivery type of correspondence according to hand markers different on order, then according to different delivery types, system can judge whether current state can update dbjective state, thus controlling the out of order problem brought of message. Additionally, mainly comprise two kinds of logistics order status in whole scheme, one represents service order state, and another represents standard logistics order status. If service order state can update dbjective state, state controller can drive the renewal of standard logistics order status.
First in order to control effectively to the circulation of logistics order status, it is prevented that the service error problem that message sink order entanglement causes; Second in order to carry out unified representation stream mode to the system beyond logistics system, and has drawn the order-driven market control program under double; two physical state. After applying this scheme, first can ensure that logistics order status circulates between set state, thus ensureing that order status is always marched forward, without rollback, will not cause because message is out of order that rearmounted business first carries out; Second is use double; two logistics order status, external system carries out unified physical state and expresses.
Third embodiment of the invention relates to the control method of logistics order status in a kind of distributed system, 3rd embodiment has improved on the basis of the first embodiment, mainly the improvement is that: realize, by message-oriented middleware, the function that message retries, message-oriented middleware will not be able to promote the message that logistics order carries out state transition to carry out buffer memory, and the message of buffer memory is retried, alleviate the operating pressure of server, it is to avoid server resource waste.
Specifically, step 103 is realized by message-oriented middleware, and this step includes following sub-step:
This message of logistics order is sent to message-oriented middleware by message sender;
This message is also retried by this message of message-oriented middleware buffer memory so that this message can repeatedly be received, until this message meets the condition making this logistics order jump to NextState from current state.
In addition, it is appreciated that, " message-oriented middleware " alleged by the present invention utilizes the message passing mechanism of high efficient and reliable to carry out platform-independent data exchange, and carries out the integrated of distributed system based on data communication, it may be achieved data transmission reliable, efficient, real-time in distributed system.
In the present invention, message-oriented middleware can be shared by multiple operation systems, such as delivery system, the system of warehouse circulation. Multiple operation systems can be carried out buffer memory by message-oriented middleware to the message of logistics center's system passback and retry.
Message sender returns exception in reception time-out or recipient, or when the error code returned not is intended error code, the message being unsatisfactory for condition is sent to message-oriented middleware, the buffer memory of message can be realized by message-oriented middleware and retry, alleviate the operating pressure of server, it is to avoid server resource waste.
Four embodiment of the invention relates to the control method of logistics order status in a kind of distributed system, 4th embodiment has improved on the basis of the first embodiment, mainly the improvement is that: realize, by external auxiliary server, the function that message retries, even without utilizable message-oriented middleware, message storage and the function retried can also be realized, and avoid logistics center's server and realize message to retry the system coupling brought too high, the problem of high system complexity.
Specifically, step 103 includes following sub-step:
The message of the condition being unsatisfactory for making logistics order carry out state transition is stored in external auxiliary server;
When the state of the logistics order corresponding with this message redirects, then judge whether this message meets the condition making this logistics order jump to NextState from current state, if it is satisfied, then call this message and carry out state transition. If be unsatisfactory for, continue to store this message, until this message meets the condition of state transition.
In the present embodiment, message retries and realizes in an external auxiliary server, even without utilizable message-oriented middleware, an overtime task control centre can be developed substitute, and avoid logistics center's server and realize message to retry the system coupling brought too high, the problem of high system complexity.
Each method embodiment of the present invention all can realize in modes such as software, hardware, firmwares. no matter the present invention realizes with software, hardware or firmware mode, instruction code may be stored in the addressable memorizer of any kind of computer (such as permanent or revisable, volatibility or non-volatile, solid-state or non-solid, fixing or removable medium etc.). equally, memorizer can be such as programmable logic array (ProgrammableArrayLogic, it is called for short " PAL "), random access memory (RandomAccessMemory, it is called for short " RAM "), programmable read only memory (ProgrammableReadOnlyMemory, it is called for short " PROM "), read only memory (Read-OnlyMemory, it is called for short " ROM "), Electrically Erasable Read Only Memory (ElectricallyErasableProgrammableROM, it is called for short " EEPROM "), disk, CD, digital versatile disc (DigitalVersatileDisc, it is called for short " DVD ") etc.
Fifth embodiment of the invention relates to the control system of logistics order status in a kind of distributed system, and Fig. 7 is the structural representation of the control system of logistics order status in this distributed system.
Specifically, the server of this distributed system is provided with logistics order status circulation table in advance, as it is shown in fig. 7, this system includes state controller, message reception module and message retries module:
State controller, for when message reception module receives the message needing amendment logistics order status, current-status query logistics order status circulation table according to this logistics order, it is judged that whether the message received meets makes logistics order jump to the condition of NextState from current state; If satisfied condition, then this logistics order is jumped to from current state the NextState of correspondence; If the condition of being unsatisfactory for, then message retries module and message is carried out message retries, this message can repeatedly be received, until when message reception module receives this message again, the current state of logistics order has been able to make this message meet the condition making this logistics order jump to NextState from current state. Wherein, the NextState that logistics order status circulation jumps to correspondence for describing logistics order from different current states needs satisfied condition.
In addition, it is appreciated that, message is carried out message retry, this message can repeatedly be received, and when this message is again received, the current state of logistics order is likely to change owing to receiving other message so that the message that up-to-date current state has been able to make this retry meets the condition making this logistics order jump to NextState from current state.
Electronic business system is generally set up on distributed system basis, and each business can have the independent operation system of oneself. Such as logistics system, commodity trading system, delivery system and warehouse flow system, each operation system realizes business datum final consistency typically via message-oriented middleware, and uses message-oriented middleware just to produce message delay unavoidably, the out of order problem of message.
The state circulation of logistics order order is control effectively by present embodiment for the problems referred to above, when multiple operation systems of distributed system realize business datum final consistency, it is possible to prevent message sink order entanglement and the service error problem that causes.
First embodiment is the method embodiment corresponding with present embodiment, and present embodiment can be worked in coordination enforcement with the first embodiment. The relevant technical details mentioned in first embodiment is still effective in the present embodiment, in order to reduce repetition, repeats no more here. Correspondingly, the relevant technical details mentioned in present embodiment is also applicable in the first embodiment.
Sixth embodiment of the invention relates to the control system of logistics order status in a kind of distributed system, 6th embodiment has improved on the basis of the 5th embodiment, mainly thes improvement is that: the order of double; two physical state controls to make can representation stream mode uniformly to the system beyond logistics center's system; Logistics order status circulation epi-position is in server buffer, it is possible to alleviate the pressure of data base, it is possible to improve response speed.
Specifically, in a preference, logistics order status includes service order state and standard order state. The corresponding driving relationship that the logistics order status circulation table being pre-configured with also includes between service order state with standard order state.
After this logistics order is jumped to NextState from current state by state controller, it is additionally operable to the corresponding driving relationship according to service order state with standard order state, drives the renewal of standard order state.
It is appreciated that service order state and standard order state constitute double; two physical state.
Additionally, the reading and writing data ratio of logistics order status circulation table is very high, after once unified configuration completes, unless business delivery flow process changes, otherwise the configuration of state circulation table will not be modified. The chance that delivery operation flow changes is comparatively small, and the circulation of every next state of each order on this line be required for currently circulating according to this part of configuration determination whether legal, thus reading times is extremely frequent.
For the problems referred to above, in another preference, logistics order status circulation epi-position is in server buffer, it is possible to substantially alleviate the pressure of data base, it is possible to improve response speed.
In other embodiments of the present invention, logistics order status circulation table is not limited to be arranged in server buffer, it is also possible to record is in data base.
When considering logistics delivery type difference in addition, order status circulation is also likely to be different, and if on-line payment and the logistics delivery type cashed on delivery are different, the logistics delivery type of external order and domestic order is also different.
For the problems referred to above, in another preference, logistics order status circulation table is pre-configured with according to logistics delivery type, the logistics order status circulation table that different logistics delivery types are corresponding different.
Correspondingly, also include parsing module, for the message according to logistics order, parse the logistics delivery type of logistics order. In state controller, according to the logistics delivery type queries corresponding logistics order status circulation table that parsing module parses, and judge whether the current state of logistics order can jump to NextState according to this logistics order status circulation table.
Second embodiment is the method embodiment corresponding with present embodiment, and present embodiment can be worked in coordination enforcement with the second embodiment. The relevant technical details mentioned in second embodiment is still effective in the present embodiment, in order to reduce repetition, repeats no more here. Correspondingly, the relevant technical details mentioned in present embodiment is also applicable in the second embodiment.
Seventh embodiment of the invention relates to the control system of logistics order status in a kind of distributed system, 7th embodiment has improved on the basis of the 5th embodiment, mainly the improvement is that: realize, by message-oriented middleware, the function that message retries, message-oriented middleware will not be able to promote the message that logistics order carries out state transition to carry out buffer memory, and the message of buffer memory is retried, alleviate the operating pressure of server, it is to avoid server resource waste.
Specifically, it is realized by outside message-oriented middleware that message retries module, and message-oriented middleware includes following submodule:
Message sink submodule, for receiving the message of the logistics order that message sender sends.
Buffer memory and retry submodule, for this message of buffer memory and this message is retried so that this message can repeatedly be received, until this message meets the condition making this logistics order jump to NextState from current state.
In addition, it is appreciated that, " message-oriented middleware " alleged by the present invention utilizes the message passing mechanism of high efficient and reliable to carry out platform-independent data exchange, and carries out the integrated of distributed system based on data communication, it may be achieved data transmission reliable, efficient, real-time in distributed system.
In the present invention, message-oriented middleware can be shared by multiple operation systems, such as delivery system, the system of warehouse circulation. Multiple operation systems can be carried out buffer memory by message-oriented middleware to the message of logistics center's system passback and retry.
Message sender returns exception in reception time-out or recipient, or when the error code returned not is intended error code, sends the message being unsatisfactory for condition to message-oriented middleware, can realize the buffer memory of message by message-oriented middleware and retry. Alleviate the operating pressure of server, it is to avoid server resource waste.
3rd embodiment is the method embodiment corresponding with present embodiment, and present embodiment can be worked in coordination enforcement with the 3rd embodiment. The relevant technical details mentioned in 3rd embodiment is still effective in the present embodiment, in order to reduce repetition, repeats no more here. Correspondingly, the relevant technical details mentioned in present embodiment is also applicable in the 3rd embodiment.
Eighth embodiment of the invention relates to the control system of logistics order status in a kind of distributed system, 8th embodiment has improved on the basis of the 5th embodiment, mainly thes improvement is that: realize, by storing the messages in, the function that message retries in external auxiliary server.
Specifically, message retries module and realizes at outside secondary server, including following submodule:
Sub module stored, for being stored in external auxiliary server by the message of the condition being unsatisfactory for making logistics order carry out state transition;
Judge and call submodule, for when the state of the logistics order corresponding with this message redirects, then judge whether this message meets the condition making this logistics order jump to NextState from current state, if it is satisfied, then call this message and carry out state transition. If be unsatisfactory for, continue to store this message, until this message meets the condition of state transition.
4th embodiment is the method embodiment corresponding with present embodiment, and present embodiment can be worked in coordination enforcement with the 4th embodiment. The relevant technical details mentioned in 4th embodiment is still effective in the present embodiment, in order to reduce repetition, repeats no more here. Correspondingly, the relevant technical details mentioned in present embodiment is also applicable in the 4th embodiment.
It should be noted that, the each module mentioned in the present invention each equipment embodiment is all logic module, physically, one logic module can be a physical module, it can also be a part for a physical module, can also realizing with the combination of multiple physical modules, the Physical realization of these logic modules itself is not most important, and the combination of the function that these logic modules realize is only the key solving technical problem proposed by the invention. Additionally, for the innovative part highlighting the present invention, the module less close with solving technical problem relation proposed by the invention is not introduced by the above-mentioned each equipment embodiment of the present invention, and this is not intended that the said equipment embodiment and is absent from other module.
It should be noted that, in the claim and description of this patent, the relational terms of such as first and second or the like is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially. And, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include the process of a series of key element, method, article or equipment not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or equipment. When there is no more restriction, statement " including " key element limited, it is not excluded that there is also other identical element in including the process of described key element, method, article or equipment.
Although by referring to some of the preferred embodiment of the invention, the present invention is shown and described, but it will be understood by those skilled in the art that and in the form and details it can be done various change, without departing from the spirit and scope of the present invention.
Claims (11)
1. the control method of logistics order status in a distributed system, it is characterised in that be provided with logistics order status circulation table in the server of described distributed system in advance, said method comprising the steps of:
When receiving the message needing amendment logistics order status, logistics order status circulation table according to the current-status query of logistics order, it is judged that described in the message that receives whether meet and make logistics order jump to the condition of NextState from current state;
If meeting described condition, then logistics order is jumped to from current state the NextState of correspondence;
If being unsatisfactory for described condition, then described message is carried out message to retry, described message can repeatedly be received, until when again receiving described message, the current state of logistics order has been able to make described message meet makes logistics order jump to the condition of NextState from current state.
2. the control method of logistics order status in distributed system according to claim 1, it is characterised in that described logistics order status includes service order state and standard order state; The described logistics order status circulation table being pre-configured with also includes the corresponding driving relationship between described service order state with described standard order state;
After the described step that described logistics order is jumped to from current state NextState, further comprise the steps of: the corresponding driving relationship according to described service order state with described standard order state, drive the renewal of described standard order state.
3. the control method of logistics order status in distributed system according to claim 1, it is characterized in that, the step of described " if being unsatisfactory for described condition; then described message is carried out message and retry; make described message repeatedly to be received; until when again receiving described message; the current state of logistics order has been able to make described message meet makes logistics order jump to the condition of NextState from current state " is realized by message-oriented middleware, and described step includes following sub-step:
The described message of logistics order is sent to message-oriented middleware by described message sender;
Message is also retried by message described in message-oriented middleware buffer memory so that described message can repeatedly be received, until described message meets and makes logistics order jump to the condition of NextState from current state.
4. the control method of logistics order status in distributed system according to claim 1, it is characterized in that, the step of described " if being unsatisfactory for described condition; then described message is carried out message and retry; make described message repeatedly to be received; until when again receiving described message; the current state of logistics order has been able to make described message meet makes logistics order jump to the condition of NextState from current state " is realized by external auxiliary server, and described step includes following sub-step:
The message of the described condition being unsatisfactory for and making logistics order carry out state transition is stored in described external auxiliary server;
When the state of the logistics order corresponding with described message redirects, then judge whether described message meets and make logistics order jump to the condition of NextState from current state, if it is satisfied, then call described message and carry out state transition; If be unsatisfactory for, continue storage message, until described message meets the condition of state transition.
5. the control method of logistics order status in distributed system according to claim 1, it is characterised in that described logistics order status circulation epi-position is in server buffer.
6. the control method of logistics order status in distributed system according to any one of claim 1 to 5, it is characterized in that, described logistics order status circulation table is pre-configured with according to logistics delivery type, the logistics order status circulation table that different logistics delivery types are corresponding different;
After the step of described " message when receiving logistics order ", further comprise the steps of:
Message according to described logistics order, parses the logistics delivery type of logistics order;
Described " according to the current-status query of logistics order logistics order status circulation table, it is judged that described in the message that receives whether meet make logistics order jump to the condition of NextState from current state " step:
According to the logistics delivery type queries corresponding logistics order status circulation table parsed, and judge whether the current state of described logistics order can jump to NextState according to described logistics order status circulation table.
7. the control system of logistics order status in a distributed system, it is characterised in that being provided with logistics order status circulation table in the server of described distributed system in advance, described system includes state controller, message reception module and message and retries module:
State controller, for when described message reception module receives the message needing amendment logistics order status, logistics order status circulation table described in current-status query according to logistics order, it is judged that described in the message that receives whether meet and make logistics order jump to the condition of NextState from current state;
If meeting described condition, then logistics order is jumped to from current state the NextState of correspondence;
If being unsatisfactory for described condition, then described message retries module and described message is carried out message retries, described message can repeatedly be received, until when described message reception module receives described message again, the current state of logistics order has been able to make described message meet makes logistics order jump to the condition of NextState from current state.
8. the control system of logistics order status in distributed system according to claim 7, it is characterised in that described logistics order status includes service order state and standard order state; The described logistics order status circulation table being pre-configured with also includes the corresponding driving relationship between described service order state with described standard order state;
After described logistics order is jumped to NextState from current state by described state controller, it is additionally operable to the corresponding driving relationship according to described service order state with described standard order state, drives the renewal of described standard order state.
9. the control system of logistics order status in distributed system according to claim 7, it is characterised in that it is realized by outside message-oriented middleware that described message retries module, and described message-oriented middleware includes following submodule:
Message sink submodule, for receiving the message of the logistics order that described message sender sends;
Buffer memory and retry submodule, message described message is retried described in buffer memory so that described message can repeatedly be received, until described message meets and makes logistics order jump to the condition of NextState from current state.
10. the control system of logistics order status in distributed system according to claim 7, it is characterised in that described message is retried module and realized by external auxiliary server, including following submodule:
Sub module stored, for being stored in described external auxiliary server by the message of the described condition being unsatisfactory for and making logistics order carry out state transition;
Judge and call submodule, for when the state of the logistics order corresponding with described message redirects, judging whether described message meets makes logistics order jump to the condition of NextState from current state, if it is satisfied, then call described message and carry out state transition; If be unsatisfactory for, continue storage message, until described message meets the condition of state transition.
11. any one of claim 7 to 10 the control system of logistics order status in described distributed system, it is characterized in that, described logistics order status circulation table is pre-configured with according to logistics delivery type, the logistics order status circulation table that different logistics delivery types are corresponding different;
Also include parsing module, for the message according to described logistics order, parse the logistics delivery type of logistics order;
In described state controller, according to the logistics delivery type queries corresponding logistics order status circulation table that described parsing module parses, and judge whether the current state of described logistics order can jump to NextState according to described logistics order status circulation table.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410619911.2A CN105631621B (en) | 2014-11-05 | 2014-11-05 | Method and system for controlling logistics order state in distributed system |
PCT/CN2015/093309 WO2016070749A1 (en) | 2014-11-05 | 2015-10-30 | Control method and system for logistic order status in distributed system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410619911.2A CN105631621B (en) | 2014-11-05 | 2014-11-05 | Method and system for controlling logistics order state in distributed system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105631621A true CN105631621A (en) | 2016-06-01 |
CN105631621B CN105631621B (en) | 2021-11-02 |
Family
ID=55908567
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410619911.2A Active CN105631621B (en) | 2014-11-05 | 2014-11-05 | Method and system for controlling logistics order state in distributed system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105631621B (en) |
WO (1) | WO2016070749A1 (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106228384A (en) * | 2016-07-12 | 2016-12-14 | 乐视控股(北京)有限公司 | Data message circulation control method and system |
CN107066611A (en) * | 2017-05-04 | 2017-08-18 | 浙江路港互通信息技术有限公司 | Page return mechanism and method |
CN107563942A (en) * | 2016-06-30 | 2018-01-09 | 阿里巴巴集团控股有限公司 | A kind of logistics data batch processing method, logistics processing system and processing unit |
CN108241671A (en) * | 2016-12-26 | 2018-07-03 | 北京京东尚科信息技术有限公司 | Method and device for business processing |
CN109634761A (en) * | 2018-12-17 | 2019-04-16 | 深圳乐信软件技术有限公司 | A kind of system mode circulation method, apparatus, computer equipment and storage medium |
CN113112285A (en) * | 2020-01-13 | 2021-07-13 | 北京京东振世信息技术有限公司 | Data analysis method and device |
CN113722173A (en) * | 2020-12-29 | 2021-11-30 | 京东数字科技控股股份有限公司 | Business process monitoring method, system, equipment and readable storage medium |
CN116050974A (en) * | 2022-12-30 | 2023-05-02 | 广州拓威天海国际物流有限公司 | Logistics state visual tracking method and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030050813A1 (en) * | 2001-09-11 | 2003-03-13 | International Business Machines Corporation | Method and apparatus for automatic transitioning between states in a state machine that manages a business process |
CN102521703A (en) * | 2011-12-15 | 2012-06-27 | 武汉钢铁(集团)公司 | Order fulfillment dynamic tracing method |
CN102831512A (en) * | 2011-06-14 | 2012-12-19 | 阿里巴巴集团控股有限公司 | Method and system for accelerating online transaction data processing |
CN102880947A (en) * | 2011-07-11 | 2013-01-16 | 阿里巴巴集团控股有限公司 | Information interactive method and device of electronic business platform and logistics trading platform |
US20130024472A1 (en) * | 2010-07-30 | 2013-01-24 | Sap Ag | Extensibility of business process and application logic |
CN103258273A (en) * | 2012-02-20 | 2013-08-21 | 腾讯科技(深圳)有限公司 | System and method of physical distribution state information transferring of network transaction article |
CN104063772A (en) * | 2013-03-20 | 2014-09-24 | 阿里巴巴集团控股有限公司 | Logistical-information reliability test method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3992556B2 (en) * | 2002-08-09 | 2007-10-17 | 株式会社エフ・エフ・シー | Shipping change instruction method and shipping change instruction program |
-
2014
- 2014-11-05 CN CN201410619911.2A patent/CN105631621B/en active Active
-
2015
- 2015-10-30 WO PCT/CN2015/093309 patent/WO2016070749A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030050813A1 (en) * | 2001-09-11 | 2003-03-13 | International Business Machines Corporation | Method and apparatus for automatic transitioning between states in a state machine that manages a business process |
US20130024472A1 (en) * | 2010-07-30 | 2013-01-24 | Sap Ag | Extensibility of business process and application logic |
CN102831512A (en) * | 2011-06-14 | 2012-12-19 | 阿里巴巴集团控股有限公司 | Method and system for accelerating online transaction data processing |
CN102880947A (en) * | 2011-07-11 | 2013-01-16 | 阿里巴巴集团控股有限公司 | Information interactive method and device of electronic business platform and logistics trading platform |
CN102521703A (en) * | 2011-12-15 | 2012-06-27 | 武汉钢铁(集团)公司 | Order fulfillment dynamic tracing method |
CN103258273A (en) * | 2012-02-20 | 2013-08-21 | 腾讯科技(深圳)有限公司 | System and method of physical distribution state information transferring of network transaction article |
CN104063772A (en) * | 2013-03-20 | 2014-09-24 | 阿里巴巴集团控股有限公司 | Logistical-information reliability test method and device |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107563942A (en) * | 2016-06-30 | 2018-01-09 | 阿里巴巴集团控股有限公司 | A kind of logistics data batch processing method, logistics processing system and processing unit |
CN107563942B (en) * | 2016-06-30 | 2021-06-18 | 菜鸟智能物流控股有限公司 | Logistics data batch processing method, logistics processing system and processing device |
CN106228384A (en) * | 2016-07-12 | 2016-12-14 | 乐视控股(北京)有限公司 | Data message circulation control method and system |
CN108241671A (en) * | 2016-12-26 | 2018-07-03 | 北京京东尚科信息技术有限公司 | Method and device for business processing |
CN108241671B (en) * | 2016-12-26 | 2020-11-03 | 北京京东尚科信息技术有限公司 | Service processing method and system and storage medium |
CN107066611A (en) * | 2017-05-04 | 2017-08-18 | 浙江路港互通信息技术有限公司 | Page return mechanism and method |
CN107066611B (en) * | 2017-05-04 | 2020-05-15 | 浙江数链科技有限公司 | Page returning device and method |
CN109634761A (en) * | 2018-12-17 | 2019-04-16 | 深圳乐信软件技术有限公司 | A kind of system mode circulation method, apparatus, computer equipment and storage medium |
CN113112285A (en) * | 2020-01-13 | 2021-07-13 | 北京京东振世信息技术有限公司 | Data analysis method and device |
CN113112285B (en) * | 2020-01-13 | 2023-11-03 | 北京京东振世信息技术有限公司 | Data analysis method and device |
CN113722173A (en) * | 2020-12-29 | 2021-11-30 | 京东数字科技控股股份有限公司 | Business process monitoring method, system, equipment and readable storage medium |
CN116050974A (en) * | 2022-12-30 | 2023-05-02 | 广州拓威天海国际物流有限公司 | Logistics state visual tracking method and system |
Also Published As
Publication number | Publication date |
---|---|
WO2016070749A1 (en) | 2016-05-12 |
CN105631621B (en) | 2021-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105631621A (en) | Method for controlling logistics order state in distributed system and system | |
US9660884B2 (en) | Providing a monitoring service in a cloud-based computing environment | |
CN102469033B (en) | Message subscription system and message sending method | |
CN105096015A (en) | Information processing method and system of commodity object | |
CN105824842A (en) | Distributed transaction processing method and system | |
CN111143093B (en) | Asynchronous message distributed processing method, device, equipment and storage medium | |
WO2003036423A8 (en) | Enhanced vendor managed inventory system and process | |
US20060184944A1 (en) | Scheduling batch jobs | |
US20090006228A1 (en) | Time tracking system and method of use | |
CN105791094A (en) | User state setting method, device and system | |
CN111553699A (en) | Resource scheduling method and device | |
US8850074B2 (en) | Data synchronization method | |
Cao et al. | Component procurement for an assembly supply chain with random capacities and random demand | |
US20080103862A1 (en) | Instant messaged forms based business process decision point facilitation | |
CN110390450B (en) | Storage scheduling method and device, storage medium and electronic equipment | |
CN109978493B (en) | Demand management system and method | |
CN116862365A (en) | Warehouse-out control method and device and electronic equipment | |
US20150236987A1 (en) | Device, method and non-transitory computer readable storage medium for performing instant message communication | |
CN115964133A (en) | Message management method, device, equipment and storage medium | |
KR102331734B1 (en) | Method for processing data of distributed coordination system and electronic apparatus therefor | |
US9900399B2 (en) | Method for operating machines and system using the same | |
CN106529845A (en) | Print delivery management system capable of determining repeated information entry | |
CN107239913B (en) | Logistics service processing method and device | |
US11606445B2 (en) | Method for operating relation server and system using the same | |
CN111061461B (en) | Retail chain response type system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20180504 Address after: Cayman Islands, Grand Cayman Island capital building, four level 847 box Applicant after: CAINIAO SMART LOGISTICS HOLDING Ltd. Address before: Cayman Islands Grand Cayman capital building a four storey No. 847 mailbox Applicant before: ALIBABA GROUP HOLDING Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |