CN108958796A - service request processing method and device, service request processing system - Google Patents

service request processing method and device, service request processing system Download PDF

Info

Publication number
CN108958796A
CN108958796A CN201710367400.XA CN201710367400A CN108958796A CN 108958796 A CN108958796 A CN 108958796A CN 201710367400 A CN201710367400 A CN 201710367400A CN 108958796 A CN108958796 A CN 108958796A
Authority
CN
China
Prior art keywords
code
flow
container
component
flow template
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
Application number
CN201710367400.XA
Other languages
Chinese (zh)
Other versions
CN108958796B (en
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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710367400.XA priority Critical patent/CN108958796B/en
Publication of CN108958796A publication Critical patent/CN108958796A/en
Application granted granted Critical
Publication of CN108958796B publication Critical patent/CN108958796B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30007Arrangements for executing specific machine instructions to perform operations on data operands
    • G06F9/30036Instructions to perform operations on packed data, e.g. vector, tile or matrix operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/72Code refactoring
    • 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/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline or look ahead
    • G06F9/3836Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Stored Programmes (AREA)

Abstract

A kind of service request processing method and device, service request processing system, wherein method includes: the service request that flow engine receives the carrying required parameter value that request end is sent;Flow engine determines the target flow template comprising at least one flow object corresponding with the required parameter value carried in the request of data according to flow template file;Flow engine is from acquisition service code corresponding with each flow object in the target flow template in code components container and loads, the code components container storage has the universal code component and individualized code component extracted in advance, and the code in the code components container is updated by Dynamical Deployment mode;Flow engine successively executes the service code according to the sequence of flow object in the target flow template, obtains implementing result and is back to the request end.The embodiment of the present application can effectively promote maintainability, the scalability of flow engine.

Description

Service request processing method and device, service request processing system
Technical field
This application involves technical field of software development more particularly to a kind of service request processing method and device, business to ask Seek processing system.
Background technique
The a part of flow engine (Process Engine) as application system, being provided has certainly each application system What is be set for determines the Core Solutions such as information transmitting routing, content rating according to the different of role, the division of labor and condition.In phase In the technology of pass, flow engine can be disposed on the application server, when needing to increase new processing logic or function, it usually needs For the new realization code of new processing logic development, and it is deployed to application server again after new realization code is compiled On be updated upgrading.
Summary of the invention
In view of this, the application provides a kind of service request processing method and device, service request processing system.
To achieve the above object, technical solution provided by the present application is as follows:
According to a first aspect of the present application, a kind of service request processing method is proposed, comprising:
Flow engine receives the service request for the carrying required parameter value that request end is sent;
Flow engine determines packet corresponding with the required parameter value carried in the request of data according to flow template file Target flow template containing at least one flow object, the flow template file include predetermined flow template and request The corresponding relationship of parameter value;
Flow engine is from obtaining corresponding with each flow object in target flow template industry in code components container Business code simultaneously loads, and the code components container storage has the universal code component and individualized code component extracted in advance, institute The code stated in code components container is updated by Dynamical Deployment mode;
Flow engine successively executes the service code according to the sequence of flow object in the target flow template, obtains Implementing result is simultaneously back to the request end.
According to a second aspect of the present application, a kind of service request processing unit is proposed, is applied in flow engine, the dress It sets including request reception unit, flow template determination unit, Code obtaining unit and code execution unit, in which:
The request reception unit receives the service request for the carrying required parameter value that request end is sent;
The flow template determination unit is determining to join with the request carried in the request of data according to flow template file The corresponding target flow template comprising at least one flow object of numerical value, the flow template file include predetermined stream The corresponding relationship of journey template and required parameter value;
The Code obtaining unit from code components container obtain with the target flow template in each flow object Corresponding service code simultaneously loads, and the code components container storage has the universal code component and individualized code extracted in advance Component, the code in the code components container are updated by Dynamical Deployment mode;
The code execution unit successively executes the business according to the sequence of flow object in the target flow template Code obtains implementing result and is back to the request end.
According to the third aspect of the application, a kind of service request processing system, including flow engine, code update are proposed Server, static component container and dynamic assembly container;
The static component container storage has universal code component, and the dynamic assembly container storage has individualized code group Part;
The code update server be used for by way of Dynamical Deployment to the code in the dynamic assembly container into Row updates;
The flow engine includes that request reception unit, flow template determination unit, Code obtaining unit and code execute Unit, in which:
The request reception unit receives the service request for the carrying required parameter value that request end is sent;
The flow template determination unit is determining to join with the request carried in the request of data according to flow template file The corresponding target flow template comprising at least one flow object of numerical value, the flow template file include predetermined stream The corresponding relationship of journey template and required parameter value;
The Code obtaining unit obtains and the target flow template from static component container and dynamic assembly container In the corresponding service code of each flow object and load;
The code execution unit successively executes the business according to the sequence of flow object in the target flow template Code obtains implementing result and is back to the request end.
By above technical scheme as can be seen that the embodiment of the present application can be general by taking out different business scene Code (universal code component) and each business scenario cannot be general individualized code component, and these code components are stored In code components container.It, can be according to the required parameter value carried in service request, really during service request processing The fixed corresponding target flow template comprising at least one flow object is then obtained from above-mentioned code components container Required service code simultaneously loads, finally, successively execute according to the sequence of flow object in the target flow template described in Service code obtains implementing result and is back to the request end.The embodiment of the present application can effectively promote tieing up for flow engine Shield property, scalability.In addition, in the embodiment of the present application, the code in the code components container can pass through dynamic state part management side Formula is updated, so that the flexibility of code deployment is improved by combining flow engine technology and Dynamical Deployment technology, it is real The update upgrading that new realization logic is completed in the case where not restarting application server now, reduces code development cost.
Detailed description of the invention
Fig. 1 is a kind of system architecture shown according to an exemplary embodiment;
Fig. 2 is a kind of process of service request processing method shown according to an exemplary embodiment;
Fig. 3 is the hardware structure of a kind of electronic equipment shown according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of service request processing unit shown according to an exemplary embodiment.
Specific embodiment
Fig. 1 is a kind of system architecture shown according to an exemplary embodiment, the system may include: application server, Code update server, static component container and dynamic assembly container.Wherein, it is deployed with flow engine on application server, Static component container and dynamic assembly container can be with persistences in certain database (Database), code update server On be deployed with backstage management procedure, to be updated to the code components stored in database, wherein SQL language can be passed through Sentence realizes the operation for increasing, deleting, change, looking into access above-mentioned database.Application server is for receiving the business that request end is sent It requests and executes corresponding processing movement, and return to corresponding processing result.For example, above-mentioned request end can for external system or The client device that user uses.Above-mentioned application server needs to meet the demand of different business scenarios, for different industry Business scene, can realize by the inclusion of the service request of different required parameter values.Typically, for different business fields Scape, the required operation flow handled of flow engine is also different.This just determines under different business scene, flow engine The difference of the code of required execution.For this purpose, at least two different business scenarios can be taken out in advance in the embodiment of the present application Can general code components (referred to as " universal code component ") and different business scene cannot be general code components (referred to as " individualized code component "), for the ease of the management of code, execution efficiency is improved, above-mentioned static component container can be used for depositing It puts and states universal code component, above-mentioned dynamic assembly container can be used for storing above-mentioned individualized code component.Flow engine exists After receiving service request, then required generation can be got respectively from above-mentioned static component container, dynamic assembly container Code character part simultaneously executes.Come specifically to describe realization process below with reference to Fig. 2.
As shown in Fig. 2, this method can be applied to flow engine, which can be deployed on application server, example Such as, the effect of the application server, which can be, provides data service for outside.In one embodiment, this method includes the following steps 101~104, in which:
In a step 101, the service request for the carrying required parameter value that request end is sent is received.
For example, the required parameter in each service request from request end is as follows:
" serviceType ", " tradeType " and " sceneType ";
Wherein, " serviceType " can represent service type, and " tradeType " can represent type of transaction, " SceneType " can represent scene type.
It is required in each service request comprising value corresponding with above-mentioned each required parameter, for example, " serviceType " =" TRANS_IN ", " tradeType "=" PKG_BUY ", " sceneType "=" QIANBAO01 ".
In a step 102, according to flow template file, determination is corresponding with the required parameter value carried in the request of data The target flow template comprising at least one flow object, wherein the flow template file include predetermined process The corresponding relationship of template and required parameter value.
Since different business scenarios corresponds to different operation flows, need to realize by different service requests. In the embodiment of the present application, it can be described by the inclusion of the flow template of at least one flow object needed for some business scenario The operation flow to be executed (including which process, the order etc. between each process).For this reason, it may be necessary to predefine process mould The corresponding relationship of plate and required parameter value, to can quickly be determined corresponding after receiving a service request Target flow template.
For example, for describing a kind of exemplary flow template text of the corresponding relationship of flow template and required parameter value Code content in part is as follows:
Wherein, by above-mentioned code content, when in service request required parameter " serviceType ", " TradeType ", " sceneType " value be respectively " TRANS_IN ", " PKG_BUY ", " QIANBAO01 " when, be matched to Target flow template is made of following flow object (according to precedence):
" PRO-TRANS-IN-PKG-BUY-INIT " (process one);
" PRO-TRANS-IN-PKG-BUY-PRECHECK " (process two);
" PRO-TRANS-IN-PKG-BUY-APPLY " (process three);
" PRO-TRANS-IN-PKG-BUY-CONFIRM " (process four);
" PRO-TRANS-IN-SUCCESS-RESULT-RETURN " or
" PRO-TRANS-IN-FAIL-RESULT-RETURN " (process five).
After step 102, flow engine needs to instantiate each flow object for including in the target flow template.? In the programming of object-oriented, usually the process referred to as instantiation with class creation object.
Above-mentioned example code only lists the flow template under a kind of business scenario, in actual moving process, developer Corresponding flow template accordingly can be set for other business scenarios in advance, and in the form of code according to actual needs It is added in above-mentioned flow template file, will not enumerate herein.It should be noted that according to the development of business, developer The corresponding relationship in above-mentioned flow template file can be dynamically adjusted, so-called dynamic adjustment, which refers to, is not restarting application server In the case of be adjusted.Modified flow template file can be uploaded to the database that can be accessed by flow engine by developer In, flow engine can route operation flow according to the flow template file after change when perceiving change.
In step 103, corresponding with each flow object in the target flow template from being obtained in code components container Service code and load, wherein code components container storage has the universal code component extracted in advance and personalized generation Code character part, the code in the code components container are updated by Dynamical Deployment mode.
In an alternative embodiment, the code components container may include the static component that storage has universal code component Container and storage have the dynamic assembly container of individualized code component;Wherein, the code in the dynamic assembly container passes through dynamic State deployment way is updated." Dynamical Deployment " is alternatively referred to as " heat deployment (hotswap) ", and heat deployment is not restart business clothes It is engaged under the premise of device, energy Auto-Sensing updates the behavior of runtime code to the variation of code file.In the embodiment of the present application, Compared to static component container, the code in dynamic assembly container is due to needing regular change, often with business complexity The increase of degree, later period are larger for the maintenance cost of dynamic assembly container, and scalability is also general.For this purpose, the embodiment of the present application is logical The mode that static component container and dynamic assembly container combine is crossed, it periodically or non-periodically will be certain in dynamic assembly container It can be transferred in static component container by the code components that at least two business scenarios are multiplexed and carry out persistent storage, to the greatest extent may be used Energy ground reduces the code components stored in dynamic assembly container, stores in static component container draw for process as much as possible The code components of load are held up, maintenance cost is reduced.In other embodiments, when a certain object code component is in one section of long period When not changing inside, which can also be transferred in the static component container from the dynamic assembly container.It is right In the individualized code for needing newly-increased some business scenarios or realization logic, the mode that can first pass through Dynamical Deployment is stored in In above-mentioned dynamic assembly container, to avoid restarting for application server, guarantee not interrupting for service operation.In an embodiment In, the universal code component is the JAVA code (the JAVA code after compiling) being packaged, and the individualized code component is to need Want the JAVA class, and/or dynamic script (such as groovy script), and/or EL expression formula of dynamically load.
Based on the above content, in an alternative embodiment, step 103 be may particularly include:
Step 1031: flow engine determines according to each flow object for including in the target flow template and realizes the mesh Mark universal code component and individualized code component required for flow template;
Step 1032: flow engine obtains the universal code component from the static component container;
Step 1033: flow engine obtains the individualized code component from the dynamic assembly container.
For example, a kind of specific implementation code of each flow object in target flow template is as follows:
Wherein, above-mentioned various flow objects can be realized by one or more " action ".Each realization of " action " Code can be compiled using JAVA sentence, and/or EL (Expression Language) expression formula, and/or groovy script etc. It writes.For in above-mentioned " action ", " action " (i.e. general purpose module) that can be general by different business scene can be divided into, And cannot be general by different business scene " action " (i.e. personalization component).Developer can take out every in advance A code components define corresponding label, to indicate that it belongs to general purpose module or personalization component.
In the embodiment of the present application, logical required for being got respectively from static component container and dynamic assembly container After component and personalization component, the service code of acquisition can be loaded.Wherein, code is read from database and is answered It is loading procedure with the process in the memory of server.
At step 104, the service code is successively executed according to the sequence of flow object in the target flow template, It obtains implementing result and is back to the request end.
According to practical business demand, it can recycle and execute above-mentioned loaded service code, until being held required for obtaining Row result.Certainly, if implementing result (executing exception) can not be obtained, corresponding exception information can also be returned to request end.
By above-mentioned service request processing method, due to taking out the generally applicable code of different business scene and cannot lead to Individualized code, and be persisted in static component container and dynamic assembly container respectively, it can effectively promote flow engine Maintainability, scalability, maintenance cost is effectively reduced, and to a certain extent improve flow engine execution efficiency. In addition, can be updated by Dynamical Deployment mode to the code components in dynamic assembly container, thus by drawing process It holds up technology and Dynamical Deployment technology combines, improve the flexibility of code deployment, realize the case where not restarting application server The lower update upgrading for completing new realization logic, reduces code development cost.
Fig. 3 is the hardware configuration of a kind of electronic equipment shown according to an exemplary embodiment.Referring to FIG. 3, in hardware Level, the electronic equipment can be the application server for being deployed with flow engine, which may include processor, inside Bus, network interface, memory (including memory and nonvolatile memory), are also possible that certainly required for other business Hardware.Wherein, it can store the interrelated logic to realize above-mentioned service request processing method in memory (to calculate Machine program), processor can from read in nonvolatile memory corresponding computer program into memory then run.Certainly, Other than software realization mode, the application is not precluded other implementations, such as logical device or software and hardware combining Mode etc., that is to say, that the executing subject of following process flow is not limited to each logic unit, be also possible to hardware or Logical device.
As shown in figure 4, in one embodiment, a kind of service request processing unit 200 can be applied in flow engine, it should Device 200 may include that request reception unit 201, flow template determination unit 202, Code obtaining unit 203 and code execute Unit 204, in which:
The request reception unit 201 receives the service request for the carrying required parameter value that request end is sent.
The flow template determination unit 202 is asked according to flow template file, determination with what is carried in the request of data The target flow template comprising at least one flow object of asking parameter value corresponding, the flow template file include to predefine Flow template and required parameter value corresponding relationship.
The Code obtaining unit 203 from code components container obtain with the target flow template in each process pair It as corresponding service code and loads, the code components container storage has the universal code component extracted in advance and personalized generation Code character part, the code in the code components container are updated by Dynamical Deployment mode.
The code execution unit 204 successively executes the industry according to the sequence of flow object in the target flow template Business code obtains implementing result and is simultaneously back to the request end.
In an optional embodiment, the code components container includes that storage has the static component of universal code component to hold Device and storage have the dynamic assembly container of individualized code component.
Wherein, the Code obtaining unit 203 may particularly include:
It determines subelement, according to each flow object for including in the target flow template, determines and realize the target process Universal code component and individualized code component required for template;
First obtains subelement, and the universal code component is obtained from the static component container;
Second obtains subelement, and the individualized code component is obtained from the dynamic assembly container.
In an optional embodiment, the code in the dynamic assembly container can be carried out more by Dynamical Deployment mode Newly.
In an optional embodiment, described device further include:
Code transformations unit, when the object code in the dynamic assembly container is multiplexed by least two business scenarios, The object code is transferred in the static component container from the dynamic assembly container.
In an optional embodiment, described device further include:
Instantiating unit instantiates each flow object for including in the target flow template.
In an optional embodiment, the universal code component is the JAVA code being packaged, the individualized code group Part is the JAVA class, and/or dynamic script, and/or EL expression formula for needing dynamically load.
The step of above computer program is realized when being executed by processor is referred to the description to embodiment of the method above, Also, under the premise of not colliding, the content of above-mentioned apparatus embodiment and the content of above method embodiment can mend each other It fills, this is no longer repeated.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment The combination of any several equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit can be realized in the same or multiple software and or hardware when application.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flashRAM).Memory is showing for computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitorymedia), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The application can describe in the general context of computer-executable instructions executed by a computer, such as program Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, group Part, data structure etc..The application can also be practiced in a distributed computing environment, in these distributed computing environments, by Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with In the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal Replacement, improvement etc., should be included within the scope of the claims of this application.

