Configuration data package and file generation method, processing method, device and medium

By generating application configuration data packages through a low-code platform and combining local and cloud prepared data, the target functions of the application can be quickly built, solving the problems of long traditional software development cycles and high costs and improving development efficiency.

CN115943362BActive Publication Date: 2025-09-23BOE TECHNOLOGY GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202180001360.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-31
Publication Date
2025-09-23
Estimated Expiration
2041-05-31

AI Technical Summary

Technical Problem

Traditional software development requires high professional skills from developers, has a long development cycle and high costs, and cannot meet the needs of enterprises and individuals to quickly build applications.

Method used

Through the low-code platform, the instructions and parameter configurations for generating preliminary data are used to generate the application's configuration data package, including a combination of local and cloud preliminary data, to form process data and independent data, thereby realizing the automated construction of target functions.

Benefits of technology

It reduces the requirements for developers' professional skills, shortens the development cycle, and improves the efficiency and applicability of application development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115943362B_ABST
    Figure CN115943362B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method for generating a configuration data packet for an application, comprising the steps of executing an instruction to generate preliminary data and generating the configuration data packet based on the generated preliminary data. The step of generating the preliminary data comprises: determining, in response to a function-adding instruction, initial data for a target function corresponding to the function-adding instruction; and parameterizing the initial data to obtain preliminary data. For any function-adding instruction, the preliminary data is selected from one of local preliminary data and cloud preliminary data. The present disclosure also provides a method for generating an application file, a method for processing request information, an electronic device, and a computer-readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the development of the information industry, enterprises and individuals have an increasing demand for building applications (or software) to solve various problems.

[0003] Traditional software development methods require high developer expertise, have long development cycles, and are costly. To address this, low-code development platforms have emerged in recent years. Summary of the Invention

[0004] The present disclosure aims to provide a method for generating a configuration data packet of an application, a method for generating an application file, a request information processing method, an electronic device, and a computer-readable storage medium.

[0005] A method for generating a configuration data packet of an application comprises the steps of executing an instruction for generating preliminary data N times and generating the configuration data packet according to the generated preliminary data, wherein N is a positive integer and N≥1.

[0006] Each execution of the instructions to generate the prepared data includes:

[0007] In response to a function adding instruction, determining initial data of a target function corresponding to the function adding instruction;

[0008] The initial data is parameterized to obtain preparation data, wherein, for any function adding instruction, the preparation data is selected from one of local preparation data and cloud preparation data, the local preparation data is obtained by parameterizing the initial data of the local component that can realize the target function corresponding to the function adding instruction, and the cloud preparation data is obtained by parameterizing the relevant information of the cloud component that can realize the target function corresponding to the function adding instruction.

[0009] Optionally, when N>1, the application includes a process having A nodes, the A nodes correspond to A target functions respectively, and 1<A<N, the step of generating the configuration data packet according to the generated preliminary data includes:

[0010] Generate process data using preliminary data that achieves A target functions;

[0011] generating the configuration data packet using the process data and preliminary data corresponding to target functions of the NA group not included in the process;

[0012] When N>1, the application includes a process having A nodes, the A nodes correspond to A target functions respectively, and A=N, the step of generating the configuration data packet according to N sets of preliminary data includes:

[0013] Use A set of preliminary data to achieve A target functions to form process data;

[0014] The configuration data packet is generated using the process data.

[0015] Optionally, the step of generating process data using a group A of preliminary data for achieving A target functions includes:

[0016] In response to an i-th node add instruction, determining an i-th set of preliminary data, processing the i-th set of data to obtain node data of an i-th node, wherein the i-th set of preliminary data includes preliminary data corresponding to a target function corresponding to the i-th node add instruction, where i is a positive integer and is sequentially ranged from 1 to A-1;

[0017] In response to an i+1th node add instruction, determining an i+1th set of preliminary data, processing the i+1th set of data to obtain node data of an i+1th node, the i+1th set of preliminary data including preliminary data corresponding to a target function corresponding to the i+1th node add instruction and a trigger expression for the i+1th node;

[0018] Processing the node data of the i+1th node using the index information of the node data of the i+1th node, so that the node data of the i-th node carries the index information of the i+1th group of preliminary data;

[0019] The process data is generated using the first A-1 groups of prepared data carrying index information and trigger expressions and the Ath group of prepared data not carrying index information.

[0020] Optionally, the process includes at least one pair of mutually related nodes, and the initial data corresponding to the same pair of mutually related nodes includes initial associated data. In the same pair of mutually related nodes, for a node that is later in the process sequence, the step of processing the preliminary data corresponding to the node to obtain the node data of the node includes:

[0021] Convert the final associated data in the previous node in the process to obtain the associated configuration parameters;

[0022] The initial association data in the preliminary data of the current node is configured using the association configuration parameters.

[0023] Optionally, each step of generating preliminary data further includes, before the step of determining, in response to the function adding instruction, initial data of the target function corresponding to the function adding instruction:

[0024] The type icon corresponding to the target function is determined according to the starting position of the second selected instruction on the operation interface, and a function adding instruction corresponding to the type icon is generated, wherein there is a corresponding relationship between the type icon and the initial data.

[0025] Optionally, each step of generating preliminary data further includes the following steps between the step of determining, in response to the function-adding instruction, initial data of a target function corresponding to the function-adding instruction, and the step of determining a type icon corresponding to the target function according to a starting position of the second selected instruction on the operation interface, and generating the function-adding instruction corresponding to the type icon:

[0026] Controlling the display panel to display a parameter configuration interface associated with the target function;

[0027] For any function adding instruction, the step of determining the initial data of the target function corresponding to the function adding instruction includes:

[0028] The initial data corresponding to the type icon is used as the initial data corresponding to the function adding instruction, wherein the configuration parameters corresponding to the target function can be received through the parameter configuration interface.

[0029] Optionally, for at least one function adding instruction, each step of generating preliminary data further includes, before the step of determining a type icon corresponding to the target function based on the starting position of the second selected instruction on the operation interface and generating the function adding instruction corresponding to the type icon:

