CN109408112B - Online development document generation method, device, terminal and readable storage medium - Google Patents
Online development document generation method, device, terminal and readable storage medium Download PDFInfo
- Publication number
- CN109408112B CN109408112B CN201811114907.5A CN201811114907A CN109408112B CN 109408112 B CN109408112 B CN 109408112B CN 201811114907 A CN201811114907 A CN 201811114907A CN 109408112 B CN109408112 B CN 109408112B
- Authority
- CN
- China
- Prior art keywords
- flow
- information
- steps
- flow step
- development document
- 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
Links
- 238000011161 development Methods 0.000 title claims abstract description 88
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000013507 mapping Methods 0.000 claims abstract description 34
- 230000006870 function Effects 0.000 claims description 47
- 230000008569 process Effects 0.000 claims description 19
- 238000012545 processing Methods 0.000 claims description 10
- 238000012216 screening Methods 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 6
- 230000008859 change Effects 0.000 claims description 5
- 238000010801 machine learning Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013135 deep learning Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 238000012356 Product development Methods 0.000 description 2
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/73—Program documentation
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Library & Information Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention provides a method, a device, a terminal and a readable storage medium for generating an online development document, and relates to the technical field of computers. The embodiment of the invention obtains the step information of each flow corresponding to the service requirement; thus, according to the information of each flow step and a pre-stored code template, acquiring a target code corresponding to each flow step; and combining the obtained object codes according to the mapping relation among the flow steps to obtain the development document. Therefore, the technical scheme provided by the embodiment of the invention simplifies the step of generating the development document, reduces manual operation and saves labor cost.
Description
[ field of technology ]
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a terminal, and a readable storage medium for generating an online development document.
[ background Art ]
With the development and wide application of communication and mobile terminal technologies, various software opens up endlessly. In order to be close to the requirements of users, in the process of developing software products, developers determine corresponding implementation schemes according to the provided business requirements. And then, according to the determined corresponding implementation scheme, carrying out corresponding development.
In the prior art, in determining the corresponding implementation scheme, the staff related to product development needs to analyze the functions needed to be implemented in the business requirements, determine the corresponding flow steps, configure the interface documents for inputting and outputting the parameter descriptions for each step, and then combine the flow steps and the corresponding interface documents to obtain the development document.
In the prior art, the whole process of developing documents corresponding to the product realization scheme needs to be manually participated, the realization process is complex, and the product development efficiency is affected.
[ invention ]
In view of the above, the embodiments of the present invention provide a method, an apparatus, a terminal, and a readable storage medium for generating an online development document, which simplify the steps of generating the development document, reduce the manual operation, and save the labor cost.
In a first aspect, an embodiment of the present invention provides an online development document generation method, where the method includes:
acquiring information of each flow step corresponding to the service requirement;
acquiring target codes corresponding to the flow steps according to the flow step information and a pre-stored code template;
and combining the obtained target codes according to the mapping relation among the steps of the flow to obtain the development document.
The aspect and any possible implementation manner described above further provide an implementation manner, where the obtaining information of each flow step corresponding to a service requirement includes:
acquiring requirement information corresponding to the service requirement;
and learning the demand information by using a demand analysis machine model to obtain the step information of each flow.
Aspects and any possible implementation manner as described above further provide an implementation manner, where the information of each flow step at least includes: service parameter description information, function description information and mapping relation among various flow steps.
The aspect and any possible implementation manner as described above further provide an implementation manner, where the obtaining, according to the information of each flow step and the pre-stored code template, the target code corresponding to each flow step includes:
screening out an object code template corresponding to the function description information from the pre-stored code templates according to the function description information in the flow step information;
and configuring parameters in the target code template according to the service parameter description information in the flow step information so as to obtain the target code.
In the aspect and any possible implementation manner described above, there is further provided an implementation manner, where the screening, according to the function description information in the flow step information, an object code template corresponding to the function description information from the pre-stored code templates includes:
carrying out hash processing on the function description information in the flow step information to obtain a first identifier corresponding to each flow step information;
comparing the first identifier corresponding to the step information of each flow with the second identifier corresponding to the code template to obtain a comparison result;
and when the comparison result is that the first identifier is the same as the second identifier, determining the code template corresponding to the second identifier as the target code template.
The aspects and any possible implementation manner described above further provide an implementation manner, where the combining the obtained object codes according to the mapping relation between the flow steps to obtain a development document includes:
generating a corresponding interface document according to the object codes corresponding to the flow steps;
generating a corresponding flow chart according to the mapping relation among the flow steps;
and associating the interface document with the flow chart to obtain the development document.
Aspects and any one of the possible implementations as described above, further providing an implementation, the method further including:
detecting whether the information of each flow step corresponding to the service requirement is changed or not;
and if any flow step information change is detected, updating the development document.
In a second aspect, an embodiment of the present invention provides an online development document generating apparatus, including:
the first acquisition unit is used for acquiring the step information of each flow corresponding to the service requirement;
the second acquisition unit is used for acquiring the target codes corresponding to the flow steps according to the flow step information and the pre-stored code templates;
and the generating unit is used for combining the obtained target codes according to the mapping relation among the flow steps to obtain the development document.
In a third aspect, an embodiment of the present invention provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the method according to any one of the first aspects when executing the computer program.
In a fourth aspect, embodiments of the present invention provide a readable storage medium comprising computer readable instructions which, when read and executed by a computer, cause the computer to perform the method of any of the first aspects.
The technical scheme has the following beneficial effects:
according to the technical scheme provided by the invention, the target codes corresponding to the flow steps are obtained by obtaining the flow step information corresponding to the service requirement and according to the flow step information and the pre-stored code template, so that the obtained target codes are combined according to the mapping relation among the flow steps to obtain the development document. In the process of generating the development document, the target code required by generating the development document can be automatically obtained according to the step information of each flow and the pre-stored code template, and a developer is not required to write the corresponding code manually in the process of generating the development document, so that the labor cost is saved, and the generation time of the development document is shortened to a certain extent.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an online development document generation method provided by an embodiment of the present invention;
FIG. 2 is a block diagram of an online development document generating apparatus provided by an embodiment of the present invention;
fig. 3 is a block diagram of a terminal for performing an online development document generation method according to an embodiment of the present invention.
[ detailed description ] of the invention
For a better understanding of the technical solution of the present invention, the following detailed description of the embodiments of the present invention refers to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one relationship describing the association of the associated objects, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
It should be understood that, although the terms first, second, etc. may be used in embodiments of the invention to describe the identifiers, these identifiers should not be limited to these terms. These terms are only used to distinguish one element from another. For example, a first identifier may also be referred to as a second identifier, and similarly, a second identifier may also be referred to as a first identifier, without departing from the scope of embodiments of the invention.
Depending on the context, the word "if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to detection". Similarly, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
Aiming at the problems in the prior art, the inventor provides that the development document is formed by combining a flow chart formed by flow steps and interface documents corresponding to the flow steps, and each flow step can be reused in different flow charts, and based on the flow chart, the following solution thinking is further provided: firstly, acquiring step information of each flow corresponding to service requirements; then, according to the step information of each flow and a pre-stored code template, acquiring a target code corresponding to each flow step; and combining the obtained object codes according to the mapping relation among the flow steps to obtain the development document.
Guided by this idea, the present solution example provides the following possible implementation.
Example 1
The embodiment of the invention provides an online development document generation method.
Specifically, please refer to fig. 1, which is a flowchart illustrating a method for generating an online development document according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
102. and obtaining the information of each flow step corresponding to the service requirement.
In the present invention, each flow step information includes, but is not limited to: service parameter description information, function description information and mapping relation among the steps of each flow. The service parameter description information may include input parameters and output parameters in the flow step; the function description information is a specific function that can be implemented by the steps of the flow.
104. And acquiring the target codes corresponding to the flow steps according to the flow information of the flow steps and the pre-stored code templates.
Specifically, a plurality of code templates capable of realizing different functions are pre-stored in the terminal, the execution subject can determine the corresponding target code template according to the function description information in the flow step information, and then the relevant parameters of the target code template are configured according to the input parameters in the flow step, so that the target code corresponding to the flow step is obtained.
In a specific implementation scenario, in order to quickly and accurately distinguish each code template, the terminal configures a unique identifier for each code template, and the second identifier of each code template is a digest value obtained by performing hash operation according to the function description information of the code module, so that an implementation process of determining the corresponding code template by the function description information of the execution subject in the execution flow step information may be: and carrying out hash processing on the function description information in each flow step to obtain a corresponding first identifier, comparing the first identifier corresponding to each flow step with a second identifier corresponding to the code template, and determining the code module as the target code template when the first identifier corresponding to each flow step is identical to the second identifier corresponding to the code template.
In addition, it is additionally described that, if the execution body finds a code template corresponding to a certain flow step, the execution body may also send a prompt message of failure in finding, so as to prompt an operator to write the code template corresponding to the flow step, obtain the code template corresponding to the flow step written by the operator, and store the code template so as to be able to be directly invoked later.
106. And combining the obtained target codes according to the mapping relation among the steps of the flow to obtain the development document.
In the present invention, developing a document includes: a flow chart and an interface document. The interface file is the description of each step output parameter and input parameter of the flow chart, namely the parameters required to be input by the flow step and the corresponding output parameters processed by the flow step.
The interface document includes input parameters and output parameters, the output parameters are obtained by processing the input parameters, based on the input parameters, step 106 combines the obtained object codes according to the mapping relation between the steps of the flow, and the obtaining of the development document includes: and generating a corresponding interface document according to the object codes corresponding to the flow steps, obtaining a corresponding flow chart based on the mapping relation between the flow steps, and storing the flow chart and the obtained interface document in an associated mode so as to obtain a development document.
In combination with the above steps, the following two implementation manners are provided for the implementation of obtaining the flow step information corresponding to the service requirement in step 102:
first, each flow step information input by the user is directly collected.
Secondly, obtaining by using a deep learning algorithm, namely firstly obtaining the requirement information corresponding to the service requirement; and then, processing the demand information through a machine learning model, thereby obtaining corresponding flow steps.
Specifically, in the first mode, a developer (i.e., a user) analyzes a service requirement, knows that the service requirement needs to realize functions, so as to determine each flow step corresponding to the service requirement, and inputs the flow steps into a terminal through an input device, so that an execution subject in the terminal can acquire each flow step input by the user.
Specifically, in the second mode, a machine learning model for analyzing the trained service requirements is stored in the terminal, the user only needs to input the requirement information related to the service requirements into the machine learning model, and then the machine learning model performs deep learning on the requirement information input by the user to obtain corresponding flow steps. In the second mode, by combining the deep learning neural network technology and utilizing a preset machine learning model to replace manual analysis on service demands, each flow step corresponding to the service demands can be automatically obtained, and therefore labor cost is reduced to a certain extent.
Further, in order to ensure that the development document viewed by the user is matched with the service requirement, the development document needs to be updated in time so as to avoid the problem of low development efficiency caused by unmatched development document and service requirement, and based on the method, the method further comprises the following steps: detecting whether the information of each flow step corresponding to the service requirement is changed or not; and if any flow step information change is detected, updating the development document.
It should be noted that, the terminal according to the embodiment of the present invention may include, but is not limited to, a personal Computer (Personal Computer, PC), a personal digital assistant (Personal Digital Assistant, PDA), a wireless handheld device, a Tablet Computer (Tablet Computer), a mobile phone, and the like.
The main body of execution of the above steps may be an online development document generating device, which may be an application located in a local terminal, or may be a functional unit such as a plug-in unit or a software development kit (Software Development Kit, SDK) located in an application of the local terminal, which is not particularly limited in the embodiment of the present invention.
It will be appreciated that the application may be an application program (native app) installed on the terminal, or may also be a web page program (webApp) of a browser on the terminal, which is not limited by the embodiment of the present invention.
The technical scheme of the embodiment of the invention has the following beneficial effects:
according to the technical scheme provided by the invention, the target codes corresponding to the flow steps are obtained by obtaining the flow step information corresponding to the service requirement and according to the flow step information and the pre-stored code template, so that the obtained target codes are combined according to the mapping relation among the flow steps to obtain the development document. In the process of generating the development document, the target code required by generating the development document can be automatically obtained according to the step information of each flow and the pre-stored code template, and a developer is not required to write the corresponding code manually in the process of generating the development document, so that the labor cost is saved, and the generation time of the development document is shortened to a certain extent.
Based on the online development document generation method provided by the embodiment, the embodiment of the invention further provides a device embodiment for realizing the steps and the method in the method embodiment.
Referring to fig. 2, a block diagram of an online development document generating apparatus according to an embodiment of the present invention is shown. As shown in fig. 2, the apparatus includes:
a first obtaining unit 21, configured to obtain step information of each flow corresponding to a service requirement;
a second obtaining unit 22, configured to obtain, according to the information of each flow step and the pre-stored code template, an object code corresponding to each flow step;
and the generating unit 23 is used for combining the obtained object codes according to the mapping relation among the flow steps to obtain the development document.
Wherein, each flow step information at least comprises: service parameter description information, function description information and mapping relation among various flow steps. The service parameter description information may include input parameters and output parameters in the flow step; the function description information is a specific function which can be realized by the steps of the flow.
In a specific implementation, the first obtaining unit 21 is specifically configured to:
acquiring requirement information corresponding to the service requirement;
and learning the demand information by using a demand analysis machine model to obtain the step information of each flow.
The flow step information at least comprises the following steps: service parameter description information, function description information and mapping relation among various flow steps.
In a specific implementation, the second obtaining unit 22 is specifically configured to:
screening out an object code template corresponding to the function description information from the pre-stored code templates according to the function description information in the flow step information;
and configuring parameters in the target code template according to the service parameter description information in the flow step information so as to obtain the target code.
The second obtaining unit 22 may be configured to, when screening, according to the function description information in the flow step information, an object code template corresponding to the function description information from the pre-stored code templates, perform the following steps:
carrying out hash processing on the function description information in the flow step information to obtain a first identifier corresponding to each flow step information;
comparing the first identifier corresponding to the step information of each flow with the second identifier corresponding to the code template to obtain a comparison result;
and when the comparison result is that the first identifier is the same as the second identifier, determining the code template corresponding to the second identifier as the target code template.
In a specific implementation, the generating unit 23 is specifically configured to:
generating a corresponding interface document according to the object codes corresponding to the flow steps;
generating a corresponding flow chart according to the mapping relation among the flow steps;
and associating the interface document with the flow chart to obtain the development document.
Optionally, the online development document generating device further includes:
a detecting unit (not shown in fig. 2) for detecting whether each flow step information corresponding to the service requirement is changed;
an updating unit (not shown in fig. 2) for updating the development document if any one of the flow step information changes is detected.
Since each unit in the present embodiment is capable of executing the above-described online-development-document generating method, a relevant explanation of the online-development-document generating method can be referred to for a part of the present embodiment which is not described in detail.
The technical scheme of the embodiment of the invention has the following beneficial effects:
according to the technical scheme provided by the invention, the target codes corresponding to the flow steps are obtained by obtaining the flow step information corresponding to the service requirement and according to the flow step information and the pre-stored code template, so that the obtained target codes are combined according to the mapping relation among the flow steps to obtain the development document. In the process of generating the development document, the target code required by generating the development document can be automatically obtained according to the step information of each flow and the pre-stored code template, and a developer is not required to write the corresponding code manually in the process of generating the development document, so that the labor cost is saved, and the generation time of the development document is shortened to a certain extent.
Referring to fig. 3, a block diagram of a terminal is provided in an embodiment of the present invention. As shown in fig. 3, the terminal comprises a memory 31, a processor 32 and a computer program stored in said memory 31 and executable on said processor 32, said processor 32 executing the steps of, when said processor 32 executes said computer program:
acquiring information of each flow step corresponding to the service requirement;
acquiring target codes corresponding to the flow steps according to the flow step information and a pre-stored code template;
and combining the obtained object codes according to the mapping relation among the steps of each flow to obtain the development document.
In the embodiment of the present invention, optionally, the processor 32 may execute to obtain the information of each flow step corresponding to the service requirement, specifically: acquiring requirement information corresponding to the service requirement; and the demand information is subjected to learning processing by using a demand analysis machine model, so that the step information of each flow is obtained.
In the embodiment of the present invention, optionally, each flow step information at least includes: service parameter description information, function description information and mapping relation among various flow steps.
In this embodiment of the present invention, optionally, the processor 32 may obtain the target code corresponding to each flow step when executing the method according to the information of each flow step and the pre-stored code template, and specifically may execute: screening out an object code template corresponding to the function description information from the pre-stored code templates according to the function description information in the flow step information; and then, configuring parameters in the target code template according to the service parameter description information in the flow step information so as to obtain the target code.
In this embodiment of the present invention, optionally, when executing the function description information in the step information of each flow, the processor 32 screens out the pre-stored code templates, where the target code template corresponds to the function description information, and specifically may execute: carrying out hash processing on the function description information in the flow step information to obtain a first identifier corresponding to each flow step information; then, comparing the first identifier corresponding to the step information of each flow with the second identifier corresponding to the code template to obtain a comparison result; and when the comparison result is that the first identifier is the same as the second identifier, determining the code template corresponding to the second identifier as the target code template.
In the embodiment of the present invention, optionally, when the processor 32 performs the combination of the obtained object codes according to the mapping relationship between the steps of each flow, the method may specifically include: generating a corresponding interface document according to the object codes corresponding to the flow steps; then, generating a corresponding flow chart according to the mapping relation among the flow steps; thus, the interface document is associated with the flowchart to obtain the development document.
In the embodiment of the present invention, optionally, in order to ensure that the development document viewed by the user matches with the service requirement, the development document needs to be updated in time, so as to avoid the problem of low development efficiency caused by unmatched development document and service requirement, and the processor 32 may also perform detection on whether the information of each flow step corresponding to the service requirement is changed; and if any flow step information change is detected, updating the development document.
According to the technical scheme provided by the invention, the target codes corresponding to the flow steps are obtained by obtaining the flow step information corresponding to the service requirement and according to the flow step information and the pre-stored code template, so that the obtained target codes are combined according to the mapping relation among the flow steps to obtain the development document. In the process of generating the development document, the target code required by generating the development document can be automatically obtained according to the step information of each flow and the pre-stored code template, and a developer is not required to write the corresponding code manually in the process of generating the development document, so that the labor cost is saved, and the generation time of the development document is shortened to a certain extent.
The embodiment of the invention provides a readable storage medium, which comprises computer readable instructions, wherein when the computer reads and executes the computer readable instructions, the computer is caused to execute the following steps to realize the online generation of a development document, and the method specifically comprises the following steps:
acquiring information of each flow step corresponding to the service requirement;
acquiring target codes corresponding to the flow steps according to the flow step information and a pre-stored code template;
and combining the obtained object codes according to the mapping relation among the steps of each flow to obtain the development document.
Optionally, the specific implementation process of obtaining the step information of each flow corresponding to the service requirement may be: firstly, obtaining requirement information corresponding to the service requirement; and then, learning the demand information by using a demand analysis machine model to obtain the step information of each flow.
In the present invention, the related flow step information at least includes: service parameter description information, function description information and mapping relation among various flow steps.
Optionally, according to the information of each flow step and the pre-stored code template, the implementation process of obtaining the target code corresponding to each flow step is as follows: firstly, screening out an object code template corresponding to the function description information from the pre-stored code templates according to the function description information in the step information of each flow; and then, configuring parameters in the target code template according to the service parameter description information in the flow step information so as to obtain the target code.
The implementation process of screening the target code template corresponding to the function description information from the pre-stored code templates according to the function description information in the flow step information is as follows: carrying out hash processing on the function description information in the flow step information to obtain a first identifier corresponding to each flow step information; comparing the first identifier corresponding to the step information of each flow with the second identifier corresponding to the code template to obtain a comparison result; and when the comparison result is that the first identifier is the same as the second identifier, determining the code template corresponding to the second identifier as the target code template.
Optionally, the obtained object codes are combined according to the mapping relation among the steps of each flow, and the specific implementation process for obtaining the development document is as follows: firstly, generating a corresponding interface document according to the object codes corresponding to the flow steps; then, generating a corresponding flow chart according to the mapping relation among the flow steps; thus, the interface document is associated with the flowchart to obtain the development document.
Optionally, in order to ensure that the development document viewed by the user matches with the service requirement, the development document needs to be updated in time, so as to avoid the problem of low development efficiency caused by unmatched development document and service requirement, and the computer may further execute: detecting whether the information of each flow step corresponding to the service requirement is changed or not; and if any flow step information change is detected, updating the development document.
According to the technical scheme provided by the invention, the target codes corresponding to the flow steps are obtained by obtaining the flow step information corresponding to the service requirement and according to the flow step information and the pre-stored code template, so that the obtained target codes are combined according to the mapping relation among the flow steps to obtain the development document. In the process of generating the development document, the target code required by generating the development document can be automatically obtained according to the step information of each flow and the pre-stored code template, and a developer is not required to write the corresponding code manually in the process of generating the development document, so that the labor cost is saved, and the generation time of the development document is shortened to a certain extent.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a Processor (Processor) to perform part of the steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather to enable any modification, equivalent replacement, improvement or the like to be made within the spirit and principles of the invention.
Claims (8)
1. An online development document generation method, the method comprising:
obtaining information of each flow step corresponding to the service requirement, wherein the information of each flow step at least comprises the following steps: one or more of service parameter description information, function description information and mapping relations among the steps of each flow;
acquiring target codes corresponding to the flow steps according to the flow step information and a pre-stored code template;
combining the obtained target codes according to the mapping relation among the steps of each flow to obtain a development document;
the step of obtaining the object code corresponding to each flow step according to the information of each flow step and the pre-stored code template comprises the following steps:
screening out an object code template corresponding to the function description information from the pre-stored code templates according to the function description information in the flow step information;
and configuring parameters in the target code template according to the service parameter description information in the flow step information so as to obtain the target code.
2. The method of claim 1, wherein the obtaining the flow step information corresponding to the service requirement includes:
acquiring requirement information corresponding to the service requirement;
and learning the demand information by using a demand analysis machine model to obtain the step information of each flow.
3. The method according to claim 1, wherein the step of screening the pre-stored code templates for the target code templates corresponding to the function description information according to the function description information in the flow step information comprises:
carrying out hash processing on the function description information in the flow step information to obtain a first identifier corresponding to each flow step information;
comparing the first identifier corresponding to the step information of each flow with the second identifier corresponding to the code template to obtain a comparison result;
and when the comparison result is that the first identifier is the same as the second identifier, determining the code template corresponding to the second identifier as the target code template.
4. A method according to any one of claims 1 to 3, wherein the combining the obtained object codes according to the mapping relation between the steps of the respective processes to obtain the development document includes:
generating a corresponding interface document according to the object codes corresponding to the flow steps;
generating a corresponding flow chart according to the mapping relation among the flow steps;
and associating the interface document with the flow chart to obtain the development document.
5. The method according to claim 1, wherein the method further comprises:
detecting whether the information of each flow step corresponding to the service requirement is changed or not;
and if any flow step information change is detected, updating the development document.
6. An online development document generation apparatus, the apparatus comprising:
the first obtaining unit is configured to obtain each flow step information corresponding to a service requirement, where each flow step information at least includes: one or more of service parameter description information, function description information and mapping relations among the steps of each flow;
the second acquisition unit is used for acquiring the target codes corresponding to the flow steps according to the flow step information and the pre-stored code templates;
the generating unit is used for combining the obtained target codes according to the mapping relation among the steps of each flow to obtain a development document;
the second obtaining unit is specifically configured to screen out, according to the function description information in the step information of each flow, an object code template corresponding to the function description information from the pre-stored code templates; and configuring parameters in the target code template according to the service parameter description information in the flow step information so as to obtain the target code.
7. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 5 when executing the computer program.
8. A readable storage medium comprising computer readable instructions which, when read and executed by a computer, cause the computer to perform the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811114907.5A CN109408112B (en) | 2018-09-25 | 2018-09-25 | Online development document generation method, device, terminal and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811114907.5A CN109408112B (en) | 2018-09-25 | 2018-09-25 | Online development document generation method, device, terminal and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109408112A CN109408112A (en) | 2019-03-01 |
CN109408112B true CN109408112B (en) | 2024-01-16 |
Family
ID=65465828
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811114907.5A Active CN109408112B (en) | 2018-09-25 | 2018-09-25 | Online development document generation method, device, terminal and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109408112B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111427561A (en) * | 2020-03-26 | 2020-07-17 | 中国建设银行股份有限公司 | Service code generation method and device, computer equipment and storage medium |
CN112560943A (en) * | 2020-12-15 | 2021-03-26 | 平安消费金融有限公司 | Project development flow generation method and device, electronic equipment and storage medium |
CN112862455A (en) * | 2021-03-02 | 2021-05-28 | 岭东核电有限公司 | Test execution work order generation method and device, computer equipment and storage medium |
CN113434527B (en) * | 2021-07-07 | 2023-09-22 | 北京京东振世信息技术有限公司 | Data processing method, device, electronic equipment and storage medium |
CN114330266A (en) * | 2021-12-01 | 2022-04-12 | 上海闪马智能科技有限公司 | Document generation method and device, storage medium and electronic device |
CN115202732B (en) * | 2022-06-27 | 2023-08-08 | 苏州唐人数码科技有限公司 | Intelligent software development auxiliary system and application method |
CN115878079B (en) * | 2022-12-05 | 2024-10-18 | 中国人民财产保险股份有限公司 | Demand management method, device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101650652A (en) * | 2009-09-17 | 2010-02-17 | 中兴通讯股份有限公司 | Method and device for developing business processes |
CN102004660A (en) * | 2010-11-08 | 2011-04-06 | 中兴通讯股份有限公司 | Realizing method and device of business flows |
CN103729171A (en) * | 2012-10-11 | 2014-04-16 | 三亚中兴软件有限责任公司 | Generating method and device of service workflow codes |
CN106445556A (en) * | 2016-10-18 | 2017-02-22 | 中国银行股份有限公司 | Visualized code generation method and system thereof |
CN106873949A (en) * | 2015-12-11 | 2017-06-20 | 泰康保险集团股份有限公司 | Code generating method and its device |
CN108432208A (en) * | 2016-12-15 | 2018-08-21 | 华为技术有限公司 | A kind of arranging service method, apparatus and server |
-
2018
- 2018-09-25 CN CN201811114907.5A patent/CN109408112B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101650652A (en) * | 2009-09-17 | 2010-02-17 | 中兴通讯股份有限公司 | Method and device for developing business processes |
CN102004660A (en) * | 2010-11-08 | 2011-04-06 | 中兴通讯股份有限公司 | Realizing method and device of business flows |
CN103729171A (en) * | 2012-10-11 | 2014-04-16 | 三亚中兴软件有限责任公司 | Generating method and device of service workflow codes |
CN106873949A (en) * | 2015-12-11 | 2017-06-20 | 泰康保险集团股份有限公司 | Code generating method and its device |
CN106445556A (en) * | 2016-10-18 | 2017-02-22 | 中国银行股份有限公司 | Visualized code generation method and system thereof |
CN108432208A (en) * | 2016-12-15 | 2018-08-21 | 华为技术有限公司 | A kind of arranging service method, apparatus and server |
Also Published As
Publication number | Publication date |
---|---|
CN109408112A (en) | 2019-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109408112B (en) | Online development document generation method, device, terminal and readable storage medium | |
US20140279810A1 (en) | System and method for developing business rules for decision engines | |
CN110969001B (en) | Feedback information generation method and device, storage medium, processor and terminal | |
CN106844772A (en) | The update method and device of application database | |
WO2019061664A1 (en) | Electronic device, user's internet surfing data-based product recommendation method, and storage medium | |
EP3779702A1 (en) | Electronic device detecting software vulnerability and method for operating same | |
CN108111364B (en) | Service system testing method and device | |
US11727701B2 (en) | Techniques to determine document recognition errors | |
CN110543301A (en) | Method and device for generating jenkins code file | |
CN112364744A (en) | TensorRT-based accelerated deep learning image recognition method, device and medium | |
CN109872230B (en) | Test method and device of financial data analysis system, medium and electronic equipment | |
CN113722758A (en) | Log desensitization method and device, computer equipment and storage medium | |
CN111047434B (en) | Operation record generation method and device, computer equipment and storage medium | |
CN111857803A (en) | Page updating method, device, server and storage medium | |
CN106549853A (en) | A kind of email processing method and device | |
CN105589714B (en) | The method and apparatus for using application behavior for analyzing user | |
CN110599278A (en) | Method, apparatus, and computer storage medium for aggregating device identifiers | |
CN109325348B (en) | Application security analysis method and device, computing equipment and computer storage medium | |
CN104536887A (en) | Communication data detection method and device | |
CN116168403A (en) | Medical data classification model training method, classification method, device and related medium | |
CN105739717A (en) | Information input method and device | |
CN105550250A (en) | Access log processing method and apparatus | |
CN113297479B (en) | User portrait generation method and device and electronic equipment | |
CN107229487B (en) | Code processing method and device | |
AU2017227739A1 (en) | Automated testing method for application program user interface, electronic device, system, and storage 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |