Application program generation method, device, electronic device, and computer storage medium

By obtaining and encapsulating the node modules and configuration files of the application from the node module library, the problem of communication deviation and low efficiency between design and implementation in the existing technology is solved, and the ability to quickly verify and iterate the application logic is achieved.

CN113835680BActive Publication Date: 2024-10-08TENCENT TECH (CHENGDU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010591263.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-24
Publication Date
2024-10-08
Estimated Expiration
2040-06-24

AI Technical Summary

Technical Problem

In the development process of existing applications, the communication gap between designers and implementers leads to deviations in text description understanding and low efficiency. Each modification requires compilation and testing, which affects product iteration efficiency.

Method used

By obtaining the node modules and configuration files required by the application from the preset node module library, encapsulating and generating installation files based on the node modules and configuration files, calling the node modules to perform behavioral actions during runtime, avoiding planners' dependence on source code, and directly designing business logic as Node module configuration.

Benefits of technology

This enables planners to directly verify and adjust application logic without communicating with developers, improves development efficiency and product iteration speed, and reduces ambiguity issues in communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113835680B_ABST
    Figure CN113835680B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, electronic device and computer-readable storage medium for generating an application, and relates to the field of information processing. The method comprises: when receiving an acquisition instruction, obtaining at least two node modules required for the application, and a configuration file containing the connection relationship between each node module from a preset node module library; when receiving a generation instruction, encapsulating the installation file of the application based on each node module and the configuration file. The present application avoids the need for planners to communicate with developers, which not only causes a loss of efficiency, but also causes the problem of ambiguity in the communication process, and realizes that planners can basically verify the logic of the application quickly by themselves, adjust the relevant parameters of the application, and thus quickly iterate the product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information processing technology, and in particular, to a method and device for generating an application, an electronic device, and a computer-readable storage medium. Background Art

[0002] The current application development process usually involves product planners designing and writing text descriptions of application functions, which are then handed over to developers to write code before being implemented in the application product. The specific development process is as follows: Figure 1 However, this method has the following disadvantages:

[0003] 1) Text descriptions are usually ambiguous. Since the designer and the implementer are not the same person, there may be a deviation between the planner's description and the developer's understanding. The developer may not be able to fully understand all the design details every time, resulting in the final effect not meeting expectations;

[0004] 2) When designing new functions, a large amount of repetitive source code needs to be written, which is inefficient. Moreover, every time a function is modified, the developer needs to be informed to change and compile the source code. The source code can only be released after the compilation is completed and tested. This process is not only time-consuming, but also may cause ambiguous information expression during communication, thus affecting the efficiency of product iteration. Summary of the invention

[0005] The present application provides a method, device, electronic device and computer-readable storage medium for generating an application program, which can solve the above problems. The technical solution is as follows:

[0006] In a first aspect, a method for generating an application is provided, the method comprising:

[0007] When receiving the acquisition instruction, acquiring at least two node modules required by the application and a configuration file containing connection relationships between the node modules from a preset node module library; wherein the node module library includes at least two generated node modules, each node module is used to execute at least one behavior action;

[0008] When a generation instruction is received, the installation file of the application is encapsulated based on each node module and the configuration file, so that the installation file is decapsulated to obtain each node module and the configuration file, and each node module is called based on the configuration file when the application is running, and each corresponding behavior action is executed through each node module.

[0009] Preferably, the node module library is generated in the following manner:

[0010] Get the source code corresponding to any node module;

[0011] Compiling the source code to generate any node module, and setting the resource data reading type corresponding to any node module in response to a setting instruction;

[0012] The any node module is stored in a preset node module library.

[0013] Preferably, the configuration file is generated in the following manner:

[0014] Receiving an acquisition instruction of a node module through a preset visual editor; the acquisition instruction includes identification information of at least two node modules;

[0015] Obtain corresponding node modules from the node module library based on the identification information;

[0016] When a connection instruction for any two node modules is received, a connection relationship between the any two node modules is established;

[0017] When the output instruction is received, a configuration file is generated, and the at least one established connection relationship and identification information of each node module having the connection relationship are recorded in the configuration file.

[0018] Preferably, the behavioral action includes at least one of conditional judgment, instantaneous computing behavior and continuous computing behavior; the resource data reading type includes at least one of static configuration data, dynamic configuration data and state maintenance data; the conditional judgment corresponds to the static configuration data, the instantaneous computing behavior corresponds to the dynamic configuration data, and the continuous computing behavior corresponds to the state maintenance data.