[0030] Determine the control icon corresponding to the target function according to the starting position of the first selected instruction on the graphical operation interface;

[0031] When the position of the first selected instruction on the operation interface ends at a predetermined area, controlling the display panel to display the control icon selected by the first selected instruction in the predetermined area;

[0032] Binding the received display information to the control icon selected by the first selection instruction, so that the display information is displayed when the control icon is clicked;

[0033] The generating method further includes determining a type icon corresponding to the target function according to the starting position of the second selected instruction on the operation interface, and generating a function adding instruction corresponding to the type icon, performing the following steps:

[0034] An association relationship is established between the control icon and the target function.

[0035] Optionally, when the type of the initial data is event type, configuring parameters for the event type initial data includes:

[0036] Receive event configuration parameters input from the outside, the event configuration parameters including an event name and at least one of the following parameters: an attribute key value of the initial data, an attribute expression of the initial data, trigger mode information, and associated control information;

[0037] The preliminary data of the initial data of the event type is obtained according to the event configuration parameters.

[0038] Optionally, when the type of the initial data is a cloud interface type, configuring parameters of the cloud interface type initial data includes:

[0039] Receive at least one of the URL, path, request method information, URL parameters, header parameters, and body parameters input from the outside;

[0040] When the type of the initial data is a local interface type, configuring parameters for the local interface type initial data includes:

[0041] Receive local service information input from the outside and calling mode information of the local service, wherein the calling mode information is selected from any one of synchronous calling and asynchronous calling.

[0042] Optionally, when the type of the initial data is a cloud interface type or a local interface type, after obtaining the preliminary data, the generating method further includes:

[0043] The service corresponding to the initial data is tested.

[0044] Optionally, the configuration data packet is generated according to N groups of preliminary data:

[0045] In response to a function deletion instruction, deleting the prepared data corresponding to the function deletion instruction from the N groups of prepared data;

[0046] The configuration data packet is generated using the remaining preliminary data.

[0047] Optionally, the generating method further comprises, after generating the configuration data packet according to the N groups of preliminary data:

[0048] In response to the preview instruction, the configuration data packet is parsed and executed.

[0049] Optionally, the generating method further includes:

[0050] The configuration data is stored locally.

[0051] Optionally, the generating method further includes:

[0052] The configuration data is sent to the server.

[0053] As a second aspect of the present disclosure, a method for generating an application file is provided, comprising:

[0054] receiving a configuration data packet generated by the generation method according to the first aspect of the present disclosure;

[0055] The configuration data packet is parsed and compiled to generate the application file.

[0056] As a third aspect of the present disclosure, a method for processing request information is provided, comprising:

[0057] In response to the received request information, analyzing the request information to determine preparation data corresponding to the request information, wherein the preparation data is selected from one of local preparation data and cloud preparation data, the local preparation data being obtained by parameter configuration of initial data of a local component capable of realizing a target function corresponding to the function-adding instruction, and the cloud preparation data being obtained by parameter configuration of cloud information capable of realizing the target function corresponding to the function-adding instruction;

[0058] Parsing the preliminary data to determine the component corresponding to the preliminary data;

[0059] When the component corresponding to the preparation data includes a local component, running the local component;

[0060] When the component corresponding to the prepared data includes a cloud component, the return data of the cloud component is obtained through an interface.

[0061] As a fourth aspect of the present disclosure, an electronic device is provided, including:

[0062] one or more processing modules;

[0063] The storage module stores an executable program thereon. When the executable program is executed by the one or more processing modules, the one or more processing modules implement any one of the above three methods.

[0064] As a fifth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, any one of the above three methods is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the following detailed description, they are used to explain the present invention but do not constitute a limitation of the present invention. In the accompanying drawings:

[0066] Figure 1 It is a flowchart of an embodiment of a method for generating a configuration data packet of an application provided by the present disclosure;

[0067] Figure 2 is a flowchart of one embodiment of the steps of generating preliminary data;

[0068] Figure 3 is a flowchart of an implementation of the steps of generating a configuration data packet based on generated preliminary data when 1<A<N;

[0069] Figure 4 A flowchart of an embodiment of the step of generating a configuration data packet based on generated preliminary data when A=N;

[0070] Figure 5 is a flowchart of one embodiment of the steps of generating process data using A set of preliminary data for achieving A target functions;

[0071] Figure 6 is a flow chart of another embodiment of a method for producing a configuration data packet of an application provided by the disclosed lock;

[0072] Figure 7 It is a schematic diagram of the graphical interface on the terminal;

[0073] Figure 8 It is a flowchart of an implementation method of the application installation method provided by the present disclosure;

[0074] Figure 9 It is a flowchart of an implementation of the request information processing method provided by the present disclosure. DETAILED DESCRIPTION

[0075] The following describes the specific embodiments of the present invention in detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present invention and are not intended to limit the present invention.

[0076] As one aspect of the present disclosure, a method for generating a configuration data packet of an application is provided, such as Figure 1 As shown, the generation method includes executing the instruction of generating preliminary data N times and generating the configuration data packet according to the generated preliminary data, wherein N is a positive integer and N≥1.

[0077] In this disclosure, for ease of description, "step S100" is used to represent "executing the instruction to generate preliminary data" once. In this disclosure, N is the number of times step S100 is executed. Similarly, for ease of description, "step S200" is used to represent "generating the configuration data packet based on the generated preliminary data."

[0078] like Figure 2 As shown, the instructions for generating preliminary data for each execution include:

[0079] In step S110 , in response to a function adding instruction, initial data of a target function corresponding to the function adding instruction is determined;

[0080] In step S120 , parameter configuration is performed on the initial data to obtain preliminary data.

[0081] In the present disclosure, for any function adding instruction, the preparation data is selected from one of local preparation data and cloud preparation data, the local preparation data is obtained by parameter configuration of the initial data of the local component that can realize the target function corresponding to the function adding instruction, and the cloud preparation data is obtained by parameter configuration of the cloud information that can realize the target function corresponding to the function adding instruction.

