CN113835680A - Application program generation method and device, electronic equipment and computer storage medium - Google Patents
Application program generation method and device, electronic equipment and computer storage medium Download PDFInfo
- Publication number
- CN113835680A CN113835680A CN202010591263.XA CN202010591263A CN113835680A CN 113835680 A CN113835680 A CN 113835680A CN 202010591263 A CN202010591263 A CN 202010591263A CN 113835680 A CN113835680 A CN 113835680A
- Authority
- CN
- China
- Prior art keywords
- node
- module
- application program
- node module
- configuration file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000009434 installation Methods 0.000 claims abstract description 48
- 238000004806 packaging method and process Methods 0.000 claims abstract description 19
- 230000006399 behavior Effects 0.000 claims description 57
- 230000009471 action Effects 0.000 claims description 37
- 230000000007 visual effect Effects 0.000 claims description 22
- 230000003068 static effect Effects 0.000 claims description 16
- 238000012423 maintenance Methods 0.000 claims description 11
- 238000012545 processing Methods 0.000 claims description 8
- 238000004364 calculation method Methods 0.000 claims description 6
- 238000005538 encapsulation Methods 0.000 claims description 6
- 230000004044 response Effects 0.000 claims description 3
- 230000006854 communication Effects 0.000 abstract description 13
- 230000010365 information processing Effects 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 27
- 238000013461 design Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 5
- 238000011161 development Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 230000003542 behavioural effect Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 230000001052 transient effect Effects 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000005034 decoration Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 238000007306 functionalization reaction Methods 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application provides a method and a device for generating an application program, electronic equipment and a computer readable storage medium, and relates to the field of information processing. The method comprises the following steps: when an acquisition instruction is received, acquiring at least two node modules required by the application program and a configuration file containing the connection relation between the node modules from a preset node module library; and when a generation instruction is received, packaging based on each node module and the configuration file to obtain an installation file of the application program. The method and the system avoid the problems that efficiency is reduced and ambiguity occurs in the communication process because planning personnel need to communicate with developers, and realize that the planning personnel can basically and completely verify the logic of the application program and adjust the related parameters of the application program by themselves, thereby quickly iterating the product.
Description
Technical Field
The present application relates to the field of information processing technologies, and in particular, to a method and an apparatus for generating an application program, an electronic device, and a computer-readable storage medium.
Background
In the existing development process of an application program, usually a product planner designs and writes text description contents of the function of the application program, and then delivers a text to a developer to write a code to be implemented in the product of the application program, and a specific development flow is shown in fig. 1. However, this approach has the following drawbacks:
1) the text description is usually ambiguous, and because the design and implementation are not the same person, the description of the planner may deviate from the understanding of the developer, and the developer may not fully understand all the design details each time, resulting in the final effect being not as expected;
2) when a new function is designed, a large amount of repeated source codes need to be written, and the efficiency is low; moreover, after the function is modified each time, developers need to be informed to change and compile the source code, and the source code can be released after compiling is completed and tested, so that not only is the process time consuming, but also information expression ambiguity can be caused in the communication process, and the iteration efficiency of the product is influenced.
Disclosure of Invention
The application provides an application generation method and device, an electronic device and a computer-readable storage medium, which can solve the problems. The technical scheme is as follows:
in a first aspect, a method for generating an application program is provided, where the method includes:
when an acquisition instruction is received, acquiring at least two node modules required by the application program and a configuration file containing the connection relation between the node modules from a preset node module library; the node module library comprises at least two generated node modules, and each node module is used for executing at least one behavior action;
when a generation instruction is received, packaging is carried out based on each node module and the configuration file to obtain an installation file of the application program, so that the installation file is unpacked to obtain each node module and the configuration file, each node module is called based on the configuration file when the application program runs, and corresponding behavior actions are executed through each node module.
Preferably, the node module library is generated by:
acquiring a source code corresponding to any node module;
compiling the source code to generate any node module, and setting a resource data reading type corresponding to any node module in response to a setting instruction;
and storing any node module to a preset node module library.
Preferably, the configuration file is generated by:
receiving an acquisition instruction of a node module through a preset visual editor; the acquisition instruction comprises identification information of at least two node modules;
acquiring corresponding node modules from a node module library based on the identification information;
when a connection instruction aiming at any two node modules is received, establishing the connection relation of the any two node modules;
when receiving an output instruction, generating a configuration file, and recording at least one established connection relation and identification information of each node module with the connection relation in the configuration file.
Preferably, the behavioral actions include at least one of conditional judgments, transient computational behaviors, and continuous computational behaviors; the resource data reading type comprises at least one of static configuration data, dynamic configuration data and state maintenance data; the condition determination corresponds to the static configuration data, the instantaneous computation behavior corresponds to the dynamic configuration data, and the continuous computation behavior corresponds to the state maintenance data.
Preferably, the obtaining of the installation file of the application program by performing encapsulation based on each node module and the configuration file includes:
and packaging each node module, the configuration file and the resource data which are required to be read by each node module to obtain an installation file of the application program.
In a second aspect, an apparatus for generating an application program is provided, the apparatus including:
the receiving module is used for receiving an acquisition instruction;
the first acquisition module is used for acquiring at least two node modules required by the application program and a configuration file containing the connection relation among the node modules from a preset node module library; the node module library comprises at least two generated node modules, and each node module is used for executing at least one behavior action;
the receiving module is further used for receiving a generating instruction;
and the encapsulation module is used for encapsulating the node modules and the configuration files to obtain installation files of the application program, so that the installation files are decapsulated to obtain the node modules and the configuration files, calling the node modules based on the configuration files when the application program runs, and executing corresponding behavior actions through the node modules.
Preferably, the method further comprises the following steps:
the second acquisition module is used for acquiring a source code corresponding to any node module;
the first processing module is used for compiling the source code, generating any node module and responding to a setting instruction to set a resource data reading type corresponding to any node module;
and the storage module is used for storing any node module to a preset node module library.
Preferably, the method further comprises the following steps:
the second processing module is used for receiving an acquisition instruction of the node module through a preset visual editor; the acquisition instruction comprises identification information of at least two node modules;
a third obtaining module, configured to obtain each corresponding node module from the node module library based on each identification information;
the system comprises an establishing module, a judging module and a judging module, wherein the establishing module is used for establishing the connection relation of any two node modules when receiving a connection instruction aiming at the any two node modules;
and the generating module is used for generating a configuration file when receiving the output instruction, and recording the established at least one connection relation and the identification information of each node module with the connection relation in the configuration file.
Preferably, the behavioral actions include at least one of conditional judgments, transient computational behaviors, and continuous computational behaviors; the resource data reading type comprises at least one of static configuration data, dynamic configuration data and state maintenance data; the condition determination corresponds to the static configuration data, the instantaneous computation behavior corresponds to the dynamic configuration data, and the continuous computation behavior corresponds to the state maintenance data.
Preferably, the encapsulation module is specifically configured to:
and packaging each node module, the configuration file and the resource data which are required to be read by each node module to obtain an installation file of the application program.
In a third aspect, an electronic device is provided, which includes:
a processor, a memory, and a bus;
the bus is used for connecting the processor and the memory;
the memory is used for storing operation instructions;
the processor is configured to call the operation instruction, and the executable instruction enables the processor to execute an operation corresponding to the generation method of the application program shown in the first aspect of the present application.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the method for generating an application program illustrated in the first aspect of the present application.
The beneficial effect that technical scheme that this application provided brought is:
when an acquisition instruction is received, acquiring at least two node modules required by the application program and a configuration file containing the connection relation between the node modules from a preset node module library; the node module library comprises at least two generated node modules, and each node module is used for executing at least one behavior action; when a generation instruction is received, packaging is carried out based on each node module and the configuration file to obtain an installation file of the application program, so that the installation file is unpacked to obtain each node module and the configuration file, each node module is called based on the configuration file when the application program runs, and corresponding behavior actions are executed through each node module. Therefore, by means of splitting all functions of the application program into a plurality of node modules, when designing the service logic of the application program, a planning staff of the application program can directly design the service logic into enumeration configuration of the plurality of node modules without depending on source codes of the application program, so that the problem that the planning staff needs to communicate with developers, efficiency is reduced, the problem of ambiguity in a communication process exists, the planning staff can basically and completely verify the logic of the application program by themselves, relevant parameters of the application program are adjusted, and products are quickly iterated.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
FIG. 1 is a schematic diagram of a development process of a prior art application;
fig. 2 is a flowchart illustrating a method for generating an application according to an embodiment of the present application;
FIG. 3 is a logic diagram of each node module corresponding to the operation of three behaviors in the present application;
FIG. 4 is a schematic diagram of a connection relationship between node modules according to the present application;
fig. 5 is a schematic structural diagram of an application generation apparatus according to yet another embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device for generating an application according to yet another embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The application generation method, device, electronic device and computer-readable storage medium provided by the application aim to solve the above technical problems in the prior art.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
In one embodiment, a method for generating an application program is provided, as shown in fig. 2, the method includes:
step S201, when receiving an acquisition instruction, acquiring at least two node modules required by an application program and a configuration file containing the connection relation between the node modules from a preset node module library; the node module library comprises at least two generated node modules, and each node module is used for executing at least one behavior action;
the user may generate the installation file of the application program through a third party (such as a plug-in, an application program, and the like) having a function of generating the installation file, the third party may run in the terminal and perform data interaction with the preset node module library, and the terminal may have the following characteristics:
(1) on a hardware architecture, a device has a central processing unit, a memory, an input unit and an output unit, that is, the device is often a microcomputer device having a communication function. In addition, various input modes such as a keyboard, a mouse, a touch screen, a microphone, a camera and the like can be provided, and input can be adjusted as required. Meanwhile, the equipment often has a plurality of output modes, such as a telephone receiver, a display screen and the like, and can be adjusted according to needs;
(2) on a software system, the device must have an operating system, such as Windows Mobile, Symbian, Palm, Android, iOS, and the like. Meanwhile, the operating systems are more and more open, and personalized application programs developed based on the open operating system platforms are infinite, such as a communication book, a schedule, a notebook, a calculator, various games and the like, so that the requirements of personalized users are met to a great extent;
(3) in terms of communication capacity, the device has flexible access mode and high-bandwidth communication performance, and can automatically adjust the selected communication mode according to the selected service and the environment, thereby being convenient for users to use. The device can support GSM (Global System for Mobile Communication), WCDMA (Wideband Code Division Multiple Access), CDMA2000(Code Division Multiple Access), TDSCDMA (Time Division-Synchronous Code Division Multiple Access), Wi-Fi (Wireless-Fidelity), WiMAX (world Interoperability for Microwave Access) and the like, thereby being suitable for various types of networks, and not only supporting voice services, but also supporting various Wireless data services;
(4) in the aspect of function use, the equipment focuses more on humanization, individuation and multi-functionalization. With the development of computer technology, devices enter a human-centered mode from a device-centered mode, and the embedded computing, control technology, artificial intelligence technology, biometric authentication technology and the like are integrated, so that the human-oriented purpose is fully embodied. Due to the development of software technology, the equipment can be adjusted and set according to individual requirements, and is more personalized. Meanwhile, the device integrates a plurality of software and hardware, and the function is more and more powerful.
Specifically, when the user runs the third party in the terminal, the third party may obtain at least two node modules required by the generated application program and a configuration file including a connection relationship between the node modules from a node module library preset in the terminal. The third party has a visual interface, an acquisition button and a generation button are arranged in the visual interface, after a user clicks the acquisition button, each node module in the node module library can be displayed in a preset display window, the user can select a required node module from each node module, and then a configuration file required by the user is acquired from a storage container of the terminal.
Further, the configuration file includes the connection relationship between the node modules, for example, the configuration file a includes the connection relationship between the node modules 1, 2, and 3, and the configuration file B includes the connection relationship between the node modules 4 and 5.
It should be noted that the configuration file may be stored in the node module library, may also be stored separately from the node module library, or may be stored in a storage container of the terminal in another manner, and in practical application, the configuration file may be set according to actual requirements, which is not limited in this embodiment of the present invention.
Step S202, when a generation instruction is received, packaging is carried out based on each node module and the configuration file to obtain an installation file of the application program, so that the installation file is unpacked to obtain each node module and the configuration file, each node module is called based on the configuration file when the application program runs, and corresponding behavior actions are executed through each node module.
Specifically, in the visual interface of the third party, when the user clicks the generation button, the installation file of the application program can be obtained by packaging based on each node module and the configuration file. The obtained installation file can be stored in the server for any user to download. After any user downloads the installation file in the terminal, the installation file is unpacked, the application program can be installed, and simultaneously, each node module, the configuration file and resource data required to be read by each node module are obtained. When an application is running, the running logic consisting of three behavioral actions may be as shown in FIG. 3; in addition, for the operation instruction of the user, each node module can be called based on the configuration file, and corresponding behavior actions are executed through each node module, so that the requirements of the user are met.
Wherein, the flow structure diagram shown in fig. 3 describes the service logic of the embodiment of the present invention, including: the method comprises the steps that firstly, an entry point is a State node pointed by a START mark, an OnTick outlet is executed once per frame of a program, when an OnTick interface is executed, the execution result of the OnTick interface is that the execution is started by the content in a subsequent node Condition node connected with the OnTick interface, the execution result of the Condition node is that after the execution result is calculated, the outlet of a corresponding connecting line is selected to continue to activate the next node connected with the OnTick interface to START execution, and the flow of executing the flow is analogized.
Further, the Loop executes the logic pointed by the For Each; when the logic execution of the state is finished, Next pointed Listener is executed, and the Listener is used for sensing the change of the external data; the Selector selects logic to be executed according to internal logic; duration is used for executing a wait timer completion, such as a wait timer completion of 5 seconds; subflow is the jumping to another stream file when the logic (complete flow shown in fig. 3) execution of the current stream file is completed.
In the embodiment of the invention, when an acquisition instruction is received, at least two node modules required by an application program and a configuration file containing the connection relation between the node modules are acquired from a preset node module library; the node module library comprises at least two generated node modules, and each node module is used for executing at least one behavior action; when a generation instruction is received, packaging is carried out based on each node module and the configuration file to obtain an installation file of the application program, so that the installation file is unpacked to obtain each node module and the configuration file, each node module is called based on the configuration file when the application program runs, and corresponding behavior actions are executed through each node module. Therefore, by means of splitting all functions of the application program into a plurality of node modules, when designing the service logic of the application program, a planning staff of the application program can directly design the service logic into enumeration configuration of the plurality of node modules without depending on source codes of the application program, so that the problem that the planning staff needs to communicate with developers, efficiency is reduced, the problem of ambiguity in a communication process exists, the planning staff can basically and completely verify the logic of the application program by themselves, relevant parameters of the application program are adjusted, and products are quickly iterated.
In another embodiment, a detailed description of a method for generating an application program as shown in fig. 2 is continued.
Step S201, when receiving an acquisition instruction, acquiring at least two node modules required by an application program and a configuration file containing the connection relation between the node modules from a preset node module library; the node module library comprises at least two generated node modules, and each node module is used for executing at least one behavior action;
the user can generate the installation file of the application program through a third party (such as a plug-in, an application program and the like) with a function of generating the installation file, and the third party can run in the terminal and perform data interaction with the preset node module library.
Specifically, when the user runs the third party in the terminal, the third party may obtain at least two node modules required by the generated application program and a configuration file including a connection relationship between the node modules from a node module library preset in the terminal. The third party has a visual interface, an acquisition button and a generation button are arranged in the visual interface, after a user clicks the acquisition button, each node module in the node module library can be displayed in a preset display window, the user can select a required node module from each node module, and then a configuration file required by the user is acquired from a storage container of the terminal.
Further, the configuration file includes the connection relationship between the node modules, for example, the configuration file a includes the connection relationship between the node modules 1, 2, and 3, and the configuration file B includes the connection relationship between the node modules 4 and 5.
It should be noted that the configuration file may be stored in the node module library, may also be stored separately from the node module library, or may be stored in a storage container of the terminal in another manner, and in practical application, the configuration file may be set according to actual requirements, which is not limited in this embodiment of the present invention.
In a preferred embodiment of the present invention, the node module library is generated as follows:
acquiring a source code corresponding to any node module;
compiling the source code to generate any node module, and setting a resource data reading type corresponding to any node module in response to a setting instruction;
and storing any node module into a preset node module library.
Specifically, a user may obtain a source code corresponding to any node module, the source code defines a behavior action executable by the node module, the source code is compiled through an application program with a compiling function to generate a corresponding node module, and then the user may continue to initiate a setting instruction to set a resource data reading type corresponding to the generated node module, and store the set node module in a preset node module library.
Further, the behavior Action includes at least one of a conditional decision (Condition), an instantaneous computing behavior (Action), and a persistent computing behavior (State); the resource data read type includes at least one of static configuration data (ConfigVar), dynamic configuration data (ConfigFunction), and state maintenance data (configfactor); the condition judgment corresponds to static configuration data, the instantaneous calculation behavior corresponds to dynamic configuration data, and the continuous calculation behavior corresponds to state maintenance data.
The static configuration data are some static configuration data which need to be read when the application program runs, the dynamic configuration data are some dynamically acquired configuration data which need to be read when the application program runs, and the state maintenance data are environment data which are depended by the application program when the application program runs.
For the behavior action of Condition type, as the name implies, it is a Condition judgment, and if a certain Condition is satisfied, one operation is executed, and if another Condition is satisfied, another operation is executed, and the identification is as shown in table 1:
TABLE 1
Condition |
False |
Ture |
For Action type behavior actions, i.e. for a transient computing behavior, such as completing an operation once, the identification is shown in table 2:
TABLE 2
SetVar |
For Each |
Next |
For the behavior actions of State type, in order to embody the characteristics of continuous execution thereof, a timing tick socket can be designed on the node module thereof to simulate the State of continuous processing, and the identification thereof is shown in table 3:
TABLE 3
State |
OnTick |
Next |
In a preferred embodiment of the present invention, the configuration file is generated by:
receiving an acquisition instruction of a node module through a preset visual editor; the acquisition instruction comprises identification information of at least two node modules;
acquiring corresponding node modules from a node module library based on the identification information;
when a connection instruction aiming at any two node modules is received, establishing a connection relation of any two node modules;
and when receiving the output instruction, generating a configuration file, and recording at least one established connection relation and identification information of each node module with the connection relation in the configuration file.
In particular, the visualization editor may be used to edit connection relationships between various modules. In practical application, the visual editor is provided with a visual interface, a user can initiate an acquisition instruction of a node module in the visual interface, the acquisition instruction comprises identification information of a plurality of node modules, the visual editor acquires the node modules corresponding to the identification information from a node module library and displays the node modules in the visual interface, when receiving a connection instruction aiming at any two node modules initiated by the user, a connection relation of the two node modules is established, when receiving an output instruction initiated by the user, a blank configuration file is generated, the currently established connection relations and the identification information of the node modules with the connection relations are recorded in the blank configuration file, a final configuration file is obtained, and the final configuration file is stored; the storage may be stored in the terminal or the server, and may be set according to actual requirements in actual application, which is not limited in this embodiment of the present invention.
For example, a user sets a connection relationship between the node module 1 and the node module 2, and a connection relationship between the node module 2 and the node module 3 in the visual editor, and when the user initiates an output instruction, a blank configuration file is generated, and then the two connection relationships and the identification information of the node modules 1, 2, and 3 are recorded in the blank configuration file to obtain a final configuration file, and the final configuration file is stored.
Further, the connection relationship between the node modules may be a UML (Unified Modeling Language) structure, as shown in fig. 4. Moreover, different connection relationships are adopted between the same node modules, and the realized functions are different, for example, the node module 1 is connected with the node module 2, the node module 2 is connected with the node module 3, the node modules 1, 2, and 3 can realize the function a, the node module 1 is connected with the node module 3, the node module 3 is connected with the node module 2, and the node modules 1, 3, and 2 can realize the function B, so the function a and the function B are different.
In the illustrated UML structure diagram, the ScriptFlowInstance is an example of a flow, where m _ statelnst: List is all nodes included in the flow, and the corresponding UML class structure is stateenode. Stateenode provides a published approach such as: OnBegin, OnFinish, OnAbort, etc. The m _ FlowCfg field in the ScriptFlowInstance is a pointer pointing to the flow configuration, and the static configuration of all the same flows is the same due to the configuration, so that the pointer is used for pointing to the same configuration, and the memory can be saved. The StateConfgi field in the stateenode contains a number of ConfigVar classes that can be extended by subclasses, e.g., StaticVar is the static configuration of the node, i.e., the value read from the configuration. The dynamic var is a value dynamically calculated by a function during the operation as a parameter of the current operation. And FactroyVar is the parameter that is evaluated at the time of node initialization.
Step S202, when a generation instruction is received, packaging is carried out based on each node module and the configuration file to obtain an installation file of the application program, so that the installation file is unpacked to obtain each node module and the configuration file, each node module is called based on the configuration file when the application program runs, and corresponding behavior actions are executed through each node module.
Specifically, in the visual interface of the third party, when the user clicks the generation button, the installation file of the application program can be obtained by packaging based on each node module and the configuration file.
In a preferred embodiment of the present invention, encapsulating the node modules and the configuration file to obtain an installation file of the application program includes:
and packaging the node modules, the configuration files and the resource data which need to be read by the node modules to obtain the installation files of the application program.
Since each node module needs to read resource data, each node module and configuration file are needed, and resource data that each node module needs to read is needed, so that each node module, configuration file and resource data that each node module needs to read are packaged during packaging to obtain an installation file of an application program.
The obtained installation file can be stored in the server for any user to download. After any user downloads the installation file in the terminal, the installation file is unpacked, the application program can be installed, and simultaneously, each node module, the configuration file and resource data required to be read by each node module are obtained. When an application is running, the running logic consisting of three behavioral actions may be as shown in FIG. 3; in addition, for the operation instruction of the user, each node module can be called based on the configuration file, and corresponding behavior actions are executed through each node module, so that the requirements of the user are met.
In the embodiment of the invention, when an acquisition instruction is received, at least two node modules required by an application program and a configuration file containing the connection relation between the node modules are acquired from a preset node module library; the node module library comprises at least two generated node modules, and each node module is used for executing at least one behavior action; when a generation instruction is received, packaging is carried out based on each node module and the configuration file to obtain an installation file of the application program, so that the installation file is unpacked to obtain each node module and the configuration file, each node module is called based on the configuration file when the application program runs, and corresponding behavior actions are executed through each node module. Therefore, by means of splitting all functions of the application program into a plurality of node modules, when designing the service logic of the application program, a planning staff of the application program can directly design the service logic into enumeration configuration of the plurality of node modules without depending on source codes of the application program, so that the problem that the planning staff needs to communicate with developers, efficiency is reduced, the problem of ambiguity in a communication process exists, the planning staff can basically and completely verify the logic of the application program by themselves, relevant parameters of the application program are adjusted, and products are quickly iterated.
Furthermore, the planning staff can establish the logical relationship among the node modules through the visual editor, the planning staff does not need to directly face the source code, the operation complexity of the planning staff is reduced, and the output of the visual editor is a text file, so that the real-time dynamic loading on a server is facilitated, and the management is facilitated.
Furthermore, all functions of the application program are divided into a plurality of node modules, so that the connection relation of each node module can be defined when the application program runs, and the developed various functions can be multiplexed like building blocks, thereby reducing the scale of source codes.
Fig. 5 is a schematic structural diagram of an application generation apparatus according to another embodiment of the present application, and as shown in fig. 5, the apparatus of this embodiment may include:
a receiving module 501, configured to receive an obtaining instruction;
a first obtaining module 502, configured to obtain at least two node modules required by an application program from a preset node module library, and a configuration file including a connection relationship between the node modules; the node module library comprises at least two generated node modules, and each node module is used for executing at least one behavior action;
the receiving module is also used for receiving a generating instruction;
the encapsulating module 503 is configured to encapsulate the node modules and the configuration files to obtain installation files of the application program, decapsulate the installation files to obtain the node modules and the configuration files, call the node modules based on the configuration files when the application program runs, and execute corresponding behavior actions through the node modules.
In a preferred embodiment of the present invention, the method further comprises:
the second acquisition module is used for acquiring a source code corresponding to any node module;
the first processing module is used for compiling the source code, generating any node module and responding to a setting instruction to set a resource data reading type corresponding to any node module;
and the storage module is used for storing any node module to a preset node module library.
In a preferred embodiment of the present invention, the method further comprises:
the second processing module is used for receiving an acquisition instruction of the node module through a preset visual editor; the acquisition instruction comprises identification information of at least two node modules;
a third obtaining module, configured to obtain each corresponding node module from the node module library based on each identification information;
the establishing module is used for establishing the connection relation of any two node modules when receiving a connection instruction aiming at any two node modules;
and the generating module is used for generating a configuration file when receiving the output instruction, and recording the established at least one connection relation and the identification information of each node module with the connection relation in the configuration file.
In a preferred embodiment of the present invention, the behavior action includes at least one of a conditional judgment, an instantaneous computation behavior, and a continuous computation behavior; the resource data reading type comprises at least one of static configuration data, dynamic configuration data and state maintenance data; the condition judgment corresponds to static configuration data, the instantaneous calculation behavior corresponds to dynamic configuration data, and the continuous calculation behavior corresponds to state maintenance data.
In a preferred embodiment of the present invention, the encapsulation module is specifically configured to:
and packaging the node modules, the configuration files and the resource data which need to be read by the node modules to obtain the installation files of the application program.
The generation apparatus of the application program in this embodiment can execute the generation methods of the application program shown in the first embodiment and the second embodiment of this application, which are similar to each other in implementation principle and are not described herein again.
In the embodiment of the invention, when an acquisition instruction is received, at least two node modules required by an application program and a configuration file containing the connection relation between the node modules are acquired from a preset node module library; the node module library comprises at least two generated node modules, and each node module is used for executing at least one behavior action; when a generation instruction is received, packaging is carried out based on each node module and the configuration file to obtain an installation file of the application program, so that the installation file is unpacked to obtain each node module and the configuration file, each node module is called based on the configuration file when the application program runs, and corresponding behavior actions are executed through each node module. Therefore, by means of splitting all functions of the application program into a plurality of node modules, when designing the service logic of the application program, a planning staff of the application program can directly design the service logic into enumeration configuration of the plurality of node modules without depending on source codes of the application program, so that the problem that the planning staff needs to communicate with developers, efficiency is reduced, the problem of ambiguity in a communication process exists, the planning staff can basically and completely verify the logic of the application program by themselves, relevant parameters of the application program are adjusted, and products are quickly iterated.
Furthermore, the planning staff can establish the logical relationship among the node modules through the visual editor, the planning staff does not need to directly face the source code, the operation complexity of the planning staff is reduced, and the output of the visual editor is a text file, so that the real-time dynamic loading on a server is facilitated, and the management is facilitated.
Furthermore, all functions of the application program are divided into a plurality of node modules, so that the connection relation of each node module can be defined when the application program runs, and the developed various functions can be multiplexed like building blocks, thereby reducing the scale of source codes.
In another embodiment of the present application, there is provided an electronic device including: a memory and a processor; at least one program stored in the memory for execution by the processor, which when executed by the processor, implements: when an acquisition instruction is received, acquiring at least two node modules required by an application program and a configuration file containing the connection relation between the node modules from a preset node module library; the node module library comprises at least two generated node modules, and each node module is used for executing at least one behavior action; when a generation instruction is received, packaging is carried out based on each node module and the configuration file to obtain an installation file of the application program, so that the installation file is unpacked to obtain each node module and the configuration file, each node module is called based on the configuration file when the application program runs, and corresponding behavior actions are executed through each node module. Therefore, by means of splitting all functions of the application program into a plurality of node modules, when designing the service logic of the application program, a planning staff of the application program can directly design the service logic into enumeration configuration of the plurality of node modules without depending on source codes of the application program, so that the problem that the planning staff needs to communicate with developers, efficiency is reduced, the problem of ambiguity in a communication process exists, the planning staff can basically and completely verify the logic of the application program by themselves, relevant parameters of the application program are adjusted, and products are quickly iterated.
In an alternative embodiment, an electronic device is provided, as shown in fig. 6, an electronic device 6000 shown in fig. 6 comprising: a processor 6001 and a memory 6003. Processor 6001 and memory 6003 are coupled, such as via bus 6002. Optionally, the electronic device 6000 may also include a transceiver 6004. It should be noted that the transceiver 6004 is not limited to one in practical applications, and the structure of the electronic device 6000 is not limited to the embodiment of the present application.
The processor 6001 could be a CPU, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 6001 might also be a combination that performs a computing function, such as a combination comprising one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
The bus 6002 may include a path that conveys information between the aforementioned components. The bus 6002 may be a PCI bus, an EISA bus, or the like. The bus 6002 can be divided into an address bus, a data bus, a control bus, and so forth. For ease of illustration, only one thick line is shown in FIG. 6, but this is not intended to represent only one bus or type of bus.
The memory 6003 is used to store application code that implements aspects of the subject application, and execution is controlled by the processor 6001. Processor 6001 is configured to execute application program code stored in memory 6003 to implement the teachings of any of the foregoing method embodiments.
Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like.
Yet another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, which, when run on a computer, enables the computer to perform the corresponding content in the aforementioned method embodiments. Compared with the prior art, when an acquisition instruction is received, at least two node modules required by an application program and a configuration file containing the connection relation between the node modules are acquired from a preset node module library; the node module library comprises at least two generated node modules, and each node module is used for executing at least one behavior action; when a generation instruction is received, packaging is carried out based on each node module and the configuration file to obtain an installation file of the application program, so that the installation file is unpacked to obtain each node module and the configuration file, each node module is called based on the configuration file when the application program runs, and corresponding behavior actions are executed through each node module. Therefore, by means of splitting all functions of the application program into a plurality of node modules, when designing the service logic of the application program, a planning staff of the application program can directly design the service logic into enumeration configuration of the plurality of node modules without depending on source codes of the application program, so that the problem that the planning staff needs to communicate with developers, efficiency is reduced, the problem of ambiguity in a communication process exists, the planning staff can basically and completely verify the logic of the application program by themselves, relevant parameters of the application program are adjusted, and products are quickly iterated.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Claims (10)
1. A method for generating an application program, comprising:
when an acquisition instruction is received, acquiring at least two node modules required by the application program and a configuration file containing the connection relation between the node modules from a preset node module library; the node module library comprises at least two generated node modules, and each node module is used for executing at least one behavior action;
when a generation instruction is received, packaging is carried out based on each node module and the configuration file to obtain an installation file of the application program, so that the installation file is unpacked to obtain each node module and the configuration file, each node module is called based on the configuration file when the application program runs, and corresponding behavior actions are executed through each node module.
2. The method for generating an application program according to claim 1, wherein the node module library is generated by:
acquiring a source code corresponding to any node module;
compiling the source code to generate any node module, and setting a resource data reading type corresponding to any node module in response to a setting instruction;
and storing any node module to a preset node module library.
3. The method for generating an application program according to claim 1 or 2, wherein the configuration file is generated by:
receiving an acquisition instruction of a node module through a preset visual editor; the acquisition instruction comprises identification information of at least two node modules;
acquiring corresponding node modules from a node module library based on the identification information;
when a connection instruction aiming at any two node modules is received, establishing the connection relation of the any two node modules;
when receiving an output instruction, generating a configuration file, and recording at least one established connection relation and identification information of each node module with the connection relation in the configuration file.
4. The generation method of the application program according to claim 2, wherein the behavior action includes at least one of a condition judgment, an instantaneous calculation behavior, and a continuous calculation behavior; the resource data reading type comprises at least one of static configuration data, dynamic configuration data and state maintenance data; the condition determination corresponds to the static configuration data, the instantaneous computation behavior corresponds to the dynamic configuration data, and the continuous computation behavior corresponds to the state maintenance data.
5. The method for generating the application program according to claim 1 or 2, wherein the obtaining of the installation file of the application program by performing encapsulation based on each node module and the configuration file comprises:
and packaging each node module, the configuration file and the resource data which are required to be read by each node module to obtain an installation file of the application program.
6. An apparatus for generating an application program, comprising:
the receiving module is used for receiving an acquisition instruction;
the first acquisition module is used for acquiring at least two node modules required by the application program and a configuration file containing the connection relation among the node modules from a preset node module library; the node module library comprises at least two generated node modules, and each node module is used for executing at least one behavior action;
the receiving module is further used for receiving a generating instruction;
and the encapsulation module is used for encapsulating the node modules and the configuration files to obtain installation files of the application program, so that the installation files are decapsulated to obtain the node modules and the configuration files, calling the node modules based on the configuration files when the application program runs, and executing corresponding behavior actions through the node modules.
7. The apparatus for generating an application program according to claim 6, further comprising:
the second acquisition module is used for acquiring a source code corresponding to any node module;
the first processing module is used for compiling the source code, generating any node module and responding to a setting instruction to set a resource data reading type corresponding to any node module;
and the storage module is used for storing any node module to a preset node module library.
8. The apparatus for generating an application program according to claim 6 or 7, further comprising:
the second processing module is used for receiving an acquisition instruction of the node module through a preset visual editor; the acquisition instruction comprises identification information of at least two node modules;
a third obtaining module, configured to obtain each corresponding node module from the node module library based on each identification information;
the system comprises an establishing module, a judging module and a judging module, wherein the establishing module is used for establishing the connection relation of any two node modules when receiving a connection instruction aiming at the any two node modules;
and the generating module is used for generating a configuration file when receiving the output instruction, and recording the established at least one connection relation and the identification information of each node module with the connection relation in the configuration file.
9. An electronic device, comprising:
a processor, a memory, and a bus;
the bus is used for connecting the processor and the memory;
the memory is used for storing operation instructions;
the processor is used for executing the generation method of the application program according to any one of the claims 1 to 5 by calling the operation instruction.
10. A computer-readable storage medium for storing computer instructions which, when executed on a computer, cause the computer to perform the method for generating an application program according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010591263.XA CN113835680A (en) | 2020-06-24 | 2020-06-24 | Application program generation method and device, electronic equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010591263.XA CN113835680A (en) | 2020-06-24 | 2020-06-24 | Application program generation method and device, electronic equipment and computer storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113835680A true CN113835680A (en) | 2021-12-24 |
Family
ID=78964891
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010591263.XA Pending CN113835680A (en) | 2020-06-24 | 2020-06-24 | Application program generation method and device, electronic equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113835680A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114201149A (en) * | 2022-02-18 | 2022-03-18 | 北京阿丘科技有限公司 | Operation flow generation method, device and system and computer readable storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105204837A (en) * | 2014-06-27 | 2015-12-30 | 南京南瑞继保电气有限公司 | Realizing method and device for logic programming |
CN107577515A (en) * | 2017-10-10 | 2018-01-12 | 北京小度信息科技有限公司 | Extended method, device, electronic equipment and the storage medium of visualization component |
CN108021363A (en) * | 2017-12-06 | 2018-05-11 | 广州多益网络股份有限公司 | Visualize game logic edit methods and system |
CN108509193A (en) * | 2018-05-22 | 2018-09-07 | 苏州蜗牛数字科技股份有限公司 | A kind of system using visualization component encapsulation function |
CN109324793A (en) * | 2018-10-24 | 2019-02-12 | 北京奇虎科技有限公司 | Support the processing system and method for algorithm assembly |
CN109582310A (en) * | 2018-11-30 | 2019-04-05 | 北京微播视界科技有限公司 | Data processing method, device, electronic equipment and computer readable storage medium |
CN110096271A (en) * | 2019-05-08 | 2019-08-06 | 中汇信息技术(上海)有限公司 | Component visual method, page processing method and device based on component visual |
CN110704043A (en) * | 2019-09-11 | 2020-01-17 | 广州华多网络科技有限公司 | Special effect implementation method and device, electronic equipment and storage medium |
CN111124388A (en) * | 2019-11-28 | 2020-05-08 | 深圳市世宗自动化设备有限公司 | Method and system for editing automation program, computer device and storage medium thereof |
-
2020
- 2020-06-24 CN CN202010591263.XA patent/CN113835680A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105204837A (en) * | 2014-06-27 | 2015-12-30 | 南京南瑞继保电气有限公司 | Realizing method and device for logic programming |
CN107577515A (en) * | 2017-10-10 | 2018-01-12 | 北京小度信息科技有限公司 | Extended method, device, electronic equipment and the storage medium of visualization component |
CN108021363A (en) * | 2017-12-06 | 2018-05-11 | 广州多益网络股份有限公司 | Visualize game logic edit methods and system |
CN108509193A (en) * | 2018-05-22 | 2018-09-07 | 苏州蜗牛数字科技股份有限公司 | A kind of system using visualization component encapsulation function |
CN109324793A (en) * | 2018-10-24 | 2019-02-12 | 北京奇虎科技有限公司 | Support the processing system and method for algorithm assembly |
CN109582310A (en) * | 2018-11-30 | 2019-04-05 | 北京微播视界科技有限公司 | Data processing method, device, electronic equipment and computer readable storage medium |
CN110096271A (en) * | 2019-05-08 | 2019-08-06 | 中汇信息技术(上海)有限公司 | Component visual method, page processing method and device based on component visual |
CN110704043A (en) * | 2019-09-11 | 2020-01-17 | 广州华多网络科技有限公司 | Special effect implementation method and device, electronic equipment and storage medium |
CN111124388A (en) * | 2019-11-28 | 2020-05-08 | 深圳市世宗自动化设备有限公司 | Method and system for editing automation program, computer device and storage medium thereof |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114201149A (en) * | 2022-02-18 | 2022-03-18 | 北京阿丘科技有限公司 | Operation flow generation method, device and system and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8769553B2 (en) | Deploy anywhere framework for heterogeneous mobile application development | |
US20220318945A1 (en) | Optimizing compilation of shaders | |
CN105765527A (en) | Method and apparatus for custom software development kit (SDK) generation | |
CN105814539A (en) | Method and apparatus for code virtualization and remote process call generation | |
CN110442327B (en) | Application program construction method, device and server | |
CN109739600B (en) | Data processing method, medium, device and computing equipment | |
CN108459792B (en) | Flow switching method and device and computer equipment | |
CN110597564A (en) | Installation package construction and service component loading method, device and terminal equipment | |
CN103443763A (en) | ISA bridging including support for call to overidding virtual functions | |
CN112650487B (en) | Hybrid application development method, system, computer device and storage medium | |
CN102262684A (en) | Method and device for generating webpage page of mobile terminal | |
Benouda et al. | MDA approach to automate code generation for mobile applications | |
CN107608663A (en) | A kind of development approach and device of Mobile solution plug-in unit and Mobile solution | |
CN113268243A (en) | Memory prediction method and device, storage medium and electronic equipment | |
CN113127361A (en) | Application program development method and device, electronic equipment and storage medium | |
US10521199B2 (en) | System and method for developing mobile based applications using model driven development | |
CN113835680A (en) | Application program generation method and device, electronic equipment and computer storage medium | |
CN110018831B (en) | Program processing method, program processing apparatus, and computer-readable storage medium | |
CN106775608A (en) | The implementation method and device of autonomous system process | |
US20140258973A1 (en) | Systems And Methods For Automatically Generating Applications | |
CN112068814A (en) | Method, device, system and medium for generating executable file | |
CN219980888U (en) | But embedded security protection supervisory equipment of secondary development | |
CN111803939B (en) | Image rendering method and device and electronic equipment | |
KR20140005014A (en) | Optimize graphic content in multi-platform games | |
EP4191407A1 (en) | Method and device for generating and registering ui service package and loading ui service |
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 |