CN116755668A - Application program generation method, device, equipment and medium - Google Patents
Application program generation method, device, equipment and medium Download PDFInfo
- Publication number
- CN116755668A CN116755668A CN202310656316.5A CN202310656316A CN116755668A CN 116755668 A CN116755668 A CN 116755668A CN 202310656316 A CN202310656316 A CN 202310656316A CN 116755668 A CN116755668 A CN 116755668A
- Authority
- CN
- China
- Prior art keywords
- target task
- target
- execution
- module
- modules
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000010276 construction Methods 0.000 claims abstract description 69
- 238000012545 processing Methods 0.000 claims abstract description 12
- 230000002159 abnormal effect Effects 0.000 claims description 93
- 230000001419 dependent effect Effects 0.000 claims description 51
- 230000005856 abnormality Effects 0.000 claims description 22
- 238000004590 computer program Methods 0.000 claims description 14
- 238000005516 engineering process Methods 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 13
- 238000010586 diagram Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 238000012795 verification Methods 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
-
- 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/71—Version control; Configuration management
-
- 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
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to the technical fields of big data, data processing and financial science and technology, and discloses a method, a device, equipment and a medium for generating an application program, wherein the method comprises the following steps: acquiring attribute information of a target application program; determining task information corresponding to each target task module in the K target task modules in the target application program according to the attribute information; determining the dependency relationship information of each of the K target task modules according to the task information of each of the K target task modules; determining a corresponding task module according to the dependency relationship information of each of the K target task modules and the module construction instruction corresponding to each of the K target task modules so as to obtain K target task modules; and combining the K target task modules to obtain the target application program. The efficiency of constructing the application program is improved.
Description
Technical Field
The present invention relates to the technical field of big data, data processing and financial science and technology, and in particular, to a method, an apparatus, a device and a medium for generating an application program.
Background
In the development of modern application programs, the construction process is an indispensable link, for example, the development of banking financial APP and the like, and as the tasks in the application programs become more and more complex, the time required for the construction process becomes longer and longer, which brings great trouble to developers. In the existing construction process, each task module usually adopts a manual mode to acquire the dependent resources, so that the efficiency of acquiring the dependent resources is low, and the efficiency of integrally constructing the application program is low.
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for generating an application program, which are used for solving the problem of lower efficiency in the process of constructing the application program.
In a first aspect, there is provided a method for generating an application program, the method comprising:
acquiring attribute information of a target application program;
determining task information corresponding to each target task module in the K target task modules in the target application program according to the attribute information;
determining the dependency relationship information of each of the K target task modules according to the task information of each of the K target task modules;
Determining a corresponding task module according to the dependency relationship information of each of the K target task modules and the module construction instruction corresponding to each of the K target task modules so as to obtain K target task modules;
and combining the K target task modules to obtain the target application program.
In a second aspect, there is provided an apparatus for generating an application program, the apparatus comprising:
the acquisition unit is used for acquiring attribute information of the target application program;
the first determining unit is used for determining task information corresponding to each target task module in the K target task modules in the target application program according to the attribute information;
the second determining unit is used for determining the dependency relationship information of each of the K target task modules according to the task information of each of the K target task modules;
the third determining unit is used for determining a corresponding task module according to the dependency relationship information of each of the K target task modules and the module construction instruction corresponding to each of the K target task modules so as to obtain K target task modules;
And the combining unit is used for combining the K target task modules to obtain the target application program.
In a third aspect, a computer device is provided, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method of generating an application as described above when the computer program is executed.
In a fourth aspect, a computer-readable storage medium is provided, in which a computer program is stored, which when executed by a processor implements the steps of the method for generating an application program described above.
In the scheme realized by the method, the device, the equipment and the medium for generating the application program, the corresponding task module can be determined by acquiring the attribute information of the target application program, determining the task information corresponding to each target task module in K target task modules in the target application program according to the attribute information, determining the dependency information of each target task module in K target task modules according to the task information of each target task module in K target task modules, and determining the corresponding task module according to the dependency information of each target task module in K target task modules and the module construction instruction corresponding to each target task module in K target task modules so as to obtain K target task modules, and combining the K target task modules so as to obtain the target application program. In the invention, in the construction of entities such as banking financial APP, the corresponding target task module can be determined by acquiring the dependency relationship information corresponding to each target task module in the target application program and the module construction instruction corresponding to each target task module, and finally, a plurality of target task modules are combined to obtain the target application program, so that the target task module can be quickly generated without manually acquiring the dependency resources corresponding to the target task module, the efficiency of constructing the target task module is improved, and the efficiency of constructing the application program is further improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention 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 schematic diagram of a system for generating an application program according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for generating an application program according to an embodiment of the invention;
FIG. 3 is a schematic diagram of an apparatus for generating an application program according to an embodiment of the invention;
FIG. 4 is a schematic diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are 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.
In order to better understand the application program generating method provided by the embodiment of the present invention, an application scenario of the application program generating method is briefly described below. In the development process of the financial application program of the bank, the financial application program can be generally subjected to task splitting to obtain a plurality of task modules, and the task modules are independently developed. Specifically, for example, in a financial application program of a bank, the financial application program can be split into a deposit business task module, a credit card business task module, a financial business task module and the like according to different financial plates, so that each task module can be independently developed, and after corresponding modules are obtained, the financial application program is finally obtained by combining according to the logic relationship and the like between each module. When the task modules are constructed, the corresponding dependent resource data of the task modules are required to be acquired, for example, the dependent resource data of the task modules are a third party database or the like, in the prior art, the dependent resource data are usually acquired manually, so that the efficiency of acquiring the dependent resource data is lower, in addition, when the task modules are constructed in the prior art, the task modules are constructed in a serial mode, so that the situation that the same dependent resource data are repeatedly acquired when each task module acquires the dependent resource data can occur, the repeated acquisition of resources is caused, and system resources are wasted.
In order to solve the above problems, in the method for generating an application program provided by the embodiment of the present application, the corresponding target task module can be determined by acquiring the dependency information corresponding to each target task module in the target application program and the module construction instruction corresponding to each target task module, and finally, the target application program is obtained by combining a plurality of target task modules, so that the target task module can be quickly generated without manually acquiring the dependency resource corresponding to the target task module, the efficiency of constructing the target task module is improved, and the efficiency of constructing the application program is further improved.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an application program generating system according to an embodiment of the present application. As shown in fig. 1, the system includes a server and a client, and a user may input attribute information of a target application at the client, which may be configuration information of the target application, or the like. The client sends the attribute information to a server, the server determines task information corresponding to each task module according to the attribute information, determines dependency information of each task module according to the task information, constructs according to the dependency information and a corresponding module construction instruction to obtain a corresponding task module, and finally combines the task modules to obtain a target application program. The application module construction instruction may be an instruction for creating an application module, and after executing the instruction, the application module construction instruction may run source code corresponding to the application module construction instruction to obtain a corresponding module. Therefore, the target task module can be generated rapidly without manually acquiring the dependent resources corresponding to the target task module, the efficiency of constructing the target task module is improved, and the efficiency of constructing the application program is further improved.
Referring to fig. 2, fig. 2 is a flowchart of a method for generating an application according to an embodiment of the invention. As shown in fig. 2, the method for generating an application program includes the steps of:
s201, acquiring attribute information of a target application program.
Wherein, the attribute information of the target application program can be obtained according to the configuration information of the target application program. The attribute information may include a task packet name, version number, etc. The target application may be a banking financial application, such as a financial APP, a financial front-end page, or the like. The configuration information of the target application program may be preconfigured by the user when the target application program is constructed, and the configuration information includes indication information indicating attribute information of the target application program, so that corresponding attribute information can be obtained according to the corresponding indication information.
S202, determining task information corresponding to each target task module in the K target task modules in the target application program according to the attribute information.
The task information corresponding to each task module may be determined according to the task data packet name and the corresponding version number in the task attribute information. The task data packet name may be a task data packet name corresponding to each of the K target task modules. The task data packet name and the corresponding version number can uniquely determine the task information corresponding to the target task module, and the task information can include information (function description information) describing the function of the target task module, identification information of the target task module, and the like. The function description information may include indication information indicating a third party database, a third party interface, etc. on which the function description information depends, version information of the third party database on which the function description information depends, etc.
S203, determining the dependency relationship information of each of the K target task modules according to the task information of each of the K target task modules.
The dependency relationship information may be determined according to the function description information in the task information of each target task module, and specifically, the dependency relationship information may be obtained according to the indication information in the function description information, which indicates the third party database, the third party data interface, and the like on which the target task module depends, the version information of the third party database, and the like.
S204, determining a corresponding task module according to the dependency relationship information of each target task module in the K target task modules and the module construction instruction corresponding to each target task module in the K target task modules so as to obtain the K target task modules.
After the dependency information is obtained, version information of the third party database, identification information of the third party database, and the like in the dependency information may be obtained in a cache of the server to obtain relevant information of the corresponding third party database, for example, a resource package of the third party database, and the like.
After a resource package of the third-party database is obtained, executing a module construction instruction in a thread corresponding to the target task module to perform module construction, and executing source codes corresponding to the target task module and calling resources in the resource package of the third-party database to perform construction when the module is constructed so as to obtain the target task module.
S205, combining the K target task modules to obtain the target application program.
The combination may be performed according to logic information of the K target task modules, so as to obtain the target application program. The logic information of the K target task modules may be understood as the combination of the running logic, the dependent logic, etc. of the K target task modules in the target application program, so as to obtain the target application program.
In this example, the attribute information of the target application program is obtained, task information corresponding to each of K target task modules in the target application program is determined according to the attribute information, dependency information of each of the K target task modules is determined according to task information of each of the K target task modules, and corresponding task modules are determined according to the dependency information of each of the K target task modules and corresponding module construction instructions, so as to obtain K target task modules, and the K target task modules are combined to obtain the target application program. In the invention, in the construction of entities such as banking financial APP, the corresponding target task module can be determined by acquiring the dependency relationship information corresponding to each target task module in the target application program and the module construction instruction corresponding to each target task module, and finally, a plurality of target task modules are combined to obtain the target application program, so that the target task module can be quickly generated without manually acquiring the dependency resources corresponding to the target task module, the efficiency of constructing the target task module is improved, and the efficiency of constructing the application program is further improved.
In one possible implementation, in the existing method for constructing an application program, when each task module is constructed, a serial execution mode is generally adopted for constructing each task module, so that a currently-unstructured task module needs to wait until the construction of the task module being constructed is finished (success or failure), and the efficiency of constructing the task module again is low. In order to solve the above problems, an embodiment of the present application provides a method for quickly constructing a task module, so as to improve efficiency of task module construction, which may specifically be: a possible method for determining a corresponding task module according to dependency information of each of the K target task modules and a corresponding module construction instruction, so as to obtain K target task modules, includes:
a1, acquiring dependent resource data corresponding to each of the K target task modules according to the dependent relation information of each of the K target task modules;
a2, performing execution level classification processing on the K target task modules to obtain N execution task sets, wherein the execution level of each execution task set in the N execution task sets is different, and the execution level of the target task modules in the execution task sets is the same;
A3, running the dependent resource data corresponding to the target task modules in the execution task sets in the thread pools corresponding to the N execution task sets according to the execution sequences corresponding to the execution levels of the N execution task sets, and executing corresponding module construction instructions to obtain K target task modules.
The relevant information of the corresponding third party database, for example, a resource package of the third party database, may be obtained in a cache of the server according to version information of the third party database, identification information of the third party database, and the like in the dependency information. Of course, the corresponding information may be obtained from the corresponding third party data interface according to the third party data interface information in the dependency information, so as to obtain the dependency information. Of course, the two methods may be executed simultaneously, specifically, according to whether the dependency information includes version information of the third party database, interface information of the third party database, and the like, if so, the two methods need to be acquired simultaneously.
Since the running resources of the server for constructing the target task modules are limited, there may be a case where each of the K target task modules cannot be simultaneously constructed in parallel, and thus, the construction may be performed in batches. Specifically, the classification processing may be performed according to the execution level of each target task module to obtain N execution task sets, where the execution level of the target task module in each execution task set is the same, but the execution levels of the execution task sets are different. Therefore, batch construction can be performed, and efficiency in construction is improved.
In a specific example, there are 9 target task modules, which are divided into 3 execution task sets according to their corresponding execution levels, where the first execution task set, the second execution task set, and the third execution task set correspond to a first execution level, a second execution level, and a third execution level, respectively, and the execution priority of the first execution level is greater than the second execution level, and the execution priority of the second execution level is greater than the third execution level. At this time, a module construction instruction of the target task module in the first execution task set may be executed in the corresponding thread first, and a resource package of the corresponding third party database may be run, so as to obtain the corresponding target task module. After the construction of the target task module in the first execution task set is finished, the target task module in the second execution task set is constructed, and finally the target task module in the third execution task set is constructed. Therefore, compared with the time consumed when 9 target task modules are executed in series, the construction time of the target task modules can be greatly reduced by a parallel execution method, and the construction efficiency of the target application program is further improved.
In one possible implementation manner, before the target task module is constructed, version verification is further required to be performed on the dependent resource data, and if a dependent resource data version which cannot meet the requirement exists, update processing is required to be performed on the dependent resource data version so as to improve the reliability of the corresponding target task module in construction. The method specifically comprises the following steps: before running the dependent resource data corresponding to the target task modules in the execution task set in the thread pools corresponding to the N execution task sets according to the execution sequences corresponding to the execution levels of the N execution task sets and executing corresponding module construction instructions to obtain K target task modules, carrying out version update verification on the dependent resource data, wherein the execution sequences comprise the following specific steps:
b1, obtaining version information of the dependent resource data corresponding to each of the K target task modules;
b2, if the version indicated by the version information of the dependent resource data corresponding to a first target task module in the K target task modules is lower than the version indicated by the preset version information, sending resource request information to a resource server, wherein the resource request information comprises the preset version information corresponding to the first target task module;
B3, receiving the dependent resource data corresponding to the preset version information sent by the resource server;
and B4, determining the dependent resource data corresponding to the preset version information as the dependent resource data corresponding to the first target task module.
The preset version information may be the current latest version depending on the resource data, and may specifically be indicated by a version number. Because the dependent resource data stored in the cache of the server may not be the latest version, the server may acquire version information corresponding to the dependent resource data according to a certain time interval, and if the version of the dependent resource data is encountered when the target task module is constructed and is not the latest version, the dependent resource data corresponding to the latest version needs to be acquired.
In this example, when there is a dependent resource data version that cannot meet the requirement in the dependent resource data, it needs to be updated, so as to improve the reliability of the corresponding target task module during construction.
In one possible implementation manner, the analysis processing may be further performed on the instruction execution result of the target task module, and the alarm processing may be performed when the execution state of the target task module is an abnormal state, which is specifically as follows:
C1, acquiring instruction execution results corresponding to each target task module in the K target task modules;
c2, determining execution state information corresponding to each of the K target task modules according to instruction execution results corresponding to each of the K target task modules;
c3, determining a second target task module, wherein the second target task module is a target task module with an abnormal execution state indicated by execution state information in the K target task modules;
c4, acquiring a second execution parameter of the second target task module;
c5, determining an abnormal execution factor of the second target task module according to the second execution parameter;
c6, determining an abnormal grade corresponding to the second target task module according to the abnormal execution factor;
and C7, displaying the abnormal grade.
The instruction execution result of the target task module can be obtained from the cache. The instruction execution results may characterize instruction execution states, and different instruction execution structures may indicate different instruction execution states. For example, if the instruction execution result is the same as the preset instruction execution result, the instruction execution status information may be normal execution; the instruction execution result is different from the preset instruction execution result, and the instruction execution state information may be an execution exception or the like.
The second execution parameters of the second target task module may include a network parameter, an operation environment parameter, an operation parameter depending on resource data, an execution log of source code of the second target task, and the like when the second target task is executed.
An exception analysis may be performed on the second execution parameter to obtain an exception execution factor. Specifically, for example, the network parameter may be analyzed to determine whether the network parameter is a normal network parameter (capable of being connected to the network normally and acquiring corresponding information), and if the network parameter is abnormal, the abnormal execution factor may be an execution factor representing the network abnormality. For another example, the execution log of the source code of the second target task may be analyzed to determine whether the source code of the second target task is abnormal, and if the source code is determined to be abnormal according to the log, the abnormal execution factor may be an execution factor representing that the source code is abnormal.
Different abnormal execution factors have the corresponding abnormal grades, so that the abnormal grade corresponding to the second target task module can be determined according to the abnormal execution factors, and the abnormal grade is displayed. The abnormal level may be displayed by means of a short message, a mail, a popup window, etc., which is only illustrated herein and not specifically limited.
In this example, the instruction execution result of the target task module may be analyzed and processed, and when the execution state of the target task module is an abnormal state, alarm processing may be performed, so as to improve the reliability of the target task module in construction.
In one possible implementation manner, if the abnormality factor indicated by the abnormality execution factor is a network abnormality, the corresponding network data may be obtained separately and subsequent construction may be performed, so that reliability in constructing the target task module may be improved. The method comprises the following steps:
d1, if the abnormal factor indicated by the abnormal execution factor is network abnormality, acquiring current network state information;
d2, if the current network state information is abnormal network state information, displaying the current network state information;
d3, receiving network data corresponding to the second target task module, which is input by a target user;
and D4, determining the second target task module according to the dependent resource data, the module construction instruction and the network data corresponding to the second target task module.
The abnormal factor is network abnormality, and the network abnormality indicates that the second target task module is abnormal in construction, so that current network state information can be obtained. If the network state indicated by the current network state information is still an abnormal network state, the current network state information can be displayed.
After the target user obtains that the current network state information is abnormal, the target user can manually obtain the network data corresponding to the second target task module and input the network data into the server. The network data can be input into the server through the client corresponding to the target user.
After receiving the network data, the server determines a second target task module according to the dependent resource data corresponding to the second target task module, the module construction instruction and the network data. The specific method for determining the second target task module may be the method for determining the target task module in the foregoing embodiment, which is not described herein.
Of course, if the network state indicated by the current network state information is a normal network state, the network data corresponding to the second target task module may be directly obtained from the network, and the subsequent processing may be performed.
In this example, if the abnormal factor indicated by the abnormal execution factor is a network abnormality, the corresponding network data may be obtained separately and then constructed, so that the reliability of the target task module during construction may be improved, and further the reliability of the target application program during construction may be improved.
In one possible implementation manner, if the indicated abnormal factor is a source code abnormality, the abnormal execution factor may acquire a corresponding abnormal source code and adjust the abnormal source code, and construct the second target task module according to the adjusted source code to obtain the second target task module, thereby improving the reliability of the second target task module in construction, and specifically includes the following steps:
E1, if the abnormal factor indicated by the abnormal execution factor is source code abnormality, acquiring a first abnormal source code from a first target source code of the second target task module according to the second execution parameter;
e2, carrying out anomaly analysis on the first anomaly source code to obtain an anomaly analysis result;
e3, adjusting the first abnormal source code according to the abnormal analysis result to obtain a second source code;
e4, replacing the first abnormal source code in the first target source code corresponding to the second target task module with the second source code to obtain a second target source code;
and E5, determining the second target task module according to the second target source code, the dependent resource data corresponding to the second target task module and the module construction instruction.
The execution parameter may be an execution log of source codes of the second target task, and the corresponding first abnormal source code may be obtained according to an abnormal point in the execution log.
The method for carrying out anomaly analysis on the first anomaly source code can be that functional information corresponding to the first anomaly source code is obtained; determining a plurality of reference source codes according to the function information; acquiring difference information between the first abnormal source code and the plurality of reference source codes; and determining the anomaly information of the first anomaly source code according to the difference information to obtain an anomaly analysis result. The plurality of reference source codes are source codes which correspond to the function information and can normally operate. Different difference information may correspond to different anomaly information.
The method for obtaining the second source code by adjusting the first abnormal source code according to the abnormal analysis result can be as follows: and adjusting the first abnormal source code according to the difference information corresponding to the abnormal analysis result. The method specifically comprises the following steps: and replacing the corresponding part in the first abnormal source code with a part which is different from the first abnormal source code in the difference information according to the difference information, and then carrying out parameter setting on the replaced part to obtain a second source code. The method for setting the parameters of the replacement part can be as follows: the parameter correspondence in the portion of the first anomaly source in the difference information is set to the parameter of the portion of the difference information that is different from the first anomaly source code. Specifically, for example, the difference information is A1 and A2, A1 is a source code in the first abnormal source code, A2 is a source code in the reference source code, the A1 in the first source code is replaced by A2, and a parameter of the A1 is set as a parameter of a corresponding part in the A2, so that the first abnormal source code is adjusted, and a second source code is obtained.
Determining the second target task module according to the second target source code, the dependent resource data corresponding to the second target task module, and the module construction instruction may refer to the method for determining the target task module in the foregoing embodiment, which is not described herein again.
In this example, if the indicated abnormal factor is a source code abnormality, the abnormal execution factor may obtain a corresponding abnormal source code and adjust the abnormal source code according to the associated reference source code, and then construct the second target task module according to the adjusted source code, so as to obtain the second target task module, thereby improving the reliability of the second target task module in construction.
In one possible implementation manner, the anomaly level analysis can be performed according to the anomaly analysis result of the source code, and the alarm display can be performed, which is specifically as follows:
f1, determining a first abnormality grade according to the abnormality analysis result;
and F2, if the first abnormal grade is higher than a preset abnormal grade, displaying the first abnormal source code and the second source code.
Different exception analysis results have corresponding exception grades, so that a first exception grade corresponding to the second target task module can be determined.
The preset abnormality level is set by an empirical value or historical data. If the first abnormal level is higher than the preset abnormal level, it can be stated that a larger error may occur in the action of the second source code obtained by adjusting the first abnormal source code, and then, a manual verification is needed at this time, and subsequent actions of determining, modifying and adjusting are performed.
In this example, after the first anomaly level is higher than the preset anomaly level, the first anomaly source code and the second anomaly source code are displayed, so that a user can check and verify the first anomaly source code and perform subsequent adjustment and the like, and reliability in processing is improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
In an embodiment, an application generating device is provided, where the application generating device corresponds to the application generating method in the above embodiment one by one. As shown in fig. 3, the generating apparatus of the application program includes an acquiring unit 301, a first determining unit 302, a second determining unit 303, a third determining unit 304, and a combining unit 305. The functional modules are described in detail as follows:
an acquiring unit 301, configured to acquire attribute information of a target application program;
a first determining unit 302, configured to determine task information corresponding to each of K target task modules in the target application according to the attribute information;
A second determining unit 303, configured to determine dependency information of each of the K target task modules according to task information of each of the K target task modules;
a third determining unit 304, configured to determine a corresponding task module according to dependency information of each of the K target task modules and a module construction instruction corresponding to each of the K target task modules, so as to obtain K target task modules;
and the combining unit 305 is configured to combine the K target task modules to obtain the target application program.
In one possible implementation, the third determining unit 304 is configured to:
according to the dependency relationship information of each target task module in the K target task modules, obtaining dependency resource data corresponding to each target task module in the K target task modules;
performing execution level classification processing on the K target task modules to obtain N execution task sets, wherein the execution level of each execution task set in the N execution task sets is different, and the execution level of the target task modules in the execution task sets is the same;
And running the dependent resource data corresponding to the target task modules in the execution task sets in the thread pools corresponding to the N execution task sets according to the execution sequences corresponding to the execution grades of the N execution task sets, and executing corresponding module construction instructions to obtain K target task modules.
In one possible implementation manner, before running the dependent resource data corresponding to the target task modules in the execution task set in the thread pools corresponding to the N execution task sets according to the execution orders corresponding to the execution levels of the N execution task sets and executing the corresponding module construction instructions to obtain K target task modules, the application program generating device is further configured to:
acquiring version information of dependent resource data corresponding to each of the K target task modules;
if the version indicated by the version information of the dependent resource data corresponding to a first target task module in the K target task modules is lower than the version indicated by the preset version information, sending resource request information to a resource server, wherein the resource request information comprises the preset version information corresponding to the first target task module;
Receiving dependent resource data corresponding to preset version information sent by the resource server;
and determining the dependent resource data corresponding to the preset version information as the dependent resource data corresponding to the first target task module.
In one possible implementation, the generating means of the application program is further configured to:
obtaining instruction execution results corresponding to each target task module in the K target task modules;
determining execution state information corresponding to each of the K target task modules according to instruction execution results corresponding to each of the K target task modules;
determining a second target task module, wherein the second target task module is a target task module with an abnormal execution state indicated by execution state information in the K target task modules;
acquiring a second execution parameter of the second target task module;
determining an abnormal execution factor of the second target task module according to the second execution parameter;
determining an abnormal grade corresponding to the second target task module according to the abnormal execution factor;
the anomaly level is shown.
In one possible implementation, the generating means of the application program is further configured to:
If the abnormal factor indicated by the abnormal execution factor is network abnormality, acquiring current network state information;
if the current network state information is abnormal network state information, displaying the current network state information;
receiving network data corresponding to the second target task module, which is input by a target user;
and determining the second target task module according to the dependent resource data, the module construction instruction and the network data corresponding to the second target task module.
In one possible implementation, the generating means of the application program is further configured to:
if the abnormal factor indicated by the abnormal execution factor is source code abnormality, acquiring a first abnormal source code from a first target source code of the second target task module according to the second execution parameter;
performing exception analysis on the first exception source code to obtain an exception analysis result;
adjusting the first abnormal source code according to the abnormal analysis result to obtain a second source code;
replacing a first abnormal source code in a first target source code corresponding to the second target task module with the second source code to obtain a second target source code;
and determining the second target task module according to the second target source code, the dependent resource data corresponding to the second target task module and the module construction instruction.
In one possible implementation, the generating means of the application program is further configured to:
determining a first abnormality level according to the abnormality analysis result;
and if the first abnormal level is higher than a preset abnormal level, displaying the first abnormal source code and the second source code.
In this example, by acquiring attribute information of a target application program, determining task information corresponding to each of K target task modules in the target application program according to the attribute information, determining dependency information of each of the K target task modules according to task information of each of the K target task modules, and determining a corresponding task module according to the dependency information of each of the K target task modules and a module construction instruction corresponding to each of the K target task modules, so as to obtain K target task modules, and combining the K target task modules to obtain the target application program. In the invention, in the construction of entities such as banking financial APP, the corresponding target task module can be determined by acquiring the dependency relationship information corresponding to each target task module in the target application program and the module construction instruction corresponding to each target task module, and finally, a plurality of target task modules are combined to obtain the target application program, so that the target task module can be quickly generated without manually acquiring the dependency resources corresponding to the target task module, the efficiency of constructing the target task module is improved, and the efficiency of constructing the application program is further improved.
The specific limitation of the application generating device may be referred to the limitation of the application generating method hereinabove, and will not be described herein. The respective modules in the above-described application program generating apparatus may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes non-volatile and/or volatile storage media and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is for communicating with an external client via a network connection. The computer program, when executed by a processor, performs functions or steps of a server side of a method for generating an application program.
In one embodiment, a computer device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of when executing the computer program:
acquiring attribute information of a target application program;
determining task information corresponding to each target task module in the K target task modules in the target application program according to the attribute information;
determining the dependency relationship information of each of the K target task modules according to the task information of each of the K target task modules;
determining a corresponding task module according to the dependency relationship information of each of the K target task modules and the module construction instruction corresponding to each of the K target task modules so as to obtain K target task modules;
and combining the K target task modules to obtain the target application program.
In this example, by acquiring attribute information of a target application program, determining task information corresponding to each of K target task modules in the target application program according to the attribute information, determining dependency information of each of the K target task modules according to task information of each of the K target task modules, and determining a corresponding task module according to the dependency information of each of the K target task modules and a module construction instruction corresponding to each of the K target task modules, so as to obtain K target task modules, and combining the K target task modules to obtain the target application program. In the invention, in the construction of entities such as banking financial APP, the corresponding target task module can be determined by acquiring the dependency relationship information corresponding to each target task module in the target application program and the module construction instruction corresponding to each target task module, and finally, a plurality of target task modules are combined to obtain the target application program, so that the target task module can be quickly generated without manually acquiring the dependency resources corresponding to the target task module, the efficiency of constructing the target task module is improved, and the efficiency of constructing the application program is further improved.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring attribute information of a target application program;
determining task information corresponding to each target task module in the K target task modules in the target application program according to the attribute information;
determining the dependency relationship information of each of the K target task modules according to the task information of each of the K target task modules;
determining a corresponding task module according to the dependency relationship information of each of the K target task modules and the module construction instruction corresponding to each of the K target task modules so as to obtain K target task modules;
and combining the K target task modules to obtain the target application program.
In this example, by acquiring attribute information of a target application program, determining task information corresponding to each of K target task modules in the target application program according to the attribute information, determining dependency information of each of the K target task modules according to task information of each of the K target task modules, and determining a corresponding task module according to the dependency information of each of the K target task modules and a module construction instruction corresponding to each of the K target task modules, so as to obtain K target task modules, and combining the K target task modules to obtain the target application program. In the invention, in the construction of entities such as banking financial APP, the corresponding target task module can be determined by acquiring the dependency relationship information corresponding to each target task module in the target application program and the module construction instruction corresponding to each target task module, and finally, a plurality of target task modules are combined to obtain the target application program, so that the target task module can be quickly generated without manually acquiring the dependency resources corresponding to the target task module, the efficiency of constructing the target task module is improved, and the efficiency of constructing the application program is further improved.
It should be noted that, the functions or steps implemented by the computer readable storage medium or the computer device may correspond to the relevant descriptions of the server side and the client side in the foregoing method embodiments, and are not described herein for avoiding repetition.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.
Claims (10)
1. A method for generating an application program, the method comprising:
acquiring attribute information of a target application program;
determining task information corresponding to each target task module in the K target task modules in the target application program according to the attribute information;
Determining the dependency relationship information of each of the K target task modules according to the task information of each of the K target task modules;
determining a corresponding task module according to the dependency relationship information of each of the K target task modules and the module construction instruction corresponding to each of the K target task modules so as to obtain K target task modules;
and combining the K target task modules to obtain the target application program.
2. The method for generating an application program according to claim 1, wherein determining the corresponding task module according to the dependency information of each of the K target task modules and the corresponding module construction instruction to obtain the K target task modules includes:
according to the dependency relationship information of each target task module in the K target task modules, obtaining dependency resource data corresponding to each target task module in the K target task modules;
performing execution level classification processing on the K target task modules to obtain N execution task sets, wherein the execution level of each execution task set in the N execution task sets is different, and the execution level of the target task modules in the execution task sets is the same;
And running the dependent resource data corresponding to the target task modules in the execution task sets in the thread pools corresponding to the N execution task sets according to the execution sequences corresponding to the execution grades of the N execution task sets, and executing corresponding module construction instructions to obtain K target task modules.
3. The method according to claim 2, wherein before running the dependent resource data corresponding to the target task module in the execution task set in the thread pool corresponding to the N execution task sets according to the execution order corresponding to the execution levels of the N execution task sets and executing the corresponding module construction instruction to obtain K target task modules, the method further comprises:
acquiring version information of dependent resource data corresponding to each of the K target task modules;
if the version indicated by the version information of the dependent resource data corresponding to a first target task module in the K target task modules is lower than the version indicated by the preset version information, sending resource request information to a resource server, wherein the resource request information comprises the preset version information corresponding to the first target task module;
Receiving dependent resource data corresponding to preset version information sent by the resource server;
and determining the dependent resource data corresponding to the preset version information as the dependent resource data corresponding to the first target task module.
4. A method of generating an application according to claim 3, wherein the method further comprises:
obtaining instruction execution results corresponding to each target task module in the K target task modules;
determining execution state information corresponding to each of the K target task modules according to instruction execution results corresponding to each of the K target task modules;
determining a second target task module, wherein the second target task module is a target task module with an abnormal execution state indicated by execution state information in the K target task modules;
acquiring a second execution parameter of the second target task module;
determining an abnormal execution factor of the second target task module according to the second execution parameter;
determining an abnormal grade corresponding to the second target task module according to the abnormal execution factor;
the anomaly level is shown.
5. The method of claim 4, further comprising, after said determining an abnormal execution factor of said second target task module based on said second execution parameter:
if the abnormal factor indicated by the abnormal execution factor is network abnormality, acquiring current network state information;
if the current network state information is abnormal network state information, displaying the current network state information;
receiving network data corresponding to the second target task module, which is input by a target user;
and determining the second target task module according to the dependent resource data, the module construction instruction and the network data corresponding to the second target task module.
6. The method of claim 4, further comprising, after said determining an abnormal execution factor of said second target task module based on said second execution parameter:
if the abnormal factor indicated by the abnormal execution factor is source code abnormality, acquiring a first abnormal source code from a first target source code of the second target task module according to the second execution parameter;
Performing exception analysis on the first exception source code to obtain an exception analysis result;
adjusting the first abnormal source code according to the abnormal analysis result to obtain a second source code;
replacing a first abnormal source code in a first target source code corresponding to the second target task module with the second source code to obtain a second target source code;
and determining the second target task module according to the second target source code, the dependent resource data corresponding to the second target task module and the module construction instruction.
7. The method of generating an application program according to claim 6, characterized in that the method further comprises:
determining a first abnormality level according to the abnormality analysis result;
and if the first abnormal level is higher than a preset abnormal level, displaying the first abnormal source code and the second source code.
8. An apparatus for generating an application program, the apparatus comprising:
the acquisition unit is used for acquiring attribute information of the target application program;
the first determining unit is used for determining task information corresponding to each target task module in the K target task modules in the target application program according to the attribute information;
The second determining unit is used for determining the dependency relationship information of each of the K target task modules according to the task information of each of the K target task modules;
the third determining unit is used for determining a corresponding task module according to the dependency relationship information of each of the K target task modules and the module construction instruction corresponding to each of the K target task modules so as to obtain K target task modules;
and the combining unit is used for combining the K target task modules to obtain the target application program.
9. Computer device 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 steps of the method of generating an application program according to any of claims 1 to 7 when the computer program is executed.
10. A computer-readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method of generating an application program according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310656316.5A CN116755668A (en) | 2023-06-02 | 2023-06-02 | Application program generation method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310656316.5A CN116755668A (en) | 2023-06-02 | 2023-06-02 | Application program generation method, device, equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116755668A true CN116755668A (en) | 2023-09-15 |
Family
ID=87952475
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310656316.5A Pending CN116755668A (en) | 2023-06-02 | 2023-06-02 | Application program generation method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116755668A (en) |
-
2023
- 2023-06-02 CN CN202310656316.5A patent/CN116755668A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111078339B (en) | Interface element positioning method and device, computer equipment and storage medium | |
CN108492005B (en) | Project data processing method and device, computer equipment and storage medium | |
CN111309372A (en) | Timed task execution method and device, computer equipment and storage medium | |
CN110490594B (en) | Service data processing method and device, computer equipment and storage medium | |
CN110399241B (en) | Task exception handling method, device, computer equipment and readable storage medium | |
CN110851159B (en) | Business rule updating method and device, computer equipment and storage medium | |
CN111797026A (en) | Test case generation method and device, computer equipment and storage medium | |
CN114527974B (en) | Method and device for realizing business function of software product and computer equipment | |
US20210048999A1 (en) | Automated generation of status chains for software updates | |
CN112667424A (en) | Abnormal data processing method and device, computer equipment and storage medium | |
CN114461219A (en) | Data analysis method and device, computer equipment and storage medium | |
CN118014506A (en) | Batch processing method and device for financial business, computer equipment and storage medium | |
CN114090113A (en) | Method, device and equipment for dynamically loading data source processing plug-in and storage medium | |
CN111159025B (en) | Application program interface testing method and device, computer equipment and storage medium | |
CN110737426B (en) | Program block creating method, program block creating device, computer equipment and storage medium | |
CN116755668A (en) | Application program generation method, device, equipment and medium | |
CN111435356B (en) | Data feature extraction method, device, computer equipment and storage medium | |
CN111913858A (en) | Pressure testing system and method | |
CN116342256A (en) | Wind control strategy testing method and device, computer equipment and storage medium | |
CN108804309B (en) | Automatic test method and test tool for contract management system | |
CN114218188A (en) | Data migration method, device, equipment and storage medium | |
CN110489208B (en) | Virtual machine configuration parameter checking method, system, computer equipment and storage medium | |
CN112699023B (en) | Project interface testing method and device, computer equipment and storage medium | |
CN114429408A (en) | Method, device, equipment and system for checking configuration file of intelligent substation | |
CN110969430B (en) | Suspicious user identification method, suspicious user identification device, computer equipment 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 |