[0082] In this disclosure, "initial data" refers to data used to implement a target function but that has not yet been configured. For example, if a weather forecasting plug-in is downloaded to an electronic device and the user configures the plug-in using "location," "date," and "personal preferences," the plug-in will then broadcast the weather for the specified "location" according to the user's configured date and preferences. The data before the user configures the plug-in is considered the plug-in's "initial data."

[0083] In this disclosure, there is no specific limitation on the "relevant information" of a cloud component. As an optional implementation, a cloud server stores a cloud component capable of implementing a target function. The cloud information includes interface information of the cloud component. Access to the cloud component can be achieved by configuring the interface information.

[0084] As another optional implementation, the cloud server does not store any cloud components that can achieve the target function. In this case, a search can be performed based on the target function to obtain a cloud retrieval data packet corresponding to the target function. The cloud server sends the cloud retrieval data packet back to the local electronic device, and the electronic device converts the data to obtain "initial data". Further parameter configuration of the initial data can obtain preliminary data, which is equivalent to parameter configuration of the "cloud information" to obtain preliminary data.

[0085] The generation method provided in the present disclosure corresponds to a low-code platform. After the configuration data packet is generated using the generation method provided in the present disclosure, the configuration data packet is compiled to obtain the installation file of the application.

[0086] As an optional implementation, the electronic device executing the generation method may pre-store multiple components capable of implementing multiple functions, each component corresponding to corresponding initial data. In other words, the electronic device may store multiple sets of initial data.

[0087] When the target function corresponding to the function-adding instruction can be implemented by the locally stored component, the data corresponding to the local component is used as the initial data corresponding to the function-adding instruction. When the target function corresponding to the function-adding instruction cannot be implemented by the locally stored component, it is necessary to request the cloud component that implements the function from the server, and the data corresponding to the cloud component is used as the initial data corresponding to the function-adding instruction.

[0088] As described above, when the server does not store the components that implement the above functions, the server can perform a search based on the function adding instruction to obtain a cloud search data packet.

[0089] The function-adding instruction is input by the user through the input module. In this disclosure, the specific type of the function-adding instruction is not particularly limited. For example, the function-adding instruction can be in the form of text, and the target function and the initial data corresponding to the target function can be determined based on the text content. For another example, the function-adding instruction can be an operation point input by the user through touch or mouse, and the target function and the initial data corresponding to the target function can be determined based on the position of the operation point.

[0090] In the present disclosure, local and cloud components can be called to obtain a configuration data package for an application file with target functions. Furthermore, when using the method to generate a configuration data package for an application file, users only need to clearly define the target functions to be implemented and the logical relationships between each target function, without having to master programming techniques. Therefore, the method provided by the present disclosure expands the scope of application development and improves development efficiency.

[0091] As an optional implementation, the application includes a process having A nodes, where A is a positive integer, 1<A≤N, and the A nodes correspond to A target functions respectively.

[0092] When 1<A<N, such as Figure 3 As shown, step S200 may include:

[0093] In step S210 , process data is generated using A set of preliminary data for achieving A target functions;

[0094] In step S220 , the configuration data packet is generated using the process data and the preliminary data corresponding to the target functions of the NA group that are not included in the process.

[0095] That is, in this embodiment, the configuration data package can include process data corresponding to the process, as well as preparatory data independent of the process. In other words, in this embodiment, the application obtained after installing the configuration data package can implement a total of N target functions. Of these N target functions, NA target functions are independent of each other, while A target functions are A functions in the same process (i.e., these A functions can be implemented sequentially after the process is triggered).

[0096] When A=N, such as Figure 4 As shown, step S200 may include:

[0097] In step S210 , process data is formed using A set of preliminary data for realizing A target functions;

[0098] In step S220 ′, the configuration data packet is generated using the process data.

[0099] In this embodiment, the configuration data includes only process data corresponding to the process.

[0100] The configuration data package includes process data. Therefore, the installation file generated using the process data in the configuration data package also involves the process, so that the process can be implemented when the application is running.

[0101] In this disclosure, there is no particular limitation on how to form the process data, as long as the process data can reflect the nodes of the corresponding process and the order of the nodes. Figure 5 As shown, step S210 of generating process data using a group A of preliminary data for realizing A target functions may include:

[0102] In step S211, in response to the i-th node adding instruction, determining the i-th set of preliminary data, processing the i-th set of data to obtain node data of the i-th node, wherein the i-th set of preliminary data includes preliminary data corresponding to the target function corresponding to the i-th node adding instruction, where i is a positive integer and is sequentially ranged from 1 to A-1;

[0103] In step S212, in response to the (i+1)th node adding instruction, determining the (i+1)th set of preliminary data, processing the (i)th set of data to obtain node data of the (i+1)th node, wherein the (i+1)th set of preliminary data includes preliminary data corresponding to the target function corresponding to the (i+1)th node adding instruction and a trigger expression for the (i+1)th node;

[0104] In step S213, the node data of the i-th node is processed using the index information of the node data of the i+1-th node, so that the node data of the i-th node carries the index information of the i+1-th group of preliminary data;

[0105] In step S214, the process data is generated using the first A-1 groups of prepared data carrying index information and trigger expressions and the A-th group of prepared data not carrying index information.

[0106] In the present disclosure, step S212 and step S213 are executed in a loop, and the termination condition is i=A-1.

[0107] Since the node data of the current node carries the index information of the node data of the next level node, when executing the process, after the i-th node is executed, the next node to be executed can be determined based on the index information carried in the node. When the trigger expression is met, the next node can be automatically executed.

[0108] In this disclosure, there is no special limitation on the trigger expression. For example, the trigger expression can be a judgment expression (true) or other logical operation. For example, it can be a logical operation such as '2>1'. The left side of the inequality represents the number of times a certain operation is performed in the application, and the right side of the inequality represents the set number of times. The trigger expression '2>1' means that the process can be triggered after a certain operation is performed more than once.

