CN110134434A - A kind of application generates processing method and system, application generation system - Google Patents

A kind of application generates processing method and system, application generation system Download PDF

Info

Publication number
CN110134434A
CN110134434A CN201910401673.0A CN201910401673A CN110134434A CN 110134434 A CN110134434 A CN 110134434A CN 201910401673 A CN201910401673 A CN 201910401673A CN 110134434 A CN110134434 A CN 110134434A
Authority
CN
China
Prior art keywords
statement
source code
product
task
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910401673.0A
Other languages
Chinese (zh)
Other versions
CN110134434B (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.)
Inspur General Software Co Ltd
Original Assignee
Inspur General Software 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 Inspur General Software Co Ltd filed Critical Inspur General Software Co Ltd
Priority to CN201910401673.0A priority Critical patent/CN110134434B/en
Publication of CN110134434A publication Critical patent/CN110134434A/en
Application granted granted Critical
Publication of CN110134434B publication Critical patent/CN110134434B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Abstract

The present invention provides a kind of applications to generate processing method and system, application generation system.The configuration information of application is parsed to determine structure, the element that configuration information limits application life cycles has these objects of element, task and source code file, to state formula format record object and its dependence, the structure of application include source code file, the element declaration dependent on several source code files, the task dependent on several element declarations, dependent on the element declaration of a task;According to machine instruction set and its using the element composition and anchor point in rule, element declaration, the action command of each task in structure is generated;According to the element structure statement in machine instruction rules of arrangement, action command, element declaration, mission script is generated;Mission script is executed, the file content of the involved each source code file of request is generated based on structure and application, whole tasks in processing structure are to make to handle using generation.It is therefore not necessary to the production Methods between developer's memory element.

Description

