CN108805379A - Support that multi-mode is honoured an agreement the system and method for flow - Google Patents

Support that multi-mode is honoured an agreement the system and method for flow Download PDF

Info

Publication number
CN108805379A
CN108805379A CN201710306321.8A CN201710306321A CN108805379A CN 108805379 A CN108805379 A CN 108805379A CN 201710306321 A CN201710306321 A CN 201710306321A CN 108805379 A CN108805379 A CN 108805379A
Authority
CN
China
Prior art keywords
agreement
flow
data
son
honoured
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
CN201710306321.8A
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710306321.8A priority Critical patent/CN108805379A/en
Publication of CN108805379A publication Critical patent/CN108805379A/en
Pending legal-status Critical Current

Links

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
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Software Systems (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Educational Administration (AREA)
  • General Engineering & Computer Science (AREA)
  • Stored Programmes (AREA)

Abstract

Supporting that multi-mode is honoured an agreement the system and method for flow present disclose provides a kind of.The flow of honouring an agreement is split as multiple sons and honours an agreement flow, is respectively arranged with adapter for every height flow of honouring an agreement and is connected to multiple Service Component of the adapter, and multiple Service Component correspond respectively to honour an agreement multiple patterns of flow.The method includes:Receive MQ message;According to MQ message is received, interface flag, data and order status are obtained;Determine whether to be able to carry out son according to data and order status to honour an agreement one of flow;When be determined to execute son honour an agreement flow a period of time determine execution which kind of honour an agreement;The adapter that data and interface flag are sent to flow of honouring an agreement for the son when interface is honoured an agreement is executed when determining;One of multiple Service Component that the adapter selects to be connected according to interface flag, and convert data to data corresponding with selected Service Component;And transformed data are sent to the Service Component, it honours an agreement flow to execute the son by the Service Component.

Description

Support that multi-mode is honoured an agreement the system and method for flow
Technical field
This disclosure relates to Internet technical field, more particularly, to it is a kind of support multi-mode honour an agreement flow system and Method.
Background technology
With the fast development of e-commerce, develops and various honour an agreement flow to be adapted to the demand of different business pattern. For example, only for cross-border e-commerce, current business model frequently includes following three kinds:First way is the success that places an order Afterwards, it completes order by international logistics to honour an agreement, cargo is sent to client on hand, such as, platform and Ali are sold in the whole world in Jingdone district Speed sells logical platform;The second way is to take local self-built supply chain system that cargo is stored at locality in bulk, by locality Supply chain system is responsible for order and honours an agreement, and cargo is sent to client on hand, such as, Amazon China;The third mode is to take The pattern of oversea location is leased in locality, by local warehouse and logistics, completes honouring an agreement for order, is often applied to no resource Establish the country of local provisioning Chain System.In order to be smoothly performed cross-border e-commerce, it usually needs be directed to above-mentioned three kinds of differences Different flow systems of honouring an agreement is established in the cross-border e-commerce of business model.
However, in realizing process of the present invention, inventor has found that at least there are the following problems in the prior art.Although being directed to Different business models establishes the different systems of honouring an agreement and can be good at supporting business development and differentiation, but this method is very big Ground wastes human cost and economic cost, also results in the problem of order honours an agreement system version excessively and is difficult to safeguard.In addition, For the third mode, due to the warehouse of needs and country variant, the interaction of logistics system, or even also need to for difference The system of country is honoured an agreement system to build corresponding order, not pratical and feasible using the above method.
Invention content
In view of this, supporting that multi-mode is honoured an agreement the system and method for flow present disclose provides a kind of.
An aspect of this disclosure provide it is a kind of supporting that multi-mode is honoured an agreement the system of flow, including:Configuration center, flow Engine, multiple adapters and multigroup Service Component.Specifically, it is related to flow of honouring an agreement to be configurable to storage for the configuration center Interface flag, data and order status.The flow engine is configurable to according to the data and order status, and determination is The no multiple sons for being able to carry out the flow of honouring an agreement are honoured an agreement one of flow;And it honours an agreement flow in response to being determined to execute multiple sons One of, the type configuration of honouring an agreement for flow of being honoured an agreement according to the son determines and executes asynchronous honour an agreement or interface is honoured an agreement.The multiple adapter In each adapter can be set to corresponding with multiple sons one of flow of honouring an agreement, and each adapter is configured to:According to One of multiple Service Component in the Service Component group that the interface flag selection is connect with the adapter, by the data conversion For data corresponding with selected Service Component, and transformed data are sent to selected Service Component.Multigroup industry Multiple Service Component in business each group of component can correspond respectively to honour an agreement multiple patterns of flow, and each Service Component is matched It is set to from the adapter that is attached thereto and receives transformed data, executing corresponding son according to transformed data honours an agreement flow.
In accordance with an embodiment of the present disclosure, the flow engine can be further configured to:Receive message queue MQ message;Root According to MQ message is received, interface flag, data and order status are obtained from configuration center.
In accordance with an embodiment of the present disclosure, the flow engine can be further configured to:In response to determining that executing interface carries out About, to the adapter transmission data and interface flag of flow setting of honouring an agreement for the son.
In accordance with an embodiment of the present disclosure, the configuration center can be further configured to storage data conversion configuration, and institute Stating flow engine can be further configured to:It honours an agreement in response to determining that execution is asynchronous, data conversion configuration is obtained from configuration center, It is configured according to the data conversion and executes data conversion, and transformed data are sent by MQ message.
In accordance with an embodiment of the present disclosure, the configuration center can be further configured to storage data verification item, and described System can also include authentication module, honour an agreement for the son wherein the authentication module is configurable to receive from Service Component The implementing result of flow;Data verification item is obtained from configuration center;According to the data verification item, it is determined whether successful execution institute Son is stated to honour an agreement flow;And in response to determining that son described in successful execution is honoured an agreement flow, changes the son and honour an agreement the flow shape of flow State.
Another aspect of the present disclosure provide it is a kind of supporting that multi-mode is honoured an agreement the method for flow, wherein the flow quilt of honouring an agreement It is split as multiple sons to honour an agreement flow, and is respectively arranged with adapter for flow of honouring an agreement per height and is connected to the adapter Multiple Service Component, multiple Service Component correspond respectively to honour an agreement multiple patterns of flow.Specifically, the method can wrap It includes:Obtain interface flag, data and order status;According to the data and order status, it is determined whether be able to carry out son and honour an agreement One of flow;It honours an agreement one of flow in response to being determined to execute son, the type configuration of honouring an agreement for flow of being honoured an agreement according to the son determines Execute asynchronous honour an agreement or interface is honoured an agreement;In response to determining that executing interface honours an agreement, and the data and interface flag are sent to and are directed to The son is honoured an agreement the adapter of flow setting;One of multiple Service Component that the adapter selects to be connected according to interface flag, And convert the data to data corresponding with selected Service Component;And transformed data are sent to the industry It is engaged in component, honours an agreement flow to execute the son by the Service Component.
In accordance with an embodiment of the present disclosure, the method can also include:Receive message queue MQ message;And according to reception To MQ message, interface flag, data and order status are obtained.
In accordance with an embodiment of the present disclosure, the method can also include:It honours an agreement in response to determining that execution is asynchronous, obtains data Conversion configurations configure according to the data conversion and execute data conversion, and send transformed data by MQ message.
In accordance with an embodiment of the present disclosure, the method can also include:The Service Component honours an agreement the son flow Implementing result is sent to authentication module;Authentication module obtains data verification item, and according to the data verification item, it is determined whether at Work(executes the son and honours an agreement flow;And in response to determining that son described in successful execution is honoured an agreement flow, changes the son and honour an agreement flow Flow state.
Another aspect of the present disclosure provide it is a kind of supporting that multi-mode is honoured an agreement the system of flow, wherein the flow quilt of honouring an agreement It is split as multiple sons to honour an agreement flow, and is respectively arranged with adapter for flow of honouring an agreement per height and is connected to the adapter Multiple Service Component, multiple Service Component correspond respectively to honour an agreement multiple patterns of flow.Specifically, the system can wrap It includes:Memory is configured to storage executable instruction;And processor, it is connected with the memory, and be configured to execute memory The executable instruction of middle storage, to execute following operation:Receive message queue MQ message;According to MQ message is received, acquisition connects Mouth label, data and order status;Determine whether to be able to carry out son according to data and order status to honour an agreement one of flow;In response to It is determined to execute son and honour an agreement one of flow, the type configuration of honouring an agreement for flow of being honoured an agreement according to the son determines and executes synchronous different stride About or interface is honoured an agreement;In response to determining that executing interface honours an agreement, and the data and interface flag are sent to and are honoured an agreement stream for the son The adapter of journey configuration;One of multiple Service Component that the adapter selects the connection according to interface flag are controlled, and will The data are converted to data corresponding with selected Service Component;And transformed data are sent to the service groups Part is honoured an agreement flow to execute the son by the Service Component.
Another aspect of the present disclosure provides a kind of non-volatile memory medium, is stored with computer executable instructions, institute Instruction is stated when executed for realizing method as described above.
Another aspect of the present disclosure provides a kind of computer program, and the computer program, which includes that computer is executable, to be referred to It enables, described instruction is when executed for realizing method as described above.
In accordance with an embodiment of the present disclosure, it honours an agreement flow and for honouring an agreement per height since the flow that will honour an agreement is subdivided into multiple sons The corresponding adapter of flow setting and the multiple Service Component being connected with the adapter, wherein the multiple Service Component point Therefore the multiple patterns for the flow that Dui Yingyu not honour an agreement can solve to be difficult to build multi-mode flow of honouring an agreement at least partly The problem of mould, specifically by the way that complicated flow scheme design of honouring an agreement is independent micro services, significantly reduces answering for flow of honouring an agreement Miscellaneous degree improves the scalability and maintainability of system, solves the problems, such as that electric business transaction system is excessively complicated.
Description of the drawings
By referring to the drawings to the description of the embodiment of the present disclosure, the above-mentioned and other purposes of the disclosure, feature and Advantage will be apparent from, in the accompanying drawings:
Fig. 1 show can apply according to the support multi-mode of the embodiment of the present disclosure honour an agreement flow method exemplary system System framework;
Fig. 2 diagrammatically illustrate it is according to an embodiment of the present disclosure support multi-mode honour an agreement flow system structural representation Figure;
Fig. 3 diagrammatically illustrate it is according to an embodiment of the present disclosure support multi-mode honour an agreement flow method flow chart;
Fig. 4 is diagrammatically illustrated to be applied to method according to an embodiment of the present disclosure reduce the son of inventory and honours an agreement flow Process;
Fig. 5 diagrammatically illustrate it is according to an embodiment of the present disclosure support multi-mode honour an agreement flow system another realization The block diagram of mode;And
Fig. 6 shows the structural schematic diagram of the computer system of the terminal device suitable for being used for realizing the embodiment of the present disclosure.
Specific implementation mode
Hereinafter, will be described with reference to the accompanying drawings embodiment of the disclosure.However, it should be understood that these descriptions are only exemplary , and it is not intended to limit the scope of the present disclosure.In addition, in the following description, descriptions of well-known structures and technologies are omitted, with Avoid unnecessarily obscuring the concept of the disclosure.
Term as used herein is not intended to limit the disclosure just for the sake of description specific embodiment.Used here as Word " one ", " one (kind) " and "the" etc. also should include " multiple ", " a variety of " the meaning, unless in addition context clearly refers to Go out.In addition, the terms "include", "comprise" as used herein etc. show the presence of the feature, step, operation and/or component, But it is not excluded that other one or more features of presence or addition, step, operation or component.
There are all terms (including technical and scientific term) as used herein those skilled in the art to be generally understood Meaning, unless otherwise defined.It should be noted that term used herein should be interpreted that with consistent with the context of this specification Meaning, without should by idealization or it is excessively mechanical in a manner of explain.
Shown in the drawings of some block diagrams and/or flow chart.It should be understood that some sides in block diagram and/or flow chart Frame or combinations thereof can be realized by computer program instructions.These computer program instructions can be supplied to all-purpose computer, The processor of special purpose computer or other programmable data processing units, to which these instructions can be with when being executed by the processor Create the device for realizing function/operation illustrated in these block diagrams and/or flow chart.
Therefore, the technology of the disclosure can be realized in the form of hardware and/or software (including firmware, microcode etc.).Separately Outside, the technology of the disclosure can take the form of the computer program product on the computer-readable medium for being stored with instruction, should Computer program product uses for instruction execution system or instruction execution system is combined to use.In the context of the disclosure In, computer-readable medium can be the arbitrary medium can include, store, transmitting, propagating or transmitting instruction.For example, calculating Machine readable medium can include but is not limited to electricity, magnetic, optical, electromagnetic, infrared or semiconductor system, device, device or propagation medium. The specific example of computer-readable medium includes:Magnetic memory apparatus, such as tape or hard disk (HDD);Light storage device, such as CD (CD-ROM);Memory, such as random access memory (RAM) or flash memory;And/or wire/wireless communication link.
Embodiment of the disclosure, which provides, a kind of supporting that multi-mode is honoured an agreement the system and method for flow.This method will be by that will answer Miscellaneous flow scheme design of honouring an agreement is independent micro services, significantly reduces the complexity for flow of honouring an agreement, and improves the expansible of system Property and maintainability, solve the problems, such as electric business transaction system excessively it is complicated.
Fig. 1 show can apply according to the support multi-mode of the embodiment of the present disclosure honour an agreement flow method exemplary system System framework 100.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105 (this framework is only example, and the establishment for including in specific framework can be according to the adjustment of application concrete condition).Network 104 to The medium of communication link is provided between terminal device 101,102,103 and server 105.Network 104 may include various connections Type, such as wired, wireless communication link or fiber optic cables etc..
User can be interacted by network 104 with server 105 with using terminal equipment 101,102,103, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 101,102,103 The application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform software etc..
Terminal device 101,102,103 can be the various electronic equipments with display screen and supported web page browsing, packet Include but be not limited to smart mobile phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 105 can be to provide the server of various services, such as utilize terminal device 101,102,103 to user The shopping class website browsed provides the back-stage management server (merely illustrative) supported.Back-stage management server can be to receiving To the data such as information query request analyze etc. processing, and (such as target push information, product are believed by handling result Breath -- merely illustrative) feed back to terminal device.
The general by servicing of the method for flow it should be noted that the support multi-mode that the embodiment of the present disclosure is provided is honoured an agreement Device 105 executes, and correspondingly, the honour an agreement system of flow of multi-mode is supported to be generally positioned in server 105.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
Fig. 2 diagrammatically illustrate it is according to an embodiment of the present disclosure support multi-mode honour an agreement flow system 200 structure Schematic diagram.
As shown in Fig. 2, system 200 includes configuration center 210, flow engine 220, multiple adapters according to this embodiment 230 and multigroup Service Component 240.
Configuration center 210 is configurable to storage and the relevant various information of flow of honouring an agreement, for example, interface flag 210-1, Data 210-2 and order status 210-3.Specifically, configuration center 210 can be implemented as database or various types of storages Device, for example, non-volatile or form of volatile memory memory.Memory can be the read-only storage of electrically erasable Device (EEPROM), flash memory, and/or hard disk drive.Information in configuration center 210 can also be stored in network in a distributed manner On.
Flow engine 220 can be used for controlling multiple sons and honour an agreement flow, wherein the multiple son is honoured an agreement, flow is by the shoe About flow is split, and is honoured an agreement flow for example, the flow that can will honour an agreement is split as following son:Lower buying order, lower outbound list, passback Air Way Bill No., passback waybill track message, order interception, cancellation of order reimbursement and reduce inventory.For seven above-mentioned block assemblies, it is An interface adapter is arranged in each component, and the different editions system of identical services is docked by adapter.For certain Special circumstances under scene, also according to mode adapter, often introduce a flow, all establish if exceeding above-mentioned seven flows One component and adapter are corresponding with the business model.It should be noted that the disclosure be only will illustratively honour an agreement flow be divided into it is above-mentioned Seven sons are honoured an agreement flow, and the present disclosure is not limited to this fractionation schemes, and may include that more or fewer sons are honoured an agreement flow.This Outside, in data structure, the disclosure takes json formats to interact, the system that can dynamically support different editions;So as to According to different business scenarios, increase and decrease and change the calling to component.Specifically, flow engine 220 can be configured as basis The information of above-mentioned data and order status, it is determined whether be able to carry out son and honour an agreement one of flow.That is, according to the data and order State determines and executes which kind of son is honoured an agreement flow.For example, flow engine 220 is configurable to receive message queue (MQ) message;Root According to MQ message is received, the information such as interface flag, data and order status are obtained from configuration center 210.Specifically, flow engine 220 call configuration center interface, can obtain interface flag, data and order shape according to the process code included by MQ message State.Then, flow engine 220 can honour an agreement one of flow in response to being determined to execute son, further be honoured an agreement stream according to the son The type configuration of honouring an agreement of journey determines and executes asynchronous honour an agreement or interface is honoured an agreement.That is, the type of honouring an agreement according to flow engine is matched It sets, honours an agreement to judge that the asynchronous of Asynchronous message transfer is honoured an agreement or executed to the interface for executing synchronization call interface.It is executed when determining When interface is honoured an agreement, the adapter transmission data and interface flag of the flow engine 220 to flow setting of honouring an agreement for the son. That is, data and interface flag are passed to adapter, adapter is in down-stream system interface container, according to interface flag selection pair The interface (or Service Component) answered, and according to the data conversion configuration file in flow engine, Json formatted datas are converted It is corresponding data object to handle the data via the interface or Service Component.
In another embodiment, configuration center 210 can also store data conversion configuration, and flow engine 220 is further It is configured as:It honours an agreement in response to determining that execution is asynchronous, obtains data conversion configuration from configuration center 210, matched according to data conversion Execution data conversion is set, and transformed data are sent by MQ message.That is, if it is determined that execution is asynchronous to honour an agreement, then It is configured according to the data conversion of configuration center, change data simultaneously sends out transformed data by MQ message, then terminates this time It honours an agreement.
In addition, system 200 further includes multiple adapters 230, for example, adapter 230-1, adapter 230-2 and adapter 230-3.Each adapter and multiple sons one of flow of honouring an agreement are corresponding, and each adapter is configurable to reception from flow engine 220 data sent and interface flag select more in the Service Component group being connect with the adapter according to interface flag 210-1 One of a Service Component converts data to data corresponding with selected Service Component, and transformed data is sent To selected Service Component.
In addition, system 200 further includes multigroup Service Component 240, for example, Service Component group 240-1, Service Component group 240- 2 and Service Component group 240-3, and each Service Component group includes multiple Service Component, and multiple Service Component in each group Correspond respectively to honour an agreement multiple patterns of flow.Each Service Component is configured to receive from the adapter being attached thereto transformed Data execute son according to transformed data and honour an agreement flow.
Alternatively, configuration center 210 is also configured as storage data verification item, and system 200 further includes authentication module, It is configured to receive the implementing result for flow of honouring an agreement for son from Service Component;Data verification item is obtained from configuration center 210;According to Data verification item, it is determined whether successful execution is honoured an agreement flow;And in response to determining that successful execution is honoured an agreement flow, change son The flow state for flow of honouring an agreement, that is, flow state is completed to be done change into.
The structure for the system of flow of honouring an agreement the foregoing describe support multi-mode according to an embodiment of the present disclosure.By using Above structure, system according to an embodiment of the present disclosure can be in the case where not needing external system rectification, supporting interface string Journey about, while supporting asynchronous based on Message Processing to honour an agreement.In addition, when a newly-increased son honours an agreement flow, due to the use of micro- The workload developed for down-stream system can be obviously reduced in the pattern of serviceization.
Fig. 3 diagrammatically illustrate it is according to an embodiment of the present disclosure support multi-mode honour an agreement flow method 300 flow Figure.It honours an agreement flow as described above, flow of honouring an agreement can be split as multiple sons, and is respectively arranged with for flow of honouring an agreement per height Adapter and the multiple Service Component for being connected to the adapter, multiple Service Component correspond respectively to honour an agreement multiple moulds of flow Formula.In the present embodiment, for example, son is honoured an agreement, flow may include:Lower buying order, lower outbound list, passback Air Way Bill No., passback waybill It tracks message, order interception, cancellation of order reimbursement and reduces inventory.
As shown in figure 3, this method 300 is included in operation S310, message queue MQ message is received.For example, flow engine 320 Message system can be read, to obtain the process code in message.
Then, interface flag, data and order status are obtained according to the MQ message received in operation S320.Specifically Ground, flow engine 320 call configuration center interface, can obtain interface flag, data and order shape according to above-mentioned process code State.
In operation S330, determines whether to be able to carry out son according to data and order status and honour an agreement one of flow.That is, according to number According to and order status, determine and execute which kind of son is honoured an agreement flow.
In operation S340, honour an agreement one of flow (S330- is) in response to being determined to execute son, according to honouring an agreement, type is matched It sets, determines and execute asynchronous honour an agreement or interface is honoured an agreement.In addition, determination can not execute son honour an agreement one of flow in the case of (S330- is no) terminates this method.
In operation S350, in response to determining that executing interface honours an agreement (S340- is), and data and interface flag are sent to and are directed to The son honour an agreement flow configuration adapter.That is, data and interface flag are passed to adapter, so that adapter selection is corresponding Interface or Service Component are honoured an agreement flow to execute son.
In operation S360, one of multiple Service Component that adapter selects to be connected according to interface flag, and data are turned It is changed to data corresponding with selected Service Component.Specifically, adapter according to interface flag select corresponding interface or Service Component, and according to the data conversion configuration file in flow engine, Json formatted datas are converted into corresponding data pair As so as to via the interface or Service Component processing data.
In operation S370, transformed data are sent to Service Component, are honoured an agreement flow to execute son by Service Component.
It should be noted that in another case, if it is determined that execution is asynchronous to honour an agreement (S340- is no), then in operation 355, obtains number According to conversion configurations.Then, it in operation S365, is configured according to data conversion and executes data conversion, and in operation S375, disappeared by MQ Breath sends transformed data.That is, if it is determined that execution is asynchronous to honour an agreement, then is matched according to the data conversion of configuration center It sets, change data simultaneously sends out transformed data by MQ message, then terminates this time and honours an agreement.
In another embodiment, this method further includes:Service Component will be sent to for the implementing result of sub flow of honouring an agreement Authentication module.For example, Service Component can be tied the execution via flow engine by the way that implementing result is returned to flow engine Fruit is sent to authentication module.Alternatively, execute the Service Component of sub flow of honouring an agreement directly can be sent to verification by implementing result Module is verified.Authentication module obtains data verification item, and according to data verification item, really after receiving implementing result It is fixed that whether successful execution is honoured an agreement flow;And in response to determining that successful execution is honoured an agreement flow, changes son and honour an agreement the stream of flow Journey state.After the state for changing sub flow of honouring an agreement, the upstream and downstream configuration in being configured according to flow engine continues to execute the party Method.That is, by MQ message, sends and execute next height and honour an agreement the instruction of flow, to turn again to opening for this method Begin.
The method for flow of honouring an agreement the foregoing describe support multi-mode according to an embodiment of the present disclosure.By using above-mentioned side Method, can be in the case where not needing external system rectification, and supporting interface is serially honoured an agreement, while being supported based on the different of Message Processing Stride is about.In addition, when a newly-increased son honours an agreement flow, due to the use of the pattern of micro services, can be obviously reduced as downstream The workload of system development.
It reduces the son of inventory to execute below and honours an agreement that describe support according to an example embodiment of the present disclosure for flow more Pattern is honoured an agreement the method for flow.With reference to figure 4, method shown in Fig. 3 is described further in conjunction with specific embodiments.
Fig. 4 is diagrammatically illustrated to be applied to method according to an embodiment of the present disclosure reduce the son of inventory and honours an agreement flow Process.
Specifically, for from structure, support multi-mode according to an example embodiment of the present disclosure is honoured an agreement the system of flow Can be with as shown in Fig. 2, specifically, including configuration center 410, flow engine 420, adapter 430 and Service Component 440.It is above-mentioned The structure of component is identical as the structure of component shown in Fig. 2, therefore will no longer repeat.
When above system be used for executes for example reduce inventory son honour an agreement flow when, first operating S420-1, by flow Engine 420 receives MQ message.Then, in operation S420-3, flow engine 420 is according to the MQ message received, from configuration center 410 obtain various information, for example, interface flag, data and order status.In operation S420-5, flow engine 420 is according to acquisition Data and order status, determine and execute which kind of son is honoured an agreement flow.In this case, determine that executing the son for reducing inventory honours an agreement stream Journey.Then, in operation S420-7, flow engine 420 determines that executing asynchronous still interface of honouring an agreement carries out according to type configuration of honouring an agreement About.
In the case of executing interface and honouring an agreement, data and interface flag are sent to be directed to by flow engine 420 reduces inventory Son honour an agreement the adapter 430 of flow setting, that is to say, that in operation S430-1, adapter from flow engine receive data and Interface flag.Then, operation S430-3, the adapter 430 according to interface flag, select the Service Component being attached thereto it One.In one embodiment, the number of Service Component can be corresponding with the model number for flow of honouring an agreement.For example, for For the Three models of above-mentioned cross-border e-commerce, 3 can be separately connected for the honour an agreement adapter of flow setting of every height Service Component is corresponded with above-mentioned Three models respectively.Certainly, if the component of two or more arbitrary patterns can phase It is mutually compatible, then less Service Component can be set.In addition, when adding the business of new model, it can be only by by new industry Business component is connected with the adapter, to realize the demand for increasing new model business.Between having selected suitable Service Component, In operation S430-5, the data received are converted to data corresponding with the Service Component by adapter 430, and by the data It is sent to corresponding Service Component.
That is, final, in operation S440-1, selected Service Component 440 receives transformed data from adapter, And in operation S440-3, is executed for the data and reduce the son of inventory and honour an agreement flow.
Honour an agreement after flow in addition, executing son in Service Component 440, implementing result can also be returned to flow engine with The implementing result is just sent to via flow engine authentication module is verified or the Service Component 440 can also Implementing result is directly sent to authentication module to verify.The data verification item that authentication module is configured via flow engine, sentences It is disconnected that whether successful execution is honoured an agreement flow.In response to determining that being successfully executed son honours an agreement flow, changes order status.Order shape After state changes, the upstream and downstream configuration in being configured according to flow engine continues flow torsion, and by MQ, transmission executes next Height is honoured an agreement the instruction of flow.The description in workflow 1 is turned again to, continues to honour an agreement.
The side to honour an agreement according to the support multi-mode of disclosure example embodiment is described for executing inventory and reduce above The specific implementation process of method.It should be noted that above description is merely exemplary, the limitation to the disclosure should not be construed as.According to this Each seed that the method that the support multi-mode of open example embodiment is honoured an agreement can be used for executing from flow fractionation of honouring an agreement is carried out About flow.By using the above method, complicated flow scheme design of honouring an agreement can be independent micro services, significantly reduce and honour an agreement The complexity of flow improves the scalability and maintainability of system, solves the problems, such as that electric business transaction system is excessively complicated.
Fig. 5 diagrammatically illustrate it is according to an embodiment of the present disclosure support multi-mode honour an agreement flow system another realization The block diagram of mode.
As shown in figure 5, system 500 include processor 510, computer readable storage medium 520, sender unit 530, with And signal receiver 540.The system 500 can execute the method described above with reference to Fig. 3, to support multi-mode to honour an agreement stream Journey.
Specifically, processor 510 for example may include general purpose microprocessor, instruction set processor and/or related chip group And/or special microprocessor (for example, application-specific integrated circuit (ASIC)), etc..Processor 510 can also include being used for caching The onboard storage device on way.Processor 510 can be performed for the method flow according to the embodiment of the present disclosure described with reference to figure 3 Different actions single treatment units either multiple processing units.
Computer readable storage medium 520, such as can include, store, transmitting, propagating or transmitting appointing for instruction Meaning medium.For example, readable storage medium storing program for executing can include but is not limited to electricity, magnetic, optical, electromagnetic, infrared or semiconductor system, device, Device or propagation medium.The specific example of readable storage medium storing program for executing includes:Magnetic memory apparatus, such as tape or hard disk (HDD);Optical storage Device, such as CD (CD-ROM);Memory, such as random access memory (RAM) or flash memory;And/or wire/wireless communication chain Road.
Computer readable storage medium 520 may include computer program 521, which may include generation Code/computer executable instructions make that the execution of processor 510 is for example retouched above in conjunction with Fig. 3 when being executed by processor 510 The method flow stated and its any deformation.
Computer program 521 can be configured with such as computer program code including computer program module.Example Such as, in the exemplary embodiment, the code in computer program 521 may include one or more program modules, such as including mould Block 521A, module 521B ....It should be noted that the dividing mode and number of module are not fixed, those skilled in the art It can be combined using suitable program module or program module according to actual conditions, when these program modules are combined by processor When 510 execution so that processor 510 can execute for example above in conjunction with method flow described in Fig. 3 and its any deformation.
In accordance with an embodiment of the present disclosure, processor 510 can be held using sender unit 530 and signal receiver 540 Row is above in conjunction with method flow described in Fig. 3 and its any deformation.
Below with reference to Fig. 6, it illustrates the computer systems 600 suitable for the terminal device for realizing the embodiment of the present disclosure Structural schematic diagram.Terminal device shown in Fig. 6 is only an example, to the function of the embodiment of the present application and should not use model Shroud carrys out any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and Execute various actions appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data. CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always Line 604.
It is connected to I/O interfaces 605 with lower component:Importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loud speaker etc.;Storage section 608 including hard disk etc.; And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because The network of spy's net executes communication process.Driver 610 is also according to needing to be connected to I/O interfaces 605.Detachable media 611, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on driver 610, as needed in order to be read from thereon Computer program be mounted into storage section 608 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed by communications portion 609 from network, and/or from detachable media 611 are mounted.When the computer program is executed by central processing unit (CPU) 601, executes and limited in the system of the application Above-mentioned function.
It should be noted that computer-readable medium shown in present application can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two arbitrarily combines.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or arbitrary above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to:Electrical connection with one or more conducting wires, just It takes formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type and may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In this application, can be any include computer readable storage medium or storage journey The tangible medium of sequence, the program can be commanded the either device use or in connection of execution system, device.And at this In application, computer-readable signal media may include in a base band or as the data-signal that a carrier wave part is propagated, Wherein carry computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By instruction execution system, device either device use or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to:Wirelessly, electric wire, optical cable, RF etc. or above-mentioned Any appropriate combination.
Flow chart in attached drawing and block diagram, it is illustrated that according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part for a part for one module, program segment, or code of table, above-mentioned module, program segment, or code includes one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, this is depended on the functions involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit can also be arranged in the processor, for example, can be described as:A kind of processor packet Include transmission unit, acquiring unit, determination unit and first processing units.Wherein, the title of these units is under certain conditions simultaneously The restriction to the unit itself is not constituted, for example, transmission unit is also described as " to the server-side sending object connected Obtain the unit of request ".
Embodiment of the disclosure is described above.But the purpose that these embodiments are merely to illustrate that, and It is not intended to limit the scope of the present disclosure.Although respectively describing each embodiment above, but it is not intended that each reality Use cannot be advantageously combined by applying the measure in example.The scope of the present disclosure is defined by the appended claims and the equivalents thereof.It does not take off From the scope of the present disclosure, those skilled in the art can make a variety of alternatives and modifications, these alternatives and modifications should all be fallen at this Within scope of disclosure.

Claims (11)

1. a kind of supporting that multi-mode is honoured an agreement the system of flow, the flow of honouring an agreement includes that multiple sons are honoured an agreement flow, which includes:
Configuration center is configured to storage and the honour an agreement relevant interface flag of flow, data and order status;
Flow engine is configured to according to the data and order status, it is determined whether is able to carry out multiple sons of the flow of honouring an agreement It honours an agreement one of flow;And it honours an agreement one of flow in response to being determined to execute multiple sons, is honoured an agreement the honouring an agreement of flow according to the son Type configuration determines and executes asynchronous honour an agreement or interface is honoured an agreement;
Multiple adapters, each adapter are arranged to corresponding with multiple sons one of flow of honouring an agreement, and each adapter configuration For:One of multiple Service Component in the Service Component group being connect with the adapter according to interface flag selection, will be described Data are converted to data corresponding with selected Service Component, and transformed data are sent to selected Service Component;
Multigroup Service Component, multiple Service Component in each group correspond respectively to honour an agreement multiple patterns of flow, each business Component Configuration is to receive transformed data from the adapter that is attached thereto, and executing corresponding son according to transformed data honours an agreement stream Journey.
2. system according to claim 1, wherein the flow engine is further configured to:
Receive message queue MQ message;
According to MQ message is received, interface flag, data and order status are obtained from configuration center.
3. system according to claim 1, wherein the flow engine is further configured to:
In response to determining that executing interface honours an agreement, to the adapter transmission data and interface mark of flow setting of honouring an agreement for the son Note.
4. system according to claim 1, wherein the configuration center is further configured to storage data conversion configuration, and
The flow engine is further configured to:It honours an agreement in response to determining that execution is asynchronous, obtaining data conversion from configuration center matches It sets, is configured according to the data conversion and execute data conversion, and transformed data are sent by MQ message.
5. system according to claim 1, wherein the configuration center is further configured to storage data verification item, and
The system also includes authentication modules, are configured to
The implementing result for flow of honouring an agreement for the son is received from Service Component;
Data verification item is obtained from configuration center;
According to the data verification item, it is determined whether son described in successful execution is honoured an agreement flow;And
In response to determining that son described in successful execution is honoured an agreement flow, changes the son and honour an agreement the flow state of flow.
6. a kind of supporting that multi-mode is honoured an agreement the method for flow, honour an agreement flow wherein the flow of honouring an agreement is split as multiple sons, and It is respectively arranged with adapter for every height flow of honouring an agreement and is connected to multiple Service Component of the adapter, multiple service groups Part corresponds respectively to honour an agreement multiple patterns of flow, the method includes:
Obtain interface flag, data and order status;
According to the data and order status, it is determined whether be able to carry out son and honour an agreement one of flow;
It honours an agreement one of flow in response to being determined to execute son, the type configuration of honouring an agreement for flow of being honoured an agreement according to the son is determined and executed It is asynchronous to honour an agreement or interface is honoured an agreement;
In response to determining that executing interface honours an agreement, the data and interface flag are sent to and are honoured an agreement the suitable of flow setting for the son Orchestration;
The adapter selects one of multiple Service Component for being connected according to interface flag, and converts the data to and institute The corresponding data of Service Component of choosing;And
Transformed data are sent to the Service Component, are honoured an agreement flow to execute the son by the Service Component.
7. according to the method described in claim 6, further including:
Receive message queue MQ message;And
According to MQ message is received, interface flag, data and order status are obtained.
8. according to the method described in claim 6, further including:
It honours an agreement in response to determining that execution is asynchronous, obtains data conversion configuration, configured according to the data conversion and execute data conversion, And transformed data are sent by MQ message.
9. according to the method described in claim 6, further including:
The honour an agreement implementing result of flow of the son is sent to authentication module by the Service Component;
Authentication module obtains data verification item, and according to the data verification item, it is determined whether son described in successful execution is honoured an agreement stream Journey;And
In response to determining that son described in successful execution is honoured an agreement flow, changes the son and honour an agreement the flow state of flow.
10. a kind of supporting that multi-mode is honoured an agreement the system of flow, honour an agreement flow wherein the flow of honouring an agreement is split as multiple sons, and It is respectively arranged with adapter for every height flow of honouring an agreement and is connected to multiple Service Component of the adapter, multiple service groups Part corresponds respectively to honour an agreement multiple patterns of flow, the system comprises:
Memory is configured to storage executable instruction;
Processor is connected with the memory, and is configured to execute the executable instruction stored in memory, to execute following behaviour Make:
Receive message queue MQ message;
According to MQ message is received, interface flag, data and order status are obtained;
Determine whether to be able to carry out son according to data and order status to honour an agreement one of flow;
It honours an agreement one of flow in response to being determined to execute son, the type configuration of honouring an agreement for flow of being honoured an agreement according to the son is determined and executed Synchronous asynchronous is honoured an agreement or interface is honoured an agreement;
In response to determining that executing interface honours an agreement, the data and interface flag are sent to and are honoured an agreement the suitable of flow configuration for the son Orchestration;
Control one of multiple Service Component that the adapter selects the connection according to interface flag, and by the data conversion For data corresponding with selected Service Component;And
Transformed data are sent to the Service Component, are honoured an agreement flow to execute the son by the Service Component.
11. a kind of computer readable storage medium, is stored thereon with executable instruction, which makes processing when being executed by processor Device perform claim requires the method described in any one of 5-8 claims.
CN201710306321.8A 2017-05-03 2017-05-03 Support that multi-mode is honoured an agreement the system and method for flow Pending CN108805379A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710306321.8A CN108805379A (en) 2017-05-03 2017-05-03 Support that multi-mode is honoured an agreement the system and method for flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710306321.8A CN108805379A (en) 2017-05-03 2017-05-03 Support that multi-mode is honoured an agreement the system and method for flow

Publications (1)

Publication Number Publication Date
CN108805379A true CN108805379A (en) 2018-11-13

Family

ID=64053674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710306321.8A Pending CN108805379A (en) 2017-05-03 2017-05-03 Support that multi-mode is honoured an agreement the system and method for flow

Country Status (1)

Country Link
CN (1) CN108805379A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111967628A (en) * 2020-07-23 2020-11-20 北京白龙马云行科技有限公司 Order service method and system
CN112100128A (en) * 2020-07-27 2020-12-18 山东浪潮通软信息科技有限公司 Metadata-based method and device for recording fulfillment state
CN112686418A (en) * 2019-10-18 2021-04-20 北京京东振世信息技术有限公司 Method and device for predicting performance timeliness
CN113762874A (en) * 2021-03-04 2021-12-07 北京沃东天骏信息技术有限公司 Method and device for determining target fulfillment network
CN114466055A (en) * 2021-12-27 2022-05-10 天翼云科技有限公司 Service processing method and device
CN114915666A (en) * 2022-05-13 2022-08-16 北京有竹居网络技术有限公司 Interface adaptation method, device, storage medium and program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025653A (en) * 2010-06-04 2011-04-20 西本新干线股份有限公司 Enterprise service bus and message processing method thereof
CN102446309A (en) * 2010-10-13 2012-05-09 清华大学 Workflow dynamic planning system and method based on flow pattern
CN103413226A (en) * 2013-07-24 2013-11-27 通联支付网络服务股份有限公司 Electronic commerce multi-industry sharing platform system
US20140006091A1 (en) * 2012-06-29 2014-01-02 International Business Machines Corporation Using a force-based paradigm for managing operational fulfillment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025653A (en) * 2010-06-04 2011-04-20 西本新干线股份有限公司 Enterprise service bus and message processing method thereof
CN102446309A (en) * 2010-10-13 2012-05-09 清华大学 Workflow dynamic planning system and method based on flow pattern
US20140006091A1 (en) * 2012-06-29 2014-01-02 International Business Machines Corporation Using a force-based paradigm for managing operational fulfillment
CN103413226A (en) * 2013-07-24 2013-11-27 通联支付网络服务股份有限公司 Electronic commerce multi-industry sharing platform system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112686418A (en) * 2019-10-18 2021-04-20 北京京东振世信息技术有限公司 Method and device for predicting performance timeliness
CN111967628A (en) * 2020-07-23 2020-11-20 北京白龙马云行科技有限公司 Order service method and system
CN112100128A (en) * 2020-07-27 2020-12-18 山东浪潮通软信息科技有限公司 Metadata-based method and device for recording fulfillment state
CN112100128B (en) * 2020-07-27 2024-09-27 浪潮通用软件有限公司 Metadata-based method and device for recording performance state
CN113762874A (en) * 2021-03-04 2021-12-07 北京沃东天骏信息技术有限公司 Method and device for determining target fulfillment network
CN114466055A (en) * 2021-12-27 2022-05-10 天翼云科技有限公司 Service processing method and device
CN114466055B (en) * 2021-12-27 2024-04-26 天翼云科技有限公司 Service processing method and device
CN114915666A (en) * 2022-05-13 2022-08-16 北京有竹居网络技术有限公司 Interface adaptation method, device, storage medium and program product

Similar Documents

Publication Publication Date Title
CN108805379A (en) Support that multi-mode is honoured an agreement the system and method for flow
CN109146490A (en) block generation method, device and system
CN108924197A (en) Electronics price tag system and its data communications method
CN109766082A (en) The method and apparatus that the application program page jumps
CN107066609A (en) Image display method and device
CN109995877A (en) Information-pushing method and device
CN109995801A (en) A kind of method for message transmission and device
CN110019125A (en) The method and apparatus of data base administration
CN109257320A (en) Message storage method and device
CN108776692A (en) Method and apparatus for handling information
CN109981322A (en) The method and apparatus of cloud resource management based on label
CN110033337A (en) The method and apparatus of order production
CN109241033A (en) The method and apparatus for creating real-time data warehouse
CN110020329A (en) For generating the methods, devices and systems of webpage
CN107656768A (en) Control the method and its system of page jump
CN110336865A (en) Service calling method, device, storage medium and electronic equipment
CN109710905A (en) Document synergic editing method, device, storage medium and electronic equipment
CN108733317A (en) Date storage method and device
CN110445632A (en) A kind of method and apparatus for preventing client collapse
CN110070394A (en) Data processing method, system, medium and calculating equipment
CN107844931A (en) Information processing method and device
CN110505074A (en) A kind of application module integrated approach and device
CN109829723A (en) The method and apparatus for generating business voucher
CN107347093A (en) Collocation method and device for distributed server system
CN107844932A (en) Order processing method and apparatus

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181113