[0109] In the present disclosure, configuration parameters for different nodes in the same process may be associated with each other or may be unassociated. For some processes, including at least one pair of associated nodes, the initial data corresponding to the same pair of associated nodes includes initial associated data. For a node that is later in the process sequence, in the same pair of associated nodes, the steps of processing the preliminary data corresponding to the node to obtain the node data of the node include:

[0110] Convert the final associated data in the previous node in the process to obtain the associated configuration parameters;

[0111] The initial association data in the preliminary data of the current node is configured using the association configuration parameters.

[0112] For example, the process of "obtaining the weather of city A" includes the following nodes: click the button to display "city A" → obtain the weather of "city A" → display the weather of city A.

[0113] In the above process, the first node is an event-type node, and the second node is an interface-type node. The node data for the first node includes initial data corresponding to "place name," and the second node also includes initial data corresponding to "place name." By configuring the initial data for "place name" in the first node to "city a," "city a" can be used as a configuration parameter to configure the initial data for "place name" in the second node.

[0114] As described above, the generation method is applied to an electronic device that implements a low-code platform. It should be noted that the electronic device has a display panel, through which a graphical operation interface can be displayed. The graphical operation interface can display the type icon of the function (event type, interface type, etc.), and the predetermined area of ​​the graphical operation interface is the editing area. Setting the graphical operation interface is more conducive to human-computer interaction. Accordingly, Figure 6 As shown, each step of generating preliminary data may further include the following steps performed before step S110:

[0115] In step S103, the type icon corresponding to the target function is determined according to the starting position of the second selected instruction on the operation interface, and a function adding instruction corresponding to the type icon is generated, wherein there is a corresponding relationship between the type icon and the initial data.

[0116] In the present disclosure, a mapping relationship between each type icon and the initial data corresponding to each target function is pre-configured. Selecting a type icon means selecting the initial function data.

[0117] In order to facilitate parameter configuration of the initial data corresponding to the type icon, optionally, as Figure 6 As shown, each step of generating preliminary data may further include the following steps performed between step S103 and step S110:

[0118] In step S104 , the display panel is controlled to display a parameter configuration interface associated with the target function.

[0119] Accordingly, the step of determining the initial data of the target function corresponding to the function adding instruction includes:

[0120] The initial data corresponding to the type icon is used as the initial data corresponding to the function adding instruction, wherein the configuration parameters corresponding to the target function can be received through the parameter configuration interface.

[0121] To facilitate operation, the graphical operation interface also provides control icons (button icons, text box icons, etc.). By operating the control icons, related subsequent actions can be triggered. For example, after dragging a control icon into the editing area, the control icon can be associated with an event, and the associated event can be triggered by operating the control icon in the editing area.

[0122] Accordingly, add instructions for at least one function, such as Figure 6 As shown, each step of generating preliminary data may further include the following steps performed before step S103:

[0123] In step S101, a control icon corresponding to a target function is determined according to a starting position of a first selected instruction on a graphical operation interface;

[0124] In step S102-1, when the position of the first selected instruction on the operation interface ends at a predetermined area, controlling the display panel to display the control icon selected by the first selected instruction in the predetermined area;

[0125] In step S102-2, the received display information is bound to the control icon selected by the first selection instruction, so that the display information is displayed when the control icon is clicked.

[0126] Each step of generating preliminary data may further include the following steps performed after step S103:

[0127] In step S105 , an association relationship between the control icon and the target function is established.

[0128] Through the above steps S101 to S105, the user can drag the control icon to the predetermined area (i.e., the editable area) and establish an association between the control icon and the target function by selecting the type icon. In step S103, after the association between the control icon and the target function is established, the target function can be achieved by operating the control.

[0129] It should be noted that the "display information" mentioned in this disclosure may be the display information input by the user through the input module. As an optional implementation, the display information may be stored in the provider.

[0130] Figure 7is a schematic diagram of the operation interface. Region I displays multiple control icons (e.g., control icons may include text box icons, edit box icons, image icons, text box button icons, dialog box icons, list icons, etc.), Region II displays multiple type icons (e.g., type icons may include event icons, interface icons, process icons, etc.), Region III is the predetermined area (i.e., the editing area), and Region IV displays the parameter configuration interface.

[0131] In the present disclosure, there is no particular limitation on how to generate the first selection instruction and the second selection instruction. As an optional implementation, the first selection instruction and the second selection instruction can be selection instructions inputted via any one of a mouse, a keyboard, and a touch screen.

[0132] In the present disclosure, there is no special limitation on the location of the "parameter configuration interface". For example, the parameter configuration interface may be near the control icon, and when the control icon is "dragged" into the predetermined area, the parameter configuration interface corresponding to the control icon will be displayed. Figure 7 In the embodiment shown in , the parameter configuration interface is displayed on the periphery of the predetermined area.

[0133] After the user inputs configuration parameters through the parameter configuration interface, corresponding preliminary data can be generated using the configuration parameters.

[0134] The specific content of the configuration parameters is related to the type of initial data (i.e., the component that implements the target function). When the initial data is of event type, the configuration parameters of the event-type initial data include the event name and at least one of the following parameters: the attribute key value of the initial data, the attribute expression of the initial data, trigger mode information, and associated control information.

[0135] Accordingly, parameter configuration for event-type initial data includes:

[0136] Receive event configuration parameters input from the outside, the event configuration parameters including an event name and at least one of the following parameters: an attribute key value (i.e., a key value) of the initial data, an attribute expression of the initial data, trigger mode information, and associated control information;

[0137] The preliminary data of the initial data of the event type is obtained according to the event configuration parameters.

[0138] In the present disclosure, users can configure attribute key values, value expressions, triggering information, etc. for event-type initial data (hereinafter referred to as events) to associate icons (also known as controls) on the operation interface with corresponding events. For example, by configuring attribute key values, value expressions, triggering information, etc., a button can be associated with an event, and the event can be triggered by clicking the button. In the present disclosure, an icon can be associated with multiple events, and parameters can be configured for each event.