[0019] Preferably, the encapsulation based on each node module and the configuration file to obtain the installation file of the application includes:

[0020] Each node module, the configuration file, and the resource data that each node module needs to read are packaged to obtain the installation file of the application.

[0021] In a second aspect, a device for generating an application is provided, the device comprising:

[0022] A receiving module, used for receiving an acquisition instruction;

[0023] A first acquisition module is used to acquire at least two node modules required by the application and a configuration file containing connection relationships between the node modules from a preset node module library; wherein the node module library includes at least two generated node modules, each node module is used to execute at least one behavior action;

[0024] The receiving module is further used to receive a generating instruction;

[0025] The encapsulation module is used to encapsulate the installation file of the application based on each node module and the configuration file, so that the installation file can be decapsulated to obtain each node module and the configuration file, and each node module is called based on the configuration file when the application is running, and each corresponding behavior action is executed through each node module.

[0026] Preferably, it also includes:

[0027] The second acquisition module is used to obtain the source code corresponding to any node module;

[0028] A first processing module, used for compiling the source code to generate any node module, and setting the resource data reading type corresponding to any node module in response to a setting instruction;

[0029] The storage module is used to store any of the node modules in a preset node module library.

[0030] Preferably, it also includes:

[0031] A second processing module is used to receive an acquisition instruction of a node module through a preset visual editor; the acquisition instruction includes identification information of at least two node modules;

[0032] A third acquisition module is used to acquire corresponding node modules from a node module library based on the identification information;

[0033] An establishing module, configured to establish a connection relationship between any two node modules when a connection instruction for any two node modules is received;

[0034] The generating module is used to generate a configuration file when receiving an output instruction, and record at least one established connection relationship and identification information of each node module having the connection relationship in the configuration file.

[0035] Preferably, the behavioral action includes at least one of conditional judgment, instantaneous computing behavior and continuous computing behavior; the resource data reading type includes at least one of static configuration data, dynamic configuration data and state maintenance data; the conditional judgment corresponds to the static configuration data, the instantaneous computing behavior corresponds to the dynamic configuration data, and the continuous computing behavior corresponds to the state maintenance data.

[0036] Preferably, the encapsulation module is specifically used for:

[0037] Each node module, the configuration file, and the resource data that each node module needs to read are packaged to obtain the installation file of the application.

[0038] In a third aspect, an electronic device is provided, the electronic device comprising:

[0039] processor, memory, and bus;

[0040] The bus is used to connect the processor and the memory;

[0041] The memory is used to store operation instructions;

[0042] The processor is used to call the operation instruction, and the executable instruction enables the processor to perform the operation corresponding to the method for generating the application as shown in the first aspect of the present application.

[0043] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method for generating an application program shown in the first aspect of the present application is implemented.

[0044] The beneficial effects of the technical solution provided by this application are:

[0045] When receiving the acquisition instruction, at least two node modules required by the application program and a configuration file containing the connection relationship between each node module are obtained from the preset node module library; wherein the node module library includes at least two generated node modules, each node module is used to perform at least one behavior action; when receiving the generation instruction, the installation file of the application program is encapsulated based on each node module and the configuration file, so that the installation file is decapsulated to obtain each node module and the configuration file, and each node module is called based on the configuration file when the application program is running, and each corresponding behavior action is performed through each node module. In this way, by splitting all the functions of the application program into multiple node modules, the planners of the application program can completely not rely on the source code of the application program when designing the business logic of the application program, and directly design the business logic as an enumeration configuration of multiple node modules, avoiding the need for planners to communicate with developers, which not only causes efficiency loss, but also has the problem of ambiguity in the communication process, and realizes that planners can basically verify the logic of the application program quickly and adjust the relevant parameters of the application program by themselves, so as to quickly iterate the product. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.

[0047] Figure 1 A schematic diagram of the development process of the prior art application;

[0048] Figure 2 A schematic diagram of a flow chart of a method for generating an application program provided in one embodiment of the present application;

[0049] Figure 3 A logical diagram of each node module corresponding to the three behaviors in this application;

[0050] Figure 4 This is a schematic diagram of the connection relationship structure between node modules in this application;

[0051] Figure 5 A schematic diagram of the structure of a device for generating an application program provided in yet another embodiment of the present application;

