CN112083911A - Method, device, equipment and medium for generating service arrangement model - Google Patents

Method, device, equipment and medium for generating service arrangement model Download PDF

Info

Publication number
CN112083911A
CN112083911A CN202010826063.8A CN202010826063A CN112083911A CN 112083911 A CN112083911 A CN 112083911A CN 202010826063 A CN202010826063 A CN 202010826063A CN 112083911 A CN112083911 A CN 112083911A
Authority
CN
China
Prior art keywords
service
model
generating
primitive
text file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010826063.8A
Other languages
Chinese (zh)
Inventor
韩锋
高隆林
马磊猛
殷菲
王传民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Civic Se Commercial Middleware Co ltd
Original Assignee
Shandong Civic Se Commercial Middleware Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Civic Se Commercial Middleware Co ltd filed Critical Shandong Civic Se Commercial Middleware Co ltd
Priority to CN202010826063.8A priority Critical patent/CN112083911A/en
Publication of CN112083911A publication Critical patent/CN112083911A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The application discloses a method, a device and equipment for generating a service arrangement model and a computer readable storage medium, wherein the method comprises the following steps: setting a primitive according to the Node and the Line in the jTopo; generating a request according to the received service layout model, selecting a primitive and dragging the selected primitive to a canvas of jTopo; configuring the relation of the primitives distributed in the canvas according to the service layout model generation request, configuring parameters for each primitive to generate a service layout model, and converting the service layout model into a text file; and importing the text file into a target platform, and analyzing the text file to generate a service arrangement model in the target platform. According to the technical scheme disclosed by the application, the service arrangement model is quickly constructed and generated by utilizing the jTopo, and the service arrangement model is directly generated by analyzing the text file obtained by converting the service arrangement model, so that the generation efficiency of the service arrangement model is improved.

Description