[0139] In this disclosure, after configuring an attribute expression for initial data, the corresponding parameters can be obtained based on the attribute expression after the event corresponding to the initial data is triggered. In this disclosure, the attribute expression can be expressed in programming languages ​​such as JavaScript, and specific characters are used to support the expression of data containers, UI controls (equivalent to icons), event values, etc.

[0140] When the type of the initial data is an interface type, there are two cases: one case is that the type of the initial data is a cloud interface type, and the other case is that the type of the initial data is a local interface type.

[0141] When the type of the initial data is a cloud interface type, configuring parameters for the cloud interface type initial data includes:

[0142] Receive at least one of the URL, path, request method information, URL parameters, header parameters, and body parameters input from the outside.

[0143] When the type of the initial data is a local interface type, configuring parameters for the local interface type initial data includes:

[0144] Receive local service information input from the outside and calling mode information of the local service, wherein the calling mode information is selected from any one of synchronous calling and asynchronous calling.

[0145] As an optional implementation manner, when the type of the initial data is a cloud interface type or a local interface type, after obtaining the preliminary data, the generation method further includes:

[0146] The service corresponding to the initial data is tested.

[0147] As an optional implementation manner, the generation method further includes, after generating the configuration data packet according to the N groups of preliminary data:

[0148] In response to the preview instruction, the configuration data packet is parsed and executed.

[0149] In the present disclosure, the configuration data package is used to generate an installation file of the application. The configuration data package can be compiled locally to generate the installation file. Accordingly, the generation method further includes: storing the configuration data locally.

[0150] In the present disclosure, there is no particular limitation on the local storage mode and storage type of the configuration data. Generally, the corresponding configuration data can be named when the configuration data is stored. The locally stored configuration data can be further edited later.

[0151] For example, in Figure 7 In the embodiment shown in , the configuration data is stored in the form of "pages" and can also be named in the form of pages. Figure 7 In the specific implementation shown in , the configuration data may be named “Page_1”. For ease of operation, a drop-down list may be provided on the graphical operation interface, and the drop-down list may include the configuration data stored in the main body and selectable.

[0152] Alternatively, the configuration package may be sent to a server, and the server may compile the configuration data package and generate an installation file. Accordingly, the generation method further includes: sending the configuration data to the server.

[0153] In the present disclosure, there is no particular limitation on how to perform step S130. As an optional implementation, the configuration data packet can be directly formed using N groups of preliminary data.

[0154] In order to improve the flexibility of the generation method, optionally, after obtaining N sets of preliminary data, if the user wants to reduce the number of target functions, the corresponding preliminary data can be deleted. In this embodiment, step S130 may include:

[0155] In response to a function deletion instruction, deleting the prepared data corresponding to the function deletion instruction from the N groups of prepared data;

[0156] The configuration data packet is generated using the remaining preliminary data.

[0157] The following is a combination of several specific embodiments Figure 7 The graphical operation interface shown in introduces the generation method provided by the present disclosure.

[0158] First, a brief introduction Figure 7As shown in the figure, the graphical operation interface mainly includes four areas, wherein area I displays multiple control icons (for example, the control icons may include text box icons, edit box icons, picture icons, text box button icons, dialog box icons, list icons, etc.), area II displays multiple type icons (for example, the type icons may include event icons, interface icons, process icons, etc.), area III is the predetermined area (i.e., the editing area), and area IV displays the parameter configuration interface.

[0159] exist Figure 7 In [1], configuration data packages exist as "pages." Therefore, adding preliminary data to a configuration package to implement the target function is equivalent to binding that preliminary data to the page. Therefore, the content displayed on the parameter configuration interface is user-friendly, such as "Current Page ID," "Complete Binding," "Bound Component," "Control Properties," and "Property Type."

[0160] The so-called "completion of binding" means that the user has chosen to click a button after adding the preliminary data he wants to add.

[0161] "Editing binding expressions" means establishing a mapping relationship between the control icon and the prepared data based on the user's input.

[0162] “Add binding” refers to placing the current page in an editable state so that new preliminary data can be added to the current page.

[0163] In the first embodiment, a configuration data packet including preliminary data of an event type is created, that is, N in step S110 is equal to 1.

[0164] Name the event event1, set the event type to the data source type (i.e., display text), set the event attribute key param to text, and specify the attribute expression as @{WIDGET(button1.text)}. To trigger event event1, click button1.

[0165] For users, the following operations are required:

[0166] Select the "Text Box Button" control icon in the graphical operation interface (i.e., generate the first selected instruction), and drag the text box button to the editing area to preview the function;

[0167] In the property editing area, enter the text field to be displayed (for example, city a) and the button name button1;

[0168] Select the "Event" type icon in the graphical operation interface (i.e., generate the second selected instruction) and enter the event name event1;

[0169] Select "event1" in the list of selected binding components on the parameter configuration interface;

[0170] Select button1 in the space attribute list on the parameter configuration interface;

[0171] Edit the binding expression in the parameter configuration interface, configure event event1, and establish an association between event1 and button1;

[0172] Click "Finish Binding" to bind event event1 to the page and generate the configuration data package.

[0173] Next, the specific steps of the generation method are described:

[0174] Step S101 is specifically performed as follows: determining that the control icon corresponding to the target function is a text box button named button1 according to the revealed position of the first selected instruction on the graphical operation interface;

[0175] Step S102 is specifically performed as follows: when the position of the first selected instruction on the graphical operation interface ends at a predetermined area (ie, the editing area), controlling the display panel to display a control icon (ie, button button1) in the predetermined area;

[0176] Step S103 is specifically performed as follows: determining that the type icon corresponding to the target function is "event" according to the starting position of the second selected instruction on the graphical operation interface, obtaining initial data of "event", and generating a corresponding function adding instruction (execution step S110);

[0177] Step S104 is specifically performed as follows: controlling the display panel to display a parameter configuration interface associated with the target function;

[0178] Step S105 is specifically performed as follows: establishing an association relationship between the button button1 and the target function corresponding to the initial data of the "event type".

[0179] The configuration parameters input by the user on the parameter configuration interface include: event type is data source type, attribute key value param is text, attribute expression is @{WIDGET(button1.text)}, and step S120 is specifically executed to generate corresponding preliminary data according to the configuration parameters input by the user.

