CN111459470B - Method for generating codes and documents by interfacing Hub system with third party software - Google Patents

Method for generating codes and documents by interfacing Hub system with third party software Download PDF

Info

Publication number
CN111459470B
CN111459470B CN202010277773.XA CN202010277773A CN111459470B CN 111459470 B CN111459470 B CN 111459470B CN 202010277773 A CN202010277773 A CN 202010277773A CN 111459470 B CN111459470 B CN 111459470B
Authority
CN
China
Prior art keywords
generator
party software
documents
hub system
interfacing
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.)
Active
Application number
CN202010277773.XA
Other languages
Chinese (zh)
Other versions
CN111459470A (en
Inventor
许海峰
仇文彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Zunyi Business Information Consulting Co ltd
Original Assignee
Shanghai Zunyi Business Information Consulting 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 Shanghai Zunyi Business Information Consulting Co ltd filed Critical Shanghai Zunyi Business Information Consulting Co ltd
Priority to CN202010277773.XA priority Critical patent/CN111459470B/en
Publication of CN111459470A publication Critical patent/CN111459470A/en
Application granted granted Critical
Publication of CN111459470B publication Critical patent/CN111459470B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The invention relates to a method for generating codes and documents by interfacing a Hub system with third party software, which comprises the following steps: s1, a user sends a third-party software document to a generator; s2, the generator imports configuration parameters to the configurator; s3, importing a third-party software document to a template generator by the generator; s4, generating a model by the generator to a model generator; s5, the generator generates a compiler to the compiling generator; s6, the generator generates a tool structure to the tool generator; and S7, the generator generates codes and documents conforming to the Hub system standard, and returns the processing result to the user. The method has the advantages that the third-party software document is subjected to service mapping, and codes and documents conforming to the Hub system standard are dynamically generated.

Description

Method for generating codes and documents by interfacing Hub system with third party software
[ field of technology ]
The invention relates to the technical field of internet cloud services, in particular to a method for generating codes and documents by interfacing a Hub system with third party software.
[ background Art ]
Hub systems typically cloud services create a management platform for storing files in a development flow and creating project workflows. When using the Hub system, a user can conveniently and rapidly store, view, call and other operations on files generated in the whole project period. Meanwhile, the DevOps workflow service is integrated in the Hub system, a user can flexibly arrange the DevOps workflow by using the mirror image component according to own business, code hosting is quickly established, tasks such as continuous construction, test management and deployment are continuously carried out, continuous integration and continuous delivery force are created, and the iterative release speed of software is accelerated. Hub system cores typically have two parts, first, it is a multi-functional repository containing Docker mirror storage functions and a store such as hemlcharts, and also some build products, etc. Second, the Hub system is a DevOps engine, and the workflow is arranged through the designed workflow engine to build own DevOps flow, such as building, testing, auditing, deployment and other tasks.
The Hub system mainly has two problems at present. The set/get is called in the running period in a reflection mode or the member variable is directly assigned; the assignment is executed through invoke, and an open source library such as beans, javascist and the like is generally adopted in the implementation; representative of this class: dozer, modemaper; the technical scheme has the performance bottleneck problem under the high concurrency scene. A class file of the set/get code is dynamically generated at compile time and is directly called at runtime. In the method, a set/get code can exist virtually, and only self writing is not needed; such represents Selma, orika; such a solution cannot be flexibly configured in a visual manner.
Maven is a project management tool that contains a project object model (Project Object Model), a set of criteria, a project lifecycle (Project Lifecycle), a dependency management system (Dependency Management System), and logic for running plug in (gold) objects (gold) defined in the lifecycle phases (phase). When Maven is used, the project is described with a well-defined project object model, and Maven can then apply transection logic from a set of shared (or custom) plug-ins.
[ invention ]
The invention aims to provide a method for carrying out service mapping on a third-party software document and dynamically generating codes and documents conforming to Hub system standards.
In order to achieve the above purpose, the technical scheme adopted by the invention is that the method for generating codes and documents by interfacing a Hub system with third party software is realized by a computer program running on the Hub system, and the computer program is used for generating codes and documents conforming to the standard of the Hub system from the third party software documents, and comprises a generator program module, a configurator program module, a template generator program module, a compiling generator program module and a tool generator program module; the method for generating codes and documents by interfacing the third party software comprises the following steps:
s1, a user sends a third-party software document to a generator, and the generator executes a service mapping task;
s2, importing configuration parameters to a configurator by the generator, and returning a processing result to the generator by the configurator;
s3, importing a third-party software document to a template generator by the generator, and returning a processing result to the generator by the template generator;
s4, generating a model by the generator to a model generator, and returning a processing result by the model generator to the generator;
s5, the generator generates a compiler to a compiling generator, and the compiling generator returns a processing result to the generator;
s6, the generator generates a tool structure to the tool generator, and the tool generator returns a processing result to the generator;
and S7, the generator generates codes and documents which accord with Hub system standards from the third-party software documents according to the results of the steps S2, S3, S4, S5 and S6, and returns the processing results to the user.
Preferably, the third party software is a visualization software.
Preferably, the visualization software is Excel software, and the third party software document is an Excel document.
Preferably, the method for generating codes and documents by interfacing with the third party software is based on a Maven plugin mode.
The invention has the following beneficial effects: 1. the problem that the client documents are different in format and inconvenient to maintain and manage uniformly is solved; 2. the problem of massive concentration in the mapping of the client documents and Hub system platform documents is solved, and the working efficiency is improved; 3. the problem of delivery and test of project implementation can be well followed according to documents.
[ description of the drawings ]
FIG. 1 is a diagram of steps in a method for interfacing a Hub system to third party software generation code and documents.
[ detailed description ] of the invention
The invention is further described below with reference to examples and with reference to the accompanying drawings.
Example 1
The embodiment realizes a method for generating codes and documents by interfacing a Hub system with third party software.
FIG. 1 is a diagram of steps in a method for interfacing a Hub system to third party software generation code and documents. As shown in fig. 1, a method for interfacing a Hub system with third party software to generate codes and documents is implemented by a computer program running on the Hub system, and is used for generating codes and documents conforming to the standard of the Hub system from third party software documents, where the computer program includes a generator program module, a configurator program module, a template generator program module, a compiling generator program module and a tool generator program module; the method for generating codes and documents by interfacing the third party software comprises the following steps:
s1, a user sends a third-party software document to a generator, and the generator executes a service mapping task;
s2, importing configuration parameters to a configurator by the generator, and returning a processing result to the generator by the configurator;
s3, importing a third-party software document to a template generator by the generator, and returning a processing result to the generator by the template generator;
s4, generating a model by the generator to a model generator, and returning a processing result by the model generator to the generator;
s5, the generator generates a compiler to a compiling generator, and the compiling generator returns a processing result to the generator;
s6, the generator generates a tool structure to the tool generator, and the tool generator returns a processing result to the generator;
and S7, the generator generates codes and documents which accord with Hub system standards from the third-party software documents according to the results of the steps S2, S3, S4, S5 and S6, and returns the processing results to the user.
Preferably, the third party software is a visualization software.
Preferably, the visualization software is Excel software, and the third party software document is an Excel document.
According to the method for generating codes and documents by the Hub system in the third party software interfacing mode, business personnel can conduct business mapping of interface documents through Excel documents or visual interfaces, and a Hub system component dynamically processes the documents to generate corresponding mapping codes.
Preferably, the method for generating codes and documents by interfacing with the third party software is based on a Maven plugin mode.
The method for generating codes and documents by the Hub system for interfacing with the third party software is mainly based on a Maven plug in mode for generating codes and is different from other technical implementation modes mentioned in the background art.
In this embodiment, four classes are set to implement the program modules based on the Maven plug in mode, where the Genaror class is a main entry of a code, the ModelGenerator class is used to generate a corresponding mapping entity, the BuilderGenerator class is used to generate a method used in the entity mapping process, and the implementGenerator class is used to generate an interface method for providing customized development.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, where the storage medium may be a magnetic disk, an optical disc, a Read-Only Memory (ROM), a random access Memory (Random Acess Memory, RAM), or the like.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and additions to the present invention may be made by those skilled in the art without departing from the principles of the present invention and such modifications and additions are to be considered as well as within the scope of the present invention.

Claims (4)

1. The method for generating codes and documents by interfacing a Hub system with third-party software is realized by a computer program running on the Hub system and used for generating codes and documents conforming to the Hub system standard from the third-party software documents, wherein the computer program comprises a generator program module, a configurator program module, a template generator program module, a compiling generator program module and a tool generator program module; the method is characterized in that the method for generating codes and documents by interfacing the third party software comprises the following steps:
s1, a user sends a third-party software document to a generator, and the generator executes a service mapping task;
s2, importing configuration parameters to a configurator by the generator, and returning a processing result to the generator by the configurator;
s3, importing a third-party software document to a template generator by the generator, and returning a processing result to the generator by the template generator;
s4, generating a model by the generator to a model generator, and returning a processing result by the model generator to the generator;
s5, the generator generates a compiler to a compiling generator, and the compiling generator returns a processing result to the generator;
s6, the generator generates a tool structure to the tool generator, and the tool generator returns a processing result to the generator;
and S7, the generator generates codes and documents which accord with Hub system standards from the third-party software documents according to the results of the steps S2, S3, S4, S5 and S6, and returns the processing results to the user.
2. The method for interfacing a Hub system with third party software to generate code and documents according to claim 1, wherein: the third party software is visualization software.
3. The method for interfacing a Hub system with third party software to generate code and documents according to claim 2, wherein: the visualization software is Excel software, and the third party software document is an Excel document.
4. The method for interfacing a Hub system with third party software to generate code and documents according to claim 1, wherein: the method for generating codes and documents by interfacing with the third party software is based on a Maven plug-in mode.
CN202010277773.XA 2020-04-08 2020-04-08 Method for generating codes and documents by interfacing Hub system with third party software Active CN111459470B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010277773.XA CN111459470B (en) 2020-04-08 2020-04-08 Method for generating codes and documents by interfacing Hub system with third party software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010277773.XA CN111459470B (en) 2020-04-08 2020-04-08 Method for generating codes and documents by interfacing Hub system with third party software

Publications (2)

Publication Number Publication Date
CN111459470A CN111459470A (en) 2020-07-28
CN111459470B true CN111459470B (en) 2023-05-02

Family

ID=71678948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010277773.XA Active CN111459470B (en) 2020-04-08 2020-04-08 Method for generating codes and documents by interfacing Hub system with third party software

Country Status (1)

Country Link
CN (1) CN111459470B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617167A (en) * 2013-10-22 2014-03-05 芜湖大学科技园发展有限公司 Universal metadata/ relation mapping frame
CN109491708A (en) * 2018-11-21 2019-03-19 北京锐安科技有限公司 Document structure tree method, system, equipment and medium
CN110457031A (en) * 2019-08-21 2019-11-15 赛尔网络有限公司 A kind of software development methodology, device, equipment and medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8239823B2 (en) * 2009-03-20 2012-08-07 Microsoft Corporation Generating libraries for reflection without project compilation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617167A (en) * 2013-10-22 2014-03-05 芜湖大学科技园发展有限公司 Universal metadata/ relation mapping frame
CN109491708A (en) * 2018-11-21 2019-03-19 北京锐安科技有限公司 Document structure tree method, system, equipment and medium
CN110457031A (en) * 2019-08-21 2019-11-15 赛尔网络有限公司 A kind of software development methodology, device, equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
金雪云,徐卫东,刘红卫.基于.Net的代码生成工具的设计与实现.计算机工程与应用.2005,(21),全文. *

Also Published As

Publication number Publication date
CN111459470A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
CN112748908B (en) Method and device for developing Restful service based on SSM framework
JP3315857B2 (en) Compiler with general front end and dynamically loadable back end
US9501267B2 (en) Generating a service component architecture (SCA) module with service oriented architecture (SOA) model elements
US7031979B2 (en) Report generation system and method
US8316347B2 (en) Architecture view generation method and system
US8656346B2 (en) Converting command units into workflow activities
US20070150852A1 (en) Application template creation and management
Alexiou et al. Advanced capabilities for gas turbine engine performance simulations
Conrad et al. Temporal OCL: Meeting specification demands for business components
EP1662378A2 (en) Declarative aspect and aspect containers for application development
US7617481B2 (en) Prescriptive architecture for application development
Weder et al. Analysis and Rewrite of Quantum Workflows: Improving the Execution of Hybrid Quantum Algorithms.
Dunnweber et al. HOC-SA: A grid service architecture for higher-order components
Hensinger et al. ADEPTworkflow-advanced workflow technology for the efficient support of adaptive, enterprise-wide processes
CN111459470B (en) Method for generating codes and documents by interfacing Hub system with third party software
Krasnovidov et al. Integration of MatLab and R with high-level languages using C# and Microsoft Visual Studio as an example
Shen et al. Eplex: Harnessing mathematical programming solvers for constraint logic programming
Dadam et al. Adept2-next generation process management technology
CN114327383A (en) Service configuration system and method based on SOA (service oriented architecture) middleware and readable storage medium
CN113342399A (en) Application structure configuration method and device and readable storage medium
CN112988224A (en) Interface file generation method of micro-service framework, electronic device and storage medium
CN112363700A (en) Cooperative creation method and device of intelligent contract, computer equipment and storage medium
Jézéquel Reifying variants in configuration management
CN116894327A (en) Cloud simulation-oriented model combination reuse method and framework
Guidolin et al. ADL: An algorithm definition language for SmartGridSolve

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
GR01 Patent grant
GR01 Patent grant