[0052] Figure 6 A schematic diagram of the structure of an electronic device generated by an application provided in yet another embodiment of the present application. DETAILED DESCRIPTION

[0053] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present invention.

[0054] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0055] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0056] The application generation method, device, electronic device and computer-readable storage medium provided in this application are intended to solve the above technical problems in the prior art.

[0057] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0058] In one embodiment, a method for generating an application is provided, such as Figure 2 As shown, the method includes:

[0059] Step S201, when receiving an acquisition instruction, acquiring at least two node modules required by the application and a configuration file containing connection relationships between the node modules from a preset node module library; wherein the node module library includes at least two generated node modules, each node module is used to execute at least one behavior action;

[0060] Among them, the user can generate the installation file of the application through a third party (such as a plug-in, application, etc.) with the function of generating the installation file. The third party can run in the terminal and interact with the preset node module library for data. The terminal can have the following characteristics:

[0061] (1) In terms of hardware system, the device has a central processing unit, memory, input components and output components, that is, the device is often a microcomputer device with communication function. In addition, it can also have multiple input methods, such as keyboard, mouse, touch screen, microphone and camera, and the input can be adjusted as needed. At the same time, the device often has multiple output methods, such as receiver, display screen, etc., which can also be adjusted as needed;

[0062] (2) In terms of software system, the device must have an operating system, such as Windows Mobile, Symbian, Palm, Android, iOS, etc. At the same time, these operating systems are becoming more and more open, and personalized applications developed based on these open operating system platforms are emerging in an endless stream, such as address books, calendars, notepads, calculators, and various games, which greatly meet the needs of personalized users;

[0063] (3) In terms of communication capabilities, the device has flexible access methods and high-bandwidth communication performance, and can automatically adjust the selected communication method according to the selected service and the environment, so as to facilitate user 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) and WiMAX (Worldwide Interoperability for Microwave Access), etc., so as to adapt to various standard networks and support not only voice services but also various wireless data services;

[0064] (4) In terms of functional use, the equipment pays more attention to humanization, personalization and multi-functionality. With the development of computer technology, the equipment has moved from a "device-centric" model to a "people-centric" model, integrating embedded computing, control technology, artificial intelligence technology and biometric authentication technology, fully reflecting the people-oriented purpose. Due to the development of software technology, the equipment can adjust the settings according to personal needs and become more personalized. At the same time, the equipment itself integrates a lot of software and hardware, and its functions are becoming more and more powerful.

[0065] Specifically, when the user runs the third party in the terminal, the user can obtain at least two node modules required for the generated application from the node module library preset in the terminal through the third party, as well as a configuration file containing the connection relationship between each node module. Among them, the third party has a visual interface, and a get button and a generate button are set in the visual interface. When the user clicks the get button, each node module in the node module library can be displayed in a preset display window. The user can select the required node module from each node module, and then obtain the configuration file required by the user from the storage container of the terminal.

[0066] Furthermore, the configuration file includes the connection relationship between each node module. For example, configuration file A includes the connection relationship between node modules 1, 2, and 3, and configuration file B includes the connection relationship between node modules 4 and 5.

[0067] It should be noted that the configuration file can be stored in the node module library, or can be stored separately from the node module library, or can be stored in the storage container of the terminal in other ways. In actual applications, it can be set according to actual needs, and the embodiments of the present invention do not limit this.

[0068] Step S202, when a generation instruction is received, the installation file of the application is encapsulated based on each node module and the configuration file, so that the installation file is decapsulated to obtain each node module and the configuration file, and each node module is called based on the configuration file when the application is running, and each corresponding behavior action is executed through each node module.

[0069] Specifically, in the third-party visual interface, when the user clicks the Generate button, the application installation file can be encapsulated based on each node module and 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 can be decapsulated to install the application, and at the same time, each node module, configuration file, and resource data that each node module needs to read can be obtained. When the application is running, the operation logic composed of three behavior actions can be as follows: Figure 3 As shown; in addition, for the user's operation instructions, each node module can be called based on the configuration file, and each node module can execute its corresponding behavior actions to meet the user's needs.

[0070] in, Figure 3 The flow structure diagram shown describes the business logic of the embodiment of the present invention, including: first, the entry point is the State node pointed to by the START flag, and the OnTick exit is executed once per frame of the program. When the OnTick interface is executed, the content in the subsequent node Condition node connected to it will start to execute. The execution result of the Condition node is False or True. After the execution result is calculated, the exit of the corresponding connection will be selected to continue to activate the next node on the connection to start execution, and the execution process of the flow is similar.