A kind of application generates processing method and system, application generation system
Technical field
The present invention relates to field of computer technology, in particular to a kind of application generates processing method and system, using generation System.
Background technique
The management of application life cycles generally includes exploitation, integrated and deployment link, so needs be sequentially completed building, beat Packet, deployment and etc. configuration.
Currently, developer can artificial memory's application structure configuration needed for all elements and element between production Methods, and Good building instruction is write accordingly, is packaged instruction, Disposition Instructions, and it is defeated that the machine instruction write then is passed through into multiple steps on demand Enter system, so that system applies generation to handle by executing machine instruction to execute.In this way, obtained configuration is by machine instruction It is formed with parameter, system can not perceive the production Methods between element.
As it can be seen that this hiding relationship needs developer to safeguard and remember, it is not easy to subsequent application structure change, answers With the operation such as update.For example, needing to modify these instructions simultaneously if developer will change application structure, undoubtedly increase again Workload.
Summary of the invention
The present invention provides a kind of applications to generate processing method and system, application generation system, is not necessarily to developer's memory elements Production Methods between element.
In order to achieve the above object, the present invention is achieved through the following technical solutions:
In a first aspect, the present invention provides a kind of applications to generate processing method, comprising:
Receive the configuration information of externally input application, wherein application life cycles institute is defined in the configuration information The element being related to has element, task and source code file, and each element is described as object, to state formula Format records the dependence between object and different objects;
The configuration information is parsed, with the structure of the determination application, wherein the structure include: source code file, according to Rely the element declaration at least one source code file, the task dependent at least one element declaration, dependent on a task Element declaration, wherein element declaration includes element structure statement, element composition and anchor point;
According to preset machine instruction set and its using rule, and according to element composition and the anchor point, divide The action command of each task in the structure is not generated;
It is raw according to preset machine instruction rules of arrangement, and according to element structure statement and the action command At mission script;
It is raw based on the structure and the application by executing the mission script when receiving using request is generated At the file content of each involved source code file of request, whole tasks in the structure are handled, to apply Generation processing.
Further, the element declaration that the structure includes has: dependent on service orchestration task application declarative, depend on Mirror image constructs the mirror image statement of task, the product statement of task is constructed dependent on product, depends at least one source code file Source code engineering statement;
The task that the structure includes has: dependent on the service orchestration task of at least one mirror image statement, dependent at least The mirror image building task of one product statement, the product building task dependent on the statement of at least one source code engineering.
Further, described that each involved source code file of request is generated based on the structure and the application File content, handle whole tasks in the structure, with make using generation handle, comprising:
Determine that the application generates the file content of each involved source code file of request;
Each source code file relied on is stated based on source code engineering, and according to the source code file determined File content generates the source code engineering product of each of described structure source code engineering statement;
Based on each source code engineering statement that product statement is relied on, and according to the statement of the source code engineering of generation Source code engineering product constructs task by executing each of structure product, every in the corresponding generation structure The product product of one product statement;
Based on each product statement that mirror image statement is relied on, and according to the product product of the product of generation statement, lead to Cross each of the structure mirror image building task that executes, the corresponding mirror image for generating the mirror image statement of each of the structure Product;
Whole mirror image products of generation are stored to external mirror image warehouse;
Service orchestration task in the structure is sent to external service orchestration system, to trigger the service orchestration System is according to whole mirror image products, by executing the service orchestration task to generate the application declarative in the structure Using product.
Further, the statement sequence of the element declaration is top-down;
The element declaration includes: next layer of element of the element structure statement of currentElement statement, currentElement statement The anchor point of statement, next layer of element declaration in element structure statement.
Further, the statement sequence of the element declaration is bottom-up;
The element declaration includes: currentElement statement, upper one layer of element declaration of currentElement statement, upper one layer of element Anchor point of the element structure statement, currentElement statement of statement in element structure statement.
Further, the element structure statement is followed in element type metadata;
The element type metadata is derived from the primary data of template built in self-defining data or system.
Further, whole tasks in the processing structure, comprising: according to the forward direction from the bottom to top layer Build Order successively handles whole tasks in the structure, to sequentially generate upper one layer of element sound of current layer element declaration Bright element product.
Second aspect, the present invention provides a kind of applications to generate processing system, comprising:
Configuration unit, for receiving the configuration information of externally input application, wherein define and answer in the configuration information The element involved by life cycle has element, task and source code file, and each element is described as Object, to state the dependence between formula format record object and different objects;The configuration information is parsed, to answer described in determination Structure, wherein the structure includes: source code file, the element declaration dependent at least one source code file, dependence In the task of at least one element declaration, dependent on the element declaration of a task, wherein element declaration includes element structure sound Bright, element composition and anchor point;
Generator is acted, for according to preset machine instruction set and its using rule, and according to the element group At and the anchor point, generate the action command of each task in the structure respectively;
Choreography device, for according to preset machine instruction rules of arrangement, and according to element structure statement and The action command generates mission script;
Scheduling unit, for when receiving using request is generated, whole tasks in the structure to be exported to operation Unit;
The running unit, for generating request based on the structure and the application by executing the mission script The file content of each involved source code file handles whole tasks, to make to handle using generation.
Further, the element declaration that the structure includes has: dependent on service orchestration task application declarative, depend on Mirror image constructs the mirror image statement of task, the product statement of task is constructed dependent on product, depends at least one source code file Source code engineering statement;
The task that the structure includes has: dependent on the service orchestration task of at least one mirror image statement, dependent at least The mirror image building task of one product statement, the product building task statement dependent at least one source code engineering.
Further, the running unit, for determining that the application generates each involved source code of request The file content of file;Each source code file relied on is stated based on source code engineering, and according to the source generation determined The file content of code file, generates the source code engineering product of each of described structure source code engineering statement;Based on system Each source code engineering statement that product statement is relied on, and produced according to the source code engineering of the source code engineering of generation statement Object constructs task by executing each of structure product, corresponding to generate the product statement of each of the structure Product product;Each product relied on statement, and the product product stated according to the product of generation are stated based on mirror image, Task, the corresponding mirror for generating the mirror image statement of each of the structure are constructed by executing each of structure mirror image As product;Whole mirror image products of generation are stored to external mirror image warehouse;By the service orchestration task hair in the structure External service orchestration system is given, to trigger the service orchestration system according to whole mirror image products, by executing institute Service orchestration task is stated to generate the application product of the application declarative in the structure.
Further, the statement sequence of the element declaration is top-down;
The element declaration includes: next layer of element of the element structure statement of currentElement statement, currentElement statement The anchor point of statement, next layer of element declaration in element structure statement.
Further, the statement sequence of the element declaration is bottom-up;
The element declaration includes: currentElement statement, upper one layer of element declaration of currentElement statement, upper one layer of element Anchor point of the element structure statement, currentElement statement of statement in element structure statement.
The third aspect, the present invention provides a kind of application generation systems, comprising:
Any of the above-described application generate processing system, mirror image warehouse, service orchestration system, client developing instrument, Version control system;
Wherein, the application generates processing system, for generating each involved source code of request according to application The file content of file, executes each of whole tasks product building task and each mirror image constructs task, to generate Whole mirror image products;Whole mirror image products are stored to the mirror image warehouse, and the service in whole tasks is compiled Row's task is sent to the service orchestration system;
The service orchestration system, for executing institute according to the whole mirror image products stored in the mirror image warehouse Service orchestration task is stated, applies product to generate;
The client developing instrument, the file content of the source code file for buffering external input;It is outer receiving When the application of portion's input generates request, the file content of whole source code files of caching is sent to the Version Control system System;
The version control system, for being answered to described when receiving the file content of whole source code files Request is generated with processing system sending application is generated.
The present invention provides a kind of applications to generate processing method and system, application generation system.Confidence is matched in parsing application Breath is to determine structure, and the element that configuration information limits application life cycles has element, task and source code file, and these are right As to state that formula format record object and its dependence, the structure of application include source code file, dependent on several source codes The element declaration of file, dependent on the task of several element declarations, dependent on the element declaration of a task;According to machine instruction set It closes and its using the element composition and anchor point in rule, element declaration, generates the action command of each task in structure;According to machine Rules of arrangement, action command, the element structure statement in element declaration are instructed, mission script is generated;Mission script is executed, is based on Structure and application generate the file content of the involved each source code file of request, and whole tasks in processing structure are to answer It is handled with generation.It is therefore not necessary to the production Methods between developer's memory element.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is the flow chart that a kind of application that one embodiment of the invention provides generates processing method;
Fig. 2 is a kind of schematic diagram of the structure for application that one embodiment of the invention provides;
Fig. 3 is the schematic diagram that a kind of application that one embodiment of the invention provides generates processing system;
Fig. 4 is a kind of schematic diagram for application generation system that one embodiment of the invention provides.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments, based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
As shown in Figure 1, the embodiment of the invention provides a kind of applications to generate processing method, may comprise steps of:
Step 101: receiving the configuration information of externally input application, wherein defined in the configuration information using life Element involved by the life period has element, task and source code file, and each element is described as object, To state the dependence between formula format record object and different objects.
Step 102: the configuration information is parsed, with the structure of the determination application, wherein the structure includes: source generation Code file, the task dependent at least one element declaration, depends on the element declaration dependent at least one source code file The element declaration of one task, wherein element declaration includes element structure statement, element composition and anchor point.
Step 103: according to preset machine instruction set and its using rule, and according to element composition and described Anchor point generates the action command of each task in the structure respectively.
Step 104: according to preset machine instruction rules of arrangement, and according to element structure statement and the movement Instruction generates mission script.
Step 105: when receiving using request is generated, by executing the mission script, being based on the structure and institute It states using the file content for generating each involved source code file of request, handles whole tasks in the structure, To make to handle using generation.
The embodiment of the invention provides a kind of applications to generate processing method, this method comprises: the configuration information of parsing application To determine structure, the element that configuration information limits application life cycles has these objects of element, task and source code file, To state that formula format record object and its dependence, the structure of application include source code file, dependent on several source code texts The element declaration of part, dependent on the task of several element declarations, dependent on the element declaration of a task;According to machine instruction set And its using the element composition and anchor point in rule, element declaration, generate the action command of each task in structure;Referred to according to machine Rules of arrangement, action command, the element structure statement in element declaration are enabled, mission script is generated;Mission script is executed, based on knot Structure and application generate the file content of the involved each source code file of request, and whole tasks in processing structure are to apply Generation processing.It is therefore not necessary to the production Methods between developer's memory element.
It should be noted that the element in structure is the statement to element for for either element, and the element generated It is tangible product.In this way, the element in structure can be referred to as element declaration, the element of generation can be referred to as element product, with It distinguishes.In addition, the product of generation is equal when the file content difference for the source code file that different generation identity elements are based on For the element product of the element, but correspond respectively to different versions.
In detail, the dependence between object and different objects is defined in the configuration information of application, is based on this dependence Relationship is generated based on this and applies product you can learn that production Methods between element.It specifically, can be by backstage automatically according to answering Structure is automatically generated with the dependence reflected based on the structure using product.As it can be seen that the generation between element is closed System without developer artificial memory and can be provided by knowing automatically and using from the background.Certainly, subsequent after realizing that application generates If need to realize, using updating, if being related to the update of application structure, developer only needs to be changed on demand configuration information, backstage New structure can be determined on demand and is generated again using product based on this, to realize using update;If being not directed to answer When with the update of structure, then developer only needs to be changed on demand source code file etc., from the background can be based on existing structure come again Secondary generate applies product, to realize using update.It can be seen that the generation for the first time no matter applied or update generates again, it is not necessarily to Production Methods between developer's artificial memory's element.
In detail, element declaration may include element structure statement, element composition and anchor point.Wherein, element declaration, specifically For be exactly the elements self informations such as the mark for stating element, the type of element, element structure statement, is mainly exactly to state element With form the structural relation between those of element daughter element.
Above-mentioned steps 103 and step 104 are please referred to, can be led so that embedded software is integrated with deployment using generating in processing system Domain knowledge, so as to automatically generate machine instruction, simultaneously layout is executable mission script.In this way, based on the structure determined, Backstage can also automatically generate action command, and then automatically generate mission script, eventually by operation mission script to realize automatically It is handled using generation.
In conclusion the embodiment of the present invention can significantly smaller developer manual labor, not only increase development efficiency, Also accordingly reduce because of the possible maloperation situation of hand labor institute.
In one embodiment of the invention, the element structure statement is followed in element type metadata;The element Genre metadata is derived from the primary data of template built in self-defining data or system.For example, it is referred to element type metadata, From blank declaration structure, specifically, can be stated with the structure of reference structure template finite element.
In the embodiment of the present invention, developer is allowed to define each composition according to the sequence identical or opposite as direction is generated Element.In this way, when statement element, it can forward direction statement can also be stated inversely.
In detail, for above-mentioned reverse statement:
In one embodiment of the invention, the possibility implementation inversely stated in order to illustrate one kind, so, the member The statement sequence of element statement is top-down;
The element declaration includes: next layer of element of the element structure statement of currentElement statement, currentElement statement The anchor point of statement, next layer of element declaration in element structure statement.
In detail, anchor point describes position of the component in element structure of element.
In detail, for above-mentioned positive statement:
In one embodiment of the invention, in order to illustrate a kind of possibility implementation of positive statement, so, the member The statement sequence of element statement is bottom-up;
The element declaration includes: currentElement statement, upper one layer of element declaration of currentElement statement, upper one layer of element Anchor point of the element structure statement, currentElement statement of statement in element structure statement.
Based on above two statement mode it is found that element component statement be a recursive procedure, until all by Bottommost element composed by source code text file.
Element no matter is stated using reverse statement mode, or element is stated using positive statement mode, can be adopted With positive Build Order, handled with realizing using generation.Therefore, in one embodiment of the invention, the processing knot Whole tasks in structure, comprising: according to the positive Build Order from the bottom to top layer, successively handle complete in the structure Portion's task, to sequentially generate the element product of upper one layer of element declaration of current layer element declaration.
For example, referring to FIG. 2, content shown in Fig. 2 can be with the structure for the application determined.This structure In, bottommost element is source code engineering, and one layer of element is product thereon, and upper one layer of element of product is mirror image, top member Element is application.In this way, each source code engineering product, then the source code work based on generation can be generated first according to source code file Journey product is to generate each product product, then the product product based on generation is finally based on generating to generate each mirror image product Mirror image product with generate apply product, thus complete using generate.
In one embodiment of the invention, the element declaration that the structure includes has: dependent on service orchestration task Application declarative, the product statement dependent on product building task, depends at least the mirror image statement dependent on mirror image building task The source code engineering statement of one source code file;
The task that the structure includes has: dependent on the service orchestration task of at least one mirror image statement, dependent at least The mirror image building task of one product statement, the product building task dependent on the statement of at least one source code engineering.
Referring to FIG. 2, the element declaration in structure can have application declarative, mirror image statement, product statement, source code engineering It states, the task in structure can have service orchestration task, mirror image building task, product building task.Product building is executed to appoint It is engaged in producing a product product, executes mirror image building task and produce a mirror image product, execute service orchestration task and produce one Using product.
Based on above content, in one embodiment of the invention, the possibility for generating processing in order to illustrate a kind of application is real Existing mode, so, the text that each involved source code file of request is generated based on the structure and the application Part content handles whole tasks in the structure, to make to handle using generation, comprising:
Determine that the application generates the file content of each involved source code file of request;
Each source code file relied on is stated based on source code engineering, and according to the source code file determined File content generates the source code engineering product of each of described structure source code engineering statement;
Based on each source code engineering statement that product statement is relied on, and according to the statement of the source code engineering of generation Source code engineering product constructs task by executing each of structure product, every in the corresponding generation structure The product product of one product statement;
Based on each product statement that mirror image statement is relied on, and according to the product product of the product of generation statement, lead to Cross each of the structure mirror image building task that executes, the corresponding mirror image for generating the mirror image statement of each of the structure Product;
Whole mirror image products of generation are stored to external mirror image warehouse;
Service orchestration task in the structure is sent to external service orchestration system, to trigger the service orchestration System is according to whole mirror image products, by executing the service orchestration task to generate the application declarative in the structure Using product.
In detail, after determining structure, application can be generated based on the structure.Due to being generated to be first, therefore need to hold Each of row structure task, and know the file content of each source code file in structure.Developer can will write Whole source code files file content typing, with propose application generate request.In this way, these file contents are based on, it can be right The source code engineering product of each source code engineering statement in structure should be generated;In turn, these source code engineerings based on generation produce Object constructs task through the corresponding each product executed in structure, to generate the product product of each product statement in structure;In turn, base In these product products of generation, task is constructed through the corresponding each mirror image executed in structure, to generate each mirror image statement in structure Mirror image product.Since product can be applied to generate one according to mirror image by existing service orchestration system, therefore generating these It can trigger service orchestration system after mirror image product, and by service orchestration system through executing the service orchestration task in structure, with Application declarative applies product in generation structure.
In detail, the file content of the above-mentioned whole source code files of developer's typing, these file contents can correspond to structure At a file set, in this way, these products generated are the product corresponding to this file set.If the subsequent update section single cent of user Part content, can generate new file set, and the product that corresponding generating portion is new, these new products are to correspond to this new text The product of part collection.
In conclusion the embodiment of the present invention takes Object-Oriented Design thought harmony Ming Dynasty style programming paradigm, for application The exploitation of life cycle management, integrated and deployment link, propose a kind of automation scheme, answer so that developer only needs to be concerned about With the structure and composition element of software, and ignore integrated and deployment implementation.The core concept of the embodiment of the present invention is will Each element involved by application life cycles sees object as, and to state that formula format describes, explicitly record is formed Production Methods between element, and the knowledge in software building field is encapsulated in internal system, it was constructed with that can automatically complete Journey.Application software based on the embodiment of the present invention constructs system, can provide for developer top-down and two kinds bottom-up Go-ahead mode creates and configures application, enables developers to obtain to the stronger control ability of application structure, while from note Recall and write machine instruction.
As shown in figure 3, one embodiment of the invention provides a kind of application generation processing system, may include:
Configuration unit 301, for receiving the configuration information of externally input application, wherein limited in the configuration information Element involved by application life cycles has element, task and a source code file, and each element is retouched It states as object, to state the dependence between formula format record object and different objects;The configuration information is parsed, to determine State the structure of application, wherein the structure include: source code file, dependent at least one source code file element declaration, Dependent on the task of at least one element declaration, dependent on the element declaration of a task, wherein element declaration includes element structure Statement, element composition and anchor point;
Generator 302 is acted, for according to preset machine instruction set and its using rule, and according to the element Composition and the anchor point, generate the action command of each task in the structure respectively;
Choreography device 303, for being stated according to preset machine instruction rules of arrangement, and according to the element structure With the action command, mission script is generated;
Scheduling unit 304, for when receiving using request is generated, whole tasks in the structure to be exported to fortune Row unit 305;
The running unit 305, for being asked based on the structure and application generation by executing the mission script The file content of each involved source code file is sought, whole tasks are handled, to make to handle using generation.
In an embodiment of the invention, the element declaration that the structure includes has: dependent on answering for service orchestration task With statement, the mirror image statement dependent on mirror image building task, the product statement dependent on product building task, depend at least one The source code engineering of a source code file is stated;
The task that the structure includes has: dependent on the service orchestration task of at least one mirror image statement, dependent at least The mirror image building task of one product statement, the product building task statement dependent at least one source code engineering.
In an embodiment of the invention, the running unit 305, for determining that the application generates involved by request Each source code file file content;Each source code file relied on, and root are stated based on source code engineering According to the file content of the source code file determined, the source code work of each of described structure source code engineering statement is generated Journey product;Based on each source code engineering statement that product statement is relied on, and according to the statement of the source code engineering of generation Source code engineering product constructs task by executing each of structure product, every in the corresponding generation structure The product product of one product statement;Based on each product statement that mirror image statement is relied on, and according to the product sound of generation Bright product product constructs task by executing each of structure mirror image, each in the corresponding generation structure The mirror image product of a mirror image statement;Whole mirror image products of generation are stored to external mirror image warehouse;It will be in the structure Service orchestration task is sent to external service orchestration system, is produced with triggering the service orchestration system according to whole mirror images Object generates the application product of the application declarative in the structure by executing the service orchestration task.
In an embodiment of the invention, the statement sequence of the element declaration is top-down;
The element declaration includes: next layer of element of the element structure statement of currentElement statement, currentElement statement The anchor point of statement, next layer of element declaration in element structure statement.
In an embodiment of the invention, the statement sequence of the element declaration is bottom-up;
The element declaration includes: currentElement statement, upper one layer of element declaration of currentElement statement, upper one layer of element Anchor point of the element structure statement, currentElement statement of statement in element structure statement.
The contents such as information exchange, the implementation procedure between each unit, module in above system, due to the method for the present invention Embodiment is based on same design, and for details, please refer to the description in the embodiment of the method for the present invention, and details are not described herein again.
As shown in figure 4, may include: any of the above-described described the embodiment of the invention provides a kind of application generation system Using generation processing system 401, mirror image warehouse 402, service orchestration system 403, client developing instrument 404, Version Control system System 405;
Wherein, the application generates processing system 401, for generating each involved source generation of request according to application The file content of code file, executes each of whole tasks product building task and each mirror image constructs task, with life At whole mirror image products;Whole mirror image products are stored to the mirror image warehouse 402, and by the clothes in whole tasks Business layout task is sent to the service orchestration system 403;
The service orchestration system 403, for according to the whole mirror image products stored in the mirror image warehouse 402, The service orchestration task is executed, applies product to generate;
The client developing instrument 404, the file content of the source code file for buffering external input;It is receiving When externally input application generates request, the file content of whole source code files of caching is sent to the Version Control system System 405;
The version control system 405, for when receiving the file content of whole source code file, Xiang Suoshu Request is generated using 401 sending application of processing system is generated.
In the embodiment of the present invention, using generating, processing system only executes the building task of the product in structure and mirror image building is appointed Business, and transfer to existing service orchestration system to execute service orchestration task, the common process completing application and generating.
In the embodiment of the present invention, developer can be through client developing instrument with typing file content, the file content of typing Version control system is sent to by client developing instrument.Version control system produces a packet when receiving file content Include the file set of these file contents.Once newly-generated have file set, can notify to do respective handling using generation processing system. Due to being to generate file set for the first time, therefore transmittable application generates request.Accordingly, transmittable to answer when the non-file set of generation for the first time It is requested with updating, so that application generates processing system combination service orchestration system, realizes that application updates.
In conclusion the embodiment of the present invention have it is at least following the utility model has the advantages that
1, in the embodiment of the present invention, the configuration information of application is parsed to determine structure, and configuration information, which limits, applies Life Cycle The element of phase has these objects of element, task and source code file, to state formula format record object and its dependence, The structure of application include source code file, dependent on the element declaration of several source code files, dependent on several element declarations Task, dependent on the element declaration of a task;It is formed according to machine instruction set and its using the element in rule, element declaration And anchor point, generate the action command of each task in structure;According in machine instruction rules of arrangement, action command, element declaration Element structure statement, generates mission script;Mission script is executed, request involved each source generation is generated based on structure and application The file content of code file, whole tasks in processing structure are to make to handle using generation.It is therefore not necessary to developer's memory element Between production Methods.
2, in the embodiment of the present invention, can significantly smaller developer manual labor, not only increase development efficiency, also phase It should reduce because of the possible maloperation situation of hand labor institute.
3, the embodiment of the present invention takes Object-Oriented Design thought harmony Ming Dynasty style programming paradigm, for application life cycles The exploitation of management, integrated and deployment link, propose a kind of automation scheme, so that developer only needs to be concerned about application software Structure and composition element, and ignore integrated and deployment implementation.The core concept of the embodiment of the present invention is that will apply life Each element involved by period sees object as, to state that formula format describes, explicitly records between element Production Methods, and the knowledge in software building field is encapsulated in internal system, building process can be automatically completed.Based on this The application software of inventive embodiments constructs system, and top-down and bottom-up two kinds of go-ahead modes can be provided for developer Creation and configuration application, enable developers to obtain to the stronger control ability of application structure, while from memory and writing machine Device instruction.
It should be noted that, in this document, such as first and second etc relational terms are used merely to an entity Or operation is distinguished with another entity or operation, is existed without necessarily requiring or implying between these entities or operation Any actual relationship or order.Moreover, the terms "include", "comprise" or its any other variant be intended to it is non- It is exclusive to include, so that the process, method, article or equipment for including a series of elements not only includes those elements, It but also including other elements that are not explicitly listed, or further include solid by this process, method, article or equipment Some elements.In the absence of more restrictions, the element limited by sentence " including one ", is not arranged Except there is also other identical factors in the process, method, article or apparatus that includes the element.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can store in computer-readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light In the various media that can store program code such as disk.
Finally, it should be noted that the foregoing is merely presently preferred embodiments of the present invention, it is merely to illustrate skill of the invention Art scheme, is not intended to limit the scope of the present invention.Any modification for being made all within the spirits and principles of the present invention, Equivalent replacement, improvement etc., are included within the scope of protection of the present invention.

