CN114153444A - Method and device for constructing combined service - Google Patents
Method and device for constructing combined service Download PDFInfo
- Publication number
- CN114153444A CN114153444A CN202111496523.6A CN202111496523A CN114153444A CN 114153444 A CN114153444 A CN 114153444A CN 202111496523 A CN202111496523 A CN 202111496523A CN 114153444 A CN114153444 A CN 114153444A
- Authority
- CN
- China
- Prior art keywords
- service
- micro
- input parameters
- services
- parameters
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 239000002131 composite material Substances 0.000 claims description 40
- 230000006870 function Effects 0.000 claims description 21
- 238000012545 processing Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 8
- 230000010354 integration Effects 0.000 claims description 8
- 239000000203 mixture Substances 0.000 claims description 6
- 238000011161 development Methods 0.000 abstract description 13
- 230000000007 visual effect Effects 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 19
- 238000003860 storage Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 8
- 238000012546 transfer Methods 0.000 description 6
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 2
- 235000006719 Cassia obtusifolia Nutrition 0.000 description 1
- 235000014552 Cassia tora Nutrition 0.000 description 1
- 244000201986 Cassia tora Species 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000012938 design process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/43—Checking; Contextual analysis
- G06F8/433—Dependency analysis; Data or control flow analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to the technical field of micro services, in particular to a method and a device for constructing a combined service, which comprises the following steps: setting each micro service in the combined service and the execution sequence among the micro services; determining an arrangement primitive among micro services in the combined service; the arrangement primitive is used for indicating the execution relation between the micro services; and setting input parameters and output parameters of the layout primitives, calling the input parameters of the combined service, and determining the input parameters and the output parameters of each micro service so as to obtain the combined service. Realizing visual arrangement microservice; the input parameters and the output parameters of each micro service are determined by arranging the input parameters and the output parameters of the graphic elements and the input parameters of the combined service, the micro service codes do not need to be written by hands, the development difficulty of the micro service is reduced, and the development flexibility of the combined service is improved.
Description
Technical Field
The invention relates to the technical field of micro services, in particular to a method and a device for constructing a combined service.
Background
In the process of micro-service transformation of the single application, the application service needs to be split into micro-services with finer granularity. A single application implementing complex functions may be a combination of multiple microservices, so that a developer performs a development and design process of a service, i.e., a process of defining an execution sequence of multiple microservices. At runtime, the integrated processing stack of the service will perform the loading of the microservices and the preparation of the relevant environment parameters according to the predefined microservice execution order.
However, in the prior art, a common micro-service orchestration framework (such as Netflix conductor, Zeebe, etc.) does not have a function of visual micro-service orchestration design, and cannot define a service orchestration model through an interface. Developers can only implement the definition of microservices orchestration by handwriting XML or JSON template files. Resulting in development inflexibility and the need to hand write large amounts of code. Subsequent modification and maintenance of complex services is costly.
Disclosure of Invention
The embodiment of the invention provides a method and a device for constructing a combined service, which are used for realizing visual micro-service arrangement, reducing the development difficulty of the micro-service and improving the flexibility of the combined service development.
In a first aspect, an embodiment of the present invention provides a method for constructing a composite service, including:
setting each micro service in the combined service and the execution sequence among the micro services;
determining an arrangement graphic element among all micro services in the combined service; the arrangement primitive is used for indicating the execution relation between the micro services;
and setting the input parameters and the output parameters of the layout primitives, calling the input parameters of the combined service, and determining the input parameters and the output parameters of each micro-service so as to obtain the combined service.
In the technical scheme, the execution relation among micro-service primitives is established through the input parameter arrangement primitives of the combined service, so that the combined service is generated, and the visual arrangement micro-service is realized; the input parameters and the output parameters of each micro service are determined by arranging the input parameters and the output parameters of the graphic elements and the input parameters of the combined service, and the micro service codes do not need to be written by hands, so that the development difficulty of the micro service is reduced, and the development flexibility of the combined service is improved.
Optionally, setting the input parameter and the output parameter of the layout primitive, calling the input parameter of the composite service, and determining the input parameter and the output parameter of each micro-service, includes:
aiming at any micro service, determining other micro services having indirect dependency relationship and direct dependency relationship with the micro service according to the input parameter and the output parameter of the layout primitive;
taking the input parameters, the output parameters and the input parameters of the combined service of the other micro services as the input parameters of the micro service;
and executing the micro service according to the input parameters of the micro service to obtain the output parameters of the micro service.
In the technical scheme, aiming at any micro service, the input parameters of the combined service and the input parameters and the output parameters of other micro services which have dependency relationship with the micro service are used as the input parameters of the micro service, and then the execution relationship among the micro services is established, so that the combined service is generated, the visual arrangement of the micro service is realized, the micro service code does not need to be written by hand, the development difficulty of the micro service is reduced, and the flexibility of the development of the combined service is improved.
Optionally, the types of the microservices include a service function implementation type, an integration type, and a combination type;
the integrated type micro-service is obtained after editing;
the micro-service of the combination type is obtained by combining a plurality of micro-services.
In the technical scheme, the integrated micro service is obtained by user-defined editing, so that the flexibility of the micro service is improved; the combined type micro-service is obtained by combining a plurality of micro-services, thereby improving the reusability of the micro-service and reducing the complexity of mutual calling of the micro-services.
Optionally, the types of the orchestration primitive include an assignment type, an error checking type, an exception type, a start and end type, a branch type, a condition type, and a loop type.
In the technical scheme, the arrangement primitives comprise a plurality of types so as to arrange the micro-services according to different service scenes, and the comprehensiveness of arranging the micro-services is improved.
Optionally, obtaining the composite service includes:
determining the micro service executed last based on the execution sequence among the micro services;
and taking the output parameter of the micro service executed last as the output parameter of the combined service, thereby obtaining the combined service.
Optionally, after obtaining the composite service, the method further includes:
displaying input parameters and output parameters of the composite service;
and editing the input parameters and the output parameters of the combined service according to the editing instruction.
In the technical scheme, the input parameters and the output parameters of the combined service can be edited in a user-defined mode through the editing instruction, so that the flexibility of the combined service is improved.
Optionally, the micro-services, the layout primitives and the composition services are recorded in the form of XML files.
In a second aspect, an embodiment of the present invention provides an apparatus for constructing a composite service, including:
the setting module is used for setting each micro service in the combined service and the execution sequence among the micro services;
the processing module is used for determining the layout primitives among all the micro-services in the combined service; the arrangement graphic element is used for indicating the processing relation between the micro services;
and setting the input parameters and the output parameters of the layout primitives, calling the input parameters of the combined service, and determining the input parameters and the output parameters of each micro-service so as to obtain the combined service.
Optionally, the processing module is specifically configured to:
aiming at any micro service, determining other micro services having indirect dependency relationship and direct dependency relationship with the micro service according to the input parameter and the output parameter of the layout primitive;
taking the input parameters, the output parameters and the input parameters of the combined service of the other micro services as the input parameters of the micro service;
and executing the micro service according to the input parameters of the micro service to obtain the output parameters of the micro service.
Optionally, the types of the microservices include a service function implementation type, an integration type, and a combination type;
the integrated type micro-service is obtained after editing;
the micro-service of the combination type is obtained by combining a plurality of micro-services.
Optionally, the types of the orchestration primitive include an assignment type, an error checking type, an exception type, a start and end type, a branch type, a condition type, and a loop type.
Optionally, the processing module is specifically configured to:
determining the micro service executed last based on the execution sequence among the micro services;
and taking the output parameter of the micro service executed last as the output parameter of the combined service, thereby obtaining the combined service.
Optionally, the processing module is further configured to:
after the combined service is obtained, displaying input parameters and output parameters of the combined service;
and editing the input parameters and the output parameters of the combined service according to the editing instruction.
Optionally, the micro-services, the layout primitives and the composition services are recorded in the form of XML files.
In a third aspect, an embodiment of the present invention further provides a computer device, including:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the method for constructing the combined service according to the obtained program.
In a fourth aspect, the present invention further provides a computer-readable storage medium storing computer-executable instructions for causing a computer to execute the above method for constructing a composite service.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a system architecture diagram according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for constructing a composite service according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating an arrangement of primitives according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a combined service according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a microservice provided by an embodiment of the present invention;
FIG. 6 is a diagram illustrating an editing interface according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus for constructing a composite service according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 illustrates an exemplary system architecture to which embodiments of the present invention are applicable, which includes a server 100, where the server 100 may include a processor 110, a communication interface 120, and a memory 130.
The communication interface 120 is used for acquiring required data during the execution of the micro-service.
The processor 110 is a control center of the server 100, connects various parts of the entire server 100 using various interfaces and routes, performs various functions of the server 100 and processes data by operating or executing software programs and/or modules stored in the memory 130 and calling data stored in the memory 130. Alternatively, processor 110 may include one or more processing units.
The memory 130 may be used to store software programs and modules, and the processor 110 executes various functional applications and data processing by operating the software programs and modules stored in the memory 130. The memory 130 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to a business process, and the like. Further, the memory 130 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
It should be noted that the structure shown in fig. 1 is only an example, and the embodiment of the present invention is not limited thereto.
Based on the above description, fig. 2 is a schematic flow chart illustrating a method for constructing a composite service according to an embodiment of the present invention, where the flow chart is executable by an apparatus for constructing a composite service.
As shown in fig. 2, the process specifically includes:
In the embodiment of the invention, each micro service and the execution sequence among the micro services are used for combining into the combined service, and the realized business function of the combined service is defined by developers.
In the embodiment of the invention, the layout primitive is used for indicating the execution relation between the micro services; arranging the graphic elements to comprise a plurality of types so as to realize different execution relations among the micro-services; such as parallel, serial, etc.
And step 230, setting the input parameters and the output parameters of the layout primitives, calling the input parameters of the combined service, and determining the input parameters and the output parameters of each micro-service, thereby obtaining the combined service.
In the embodiment of the invention, the input parameters of any micro service are obtained according to the input parameters of the preset combined service, so that the micro service code does not need to be handwritten any more, and the development difficulty of the micro service is reduced.
In step 210, the composite service is predefined by the developer, and predefined services include the service function to be implemented and the micro services required by the service function to be implemented; for example, defining the service function to be realized by the combined service a as a transfer function, in order to realize the transfer function, the combined service needs to be composed of a micro service M1, a micro service M2 and a micro service M3, wherein the micro service M1 is used for calling customer information, the micro service M2 is used for executing a transfer, and the micro service M3 is used for determining a transfer result; therefore, the execution sequence between the micro services is M1 → M2 → M3.
Further, the types of the micro-service comprise a service function realizing type, an integration type and a combination type; wherein, the integration type micro service is obtained after editing; the combination type micro-service is obtained by combining a plurality of micro-services.
Taking an example based on the above description, the microservice M2 is used to perform transfers, and thus the microservice M2 is a microservice of the type that implements business functions. As for microservice M3, microservice M3 is a local JavaBean manually written by developers, such as group assignments, etc.; as another example, the microservice M1 is used for calling customer information, wherein the microservice M1 is composed of microservices H1 and H2, the microservice H1 is used for calling customer information of sex men, and the microservice H2 is used for calling customer information of age over 18 years.
In step 220, the types of orchestrated primitives include an assignment type, an error checking type, an exception type, a start and end type, a branch type, a condition type, and a loop type.
Fig. 3 is a schematic diagram of an arrangement primitive exemplarily shown in the embodiment of the present invention, as shown in fig. 3, each type of arrangement primitive is realized based on GMF (Graphical Modeling Framework), and the arrangement primitives included in the primitive toolbar are, but not limited to, "connecting line", "start", "end", "error checking", "assignment", "condition start", "condition end", "loop start", "loop end", "branch start", "branch end", "exception", and "sub-flow", respectively.
The connection line is used for setting an execution sequence among micro services, the start primitive is used for representing the start of the execution of the combined service, the end primitive is used for representing the end of the execution of the combined service, the error reporting check primitive is used for realizing error reporting when a preset error reporting condition is met in the execution process of the combined service, the assignment primitive is used for realizing assignment of input parameters or output parameters of the micro services, the start-condition primitive is used for realizing the determination and execution of the next micro service according to the condition, the end-condition primitive is used for indicating the end of the condition determination, the start-cycle primitive is used for realizing the cycle micro service logic, the end-cycle primitive is used for indicating the end of the cycle micro service logic, the start-branch primitive is used for realizing the determination and execution of the next micro service according to the condition, and the end-branch primitive is used for indicating the end of the condition determination, the "exception" primitive is used to implement unconditional rejection of exceptions.
It should be noted that the layout primitives of the branch type are different from the layout primitives of the condition type in that: the branch type arrangement primitive is the next micro service determined to be executed in at least two micro services, and the condition type arrangement primitive is the next micro service determined to be executed in only two micro services; the "sub-flow" in fig. 3 is used to hide the parameters of each layout primitive and micro-service for the compact display of the composite service.
In step 230, in an implementable manner, the input parameters and output parameters of each microservice are custom-edited by a developer.
In the embodiment of the invention, aiming at any micro service, other micro services with indirect dependency relationship and direct dependency relationship with the micro service are determined according to the input parameters and the output parameters of the layout graphic elements; taking the input parameters and the output parameters of other micro services and the input parameters of the combined service as the input parameters of the micro services; and executing the micro service according to the input parameters of the micro service to obtain the output parameters of the micro service.
Based on the above description, fig. 4 exemplarily shows a schematic diagram of a composite service, as shown in fig. 4, the composite service a includes a start primitive, an end primitive, a conditional start primitive, a conditional end primitive, a micro-service M1, a micro-service M1', a micro-service M2, and a micro-service M3.
Further, the conditional start primitive is used to determine whether the database a1 is available, if so, execute the micro service M1, otherwise, execute the micro service M1', then execute the micro service M2, and finally execute the micro service M3; the micro service M1 is used for calling customer information in the database A1, the micro service M1' is used for calling customer information in the database A2, the micro service M2 is used for transferring accounts for customers corresponding to the customer information, and the micro service M3 is used for determining a transfer result.
Aiming at the micro service M1, determining that the micro service M1 does not have other micro services with indirect dependency relationship and direct dependency relationship with the micro service M1 according to each editing primitive (including a start primitive, an end primitive, a condition start primitive and a condition end) in the combined service A, and therefore taking the preset input parameters of the combined service A as the input parameters of the micro service M1;
aiming at the micro service M1 ', determining that other micro services having indirect dependency relationship and direct dependency relationship with the micro service M1 ' do not exist in the micro service M1 according to each editing primitive in the combined service A, and therefore taking the preset input parameters of the combined service A as the input parameters of the micro service M1 ';
for the micro service M2, determining that other micro services having direct dependency relationship (micro service M1 and micro service M1 ') with the micro service M2 exist in the micro service M2 according to each editing primitive in the composite service A, and therefore, taking the input parameters and the output parameters of the micro service M1 and the micro service M1' and the preset input parameters of the composite service A as the input parameters of the micro service M2;
aiming at the micro service M3, determining that other micro services having indirect dependency relationship (micro service M1 and micro service M1 ') and direct dependency relationship (micro service M2) with the micro service M3 exist in the micro service M3 according to each editing primitive in the composite service A, and therefore, the input parameters, the output parameters, the input parameters of the micro service M1 and the micro service M1', the output parameters, the input parameters of the micro service M2, the output parameters of the micro service M2 and the preset input parameters of the composite service A are used as the input parameters of the micro service M3, so that the business process of the composite service A is realized.
After determining the input parameters and the output parameters of each micro service in the combined service, determining the output parameters of the combined service, specifically, determining the micro service executed last based on the execution sequence among the micro services; and taking the output parameter of the micro service executed finally as the output parameter of the combined service, thereby obtaining the combined service.
Taking the example based on fig. 4, the microservice M3 is determined to be the last microservice executed, and therefore the output parameter of the microservice M3 is used as the output parameter of the composite service a, thereby realizing the construction of the composite service a.
In the embodiment of the invention, each micro service can be predefined or defined and compiled by developers in real time; each micro service is displayed in a GMF framework, fig. 5 exemplarily shows a schematic diagram of a micro service, as shown in fig. 5, a service library includes three types of micro services, an "integration layer local method" is an integration type micro service, a "combinational sub-process" is a combinational type micro service, a "service" is a micro service that implements a business function type, specifically includes establishing a metering information service (a10513001), and the like, and is not specifically limited herein.
It should be noted that the definition of the micro service and the composite service includes the definition of a data structure, for example, the data structure is a metadata type having business meaning (e.g. a customer account number, an available balance, etc.).
Developers can drag and arrange graphic elements and/or micro services in the GMF framework and add the graphic elements and/or micro services to the combined service; wherein, the GMF framework can be visually displayed and edited in an Eclipse interface.
Further, fig. 6 is a schematic diagram of an editing interface exemplarily illustrated in the embodiment of the present invention, as shown in fig. 6, a flowchart canvas characterizing a composition service is shown on the left side of fig. 6; the middle is a graphic element toolbar for arranging graphic elements; on the right side is a service library view of each microservice, containing microservices for invocation. Each orchestrated primitive in the primitive toolbar and the microservices in the service library view may be dragged onto the flowchart canvas and edited for setup.
It should be noted that the GMF framework includes a display layout primitive, a microservice and a composite service specific parameter information area, which is used for displaying input parameters and output parameters of the composite service; and editing the input parameters and the output parameters of the combined service according to the editing instruction.
The editing instruction may be a double-click operation, a single-click operation, and the like, which is not specifically limited herein.
After editing the orchestrated primitives, micro-services and composite services, the micro-services, orchestrated primitives and composite services are recorded in the form of XML files.
In summary, in the embodiments of the present invention, each micro service is arranged based on a visualization model (GNF), basic elements describing arrangement definition of the micro service are abstracted, development of micro service arrangement is converted into a flow chart model, and a development flow of micro service arrangement is simplified. The calling relation of the micro-service is intuitively described, and the calling link of the micro-service is intuitively described, so that the micro-service with problems can be conveniently positioned and checked when the combined service is abnormal.
Based on the same technical concept, fig. 7 exemplarily shows a schematic structural diagram of an apparatus for constructing a composite service according to an embodiment of the present invention, and the apparatus can execute a flow of a method for constructing a composite service.
As shown in fig. 7, the apparatus specifically includes:
a setting module 710, configured to set up each microservice in the composite service and an execution sequence between each microservice;
a processing module 720, configured to determine an arrangement primitive between micro services in the composite service; the arrangement graphic element is used for indicating the processing relation between the micro services;
and setting the input parameters and the output parameters of the layout primitives, calling the input parameters of the combined service, and determining the input parameters and the output parameters of each micro-service so as to obtain the combined service.
Optionally, the processing module 720 is specifically configured to:
aiming at any micro service, determining other micro services having indirect dependency relationship and direct dependency relationship with the micro service according to the input parameter and the output parameter of the layout primitive;
taking the input parameters, the output parameters and the input parameters of the combined service of the other micro services as the input parameters of the micro service;
and executing the micro service according to the input parameters of the micro service to obtain the output parameters of the micro service.
Optionally, the types of the microservices include a service function implementation type, an integration type, and a combination type;
the integrated type micro-service is obtained after editing;
the micro-service of the combination type is obtained by combining a plurality of micro-services.
Optionally, the types of the orchestration primitive include an assignment type, an error checking type, an exception type, a start and end type, a branch type, a condition type, and a loop type.
Optionally, the processing module 720 is specifically configured to:
determining the micro service executed last based on the execution sequence among the micro services;
and taking the output parameter of the micro service executed last as the output parameter of the combined service, thereby obtaining the combined service.
Optionally, the processing module 720 is further configured to:
after the combined service is obtained, displaying input parameters and output parameters of the combined service;
and editing the input parameters and the output parameters of the combined service according to the editing instruction.
Optionally, the micro-services, the layout primitives and the composition services are recorded in the form of XML files.
Based on the same technical concept, an embodiment of the present invention further provides a computer device, including:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the method for constructing the combined service according to the obtained program.
Based on the same technical concept, the embodiment of the present invention also provides a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the above method for constructing a composite service.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
Claims (10)
1. A method of constructing a composite service, comprising:
setting each micro service in the combined service and the execution sequence among the micro services;
determining an arrangement graphic element among all micro services in the combined service; the arrangement primitive is used for indicating the execution relation between the micro services;
and setting the input parameters and the output parameters of the layout primitives, calling the input parameters of the combined service, and determining the input parameters and the output parameters of each micro-service so as to obtain the combined service.
2. The method of claim 1, wherein setting input parameters and output parameters of the orchestration primitive and invoking input parameters of the composite service to determine input parameters and output parameters of each micro-service comprises:
aiming at any micro service, determining other micro services having indirect dependency relationship and direct dependency relationship with the micro service according to the input parameter and the output parameter of the layout primitive;
taking the input parameters, the output parameters and the input parameters of the combined service of the other micro services as the input parameters of the micro service;
and executing the micro service according to the input parameters of the micro service to obtain the output parameters of the micro service.
3. The method of claim 2, wherein the types of microservices include an implementation business function type, an integration type, and a composition type;
the integrated type micro-service is obtained after editing;
the micro-service of the combination type is obtained by combining a plurality of micro-services.
4. The method of claim 1, wherein the types of orchestration primitives include an assignment type, an error checking type, an exception type, a start and end type, a branch type, a condition type, and a loop type.
5. The method of claim 1, wherein obtaining the composite service comprises:
determining the micro service executed last based on the execution sequence among the micro services;
and taking the output parameter of the micro service executed last as the output parameter of the combined service, thereby obtaining the combined service.
6. The method of claim 5, after obtaining the composite service, further comprising:
displaying input parameters and output parameters of the composite service;
and editing the input parameters and the output parameters of the combined service according to the editing instruction.
7. The method of any of claims 1 to 6, wherein the micro-services, orchestration primitives and composition services are recorded in XML files.
8. An apparatus for constructing a composite service, comprising:
the setting module is used for setting each micro service in the combined service and the execution sequence among the micro services;
the processing module is used for determining the layout primitives among all the micro-services in the combined service; the arrangement graphic element is used for indicating the processing relation between the micro services;
and setting the input parameters and the output parameters of the layout primitives, calling the input parameters of the combined service, and determining the input parameters and the output parameters of each micro-service so as to obtain the combined service.
9. A computer device, comprising:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory to perform the method of any of claims 1 to 7 in accordance with the obtained program.
10. A computer program product, characterized in that it comprises computer-executable instructions for causing a computer to perform the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111496523.6A CN114153444A (en) | 2021-12-09 | 2021-12-09 | Method and device for constructing combined service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111496523.6A CN114153444A (en) | 2021-12-09 | 2021-12-09 | Method and device for constructing combined service |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114153444A true CN114153444A (en) | 2022-03-08 |
Family
ID=80453596
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111496523.6A Pending CN114153444A (en) | 2021-12-09 | 2021-12-09 | Method and device for constructing combined service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114153444A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109040152A (en) * | 2017-06-08 | 2018-12-18 | 阿里巴巴集团控股有限公司 | A kind of service request and providing method based on service orchestration, device and electronic equipment |
CN110532020A (en) * | 2019-09-04 | 2019-12-03 | 中国工商银行股份有限公司 | A kind of data processing method of micro services layout, apparatus and system |
CN110764752A (en) * | 2019-11-08 | 2020-02-07 | 普元信息技术股份有限公司 | System and method for realizing graphical service arrangement of Restful service based on micro-service architecture |
CN111026367A (en) * | 2019-11-22 | 2020-04-17 | 金证财富南京科技有限公司 | Micro-service arranging method and device, terminal equipment and storage medium |
CN111078315A (en) * | 2019-12-12 | 2020-04-28 | 拉扎斯网络科技(上海)有限公司 | Microservice arranging and executing method and system, architecture, equipment and storage medium |
CN111767047A (en) * | 2020-06-28 | 2020-10-13 | 北京思特奇信息技术股份有限公司 | Micro-service component management method and device |
WO2021217655A1 (en) * | 2020-04-30 | 2021-11-04 | 深圳中砼物联网科技有限公司 | Software development cooperative control method implemented on basis of service, and computer device and storage medium |
-
2021
- 2021-12-09 CN CN202111496523.6A patent/CN114153444A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109040152A (en) * | 2017-06-08 | 2018-12-18 | 阿里巴巴集团控股有限公司 | A kind of service request and providing method based on service orchestration, device and electronic equipment |
CN110532020A (en) * | 2019-09-04 | 2019-12-03 | 中国工商银行股份有限公司 | A kind of data processing method of micro services layout, apparatus and system |
CN110764752A (en) * | 2019-11-08 | 2020-02-07 | 普元信息技术股份有限公司 | System and method for realizing graphical service arrangement of Restful service based on micro-service architecture |
CN111026367A (en) * | 2019-11-22 | 2020-04-17 | 金证财富南京科技有限公司 | Micro-service arranging method and device, terminal equipment and storage medium |
CN111078315A (en) * | 2019-12-12 | 2020-04-28 | 拉扎斯网络科技(上海)有限公司 | Microservice arranging and executing method and system, architecture, equipment and storage medium |
WO2021217655A1 (en) * | 2020-04-30 | 2021-11-04 | 深圳中砼物联网科技有限公司 | Software development cooperative control method implemented on basis of service, and computer device and storage medium |
CN111767047A (en) * | 2020-06-28 | 2020-10-13 | 北京思特奇信息技术股份有限公司 | Micro-service component management method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100571167C (en) | The method and apparatus of the unit testing of Web service operation flow | |
JP5520219B2 (en) | Graphical computation of transactions with error handling | |
CN106648660A (en) | Method and device for service development | |
US20100121740A1 (en) | Data driven orchestration of business processes | |
CN110532536B (en) | Rule configuration method and device | |
US20050144529A1 (en) | Method for defined derivation of software tests from use cases | |
CN105159761A (en) | Application programming interfaces for data parallel computing on multiple processors | |
EA012912B1 (en) | Controlling task execution | |
CN115129304A (en) | Zero-code-platform-based visual business service arrangement method and device | |
WO2022135478A1 (en) | Task orchestration method and orchestration apparatus | |
US9466037B2 (en) | Versioning and effectivity dates for orchestration business process design | |
Raj et al. | Patterns for migration of SOA based applications to microservices architecture | |
Topçu et al. | Layered simulation architecture: A practical approach | |
EP2913757A1 (en) | Method, system, and computer software product for test automation | |
CN110531967B (en) | Code generation method and code generation device | |
CN114153444A (en) | Method and device for constructing combined service | |
CN116909553A (en) | Page online development and local compiling operation system | |
CN114757124A (en) | CFD workflow modeling method and device based on XML, computer and storage medium | |
CN113867700A (en) | Model construction method, display platform, server and storage medium | |
CN113885760A (en) | Model training configuration data generation method, system, terminal and storage medium | |
Dechsupa et al. | An automated framework for BPMN model verification achieving branch coverage | |
CN102591638B (en) | Events fired pre- and post-method execution | |
CN117421071B (en) | Visual package method and integrated system for plug-in service | |
Jałowiec et al. | Formal verification of BPMN diagrams in Integrated Model of Distributed Systems (IMDS) | |
Larrea et al. | White-Box Testing Framework for Object-Oriented Programming. An Approach Based on Message Sequence Specification and Aspect Oriented Programming |
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 |