Method, device, equipment and medium for generating service arrangement model
Technical Field
The present application relates to the field of micro service architecture technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for generating a service orchestration model.
Background
In the micro-service architecture, applications can be decomposed into services with smaller granularity, each service can be deployed and used independently, even services of different applications can be organized into a service arrangement model according to user requirements to provide new services for the outside, so that the new services are utilized to meet the use requirements of people, namely the service arrangement model organizes the services together to complete a business process, which substantially represents the topological relation between the services. The arranged service parameters are various and the service relationship is complex.
At present, a service arrangement model is often constructed by using Flash as a Web topology, and when the same service arrangement needs to be constructed on different platforms, the service arrangement model is often reconstructed by reconstructing the Web topology on the different platforms by using Flash. However, since the service arrangement model includes a large number of services, the service relationship is complicated, and the corresponding parameters are various, the above method may reduce the generation efficiency of the service arrangement model.
In summary, how to improve the generation efficiency of the service layout model is a problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method, an apparatus, a device and a computer-readable storage medium for generating a service orchestration model, which are used to improve the generation efficiency of the service orchestration model.
In order to achieve the above purpose, the present application provides the following technical solutions:
a method of generating a service orchestration model, comprising:
setting a primitive according to the Node and the Line in the jTopo;
generating a request according to the received service layout model, selecting a primitive and dragging the selected primitive to a canvas of the jTopo;
configuring the relation of the graphic elements distributed in the canvas according to the service layout model generation request, configuring parameters for each graphic element to generate a service layout model, and converting the service layout model into a text file;
and importing the text file into a target platform, and analyzing the text file to generate the service arrangement model in the target platform.
Preferably, converting the service orchestration model into a text file comprises:
and converting the service layout model into a JSON file.
Preferably, after converting the service orchestration model into a text file, the method further includes:
and downloading the JSON file to the local in the foreground by combining the Blob object.
Preferably, after configuring parameters for each primitive to generate a service orchestration model, the method further includes:
acquiring basic information of the service arrangement model; wherein the basic information comprises a name and/or version of the service orchestration model;
correspondingly, converting the service layout model into a JSON file, comprising the following steps:
converting the graphic elements and the parameters corresponding to the graphic elements contained in the service layout model into a first JSON file, converting the basic information of the service layout model into a second JSON file, and combining the first JSON file and the second JSON file into the JSON file.
Preferably, parsing the text file to generate the service orchestration model in the target platform includes:
analyzing the first JSON file in the JSON files, and filling basic information of the service layout model obtained through analysis into a list of the service layout model;
and analyzing the second JSON file in the JSON files, filling the pixel obtained by analysis into the canvas of the jTopo, and filling the parameter corresponding to the pixel obtained by analysis into the page form corresponding to the pixel.
Preferably, configuring parameters for each primitive includes:
and configuring the parameters of the graphic elements in a page form corresponding to the graphic elements.
An apparatus for generating a service orchestration model, comprising:
the setting module is used for setting the graphic elements according to the Node and the Line in the jTopo;
the selection module is used for generating a request according to the received service layout model, selecting a primitive and dragging the selected primitive to the canvas of the jTopo;
the configuration module is used for configuring the relation of the primitives distributed in the canvas according to the service layout model generation request, configuring parameters for each primitive to generate a service layout model and converting the service layout model into a text file;
and the generating module is used for importing the text file into a target platform and analyzing the text file so as to generate the service arrangement model in the target platform.
Preferably, the configuration module includes:
and the conversion unit is used for converting the service layout model into a JSON file.
A service orchestration model generation device comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method of generating a service orchestration model according to any one of the above when executing the computer program.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method of generating a service orchestration model according to any one of the preceding claims.
The application provides a method, a device, equipment and a computer readable storage medium for generating a service orchestration model, wherein the method comprises the following steps: setting a primitive according to the Node and the Line in the jTopo; generating a request according to the received service layout model, selecting a primitive and dragging the selected primitive to a canvas of jTopo; configuring the relation of the primitives distributed in the canvas according to the service layout model generation request, configuring parameters for each primitive to generate a service layout model, and converting the service layout model into a text file; and importing the text file into a target platform, and analyzing the text file to generate a service arrangement model in the target platform.
The technical scheme disclosed by the application comprises the steps of firstly setting primitives according to Node and Line in jTopo, after receiving a service arrangement model generation request, selecting the primitives according to the request, dragging the selected primitives to canvas of the jTopo, configuring the relationship among the primitives distributed in the canvas according to the request, configuring parameters for each primitive, constructing and generating the service arrangement model through the jTopo, then converting the generated service arrangement model into a text file, importing the text file into a target platform, directly generating the service arrangement model in the target platform through analyzing the text file, and compared with the existing problem that the service arrangement model is constructed by using Flash as Web topology and needs to be reconstructed in different platforms, the generation efficiency of the service arrangement model is lower, the application improves the generation efficiency of the model through using the jTopo, and the service arrangement model is directly generated by analyzing the text file obtained by converting the service arrangement model, so that the service arrangement and model construction do not need to be carried out again in the target platform, and the generation efficiency of the service arrangement model is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flowchart of a method for generating a service orchestration model according to an embodiment of the present application;
fig. 2 is a structural diagram of primitives set according to Node and Line in jTopo according to an embodiment of the present application;
FIG. 3 is a diagram illustrating a specific service orchestration model according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a device for generating a service orchestration model according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a service orchestration model generation device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and 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 application.
Referring to fig. 1, which shows a flowchart of a method for generating a service orchestration model according to an embodiment of the present application, a method for generating a service orchestration model according to an embodiment of the present application may include:
s11: and setting the primitives according to the Node and the Line in the jTopo.
In the process of generating the service orchestration model, primitives may be set according to a Node (Node object) and a Line (connection object) in a jTopo (javascript Topology library), specifically, a Node primitive may be set according to a Node in a jTopo, and a relationship primitive may be set according to a Line in a jTopo, where a Node primitive may include input, output, an interface, a route, and result processing, and a relationship primitive may include a sequence and a loop, specifically, see fig. 2, which shows primitives set according to a Node structure diagram and a Line in a jTopo provided in an embodiment of the present application.
The jTopo is a relation and topology graphical interface development toolkit completely based on HTML5 Canvas, focuses on graphical display of data, is developer-oriented, and can be used for quickly creating relevant graphical displays such as relation graphs and topologies and the like, so that the construction and generation efficiency of the service arrangement model is improved conveniently, and the jTopo has better safety and compatibility compared with a Web topology made of Flash.
S12: and generating a request according to the received service layout model, selecting the graphic elements and dragging the selected graphic elements to the canvas of the jTopo.
When service orchestration model generation is required, then the user may send a service orchestration model generation request. After receiving the service orchestration model generation request, a primitive may be selected from the set primitives according to the service orchestration model generation request and the selected primitive may be dragged to a canvas of jTopo, so as to construct a service orchestration model using the selected primitive.
It should be noted that after dragging the selected primitive into the canvas of jTopo, each primitive corresponds to an object, but the objects are incomplete because the objects have not been configured with parameters.
S13: and configuring the relation of the primitives distributed in the canvas according to the service layout model generation request, configuring parameters for each primitive to generate a service layout model, and converting the service layout model into a text file.
After drawing the primitives into the canvas of the jTopo, the relationship of the primitives distributed in the canvas can be configured according to the received service orchestration model generation request, that is, the connection and business logic between the primitives are configured, so that the service orchestration model can provide services to the outside according to the relationship between the primitives, and the use requirements of users are met.
When the relationship among the primitives distributed in the drawing is configured, parameters may be configured for the primitives distributed in the canvas, where the configured parameters may specifically include a name, a presentation name, an access path, a location, and the like, and different objects may be distinguished by the location of the primitive. After the parameters are configured for the primitive, the parameters corresponding to the primitive can be obtained by clicking the primitive, that is, the parameters corresponding to the object corresponding to the primitive can be obtained. In the process, the objects corresponding to the primitives distributed in the canvas can be made complete by configuring the parameters for the primitives, so that the service orchestration model can provide services to the outside conveniently.
After the relation configuration and the parameter configuration are carried out on the primitives distributed in the canvas, the service arrangement model corresponding to the service arrangement model generation request can be generated, and compared with the existing method of constructing the service arrangement model by adopting Flash as Web topology, the service arrangement model can be simply and quickly constructed and generated by combining jTopo, so that the generation efficiency of the service arrangement model can be improved. Specifically, refer to fig. 3, which shows a specific schematic diagram of a service layout model provided in an embodiment of the present application, where a connection line between each node primitive is obtained by configuring a relationship between primitives distributed in a canvas according to a service layout model generation request, in fig. 3, interfaces at different positions correspond to different objects, taking an example that an object corresponds to an object in a car trip, and when a corresponding primitive is clicked, a parameter configured for the object in the car trip can be correspondingly displayed.
After the service orchestration model is generated, the service orchestration model may be converted into a text file, so that the generated service orchestration model is described in a text file with a small volume and is stored, exported, and imported.
S14: and importing the text file into a target platform, and analyzing the text file to generate a service arrangement model in the target platform.
After the generated service arrangement model is converted into the text file, the text file obtained by the conversion may be imported into a target platform, where the target platform is specifically a platform that needs to be constructed with the same model as the generated service arrangement model and is selected and specified by a user. Then, the text file can be analyzed, so that the service arrangement model is generated in the target platform directly through analysis, and the generated service arrangement model is used for providing services for the outside.
Compared with the existing method that the service arrangement model needs to be built and generated in the target platform again, the method and the device can directly generate the service arrangement model in the target platform through analyzing the text file obtained through conversion of the service arrangement model, so that the generation efficiency of the service arrangement model can be improved, and the text file can be analyzed across production environments to generate the service arrangement model.
The technical scheme disclosed by the application comprises the steps of firstly setting primitives according to Node and Line in jTopo, after receiving a service arrangement model generation request, selecting the primitives according to the request, dragging the selected primitives to canvas of the jTopo, configuring the relationship among the primitives distributed in the canvas according to the request, configuring parameters for each primitive, constructing and generating the service arrangement model through the jTopo, then converting the generated service arrangement model into a text file, importing the text file into a target platform, directly generating the service arrangement model in the target platform through analyzing the text file, and compared with the existing problem that the service arrangement model is constructed by using Flash as Web topology and needs to be reconstructed in different platforms, the generation efficiency of the service arrangement model is lower, the application improves the generation efficiency of the model through using the jTopo, and the service arrangement model is directly generated by analyzing the text file obtained by converting the service arrangement model, so that the service arrangement and model construction do not need to be carried out again in the target platform, and the generation efficiency of the service arrangement model is improved.
The method for generating the service arrangement model, provided by the embodiment of the application, converts the service arrangement model into the text file, and may include:
and converting the service layout model into a JSON file.
When the service layout model is converted into the text file, the service layout model can be specifically converted into a JSON file, where JSON (javascript object notation) is a lightweight data exchange format, which is easy for human reading and writing, and is also easy for machine parsing and generation.
Through the conversion, the service layout model can be described by the JSON file with a smaller volume, the JSON file has the characteristics of clear structure, strong readability and the like, and complex service layout model data can be efficiently maintained at low cost.
Of course, the service orchestration model may also be converted to a txt text file or other type of text file, etc.
The method for generating the service arrangement model provided by the embodiment of the application, after converting the service arrangement model into the text file, may further include:
and downloading the JSON file to the local in the foreground by combining the Blob object.
After the service layout model is converted into the text file, the JSON file can be downloaded to the local by combining the Blob object in the foreground, so that a user can conveniently acquire and view the information of the service layout model through the downloaded JSON file, and the user can conveniently modify the JSON file, so that the modification of the service layout model is conveniently realized.
One Blob object is a class file object containing read-only raw data, which can be regarded as a container for storing binary data.
The method for generating a service arrangement model provided in the embodiment of the present application, after configuring parameters for each primitive to generate the service arrangement model, may further include:
acquiring basic information of a service arrangement model; wherein, the basic information may include the name and/or version of the service orchestration model;
accordingly, converting the service orchestration model into a JSON file may include:
and converting the primitives contained in the service layout model and the parameters corresponding to the primitives into a first JSON file, converting the basic information of the service layout model into a second JSON file, and combining the first JSON file and the second JSON file into the JSON file.
In this application, after the parameters are configured for each primitive distributed in the canvas to generate the service orchestration model, the basic information of the generated service orchestration model may be obtained, and the basic information of the service orchestration model may specifically include a name and/or a version of the service orchestration model. Wherein, the basic information of the service arrangement model can be set according to the service arrangement model generation request.
Correspondingly, the process of converting the service layout model into the JSON file specifically includes: and converting the primitives contained in the service layout model and the parameters corresponding to the primitives into a first JSON file, converting the acquired basic information of the service layout model into a second JSON file, and then combining the first JSON file and the second JSON file obtained by conversion into a total JSON file, wherein the total JSON file is the JSON file obtained by converting the service layout model. It should be noted that each primitive and its data in the service orchestration model can be generated into a segment of JSON data, and the relationship between the primitives can be described by the JSON data, that is, the second JSON file can contain multiple segments of JSON data, each segment of JSON data corresponds to a primitive, the data corresponding to the primitive, and the relationship between the primitives, and the structure is clear and convenient to analyze.
Through the process, the finally obtained total JSON file can cover all information of the service layout model as much as possible, and the first JSON file and the second JSON file are combined into one total JSON file, so that all information of the service layout model can be conveniently imported into the target platform through one-time import.
The method for generating a service orchestration model according to the embodiment of the present application, which analyzes a text file to generate the service orchestration model in a target platform, may include:
analyzing a first JSON file in the JSON files, and filling basic information of the service layout model obtained through analysis into a list of the service layout model;
and analyzing a second JSON file in the JSON files, filling the pixels obtained through analysis into a canvas of jTopo, and filling parameters corresponding to the pixels obtained through analysis into a page form corresponding to the pixels.
When the text file is analyzed to generate the service layout model in the target platform, a first JSON file in the JSON file (i.e., the above-mentioned total JSON file) can be analyzed, basic information of the service layout model obtained through analysis is filled in a list of the service layout model, so that the basic information of the service layout model can be obtained through the list of the service layout model subsequently, a second JSON file in the JSON file can be analyzed, a primitive obtained through analysis is filled in a canvas of a jTopo, and a parameter corresponding to the primitive obtained through analysis is filled in a page form corresponding to the primitive, so that configuration of the parameter corresponding to the primitive is realized, and the service layout model is generated in the target platform.
The method for generating the service layout model provided in the embodiment of the present application, which configures parameters for each primitive, may include:
and configuring the parameters of the graphic elements in the page form corresponding to the graphic elements.
When configuring parameters for each primitive, the parameters of the primitive may be specifically configured in a page form corresponding to the primitive, specifically as shown in fig. 3, the parameters of the primitive corresponding to the object of car outgoing may be configured in a page form corresponding to the object, so that the parameters configured for the primitive may be displayed in the page form corresponding to the primitive by clicking the primitive in the following step.
An embodiment of the present application further provides a device for generating a service orchestration model, see fig. 4, which shows a schematic structural diagram of the device for generating a service orchestration model according to the embodiment of the present application, and the device may include:
a setting module 41, configured to set primitives according to the Node and the Line in the jTopo;
a selection module 42, configured to generate a request according to the received service orchestration model, select a primitive, and drag the selected primitive to a canvas of jTopo;
the configuration module 43 is configured to configure the relationship between the primitives distributed in the canvas according to the service orchestration model generation request, configure parameters for each primitive, generate a service orchestration model, and convert the service orchestration model into a text file;
and the generating module 44 is configured to import the text file into the target platform, and parse the text file to generate the service arrangement model in the target platform.
In an apparatus for generating a service orchestration model according to an embodiment of the present application, the configuration module 43 may include:
and the conversion unit is used for converting the service layout model into a JSON file.
The apparatus for generating a service orchestration model provided in an embodiment of the present application may further include:
and the downloading module is used for downloading the JSON file to the local in the foreground by combining the Blob object after the service layout model is converted into the text file.
The apparatus for generating a service orchestration model provided in an embodiment of the present application may further include:
the acquisition module is used for acquiring basic information of the service arrangement model after parameters are configured for each primitive to generate the service arrangement model; wherein, the basic information may include the name and/or version of the service orchestration model;
accordingly, the conversion unit may comprise:
and the conversion module is used for converting the primitives contained in the service layout model and the parameters corresponding to the primitives into a first JSON file, converting the basic information of the service layout model into a second JSON file, and combining the first JSON file and the second JSON file into the JSON file.
In an apparatus for generating a service orchestration model according to an embodiment of the present application, the generating module 44 may include:
the first analysis unit is used for analyzing a first JSON file in the JSON files and filling basic information of the service layout model obtained through analysis into a list of the service layout model;
and the second analysis unit is used for analyzing a second JSON file in the JSON files, filling the pixels obtained through analysis into a canvas of jTopo, and filling the parameters corresponding to the pixels obtained through analysis into a page form corresponding to the pixels.
In an apparatus for generating a service orchestration model according to an embodiment of the present application, the configuration module 43 may include:
and the configuration unit is used for configuring the parameters of the graphic elements in the page form corresponding to the graphic elements.
An embodiment of the present application further provides a device for generating a service orchestration model, see fig. 5, which shows a schematic structural diagram of the device for generating a service orchestration model according to the embodiment of the present application, and the device may include:
a memory 51 for storing a computer program;
the processor 52, when executing the computer program stored in the memory 51, may implement the following steps:
setting a primitive according to the Node and the Line in the jTopo; generating a request according to the received service layout model, selecting a primitive and dragging the selected primitive to a canvas of jTopo; configuring the relation of the primitives distributed in the canvas according to the service layout model generation request, configuring parameters for each primitive to generate a service layout model, and converting the service layout model into a text file; and importing the text file into a target platform, and analyzing the text file to generate a service arrangement model in the target platform.
An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps may be implemented:
setting a primitive according to the Node and the Line in the jTopo; generating a request according to the received service layout model, selecting a primitive and dragging the selected primitive to a canvas of jTopo; configuring the relation of the primitives distributed in the canvas according to the service layout model generation request, configuring parameters for each primitive to generate a service layout model, and converting the service layout model into a text file; and importing the text file into a target platform, and analyzing the text file to generate a service arrangement model in the target platform.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For a description of a relevant part in the device, the apparatus, and the computer-readable storage medium for generating a service orchestration model provided in the embodiment of the present application, reference may be made to a detailed description of a corresponding part in the method for generating a service orchestration model provided in the embodiment of the present application, and details are not repeated here.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include elements inherent in the list. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for generating a service orchestration model, comprising:
setting a primitive according to the Node and the Line in the jTopo;
generating a request according to the received service layout model, selecting a primitive and dragging the selected primitive to a canvas of the jTopo;
configuring the relation of the graphic elements distributed in the canvas according to the service layout model generation request, configuring parameters for each graphic element to generate a service layout model, and converting the service layout model into a text file;
and importing the text file into a target platform, and analyzing the text file to generate the service arrangement model in the target platform.
2. The method of generating a service orchestration model according to claim 1, wherein converting the service orchestration model into a text file comprises:
and converting the service layout model into a JSON file.
3. The method of generating a service orchestration model according to claim 2, further comprising, after converting the service orchestration model into a text file:
and downloading the JSON file to the local in the foreground by combining the Blob object.
4. The method of generating a service orchestration model according to claim 2, wherein after configuring parameters for each of the primitives to generate the service orchestration model, further comprising:
acquiring basic information of the service arrangement model; wherein the basic information comprises a name and/or version of the service orchestration model;
correspondingly, converting the service layout model into a JSON file, comprising the following steps:
converting the graphic elements and the parameters corresponding to the graphic elements contained in the service layout model into a first JSON file, converting the basic information of the service layout model into a second JSON file, and combining the first JSON file and the second JSON file into the JSON file.
5. The method of generating a service orchestration model according to claim 4, wherein parsing the text file to generate the service orchestration model in the target platform comprises:
analyzing the first JSON file in the JSON files, and filling basic information of the service layout model obtained through analysis into a list of the service layout model;
and analyzing the second JSON file in the JSON files, filling the pixel obtained by analysis into the canvas of the jTopo, and filling the parameter corresponding to the pixel obtained by analysis into the page form corresponding to the pixel.
6. The method of claim 1, wherein configuring parameters for each primitive comprises:
and configuring the parameters of the graphic elements in a page form corresponding to the graphic elements.
7. An apparatus for generating a service orchestration model, comprising:
the setting module is used for setting the graphic elements according to the Node and the Line in the jTopo;
the selection module is used for generating a request according to the received service layout model, selecting a primitive and dragging the selected primitive to the canvas of the jTopo;
the configuration module is used for configuring the relation of the primitives distributed in the canvas according to the service layout model generation request, configuring parameters for each primitive to generate a service layout model and converting the service layout model into a text file;
and the generating module is used for importing the text file into a target platform and analyzing the text file so as to generate the service arrangement model in the target platform.
8. The apparatus for generating a service orchestration model according to claim 7, wherein the configuration module comprises:
and the conversion unit is used for converting the service layout model into a JSON file.
9. A service orchestration model generation device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method of generating a service orchestration model according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method for generating a service orchestration model according to any one of claims 1 to 6.
CN202010826063.8A 2020-08-17 2020-08-17 Method, device, equipment and medium for generating service arrangement model Pending CN112083911A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010826063.8A CN112083911A (en) 2020-08-17 2020-08-17 Method, device, equipment and medium for generating service arrangement model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010826063.8A CN112083911A (en) 2020-08-17 2020-08-17 Method, device, equipment and medium for generating service arrangement model