Claims (10)

1. a kind of application generates processing method characterized by comprising
Receive the configuration information of externally input application, wherein define involved by application life cycles in the configuration information To element have element, task and source code file, and each element is described as object, to state formula format Record the dependence between object and different objects;
The configuration information is parsed, with the structure of the determination application, wherein the structure includes: source code file, depends on The element declaration of at least one source code file, dependent on the task of at least one element declaration, dependent on the element of a task Statement, wherein element declaration includes element structure statement, element composition and anchor point;
According to preset machine instruction set and its using rule, and according to element composition and the anchor point, give birth to respectively At the action command of each task in the structure;
According to preset machine instruction rules of arrangement, and according to element structure statement and the action command, generates and appoint Business script;
When receiving using request is generated, by executing the mission script, asked based on the structure and application generation The file content for seeking each involved source code file handles whole tasks in the structure, is generated with making application Processing.
2. the method according to claim 1, wherein
The element declaration that the structure includes has: constructing task dependent on the application declarative of service orchestration task, dependent on mirror image Mirror image statement, dependent on product building task product statement, dependent on the source code engineering of at least one source code file Statement;
The task that the structure includes has: dependent on the service orchestration task of at least one mirror image statement, dependent at least one The mirror image building task of product statement, the product building task dependent on the statement of at least one source code engineering.
3. according to the method described in claim 2, it is characterized in that,
The file content that each involved source code file of request is generated based on the structure and the application, place Whole tasks in the structure are managed, to make to handle using generation, comprising:
Determine that the application generates the file content of each involved source code file of request;
Each source code file relied on is stated based on source code engineering, and according to the file of the source code file determined Content generates the source code engineering product of each of described structure source code engineering statement;
Based on each source code engineering statement that product statement is relied on, and according to the source generation of the source code engineering of generation statement Code engineering product constructs task by executing each of structure product, corresponding to generate each of described structure The product product of product statement;
Based on each product statement that mirror image statement is relied on, and according to the product product of the product of generation statement, by holding Each of row structure mirror image constructs task, and the corresponding mirror image for generating the mirror image statement of each of the structure produces Object;
Whole mirror image products of generation are stored to external mirror image warehouse;
Service orchestration task in the structure is sent to external service orchestration system, to trigger the service orchestration system According to whole mirror image products, by executing the service orchestration task to generate the application of the application declarative in the structure Product.
4. the method according to claim 1, wherein
The statement sequence of the element declaration is top-down;
The element declaration include: currentElement statement element structure statement, currentElement statement next layer of element declaration, Anchor point of the next layer of element declaration in element structure statement;
Or,
The statement sequence of the element declaration is bottom-up;
The element declaration includes: upper one layer of element declaration, the upper one layer of element declaration of currentElement statement, currentElement statement Element structure statement, currentElement statement element structure statement in anchor point.
5. according to claim 1 to any method in 4, which is characterized in that
The element structure statement is followed in element type metadata;
The element type metadata is derived from the primary data of template built in self-defining data or system;
And/or
Whole tasks in the processing structure, comprising: according to the positive Build Order from the bottom to top layer, successively Whole tasks in the structure are handled, to sequentially generate the element product of upper one layer of element declaration of current layer element declaration.
6. a kind of application generates processing system characterized by comprising
Configuration unit, for receiving the configuration information of externally input application, wherein defined in the configuration information using life Element involved by the life period has element, task and source code file, and each element is described as object, To state the dependence between formula format record object and different objects;The configuration information is parsed, with the determination application Structure, wherein the structure include: source code file, dependent on the element declaration of at least one source code file, dependent on extremely Lack the task of an element declaration, dependent on the element declaration of a task, wherein element declaration includes element structure statement, member Element composition and anchor point;
Act generator, for according to preset machine instruction set and its using rule, and according to element composition and The anchor point generates the action command of each task in the structure respectively;
Choreography device, for according to preset machine instruction rules of arrangement, and according to element structure statement and described Action command generates mission script;
Scheduling unit, for when receiving using request is generated, whole tasks in the structure to be exported to running unit;
The running unit, for being generated involved by request based on the structure and the application by executing the mission script And the file content of each source code file arrived, whole tasks are handled, to make to handle using generation.
7. application according to claim 6 generates processing system, which is characterized in that
The element declaration that the structure includes has: constructing task dependent on the application declarative of service orchestration task, dependent on mirror image Mirror image statement, dependent on product building task product statement, dependent on the source code engineering of at least one source code file Statement;
The task that the structure includes has: dependent on the service orchestration task of at least one mirror image statement, dependent at least one The mirror image building task of product statement, the product building task statement dependent at least one source code engineering.
8. application according to claim 7 generates processing system, which is characterized in that
The running unit, for determining that the application generates in the file of each involved source code file of request Hold;Each source code file relied on is stated based on source code engineering, and according to the file of the source code file determined Content generates the source code engineering product of each of described structure source code engineering statement;It is relied on based on product statement Each source code engineering statement, and according to the source code engineering of generation state source code engineering product, pass through execute institute State each of structure product building task, the corresponding product product for generating the product statement of each of the structure;Base In each product statement that mirror image statement is relied on, and according to the product product of the product of generation statement, described in executing Each of structure mirror image constructs task, the corresponding mirror image product for generating the mirror image statement of each of the structure;It will give birth to At whole mirror image products store to external mirror image warehouse;Service orchestration task in the structure is sent to external clothes Business arranging system passes through to trigger the service orchestration system according to whole mirror image products and executes the service orchestration times It is engaged in generate the application product of the application declarative in the structure.
9. generating processing system according to the application any in claim 6 to 8, which is characterized in that
The statement sequence of the element declaration is top-down;
The element declaration include: currentElement statement element structure statement, currentElement statement next layer of element declaration, Anchor point of the next layer of element declaration in element structure statement;
Or,
The statement sequence of the element declaration is bottom-up;
The element declaration includes: upper one layer of element declaration, the upper one layer of element declaration of currentElement statement, currentElement statement Element structure statement, currentElement statement element structure statement in anchor point.
10. a kind of application generation system characterized by comprising
Application as described in any in claim 6 to 9 generates processing system, mirror image warehouse, service orchestration system, client and opens Hair tool, version control system;
Wherein, the application generates processing system, for generating each involved source code file of request according to application File content, execute each of whole tasks product building task and each mirror image construct task, to generate whole Mirror image product;Whole mirror image products are stored to the mirror image warehouse, and the service orchestration in whole tasks is appointed Business is sent to the service orchestration system;
The service orchestration system, for executing the clothes according to the whole mirror image products stored in the mirror image warehouse Business layout task applies product to generate;
The client developing instrument, the file content of the source code file for buffering external input;It is external defeated receiving When the application entered generates request, the file content of whole source code files of caching is sent to the version control system;
The version control system, for being given birth to the application when receiving the file content of whole source code files It generates and requests at processing system sending application.
CN201910401673.0A 2019-05-15 2019-05-15 Application generation processing method and system and application generation system Active CN110134434B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910401673.0A CN110134434B (en) 2019-05-15 2019-05-15 Application generation processing method and system and application generation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910401673.0A CN110134434B (en) 2019-05-15 2019-05-15 Application generation processing method and system and application generation system