[0071] Furthermore, Loop executes the logic pointed to by For Each in a loop; after the state logic is executed, the Listener pointed to by Next is executed. Listener is used to perceive changes in external data; Selector selects the logic to be executed based on the internal logic; Duration is used to execute the waiting timer to complete, such as waiting for the timer to complete 5 seconds; Subflow is the logic of the current flow file ( Figure 3 When the execution of the complete process shown in the figure is completed, jump to another flow file.

[0072] In an embodiment of the present invention, when receiving an acquisition instruction, at least two node modules required for the application program and a configuration file containing the connection relationship between each node module are obtained from a preset node module library; wherein the node module library includes at least two generated node modules, each of which is used to perform at least one behavior action; when receiving a generation instruction, the installation file of the application program is encapsulated based on each node module and the configuration file, so that the installation file is decapsulated to obtain each node module and the configuration file, and each node module is called based on the configuration file when the application program is running, and each corresponding behavior action is performed through each node module. In this way, by splitting all functions of the application program into multiple node modules, the planners of the application program can completely not rely on the source code of the application program when designing the business logic of the application program, and directly design the business logic as an enumeration configuration of multiple node modules, avoiding the need for planners to communicate with developers, which not only causes efficiency loss, but also has the problem of ambiguity in the communication process, and realizes that planners can basically verify the logic of the application program quickly by themselves, adjust the relevant parameters of the application program, and thus quickly iterate the product.

[0073] In another embodiment, Figure 2 A method for generating an application shown is described in detail.

[0074] Step S201, when receiving an acquisition instruction, acquiring at least two node modules required by the application and a configuration file containing connection relationships between the node modules from a preset node module library; wherein the node module library includes at least two generated node modules, each node module is used to execute at least one behavior action;

[0075] Among them, the user can generate the installation file of the application through a third party (such as a plug-in, application, etc.) with the function of generating installation files. The third party can run in the terminal and interact with the preset node module library for data.

[0076] Specifically, when the user runs the third party in the terminal, the user can obtain at least two node modules required for the generated application from the node module library preset in the terminal through the third party, as well as a configuration file containing the connection relationship between each node module. Among them, the third party has a visual interface, and a get button and a generate button are set in the visual interface. When the user clicks the get button, each node module in the node module library can be displayed in a preset display window. The user can select the required node module from each node module, and then obtain the configuration file required by the user from the storage container of the terminal.

[0077] Furthermore, the configuration file includes the connection relationship between each node module. For example, configuration file A includes the connection relationship between node modules 1, 2, and 3, and configuration file B includes the connection relationship between node modules 4 and 5.

[0078] It should be noted that the configuration file can be stored in the node module library, or can be stored separately from the node module library, or can be stored in the storage container of the terminal in other ways. In actual applications, it can be set according to actual needs, and the embodiments of the present invention do not limit this.

[0079] In a preferred embodiment of the present invention, the node module library is generated in the following manner:

[0080] Get the source code corresponding to any node module;

[0081] Compile the source code to generate any node module, and set the resource data reading type corresponding to any node module in response to the setting instruction;

[0082] Store any node module to the default node module library.

[0083] Specifically, the user can obtain the source code corresponding to any node module, which defines the executable actions of the node module, and then compile the source code through an application with compilation function to generate the corresponding node module. The user can then continue to initiate setting instructions to set the resource data reading type corresponding to the generated node module, and store the set node module in the preset node module library.

[0084] Furthermore, the behavior action includes at least one of conditional judgment (Condition), instantaneous computing behavior (Action) and continuous computing behavior (State); the resource data reading type includes at least one of static configuration data (ConfigVar), dynamic configuration data (ConfigFunction) and state maintenance data (ConfigFactroy); the conditional judgment corresponds to the static configuration data, the instantaneous computing behavior corresponds to the dynamic configuration data, and the continuous computing behavior corresponds to the state maintenance data.

[0085] Among them, static configuration data is some static configuration data that the application needs to read when running, dynamic configuration data is some dynamically acquired configuration data that the application needs to read when running, and state maintenance data is the environment data that the application depends on when running.

[0086] As the name implies, the behavior of the Condition type is a conditional judgment. When a certain condition is met, one operation is performed, and when another condition is met, another operation is performed. Its identifiers are shown in Table 1:

[0087] Table 1

[0088] Condition False True

[0089] For an Action type behavior, it is an instantaneous computing behavior, such as completing an operation at one time. Its identifier is shown in Table 2:

[0090] Table 2

[0091] SetVar For Each Next

[0092] For State type actions, in order to reflect its continuous execution characteristics, a timed tick plug can be designed on its node module to simulate the state of continuous processing. Its identifier is shown in Table 3:

[0093] Table 3

[0094] State OnTick Next

[0095] In a preferred embodiment of the present invention, the configuration file is generated in the following manner:

[0096] Receiving an acquisition instruction of a node module through a preset visual editor; the acquisition instruction includes identification information of at least two node modules;

[0097] Obtain corresponding node modules from the node module library based on the identification information;

[0098] When a connection instruction for any two node modules is received, a connection relationship between the any two node modules is established;

[0099] When the output instruction is received, a configuration file is generated, and the at least one established connection relationship and identification information of each node module having the connection relationship are recorded in the configuration file.

[0100] Specifically, the visual editor can be used to edit the connection relationship between various modules. In practical applications, the visual editor has a visual interface, and the user can initiate the acquisition instruction of the node module in the visual interface. The acquisition instruction includes the identification information of multiple node modules. The visual editor obtains the node modules corresponding to each identification information from the node module library and displays it in the visual interface. When the connection instruction initiated by the user for any two node modules is received, the connection relationship between the two node modules is established. When the output instruction initiated by the user is received, a blank configuration file is generated, and the currently established connection relationships and the identification information of each node module with a connection relationship are recorded in the blank configuration file to obtain the final configuration file, and the final configuration file is stored; wherein, the storage can be stored in the terminal or in the server side, and can be set according to actual needs in practical applications, and the embodiment of the present invention does not limit this.

[0101] For example, the user sets in the visual editor that node module 1 and node module 2 have a connection relationship, and node module 2 and node module 3 have a connection relationship. When the user initiates an output instruction, a blank configuration file is generated, and then the two connection relationships and the identification information of node modules 1, 2, and 3 are recorded in the blank configuration file to obtain the final configuration file, and the final configuration file is stored.

[0102] Furthermore, the connection relationship between the node modules can be a UML (Unified Modeling Language) structure, such as Figure 4 Moreover, different connection relationships are used between the same node modules, and the functions implemented are also different. For example, node module 1 is connected to node module 2, node module 2 is connected to node module 3, node modules 1, 2, and 3 can implement function A; node module 1 is connected to node module 3, node module 3 is connected to node module 2, node modules 1, 3, and 2 can implement function B, so function A and function B are different.

[0103] Among them, the ScriptFlowInstance in the UML structure diagram as shown in the figure is an instance of a flow, and the m_StateInst:List is all the nodes contained in this flow, and the corresponding UML class structure is StateNode. StateNode provides public methods such as: OnBegin, OnFinish, OnAbort, etc. The m_FlowCfg field in ScriptFlowInstance is a pointer to the flow configuration. Since all the same flows have the same static configuration, the pointer can be used to point to the same configuration, which can save memory. The StateConfgi field in StateNode contains multiple ConfigVar classes, which can be extended by subclasses. For example, StaticVar is the static configuration of the node, that is, the value read from the configuration. DynamicVar is a value dynamically calculated by a function during the running process as a parameter of the current run. And FactroyVar is a parameter evaluated when the node is initialized.

[0104] Step S202, when a generation instruction is received, the installation file of the application is encapsulated based on each node module and the configuration file, so that the installation file is decapsulated to obtain each node module and the configuration file, and each node module is called based on the configuration file when the application is running, and each corresponding behavior action is executed through each node module.

[0105] Specifically, in the third-party visual interface, when the user clicks the Generate button, the installation file of the application can be packaged based on various node modules and configuration files.

[0106] In a preferred embodiment of the present invention, the installation file of the application is obtained by encapsulating each node module and the configuration file, including:

[0107] Each node module, configuration file, and resource data that each node module needs to read are packaged to obtain the installation file of the application.

[0108] Since each node module needs to read resource data, in addition to each node module and configuration file, the resource data that each node module needs to read is also required. Therefore, during packaging, each node module, configuration file and the resource data that each node module needs to read are packaged to obtain the installation file of the application.

[0109] 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, he can decompress the installation file to install the application and obtain the node modules, configuration files and resource data that each node module needs to read. When the application is running, the operation logic composed of three kinds of behavior actions can be as follows: Figure 3 As shown; in addition, for the user's operation instructions, each node module can be called based on the configuration file, and each node module can execute its corresponding behavior actions to meet the user's needs.

[0110] In an embodiment of the present invention, when receiving an acquisition instruction, at least two node modules required for the application program and a configuration file containing the connection relationship between each node module are obtained from a preset node module library; wherein the node module library includes at least two generated node modules, each of which is used to perform at least one behavior action; when receiving a generation instruction, the installation file of the application program is encapsulated based on each node module and the configuration file, so that the installation file is decapsulated to obtain each node module and the configuration file, and each node module is called based on the configuration file when the application program is running, and each corresponding behavior action is performed through each node module. In this way, by splitting all functions of the application program into multiple node modules, the planners of the application program can completely not rely on the source code of the application program when designing the business logic of the application program, and directly design the business logic as an enumeration configuration of multiple node modules, avoiding the need for planners to communicate with developers, which not only causes efficiency loss, but also has the problem of ambiguity in the communication process, and realizes that planners can basically verify the logic of the application program quickly by themselves, adjust the relevant parameters of the application program, and thus quickly iterate the product.

[0111] Furthermore, planners can use a visual editor to establish logical relationships between various node modules, without the need for planners to directly face source code, reducing the complexity of planners' operations. Moreover, the output of the visual editor is a text file, which is easy to load dynamically in real time on the server and easy to manage.

[0112] Furthermore, since all the functions of the application are split into multiple node modules, by defining the connection relationship between each node module when the application is running, the various functions that have been developed can be reused like building blocks, thereby reducing the size of the source code.

[0113] Figure 5 A schematic diagram of a structure of a device for generating an application program provided in another embodiment of the present application is shown in FIG. Figure 5 As shown, the device of this embodiment may include:

[0114] The receiving module 501 is used to receive an acquisition instruction;

[0115] The first acquisition module 502 is used to acquire at least two node modules required by the application program and a configuration file containing connection relationships between the node modules from a preset node module library; wherein the node module library includes at least two generated node modules, each of which is used to execute at least one behavior action;

[0116] The receiving module is also used to receive the generation instruction;

[0117] The encapsulation module 503 is used to encapsulate the application installation file based on each node module and configuration file, so that the installation file can be decapsulated to obtain each node module and configuration file, and each node module is called based on the configuration file when the application is running, and each corresponding behavior action is executed through each node module.

[0118] In a preferred embodiment of the present invention, it also includes:

[0119] The second acquisition module is used to obtain the source code corresponding to any node module;

[0120] A first processing module is used to compile the source code, generate any node module, and set the resource data reading type corresponding to any node module in response to the setting instruction;

[0121] The storage module is used to store any node module in a preset node module library.

[0122] In a preferred embodiment of the present invention, it also includes:

[0123] The second processing module is used to receive an acquisition instruction of a node module through a preset visual editor; the acquisition instruction includes identification information of at least two node modules;

[0124] A third acquisition module is used to acquire corresponding node modules from a node module library based on the identification information;

[0125] An establishing module, used for establishing a connection relationship between any two node modules when a connection instruction for any two node modules is received;

[0126] The generation module is used to generate a configuration file when receiving an output instruction, and record at least one established connection relationship and identification information of each node module having the connection relationship in the configuration file.

[0127] In a preferred embodiment of the present invention, the behavioral action includes at least one of conditional judgment, instantaneous computing behavior and continuous computing behavior; the resource data reading type includes at least one of static configuration data, dynamic configuration data and state maintenance data; the conditional judgment corresponds to the static configuration data, the instantaneous computing behavior corresponds to the dynamic configuration data, and the continuous computing behavior corresponds to the state maintenance data.

[0128] In a preferred embodiment of the present invention, the encapsulation module is specifically used for:

[0129] Each node module, configuration file, and resource data that each node module needs to read are packaged to obtain the installation file of the application.

[0130] The application generation device of this embodiment can execute the application generation method shown in the first embodiment and the second embodiment of this application. The implementation principles are similar and will not be repeated here.

[0131] In an embodiment of the present invention, when receiving an acquisition instruction, at least two node modules required for the application program and a configuration file containing the connection relationship between each node module are obtained from a preset node module library; wherein the node module library includes at least two generated node modules, each of which is used to perform at least one behavior action; when receiving a generation instruction, the installation file of the application program is encapsulated based on each node module and the configuration file, so that the installation file is decapsulated to obtain each node module and the configuration file, and each node module is called based on the configuration file when the application program is running, and each corresponding behavior action is performed through each node module. In this way, by splitting all functions of the application program into multiple node modules, the planners of the application program can completely not rely on the source code of the application program when designing the business logic of the application program, and directly design the business logic as an enumeration configuration of multiple node modules, avoiding the need for planners to communicate with developers, which not only causes efficiency loss, but also has the problem of ambiguity in the communication process, and realizes that planners can basically verify the logic of the application program quickly by themselves, adjust the relevant parameters of the application program, and thus quickly iterate the product.

[0132] Furthermore, planners can use a visual editor to establish logical relationships between various node modules, without the need for planners to directly face source code, reducing the complexity of planners' operations. Moreover, the output of the visual editor is a text file, which is easy to load dynamically in real time on the server and easy to manage.

[0133] Furthermore, since all the functions of the application are split into multiple node modules, by defining the connection relationship between each node module when the application is running, the various functions that have been developed can be reused like building blocks, thereby reducing the size of the source code.

[0134] In another embodiment of the present application, an electronic device is provided, which includes: a memory and a processor; at least one program, stored in the memory, for being executed by the processor, which can achieve the following compared to the prior art: when an acquisition instruction is received, at least two node modules required for the application and a configuration file containing the connection relationship between each node module are obtained from a preset node module library; wherein the node module library includes at least two generated node modules, each node module is used to perform at least one behavioral action; when a generation instruction is received, the installation file of the application is obtained by encapsulating based on each node module and the configuration file, so that the installation file is decapsulated to obtain each node module and the configuration file, and each node module is called based on the configuration file when the application is running, and each corresponding behavioral action is performed through each node module. In this way, by splitting all the functions of the application into multiple node modules, the application planners do not need to rely on the source code of the application when designing the business logic of the application. The business logic can be directly designed as an enumeration configuration of multiple node modules, avoiding the need for planners to communicate with developers, which not only causes efficiency loss but also causes ambiguity in the communication process. It enables planners to quickly verify the logic of the application and adjust the relevant parameters of the application basically by themselves, thereby quickly iterating the product.

[0135] In an alternative embodiment, an electronic device is provided, such as Figure 6 As shown, Figure 6 The electronic device 6000 shown includes: a processor 6001 and a memory 6003. The processor 6001 and the memory 6003 are connected, such as through a bus 6002. Optionally, the electronic device 6000 may also include a transceiver 6004. It should be noted that in actual applications, the transceiver 6004 is not limited to one, and the structure of the electronic device 6000 does not constitute a limitation on the embodiments of the present application.

[0136] The processor 6001 may be a CPU, a general processor, a DSP, an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor 6001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0137] The bus 6002 may include a path to transmit information between the above components. The bus 6002 may be a PCI bus or an EISA bus, etc. The bus 6002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0138] The memory 6003 may be a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, or an EEPROM, a CD-ROM or other optical disk storage, an optical disk storage (including a compressed optical disk, a laser disk, an optical disk, a digital versatile disk, a Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0139] The memory 6003 is used to store application code for executing the solution of the present application, and the execution is controlled by the processor 6001. The processor 6001 is used to execute the application code stored in the memory 6003 to implement the content shown in any of the above method embodiments.