Publications (1)

Publication Number Publication Date
CN112083911A true CN112083911A (en) 2020-12-15

Family

ID=73728266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010826063.8A Pending CN112083911A (en) 2020-08-17 2020-08-17 Method, device, equipment and medium for generating service arrangement model

Country Status (1)

Country Link
CN (1) CN112083911A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022135478A1 (en) * 2020-12-25 2022-06-30 第四范式(北京)技术有限公司 Task orchestration method and orchestration apparatus

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120198481A1 (en) * 2011-01-30 2012-08-02 International Business Machines Corporation Off-premise and codeless process-centric business mashup to integrate bpel based processes and web 2.0 widgets
CN106990895A (en) * 2017-03-30 2017-07-28 山东中创软件商用中间件股份有限公司 A kind of applied topology Graph editor realized based on jTopo technologies
CN108681451A (en) * 2018-05-14 2018-10-19 浪潮软件集团有限公司 Visual kubernets micro-service arrangement implementation method
CN109039786A (en) * 2018-09-28 2018-12-18 山东中创软件商用中间件股份有限公司 A kind of topology drawing generating method, device, equipment and readable storage medium storing program for executing
CN109165020A (en) * 2018-07-25 2019-01-08 山东中创软件商用中间件股份有限公司 Using method of combination, device, equipment and computer readable storage medium
CN110795148A (en) * 2019-10-28 2020-02-14 北京旷视科技有限公司 Method and device for generating layout file and electronic equipment
CN111522543A (en) * 2020-04-16 2020-08-11 科大国创云网科技有限公司 Visual application component arrangement method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120198481A1 (en) * 2011-01-30 2012-08-02 International Business Machines Corporation Off-premise and codeless process-centric business mashup to integrate bpel based processes and web 2.0 widgets
CN106990895A (en) * 2017-03-30 2017-07-28 山东中创软件商用中间件股份有限公司 A kind of applied topology Graph editor realized based on jTopo technologies
CN108681451A (en) * 2018-05-14 2018-10-19 浪潮软件集团有限公司 Visual kubernets micro-service arrangement implementation method
CN109165020A (en) * 2018-07-25 2019-01-08 山东中创软件商用中间件股份有限公司 Using method of combination, device, equipment and computer readable storage medium
CN109039786A (en) * 2018-09-28 2018-12-18 山东中创软件商用中间件股份有限公司 A kind of topology drawing generating method, device, equipment and readable storage medium storing program for executing
CN110795148A (en) * 2019-10-28 2020-02-14 北京旷视科技有限公司 Method and device for generating layout file and electronic equipment
CN111522543A (en) * 2020-04-16 2020-08-11 科大国创云网科技有限公司 Visual application component arrangement method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
梁进科等: "容器云环境下可视化编排技术", 《计算机与网络》, pages 58 - 60 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022135478A1 (en) * 2020-12-25 2022-06-30 第四范式(北京)技术有限公司 Task orchestration method and orchestration apparatus