[0180] Step S200 is specifically performed as follows: generating a configuration data packet according to the preliminary data obtained in step S120.

[0181] In the second embodiment, a configuration data packet including preliminary data of an interface type is created, and N in step S110 is equal to 1.

[0182] In this embodiment, the interface is named interface1, and the user needs to select the type icon corresponding to "interface" on the graphical operation interface through the second selection instruction.

[0183] The steps the user performs include:

[0184] Select the "Interface" type icon in the graphical operation interface (i.e., generate the second selected instruction) and enter the interface name interface1;

[0185] Select "interface1" in the list of selected binding components on the parameter configuration interface;

[0186] Edit the binding expression in the parameter configuration interface and configure interface 1;

[0187] Click "Finish Binding" to bind the interface to the page and generate the configuration data package.

[0188] Step S103 is specifically performed as follows: determining that the type icon corresponding to the target function is "cloud interface" based on the starting position of the second selected instruction on the graphical operation interface, obtaining initial data of the "cloud interface", and generating a corresponding function adding instruction (execution step S110);

[0189] Step S120 is specifically executed as follows: according to the configuration parameters input by the user, determining that the request method corresponding to the cloud interface is "get", and according to the URL input format input by the user is http: / / xxx.xxx.xxx.xxx:port / apipath?city=xxx, determining that the URL of the cloud interface is http: / / xxx.xxx.xxx.xxx:port, then configuring the initial data according to the above parameters, the path is apipath, and the key value is city, and obtaining the preliminary data.

[0190] In step S200 , a configuration data packet corresponding to the preparation data of the cloud interface is generated.

[0191] In Example 3, a process including three nodes is generated, where N = 3. This process can realize the function of "clicking a button to display city weather".

[0192] First, users need to analyze the implementation process of "Click a button to display city weather" as follows: This process involves clicking button botton1 to implement flow 1, which includes nodes node1, node2, and node3. Node 1 displays the city name (for example, City A) on the button, node 2 requests weather services from the cloud interface and returns the result, and node 3 modifies the content displayed on button1 to the result of node 2.

[0193] In this embodiment 3, step S100 needs to be performed three times for node node1, node node2, and node node3 respectively.

[0194] For node node1, step S100 includes:

[0195] Step S101 is specifically performed as follows: determining that the control icon corresponding to the target function is a button named button1 according to the revealed position of the first selected instruction on the graphical operation interface;

[0196] Step S102 is specifically performed as follows: when the position of the first selected instruction on the graphical operation interface ends at a predetermined area (ie, the editing area), controlling the display panel to display a control icon (ie, button button1) in the predetermined area;

[0197] Step S103 is specifically performed as follows: determining that the type icon corresponding to the target function is "event" according to the starting position of the second selected instruction on the graphical operation interface, obtaining initial data of "event", and generating a corresponding function adding instruction (execution step S110);

[0198] Step S104 is specifically performed as follows: controlling the display panel to display a parameter configuration interface associated with the target function;

[0199] Step S105 is specifically performed as follows: establishing an association relationship between the button button1 and the target function corresponding to the initial data of the "event type".

[0200] The configuration parameters input by the user on the parameter configuration interface include: event type is data source type, attribute key value param is text, attribute expression is @{WIDGET(button1.text)}, and step S120 is specifically executed to generate corresponding preliminary data according to the configuration parameters input by the user.

[0201] For node node2, step S100 includes:

[0202] In step S103, the type icon is determined to be an "interface type" icon according to the position of the second selected instruction, and initial data corresponding to the type icon is determined (i.e., step S110 is executed);

[0203] In step S104, controlling the display panel to display a parameter configuration interface;

[0204] The parameter configuration interface includes a key list of header parameters. The user selects a specific header parameter based on the key list. In this implementation, the header parameter is city. Accordingly, the attribute expression is @{event(param)}, which assigns the attribute value of the key value of the event corresponding to node node1 to the parameter key value of the header configured in the interface.

[0205] Step S120 is specifically performed as follows: configuring the initial data of the node node2 using the service address corresponding to the interface input by the user and the attribute expression @{event(param)} to obtain the preliminary data of the node node2.

[0206] For node node3, step S100 includes:

[0207] Step S103 is specifically performed as follows: determining that the type icon corresponding to the target function is "event" according to the starting position of the second selected instruction on the graphical operation interface, obtaining initial data of "event", and generating a corresponding function adding instruction (execution step S110);

[0208] Step S104 is specifically performed as follows: controlling the display panel to display a parameter configuration interface associated with the target function;

[0209] The configuration parameters input by the user on the parameter configuration interface include: event type is data source type, attribute key value param is result, and attribute expression may not be input. Step S120 is specifically executed to generate corresponding preliminary data according to the configuration parameters input by the user.

[0210] Step S200 is described below:

[0211] First, in step S210, process data is created, i is 1 and 2 respectively, and accordingly, step S110 includes:

[0212] In response to the first node adding instruction (ie, the node adding instruction for the node node1), the first set of preparation data is determined to be the above-mentioned "event type" preparation data created for the node node1.

[0213] In response to the second node addition instruction (i.e., the node addition instruction for node node2), the second set of preliminary data is determined to be the "interface type" preliminary data created for node node2, and the trigger expression of the second node is determined based on the input information. Based on the second set of preliminary data and the trigger expression, the node data of the second node is formed; in step S213, the node data of the first node is processed using the index information of the node data of the second node so that the node data of the first node carries the index information of the second set of preliminary data. Since the first node (node ​​node1) and the second node (node ​​node2) are mutually related nodes, in step S212, the attribute value (city) of the first node is assigned to the header parameter of the second node.