[0140] Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc.

[0141] Another embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when it is run on a computer, the computer can execute the corresponding content in the aforementioned method embodiment. Compared with the prior art, when an acquisition instruction is received, at least two node modules required for the application program and a configuration file containing the connection relationship between each node module are obtained from a preset node module library; wherein the node module library includes at least two generated node modules, each node module is used to perform at least one behavior action; when a generation instruction is received, the installation file of the application program is encapsulated based on each node module and the configuration file, so that the installation file is decapsulated to obtain each node module and the configuration file, and each node module is called based on the configuration file when the application program is running, and each corresponding behavior action is performed through each node module. In this way, by splitting all the functions of the application into multiple node modules, the application planners do not need to rely on the source code of the application when designing the business logic of the application. The business logic can be directly designed as an enumeration configuration of multiple node modules, avoiding the need for planners to communicate with developers, which not only causes efficiency loss but also causes ambiguity in the communication process. It enables planners to quickly verify the logic of the application and adjust the relevant parameters of the application basically by themselves, thereby quickly iterating the product.

[0142] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0143] The above descriptions are only some embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for generating an application, characterized in that: include: When receiving the acquisition instruction, acquiring at least two node modules required by the application and a configuration file containing connection relationships between the node modules from a preset node module library; wherein the node module library includes at least two generated node modules, each node module is used to execute at least one behavior action; When receiving a generation instruction, encapsulating the application program installation file based on each node module and the configuration file, so that the installation file is decapsulated to obtain each node module and the configuration file, and each node module is called based on the configuration file when the application program is running, and each corresponding behavior action is executed through each node module; The node module library is generated in the following way: Get the source code corresponding to any node module; Compiling the source code to generate any node module, and setting the resource data reading type corresponding to any node module in response to a setting instruction; Any of the node modules is stored in a preset node module library; the behavior action includes at least one of conditional judgment, instantaneous computing behavior and continuous computing behavior; the resource data reading type includes at least one of static configuration data, dynamic configuration data and state maintenance data; the conditional judgment corresponds to the static configuration data, the instantaneous computing behavior corresponds to the dynamic configuration data, and the continuous computing behavior corresponds to the state maintenance data; if the behavior action corresponding to the node module is continuous computing behavior, the node module includes a timing socket to simulate the state of continuous processing.