Similar Documents

Publication Publication Date Title
CN102257489B (en) Grid and the visual two-way renewal being associated
Hadlak et al. In situ exploration of large dynamic networks
US9575950B2 (en) Systems and methods for managing spreadsheet models
CN111666526A (en) Page generation method, device, equipment and storage medium
CN108984172B (en) Interface file generation method and device
CN112100550A (en) Page construction method and device
Seider et al. Visualizing modules and dependencies of OSGi-based applications
CN111563220A (en) Business website project construction method and device, computer equipment and storage medium
CN108038212A (en) A kind of data interactive method, device, system, equipment and storage medium
CN106202006A (en) Document generating method and device
US20150220236A1 (en) Post-designing method and apparatus based on variant configuration in development of graphic user interface
CN113239310A (en) Page loading method and related device
CN113821201A (en) Code development method and device, electronic equipment and storage medium
CN114816375A (en) Service arranging method, device, equipment and storage medium
Erraissi et al. An approach based on model driven engineering for big data visualization in different visual modes
US10289388B2 (en) Process visualization toolkit
CN112083911A (en) Method, device, equipment and medium for generating service arrangement model
CN114647409A (en) Large-screen visualization application creation platform, method, computing device and storage medium
CN107147732A (en) Image processing method, device, client and service end
US20190266265A1 (en) Integrated computing environment for managing and presenting design iterations
de Lange et al. Collaborative wireframing for model-driven web engineering
Nestor et al. Visualisation of Variability in Software Product Line Engineering.
CN113778412A (en) Data resource arranging method and device, computer equipment and readable storage medium
CN114860205A (en) Application extension system, method and device of low-code development platform
CN114676187A (en) Data processing method, device, equipment and medium

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