Publications (2)

Publication Number Publication Date
CN110134434A true CN110134434A (en) 2019-08-16
CN110134434B CN110134434B (en) 2023-06-20

Family

ID=67574149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910401673.0A Active CN110134434B (en) 2019-05-15 2019-05-15 Application generation processing method and system and application generation system

Country Status (1)

Country Link
CN (1) CN110134434B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569044A (en) * 2019-09-09 2019-12-13 山东浪潮通软信息科技有限公司 method, device and system for deploying application to running environment
CN117251143A (en) * 2023-11-14 2023-12-19 武汉万云网络科技有限公司 Application system, construction method and implementation method of visual development tool of application system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5574898A (en) * 1993-01-08 1996-11-12 Atria Software, Inc. Dynamic software version auditor which monitors a process to provide a list of objects that are accessed
CN105278991A (en) * 2015-10-26 2016-01-27 中国科学院软件研究所 Construction method of cloud application deployment and configuration model
CN107967159A (en) * 2017-11-22 2018-04-27 腾讯科技(深圳)有限公司 The method and server of a kind of profileapplied
CN108196915A (en) * 2018-02-06 2018-06-22 杭州朗和科技有限公司 Code process method, equipment and storage medium based on application container engine
CN108270726A (en) * 2016-12-30 2018-07-10 杭州华为数字技术有限公司 Application example dispositions method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5574898A (en) * 1993-01-08 1996-11-12 Atria Software, Inc. Dynamic software version auditor which monitors a process to provide a list of objects that are accessed
CN105278991A (en) * 2015-10-26 2016-01-27 中国科学院软件研究所 Construction method of cloud application deployment and configuration model
CN108270726A (en) * 2016-12-30 2018-07-10 杭州华为数字技术有限公司 Application example dispositions method and device
CN107967159A (en) * 2017-11-22 2018-04-27 腾讯科技(深圳)有限公司 The method and server of a kind of profileapplied
CN108196915A (en) * 2018-02-06 2018-06-22 杭州朗和科技有限公司 Code process method, equipment and storage medium based on application container engine

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569044A (en) * 2019-09-09 2019-12-13 山东浪潮通软信息科技有限公司 method, device and system for deploying application to running environment
CN110569044B (en) * 2019-09-09 2022-07-12 浪潮通用软件有限公司 Method, device and system for deploying application to running environment
CN117251143A (en) * 2023-11-14 2023-12-19 武汉万云网络科技有限公司 Application system, construction method and implementation method of visual development tool of application system
CN117251143B (en) * 2023-11-14 2024-02-06 武汉万云网络科技有限公司 Application system, construction method and implementation method of visual development tool of application system