Claims (13)

1. a kind of service request processing method, comprising:
Flow engine receives the service request for the carrying required parameter value that request end is sent;
Flow engine determines corresponding with the required parameter value carried in the request of data comprising extremely according to flow template file The target flow template of a few flow object, the flow template file include predetermined flow template and required parameter The corresponding relationship of value;
Flow engine is from obtaining corresponding with each flow object in target flow template business generation in code components container Code simultaneously loads, and the code components container storage has the universal code component and individualized code component extracted in advance, the generation Code in code assembly container is updated by Dynamical Deployment mode;
Flow engine successively executes the service code according to the sequence of flow object in the target flow template, is executed As a result and it is back to the request end.
2. according to the method described in claim 1, the code components container includes the static group that storage has universal code component Part container and storage have the dynamic assembly container of individualized code component;
The flow engine is from obtaining industry corresponding with each flow object in the target flow template in code components container Business code include:
Flow engine determines needed for realizing the target flow template according to each flow object for including in the target flow template The universal code component and individualized code component wanted;
Flow engine obtains the universal code component from the static component container;
Flow engine obtains the individualized code component from the dynamic assembly container.
3. according to the method described in claim 2, the code in the dynamic assembly container is carried out more by Dynamical Deployment mode Newly.
4. according to the method described in claim 2, the method also includes:
When the object code in the dynamic assembly container is multiplexed by least two business scenarios, by the object code from described Dynamic assembly container is transferred in the static component container.
5. according to the method described in claim 1, obtaining industry from code components container after determining target flow template It is engaged in front of code, the method also includes:
Flow engine instantiates each flow object for including in the target flow template.
6. according to the method described in claim 1, the universal code component is the JAVA code being packaged, the individualized code Component is the JAVA class, and/or dynamic script, and/or EL expression formula for needing dynamically load.
7. a kind of service request processing unit, it is applied in flow engine, which includes that request reception unit, flow template are true Order member, Code obtaining unit and code execution unit, in which:
The request reception unit receives the service request for the carrying required parameter value that request end is sent;
The flow template determination unit is determining with the required parameter value carried in the request of data according to flow template file The corresponding target flow template comprising at least one flow object, the flow template file include predetermined process mould The corresponding relationship of plate and required parameter value;
The Code obtaining unit is corresponding with each flow object in the target flow template from obtaining in code components container Service code and load, code components container storage have the universal code component extracted in advance and individualized code group Part, the code in the code components container are updated by Dynamical Deployment mode;
The code execution unit successively executes the service code according to the sequence of flow object in the target flow template, It obtains implementing result and is back to the request end.
8. device according to claim 7, the code components container includes the static group that storage has universal code component Part container and storage have the dynamic assembly container of individualized code component;
The Code obtaining unit includes:
It determines subelement, according to each flow object for including in the target flow template, determines and realize the target flow template Required universal code component and individualized code component;
First obtains subelement, and the universal code component is obtained from the static component container;
Second obtains subelement, and the individualized code component is obtained from the dynamic assembly container.
9. device according to claim 8, the code in the dynamic assembly container is carried out more by Dynamical Deployment mode Newly.
10. device according to claim 8, described device further include:
Code transformations unit, when the object code in the dynamic assembly container is multiplexed by least two business scenarios, by this Object code is transferred in the static component container from the dynamic assembly container.
11. device according to claim 7, described device further include:
Instantiating unit instantiates each flow object for including in the target flow template.
12. device according to claim 7, the universal code component is the JAVA code being packaged, the personalization generation Code character part is the JAVA class, and/or dynamic script, and/or EL expression formula for needing dynamically load.
13. a kind of service request processing system, including flow engine, code update server, static component container and dynamic group Part container;
The static component container storage has universal code component, and the dynamic assembly container storage has individualized code component;
The code update server is for carrying out more the code in the dynamic assembly container by way of Dynamical Deployment Newly;
The flow engine includes request reception unit, flow template determination unit, Code obtaining unit and code execution unit, Wherein:
The request reception unit receives the service request for the carrying required parameter value that request end is sent;
The flow template determination unit is determining with the required parameter value carried in the request of data according to flow template file The corresponding target flow template comprising at least one flow object, the flow template file include predetermined process mould The corresponding relationship of plate and required parameter value;
The Code obtaining unit is from static component container and dynamic assembly container, in acquisition and the target flow template The corresponding service code of each flow object simultaneously loads;
The code execution unit successively executes the service code according to the sequence of flow object in the target flow template, It obtains implementing result and is back to the request end.
CN201710367400.XA 2017-05-23 2017-05-23 Service request processing method and device and service request processing system Active CN108958796B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710367400.XA CN108958796B (en) 2017-05-23 2017-05-23 Service request processing method and device and service request processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710367400.XA CN108958796B (en) 2017-05-23 2017-05-23 Service request processing method and device and service request processing system