[0214] In response to the third node adding instruction (i.e., the node adding instruction of node node3), the third set of preliminary data is determined to be the preliminary data of the "event type" created for node node3. The third node and the second node are mutually related nodes. Since the attribute key value of the preliminary data of the "event type" created for node 3 is result, the return value of the interface corresponding to the second node can be obtained. For example, the value returned by the interface is json. Assuming {"result":"ok","data":{"temp":"25 degrees Celsius","pm2.5":"100","desc":"sunny"}}, the edit conversion expression can be written as, @{RESPONSE(data,temp)}+@{RESPONSE(data,desc)}, so that the attribute value of the third node with the key value of result will be assigned to 25 degrees Celsius sunny, and then the third node will be triggered (i.e., the temperature returned by the interface will be displayed), and the process will end.

[0215] As described above, the configuration data is used to generate the installation file of the application. In the present disclosure, a compilation engine can be used to parse the configuration data and generate the installation file of the application according to the parsing result.

[0216] Accordingly, as a second aspect of the present disclosure, a method for generating an application installation file is provided, such as Figure 8 As shown, the method includes:

[0217] In step S310, a configuration data packet generated by the generation method provided in the first aspect of the present disclosure is received;

[0218] In step S320, the configuration data package is parsed and compiled to generate the application installation file.

[0219] The method can be used to construct an application installation file based on the configuration information, which is equivalent to providing a compilation environment. The method can be executed by the device that executes the generation method described above, or by a server. When executing the method, no operator input is required. Therefore, even if the operator is unfamiliar with the compilation environment and compilation language, they can still use the generation method provided in the first aspect of this disclosure to generate a configuration data package and ultimately obtain the application file.

[0220] As a third aspect of the present disclosure, a method for processing request information is provided, such as Figure 9 As shown, the request information processing method includes:

[0221] In step S410, in response to the received request information, the request information is analyzed to determine the preparation data corresponding to the request information, wherein the preparation data is selected from one of local preparation data and cloud preparation data, the local preparation data being obtained by parameter configuration of initial data of a local component capable of realizing the target function corresponding to the function-adding instruction, and the cloud preparation data being obtained by parameter configuration of cloud information capable of realizing the target function corresponding to the function-adding instruction;

[0222] In step S420, the preliminary data is parsed to determine the component corresponding to the preliminary data;

[0223] In step S430, when the component corresponding to the preparation data includes a local component, the local component is run;

[0224] In step S440, when the component corresponding to the prepared data includes a cloud component, the return data of the cloud component is obtained through the interface.

[0225] The request information processing method provided by the present disclosure is the running process of the application constructed by the method provided by the second aspect of the present disclosure. By processing the request information, the components that need to be run can be determined, and the target function can be finally achieved.

[0226] For the application constructed by the configuration data package obtained in the above embodiment 3, the request information processing method includes:

[0227] After receiving the request information, analyzing the prepared data corresponding to the request information;

[0228] After preparing the data, it is determined that the prepared data includes the process configured on the page. The page has previously configured the response event event2. Event2 is triggered at the end of the above process and can be distributed through the event bus. The page subscribes to this event and responds to it. The processing mechanism is to obtain the binding expression and associated controls of the data binding performed by the page for this event. Since button1 is associated, the attribute text of button1 is updated. Therefore, the key value of event2 is set to the attribute value of result through the registered provider1. At this time, "25 degrees Celsius sunny" is set to the text field of provider1. After setting, provider1 is notified, and the content displayed on button1 is updated to "25 degrees Celsius sunny".

[0229] As a fourth aspect of the present disclosure, an electronic device is provided, including:

[0230] one or more processing modules;

[0231] A storage module stores an executable program thereon. When the executable program is executed by the one or more processing modules, the one or more processing modules implement any one of the methods provided according to the above three aspects of the present disclosure.

[0232] As a fifth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, any one of the methods provided according to the above three aspects of the present disclosure is implemented.

[0233] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As is well known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable, and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0234] It is understood that the above embodiments are merely exemplary embodiments for illustrating the principles of the present disclosure, and the present disclosure is not limited thereto. Those skilled in the art may make various modifications and improvements without departing from the spirit and substance of the present disclosure, and such modifications and improvements are also considered to be within the scope of protection of the present disclosure.

Claims

1. A method for generating a configuration data packet of an application, comprising executing an instruction for generating preliminary data N times and generating the configuration data packet according to the generated preliminary data, wherein: N is a positive integer, and N≥1, Each execution of the instructions to generate the prepared data includes: In response to a function adding instruction, determining initial data of a target function corresponding to the function adding instruction; Parameterizing the initial data to obtain preliminary data, wherein, for any function-adding instruction, the preliminary data is selected from one of local preliminary data and cloud preliminary data, the local preliminary data being obtained by parameterizing initial data of a local component capable of realizing a target function corresponding to the function-adding instruction, and the cloud preliminary data being obtained by parameterizing cloud information capable of realizing the target function corresponding to the function-adding instruction; Wherein, when N>1, the application includes a process having A nodes, the A nodes correspond to A target functions respectively, and 1<A<N, the step of generating the configuration data packet according to the generated preliminary data includes: Generate process data using preliminary data that achieves A target functions; generating the configuration data packet using the process data and preliminary data corresponding to target functions of the NA group not included in the process; When N>1, the application includes a process having A nodes, the A nodes correspond to A target functions respectively, and A=N, the step of generating the configuration data packet according to N sets of preliminary data includes: Use A set of preliminary data to achieve A target functions to form process data; generating the configuration data packet using the process data; The steps of generating process data using a group A of preliminary data for achieving A target functions include: In response to an i-th node add instruction, determine an i-th set of preliminary data, process the i-th set of preliminary data to obtain node data of an i-th node, the i-th set of preliminary data including preliminary data corresponding to a target function corresponding to the i-th node add instruction, so that the i-th node can implement the target function corresponding to the i-th node add instruction, where i is a positive integer and i is sequentially ranged from 1 to A-1; In response to an i+1th node add instruction, determining an i+1th set of preliminary data, processing the i+1th set of preliminary data to obtain node data of an i+1th node, wherein the i+1th set of preliminary data includes preliminary data corresponding to a target function corresponding to the i+1th node add instruction and a trigger expression for the i+1th node, and the i+1th node is capable of implementing the target function corresponding to the i+1th node add instruction; Processing the node data of the i-th node using the index information of the node data of the i+1-th node so that the node data of the i-th node carries the index information of the i+1-th group of preliminary data; The process data is generated using the first A-1 groups of prepared data carrying index information and trigger expressions and the Ath group of prepared data not carrying index information.