2. The method for generating an application according to claim 1, characterized in that: The configuration file is generated in the following way: Receiving an acquisition instruction of a node module through a preset visual editor; the acquisition instruction includes identification information of at least two node modules; Obtain corresponding node modules from the node module library based on the identification information; When a connection instruction for any two node modules is received, a connection relationship between the any two node modules is established; When the output instruction is received, a configuration file is generated, and the at least one established connection relationship and identification information of each node module having the connection relationship are recorded in the configuration file.

3. The method for generating an application according to claim 1 or 2, characterized in that: The encapsulation based on each node module and the configuration file to obtain the installation file of the application program includes: Each node module, the configuration file, and the resource data that each node module needs to read are packaged to obtain the installation file of the application.

4. A device for generating an application, characterized in that: include: A receiving module, used for receiving an acquisition instruction; A first acquisition module is used to acquire at least two node modules required by the application program and a configuration file containing connection relationships between the node modules from a preset node module library; wherein the node module library includes at least two generated node modules, each node module is used to execute at least one behavior action; and the receiving module is further used to receive a generation instruction; An encapsulation module, used to encapsulate the application program installation file based on each node module and the configuration file, so that the installation file is decapsulated to obtain each node module and the configuration file, and each node module is called based on the configuration file when the application program is running, and each corresponding behavior action is executed through each node module; The second acquisition module is used to obtain the source code corresponding to any node module; A first processing module, used for compiling the source code to generate any node module, and setting the resource data reading type corresponding to any node module in response to a setting instruction; A storage module, used to store any of the node modules in a preset node module library; the behavior action includes at least one of conditional judgment, instantaneous computing behavior and continuous computing behavior; the resource data reading type includes at least one of static configuration data, dynamic configuration data and state maintenance data; the conditional judgment corresponds to the static configuration data, the instantaneous computing behavior corresponds to the dynamic configuration data, and the continuous computing behavior corresponds to the state maintenance data; if the behavior action corresponding to the node module is continuous computing behavior, the node module includes a timing socket for simulating a continuous processing state.

5. The application generation device according to claim 4, characterized in that: Also includes: The second processing module is used to receive the acquisition instruction of the node module through a preset visual editor; The acquisition instruction includes identification information of at least two node modules; A third acquisition module is used to acquire corresponding node modules from a node module library based on the identification information; An establishing module, configured to establish a connection relationship between any two node modules when a connection instruction for any two node modules is received; The generating module is used to generate a configuration file when receiving an output instruction, and record at least one established connection relationship and identification information of each node module having the connection relationship in the configuration file.

6. An electronic device, characterized in that: It includes: processor, memory, and bus; The bus is used to connect the processor and the memory; The memory is used to store operation instructions; The processor is used to execute the method for generating an application according to any one of claims 1 to 3 by calling the operation instruction.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store computer instructions, and when the computer-readable storage medium is executed on a computer, the computer can execute the method for generating an application program according to any one of claims 1 to 3.