Publications (2)

Publication Number Publication Date
CN108958796A true CN108958796A (en) 2018-12-07
CN108958796B CN108958796B (en) 2023-08-04

Family

ID=64462477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710367400.XA Active CN108958796B (en) 2017-05-23 2017-05-23 Service request processing method and device and service request processing system

Country Status (1)

Country Link
CN (1) CN108958796B (en)

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109840111A (en) * 2019-02-26 2019-06-04 广州衡昊数据科技有限公司 A kind of patterned transaction processing system and method
CN109933315A (en) * 2019-02-26 2019-06-25 广州衡昊数据科技有限公司 A kind of patterned transaction processing system and method
CN110069321A (en) * 2019-03-16 2019-07-30 平安城市建设科技(深圳)有限公司 Business containerization operation method, equipment, storage medium and device
CN110221824A (en) * 2019-06-03 2019-09-10 精硕科技(北京)股份有限公司 The generation method and device of component
CN110244990A (en) * 2019-04-29 2019-09-17 五八有限公司 Application component call method, device, electronic equipment and storage medium
CN110413286A (en) * 2019-07-31 2019-11-05 阿里巴巴集团控股有限公司 A kind of application dispositions method, device and equipment
CN110688111A (en) * 2019-09-25 2020-01-14 深圳乐信软件技术有限公司 Configuration method, device, server and storage medium of business process
CN111104779A (en) * 2019-11-13 2020-05-05 泰康保险集团股份有限公司 Claim settlement service processing method, device, medium and electronic equipment
CN111352626A (en) * 2020-02-04 2020-06-30 北京三快在线科技有限公司 Service request processing method and device, electronic equipment and storage medium
CN111427701A (en) * 2020-03-09 2020-07-17 中国建设银行股份有限公司 Workflow engine system and business processing method
CN111538484A (en) * 2020-03-26 2020-08-14 北京迈格威科技有限公司 Multi-project modular management method, biological unlocking model acquisition method and product
CN111614604A (en) * 2019-02-26 2020-09-01 阿里巴巴集团控股有限公司 Code file generation method and device
CN111861047A (en) * 2019-04-08 2020-10-30 阿里巴巴集团控股有限公司 Data processing control method and computing device
CN111984623A (en) * 2020-08-14 2020-11-24 北京人大金仓信息技术股份有限公司 Database cluster automatic deployment method, device, medium and electronic equipment
CN112099768A (en) * 2020-08-04 2020-12-18 北京奇艺世纪科技有限公司 Business process processing method and device and computer readable storage medium
CN112099882A (en) * 2020-09-11 2020-12-18 杭州海康威视数字技术股份有限公司 Service processing method, device and equipment
CN112346818A (en) * 2020-11-02 2021-02-09 北京新媒传信科技有限公司 Container application deployment method and device, electronic equipment and storage medium
CN112445607A (en) * 2019-09-03 2021-03-05 腾讯科技(深圳)有限公司 Method and device for executing method function by application program
CN112612632A (en) * 2020-12-31 2021-04-06 平安银行股份有限公司 Stream-based message pushing method, system, computer equipment and storage medium
CN112631565A (en) * 2020-12-25 2021-04-09 深圳云之家网络有限公司 Service fusion method and device, computer equipment and storage medium
CN112650911A (en) * 2020-12-17 2021-04-13 平安普惠企业管理有限公司 Service message issuing method, device, computer equipment and storage medium
CN112860268A (en) * 2019-11-27 2021-05-28 北京沃东天骏信息技术有限公司 Template hot deployment method and device
CN112951397A (en) * 2021-03-29 2021-06-11 深圳市科曼医疗设备有限公司 Perioperative period process management system and method
CN113032374A (en) * 2019-12-24 2021-06-25 北京数聚鑫云信息技术有限公司 Data processing method, device, medium and equipment
CN113254043A (en) * 2021-06-04 2021-08-13 京东科技控股股份有限公司 Web front-end project processing method and device, electronic equipment and storage medium
CN113448588A (en) * 2021-07-09 2021-09-28 天津狮拓信息技术有限公司 Data security processing method and device, electronic equipment and storage medium
CN114443169A (en) * 2022-01-28 2022-05-06 中国民生银行股份有限公司 Method and device for realizing technical component platformization
CN114528051A (en) * 2022-02-24 2022-05-24 山东浪潮通软信息科技有限公司 Method, system, device and medium for processing business process based on engine platform
CN115134231A (en) * 2021-03-17 2022-09-30 北京搜狗科技发展有限公司 Communication method, device and device for communication
CN114528051B (en) * 2022-02-24 2024-05-24 浪潮通用软件有限公司 Method, system, equipment and medium for processing business process based on engine platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090024986A1 (en) * 2007-07-19 2009-01-22 Microsoft Corporation Runtime code modification
CN105159761A (en) * 2008-06-06 2015-12-16 苹果公司 Application programming interfaces for data parallel computing on multiple processors
CN105357059A (en) * 2015-12-08 2016-02-24 中国建设银行股份有限公司 Business event processing method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090024986A1 (en) * 2007-07-19 2009-01-22 Microsoft Corporation Runtime code modification
CN105159761A (en) * 2008-06-06 2015-12-16 苹果公司 Application programming interfaces for data parallel computing on multiple processors
CN105357059A (en) * 2015-12-08 2016-02-24 中国建设银行股份有限公司 Business event processing method and apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
冯锦丹等: "基于模式的业务构件代码生成方法", 《电子学报》 *