2. The generation method according to claim 1, wherein: The process includes at least one pair of mutually related nodes, and initial data corresponding to the same pair of mutually related nodes includes initial related data. In the same pair of mutually related nodes, for a node that is later in the process sequence, the step of processing the preliminary data corresponding to the node to obtain the node data of the node includes: Convert the final associated data in the previous node in the process to obtain the associated configuration parameters; The initial association data in the preliminary data of the current node is configured using the association configuration parameters.

3. The generation method according to claim 1, wherein: Each step of generating preliminary data further includes, before the step of determining, in response to the function adding instruction, initial data of the target function corresponding to the function adding instruction: The type icon corresponding to the target function is determined according to the starting position of the second selected instruction on the operation interface, and a function adding instruction corresponding to the type icon is generated, wherein there is a corresponding relationship between the type icon and the initial data.

4. The generation method according to claim 3, wherein: Each step of generating preliminary data further includes the following steps: between the step of determining, in response to the function adding instruction, initial data of the target function corresponding to the function adding instruction, and the step of determining a type icon corresponding to the target function based on the starting position of the second selected instruction on the operation interface, and generating the function adding instruction corresponding to the type icon: Controlling the display panel to display a parameter configuration interface associated with the target function; For any function adding instruction, the step of determining the initial data of the target function corresponding to the function adding instruction includes: The initial data corresponding to the type icon is used as the initial data corresponding to the function adding instruction, wherein the configuration parameters corresponding to the target function can be received through the parameter configuration interface.

5. The generation method according to claim 3, wherein: For at least one function adding instruction, each step of generating preliminary data further includes, before the step of determining a type icon corresponding to the target function based on the starting position of the second selected instruction on the operation interface and generating a function adding instruction corresponding to the type icon: Determine the control icon corresponding to the target function according to the starting position of the first selected instruction on the graphical operation interface; When the position of the first selected instruction on the operation interface ends at a predetermined area, controlling the display panel to display the control icon selected by the first selected instruction in the predetermined area; Binding the received display information to the control icon selected by the first selection instruction, so that the display information is displayed when the control icon is clicked; The generating method further includes determining a type icon corresponding to the target function according to the starting position of the second selected instruction on the operation interface, and generating a function adding instruction corresponding to the type icon, performing the following steps: An association relationship is established between the control icon and the target function.

6. The generation method according to any one of claims 1 to 5, wherein: When the type of the initial data is event type, parameter configuration of the event type initial data includes: Receive event configuration parameters input from the outside, the event configuration parameters including an event name and at least one of the following parameters: an attribute key value of the initial data, an attribute expression of the initial data, trigger mode information, and associated control information; The preliminary data of the initial data of the event type is obtained according to the event configuration parameters.

7. The generation method according to any one of claims 1 to 5, wherein: When the type of the initial data is a cloud interface type, configuring parameters for the cloud interface type initial data includes: Receive at least one of the URL, path, request method information, URL parameters, header parameters, and body parameters input from the outside; When the type of the initial data is a local interface type, configuring parameters for the local interface type initial data includes: Receive local service information input from the outside and calling mode information of the local service, wherein the calling mode information is selected from any one of synchronous calling and asynchronous calling.

8. The generation method according to claim 7, wherein: When the type of the initial data is a cloud interface type or a local interface type, after obtaining the preliminary data, the generating method further includes: The service corresponding to the initial data is tested.

9. The generation method according to any one of claims 1 to 5, wherein: Generate the configuration data packet according to N groups of preliminary data: In response to a function deletion instruction, deleting the prepared data corresponding to the function deletion instruction from the N groups of prepared data; The configuration data packet is generated using the remaining preliminary data.

10. The generation method according to any one of claims 1 to 5, wherein: The generation method further includes, after generating the configuration data packet according to the N groups of preliminary data, performing: In response to the preview instruction, the configuration data packet is parsed and executed.

11. The generation method according to any one of claims 1 to 5, wherein: The generating method further comprises: The configuration data is stored locally.

12. The generation method according to any one of claims 1 to 5, wherein: The generating method further comprises: The configuration data is sent to the server.

13. The generation method according to any one of claims 1 to 5, wherein: The cloud information includes interface information of a cloud component, and configuring parameters of the cloud information includes configuring parameters of the interface information; or The relevant information of the cloud component includes a cloud search data packet, and the generation method further includes performing the following steps before configuring parameters of the initial data: The cloud search data packet is formatted to obtain initial data corresponding to the target function.

14. A method for generating an application file, comprising: Receiving a configuration data packet generated by the generation method according to any one of claims 1 to 13; The configuration data packet is parsed and compiled to generate the application file.

15. A request information processing method, applied to an application file generated by the method according to claim 14, the request information processing method comprising: In response to the received request information, analyzing the request information to determine the preparation data corresponding to the request information, wherein the preparation data is selected from one of local preparation data and cloud preparation data, the local preparation data being obtained by parameter configuration of initial data of a local component capable of realizing a target function corresponding to the function-adding instruction, and the cloud preparation data being obtained by parameter configuration of cloud information capable of realizing the target function corresponding to the function-adding instruction; Parsing the preliminary data to determine the component corresponding to the preliminary data; When the component corresponding to the preparation data includes a local component, running the local component; When the component corresponding to the prepared data includes a cloud component, the return data of the cloud component is obtained through an interface.

16. An electronic device comprising: one or more processing modules; A storage module having an executable program stored thereon, wherein when the executable program is executed by the one or more processing modules, the one or more processing modules implement the method according to any one of claims 1 to 15.

17. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 15 is implemented.

Citation Information

Patent Citations

  • A configuration file generation method and device for an application program

    CN109032620A

  • Online editing method and device based on HTML page, equipment and storage medium

    CN110688600A