Also Published As

Publication number Publication date
CN110134434B (en) 2023-06-20

Similar Documents

Publication Publication Date Title
US11836473B2 (en) Active adaptation of networked compute devices using vetted reusable software components
Bordini et al. Agent programming in the cognitive era
Lenat Beings: Knowledge as interacting experts
Goertzel et al. Engineering general intelligence, part 1
US20020046394A1 (en) Method and apparatus for producing software
US20110099532A1 (en) Automation of Software Application Engineering Using Machine Learning and Reasoning
Cellier Discrete event modeling and simulation technologies: a tapestry of systems and AI-based theories and methodologies
JP2018088242A (en) Data processing apparatus, method, and program
CN110134434A (en) A kind of application generates processing method and system, application generation system
Lipp et al. The semantic web in the internet of production: a strategic approach with use-case examples
Gómez et al. An approach to the co-creation of models and metamodels in Enterprise Architecture Projects.
CN117520514A (en) Question-answering task processing method, device, equipment and readable storage medium
Bucchiarone et al. Ten years of self-adaptive systems: From dynamic ensembles to collective adaptive systems
CN110119283A (en) A kind of application updates processing method, apparatus and system, using more new system
US10157360B1 (en) Smart bricks information system
Siikarla et al. Transformations have to be developed ReST assured
McGuinness et al. Explaining Task Processing in Cognitive Assistants That Learn.
Reenskaug The common sense of object oriented programming
Lopes et al. JAMDER: JADE to multi-agent systems development resource
Kostis Web-based Decision Policy Definition and Simulation Application for the Gorgias Argumentation Framework
Farrenkopf Applying semantic technologies to multi-agent models in the context of business simulations.
Sanchez Agent services
Hartikainen et al. How to drill down to ReST APIs: Resource harvesting with a pattern tool
Humphrys The world-wide-mind: Draft proposal
US20240111498A1 (en) Apparatus, Device, Method and Computer Program for Generating Code using an LLM

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