Cited By (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111614604A (en) * 2019-02-26 2020-09-01 阿里巴巴集团控股有限公司 Code file generation method and device
CN109933315A (en) * 2019-02-26 2019-06-25 广州衡昊数据科技有限公司 A kind of patterned transaction processing system and method
CN109840111A (en) * 2019-02-26 2019-06-04 广州衡昊数据科技有限公司 A kind of patterned transaction processing system and method
CN110069321A (en) * 2019-03-16 2019-07-30 平安城市建设科技(深圳)有限公司 Business containerization operation method, equipment, storage medium and device
CN111861047A (en) * 2019-04-08 2020-10-30 阿里巴巴集团控股有限公司 Data processing control method and computing device
CN110244990A (en) * 2019-04-29 2019-09-17 五八有限公司 Application component call method, device, electronic equipment and storage medium
CN110221824A (en) * 2019-06-03 2019-09-10 精硕科技(北京)股份有限公司 The generation method and device of component
CN110221824B (en) * 2019-06-03 2024-03-22 北京秒针人工智能科技有限公司 Method and device for generating component
CN110413286A (en) * 2019-07-31 2019-11-05 阿里巴巴集团控股有限公司 A kind of application dispositions method, device and equipment
CN110413286B (en) * 2019-07-31 2023-08-22 创新先进技术有限公司 Application deployment method, device and equipment
CN112445607B (en) * 2019-09-03 2024-03-08 腾讯科技(深圳)有限公司 Method and device for executing method function by application program
CN112445607A (en) * 2019-09-03 2021-03-05 腾讯科技(深圳)有限公司 Method and device for executing method function by application program
CN110688111A (en) * 2019-09-25 2020-01-14 深圳乐信软件技术有限公司 Configuration method, device, server and storage medium of business process
CN111104779A (en) * 2019-11-13 2020-05-05 泰康保险集团股份有限公司 Claim settlement service processing method, device, medium and electronic equipment
CN111104779B (en) * 2019-11-13 2023-09-29 泰康保险集团股份有限公司 Method, device, medium and electronic equipment for processing claim settlement business
CN112860268A (en) * 2019-11-27 2021-05-28 北京沃东天骏信息技术有限公司 Template hot deployment method and device
CN112860268B (en) * 2019-11-27 2024-04-05 北京沃东天骏信息技术有限公司 Method and device for hot deployment of templates
CN113032374A (en) * 2019-12-24 2021-06-25 北京数聚鑫云信息技术有限公司 Data processing method, device, medium and equipment
CN111352626A (en) * 2020-02-04 2020-06-30 北京三快在线科技有限公司 Service request processing method and device, electronic equipment and storage medium
CN111427701A (en) * 2020-03-09 2020-07-17 中国建设银行股份有限公司 Workflow engine system and business processing method
CN111538484A (en) * 2020-03-26 2020-08-14 北京迈格威科技有限公司 Multi-project modular management method, biological unlocking model acquisition method and product
CN112099768A (en) * 2020-08-04 2020-12-18 北京奇艺世纪科技有限公司 Business process processing method and device and computer readable storage medium
CN112099768B (en) * 2020-08-04 2024-02-23 北京奇艺世纪科技有限公司 Business process processing method and device and computer readable storage medium
CN111984623B (en) * 2020-08-14 2024-02-09 北京人大金仓信息技术股份有限公司 Automatic deployment method and device for database cluster, medium and electronic equipment
CN111984623A (en) * 2020-08-14 2020-11-24 北京人大金仓信息技术股份有限公司 Database cluster automatic deployment method, device, medium and electronic equipment
CN112099882B (en) * 2020-09-11 2023-08-25 杭州海康威视数字技术股份有限公司 Service processing method, device and equipment
CN112099882A (en) * 2020-09-11 2020-12-18 杭州海康威视数字技术股份有限公司 Service processing method, device and equipment
CN112346818A (en) * 2020-11-02 2021-02-09 北京新媒传信科技有限公司 Container application deployment method and device, electronic equipment and storage medium
CN112650911A (en) * 2020-12-17 2021-04-13 平安普惠企业管理有限公司 Service message issuing method, device, computer equipment and storage medium
CN112631565A (en) * 2020-12-25 2021-04-09 深圳云之家网络有限公司 Service fusion method and device, computer equipment and storage medium
CN112612632B (en) * 2020-12-31 2024-03-19 平安银行股份有限公司 Message pushing method, system, computer equipment and storage medium based on stream
CN112612632A (en) * 2020-12-31 2021-04-06 平安银行股份有限公司 Stream-based message pushing method, system, computer equipment and storage medium
CN115134231B (en) * 2021-03-17 2024-03-08 北京搜狗科技发展有限公司 Communication method, device and device for communication
CN115134231A (en) * 2021-03-17 2022-09-30 北京搜狗科技发展有限公司 Communication method, device and device for communication
CN112951397A (en) * 2021-03-29 2021-06-11 深圳市科曼医疗设备有限公司 Perioperative period process management system and method
CN113254043A (en) * 2021-06-04 2021-08-13 京东科技控股股份有限公司 Web front-end project processing method and device, electronic equipment and storage medium
CN113448588A (en) * 2021-07-09 2021-09-28 天津狮拓信息技术有限公司 Data security processing method and device, electronic equipment and storage medium
CN113448588B (en) * 2021-07-09 2024-04-16 天津狮拓信息技术有限公司 Data security processing method and device, electronic equipment and storage medium
CN114443169A (en) * 2022-01-28 2022-05-06 中国民生银行股份有限公司 Method and device for realizing technical component platformization
CN114528051A (en) * 2022-02-24 2022-05-24 山东浪潮通软信息科技有限公司 Method, system, device and medium for processing business process based on engine platform
CN114528051B (en) * 2022-02-24 2024-05-24 浪潮通用软件有限公司 Method, system, equipment and medium for processing business process based on engine platform

Also Published As

Publication number Publication date
CN108958796B (en) 2023-08-04

Similar Documents

Publication Publication Date Title
CN108958796A (en) service request processing method and device, service request processing system
CN109086031B (en) Business decision method and device based on rule engine
CN107025559B (en) Service processing method and device
CN110764901A (en) Data processing method based on GPU (graphics processing Unit) resources, electronic equipment and system
CN108777698A (en) Webpage storage method, system and block chain node device
CN108733457A (en) The implementation method and device of distributed transaction
CN108733589A (en) The implementation method and device of distributed transaction heat deployment
CN110019298A (en) Data processing method and device
CN108880896A (en) A kind of program gray scale dissemination method and device based on mainframe
CN114936256A (en) Method for executing transaction in block chain and block chain link point
CN114529417A (en) Method for executing transaction, block chain, main node and slave node
CN109582384A (en) The update method and device of configuration information
CN108958933A (en) Configuration parameter update method, device and the equipment of task performer
CN108334374A (en) The method and apparatus of component dynamic load and execution
CN116933886A (en) Quantum computing execution method, quantum computing execution system, electronic equipment and storage medium
CN115237455B (en) Application management method and related equipment
CN116107728A (en) Task execution method and device, storage medium and electronic equipment
CN115983997A (en) Block chain-based collection management method, block chain node and system
CN109828990A (en) A kind of transaction journal generation method, server, equipment and medium
US11573777B2 (en) Method and apparatus for enabling autonomous acceleration of dataflow AI applications
CN116954878A (en) Method, apparatus, device, storage medium and program product for managing container clusters
CN114968422A (en) Method and device for automatically executing contracts based on variable state
CN111047415B (en) Clothing accessory order processing method, system, electronic equipment and storage medium
CN114358936A (en) Intelligent contract operation method based on micro-service block chain
CN104572649B (en) The processing method of the data of distributed memory system, apparatus and system

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
TA01 Transfer of patent application right

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant