A method and terminal for customizing program flow cloud configuration

By modularizing the program and generating cloud function interfaces, the cloud custom configuration of the program flow is realized, which solves the shortcomings of traditional technology in dynamic configuration of program logic and compatibility adjustment, and improves the flexibility and compatibility of the program.

CN119781851APending Publication Date: 2025-04-08FUJIAN TQ ONLINE INTERACTIVE INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411677983.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

Traditional program configuration technology is difficult to provide efficient, flexible and stable solutions when facing complex and changing program operation environments and diverse user needs, especially in terms of dynamic configuration of program logic and compatibility adjustment.

Method used

By modularly dividing the program according to the default execution process, and generating a function interface for each module, it is saved to the cloud. Then, customize the target program flow through the cloud, and select the call order of the function interface to achieve custom configuration.

Benefits of technology

It improves the flexibility and compatibility of program flow configuration, so that programs can adapt to different environments and needs more flexibly, and directly discover problems through configuration, improving problem handling efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119781851A_ABST
    Figure CN119781851A_ABST
Patent Text Reader

Abstract

The present invention discloses a method and terminal for customizing program flow cloud configuration, which divides the program into modules according to the program default execution flow, generates a function interface for each module and saves it to the cloud; customizes the target program flow through the cloud, and calls the corresponding function interface in sequence based on the custom configured target program flow to execute the target program flow, thereby realizing custom configuration of the program execution flow through the cloud, improving the flexibility and compatibility of the program flow configuration, facilitating the fine-tuning of the program, and achieving autonomous control, which is conducive to directly discovering problems through configuration and improving the efficiency of problem handling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and a terminal for customizing program flow cloud configuration. Background Art

[0002] In today's technological environment, the development of technology in program configuration and execution logic faces many challenges, and the traditional program execution process has obvious limitations. In the traditional programming environment, the program is compiled according to the pre-set logic, such as the logic layer, exception layer, execution layer, etc., which are fixed after the compilation is completed. Once the logic needs to be modified, the project must be opened again and recompiled, which is a cumbersome and time-consuming process. For example, during the software development process, if it is found that the program logic has defects or needs to be adjusted according to new requirements, developers need to spend a lot of time to re-sort the code and compile it, which seriously affects the development efficiency.

[0003] At the same time, the traditional compiled code lacks flexibility. When an error occurs in the code, it can only be used after recompiling, and the program execution logic cannot be dynamically configured. In addition, each computer has compatibility requirements due to differences in hardware and systems, and parameters need to be fine-tuned for specific computers, but traditional methods are difficult to meet this dynamic compatibility adjustment needs.

[0004] Although cloud configuration technology already exists, it is currently mainly used in private cloud hosts (such as personalized computer hosts, personalized virtual machine phones, etc.), and its application in dynamic configuration of program logic is still insufficient. Existing technical solutions are difficult to provide efficient, flexible and stable solutions when dealing with complex and changing program running environments and diverse user needs. There is an urgent need for a program configuration technology that can overcome these shortcomings. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a method and a terminal for customizing program flow cloud configuration, realize flexible program configuration logic, and improve program compatibility.

[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is: A method for customizing configuration of a program flow in the cloud, comprising the steps of: S1. Divide the program into modules according to the default execution process of the program, generate a function interface for each module and save it to the cloud; S2. Customize the target program flow through the cloud, and call corresponding function interfaces in sequence based on the custom configured target program flow to execute the target program flow.

[0007] In order to solve the above technical problems, another technical solution adopted by the present invention is: A terminal for customizing the configuration of a program flow in the cloud comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: S1. Divide the program into modules according to the default execution process of the program, generate a function interface for each module and save it to the cloud; S2. Customize the target program flow through the cloud, and call corresponding function interfaces in sequence based on the custom configured target program flow to execute the target program flow.

[0008] The beneficial effects of the present invention are as follows: a method and terminal for customizing program flow cloud configuration of the present invention modularizes the program according to the program default execution process and generates interface functions, which are exported as function interfaces to the cloud for storage, and the calling sequence of the function interfaces is selected through the cloud, thereby realizing custom configuration of the program execution process, improving the flexibility and compatibility of the program flow configuration, facilitating the direct discovery of problems through configuration, and improving the efficiency of problem handling. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 A flowchart of a method for customizing program flow cloud configuration according to an embodiment of the present invention; Figure 2 A schematic diagram of a program interface of a method for customizing program flow cloud configuration according to an embodiment of the present invention; Figure 3 A schematic diagram of cloud configuration of a method for customizing cloud configuration of a program flow according to an embodiment of the present invention; Figure 4 A structural diagram of a terminal for customizing the configuration of a program flow cloud according to an embodiment of the present invention; Description of labels: 1. A terminal with custom configuration in the cloud for program flow; 2. Processor; 3. Memory. DETAILED DESCRIPTION

[0010] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.

[0011] Please refer to Figures 1 to 3 The present invention provides a method for customizing the configuration of a program flow in the cloud, comprising the steps of: S1. Divide the program into modules according to the default execution process of the program, generate a function interface for each module and save it to the cloud; S2. Customize the target program flow through the cloud, and call corresponding function interfaces in sequence based on the custom configured target program flow to execute the target program flow.

[0012] From the above description, it can be seen that the beneficial effects of the present invention are: a method and terminal for customizing program flow in the cloud of the present invention, modularizes the program according to the default execution flow of the program and generates interface functions, which are exported as function interfaces to the cloud for storage, and the calling order of the function interfaces is selected by the cloud, thereby realizing custom configuration of the program execution flow, improving the flexibility and compatibility of the program flow configuration, facilitating the direct discovery of problems through configuration, and improving the efficiency of problem handling.

[0013] Further, step S1 includes the steps of: S11, dividing the program into multiple functional modules based on the default execution process of the program and the overall function of the program, and generating an interface function for each module; S12, obtaining the member function of the interface function; S13, taking the interface function as a node and the member function as a child node, storing the interface function in a binary tree format, and exporting it as a function interface to the cloud for storage; Step S2 is specifically as follows: The target program flow is customized through the cloud, and before the program is executed, the function interface corresponding to each flow is sequentially obtained according to the target program flow, the interface function corresponding to the function interface is further obtained, and the sub-nodes of the interface function are traversed to obtain the member functions required by each flow; The member functions corresponding to each process are summarized, and are executed in sequence according to the target program process based on the calling rules and communication protocols corresponding to the member functions.

[0014] From the above description, it can be seen that the functional modules are first divided based on the default execution process and overall functions of the program and the interface functions are generated. The member functions of the interface functions are obtained, and the interface functions are stored in the form of a binary tree and exported to the cloud. Then, the target program process can be customized through the cloud, and the function interface, interface function and its member functions are obtained according to this process before the program is executed. After being summarized, they are executed in sequence according to the process, which is conducive to improving the maintainability and readability of the code, facilitating function management and query, improving program flexibility, realizing rapid adaptation of business processes, optimizing execution processes and improving overall execution efficiency.

[0015] Further, step S13 includes: The interface function is stored in a binary tree format and exported as a function interface to the cloud for storage, wherein the interface function is a root node, the member function is a child node of the interface function, the calling rule corresponding to the member function is a child node of the interface function, and the communication protocol corresponding to the calling rule is a child node of the calling rule.

[0016] From the above description, it can be seen that the interface functions, member functions, calling rules and communication protocols are stored in the form of a binary tree. When used, you can quickly start from the root node (interface function) and find the information related to the member functions, calling rules and communication protocols along the hierarchy, which is convenient for classifying and managing and finding different elements of the program; when you need to add a new member function, calling rule or communication protocol, you can easily add it under the corresponding node, which is conducive to easily coping with the increase and change of functions and reducing the complexity of expansion.

[0017] Furthermore, the calling rules include calling and referencing rules of the member functions and rules corresponding to intervention, filtering and transfer functions of the member functions.

[0018] From the above description, it can be seen that by stipulating the calling and referencing rules of member functions, the calling relationship between various functions during the execution of the program is clear and unambiguous. According to different business scenarios, the calling order and conditions of certain member functions are clearly specified to ensure that data is processed according to the correct process to avoid logical confusion and erroneous execution results. At the same time, by adjusting the calling and referencing rules of member functions, the corresponding processing flow can be quickly combined to improve the functional diversity and adaptability of the software.

[0019] Furthermore, after step S1, the following steps are further included: A unique identifier for the function interface is generated by a hash algorithm.

[0020] From the above description, it can be seen that in a complex program system, many function interfaces may have similar names or similar functions. The unique identifier generated by the hash algorithm can accurately identify and distinguish each interface, ensuring that there will be no confusion during data interaction and calling, thereby ensuring the accuracy of the data; when it is necessary to find a specific function interface, searching based on the unique identifier generated by its hash can achieve rapid positioning.

[0021] Please refer to Figure 4 The present invention also provides a terminal for customizing the configuration of a program flow in the cloud, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: S1. Divide the program into modules according to the default execution process of the program, generate a function interface for each module and save it to the cloud; S2. Customize the target program flow through the cloud, and call corresponding function interfaces in sequence based on the custom configured target program flow to execute the target program flow.

[0022] From the above description, it can be seen that the beneficial effects of the present invention are: a method and terminal for customizing program flow in the cloud of the present invention, modularizes the program according to the default execution flow of the program and generates interface functions, which are exported as function interfaces to the cloud for storage, and the calling order of the function interfaces is selected by the cloud, thereby realizing custom configuration of the program execution flow, improving the flexibility and compatibility of the program flow configuration, facilitating the direct discovery of problems through configuration, and improving the efficiency of problem handling.

[0023] Further, step S1 includes the steps of: S11, dividing the program into multiple functional modules based on the default execution process of the program and the overall function of the program, and generating an interface function for each module; S12, obtaining the member function of the interface function; S13, taking the interface function as a node and the member function as a child node, storing the interface function in a binary tree format, and exporting it as a function interface to the cloud for storage; Step S2 is specifically as follows: The target program flow is customized through the cloud, and before the program is executed, the function interface corresponding to each flow is sequentially obtained according to the target program flow, the interface function corresponding to the function interface is further obtained, and the sub-nodes of the interface function are traversed to obtain the member functions required by each flow; The member functions corresponding to each process are summarized, and are executed in sequence according to the target program process based on the calling rules and communication protocols corresponding to the member functions.

[0024] From the above description, it can be seen that the functional modules are first divided based on the default execution process and overall functions of the program and the interface functions are generated. The member functions of the interface functions are obtained, and the interface functions are stored in the form of a binary tree and exported to the cloud. Then, the target program process can be customized through the cloud, and the function interface, interface function and its member functions are obtained according to this process before the program is executed. After being summarized, they are executed in sequence according to the process, which is conducive to improving the maintainability and readability of the code, facilitating function management and query, improving program flexibility, realizing rapid adaptation of business processes, optimizing execution processes and improving overall execution efficiency.

[0025] Further, step S13 includes: The interface function is stored in a binary tree format and exported as a function interface to the cloud for storage, wherein the interface function is a root node, the member function is a child node of the interface function, the calling rule corresponding to the member function is a child node of the interface function, and the communication protocol corresponding to the calling rule is a child node of the calling rule.

[0026] From the above description, it can be seen that the interface functions, member functions, calling rules and communication protocols are stored in the form of a binary tree. When used, you can quickly start from the root node (interface function) and find the information related to the member functions, calling rules and communication protocols along the hierarchy, which is convenient for classifying and managing and finding different elements of the program; when you need to add a new member function, calling rule or communication protocol, you can easily add it under the corresponding node, which is conducive to easily coping with the increase and change of functions and reducing the complexity of expansion.

[0027] Furthermore, the calling rules include calling and referencing rules of the member functions and rules corresponding to intervention, filtering and transfer functions of the member functions.

[0028] From the above description, it can be seen that by stipulating the calling and referencing rules of member functions, the calling relationship between various functions during the execution of the program is clear and unambiguous. According to different business scenarios, the calling order and conditions of certain member functions are clearly specified to ensure that data is processed according to the correct process to avoid logical confusion and erroneous execution results. At the same time, by adjusting the calling and referencing rules of member functions, the corresponding processing flow can be quickly combined to improve the functional diversity and adaptability of the software.

[0029] Furthermore, after step S1, the following steps are further included: A unique identifier for the function interface is generated by a hash algorithm.

[0030] From the above description, it can be seen that in a complex program system, many function interfaces may have similar names or similar functions. The unique identifier generated by the hash algorithm can accurately identify and distinguish each interface, ensuring that there will be no confusion during data interaction and calling, thereby ensuring the accuracy of the data; when it is necessary to find a specific function interface, searching based on the unique identifier generated by its hash can achieve rapid positioning.

[0031] A method and terminal for customizing program flow cloud configuration of the present invention are suitable for customizing target program flow.

[0032] Please refer to Figures 1 to 3 , Embodiment 1 of the present invention is: A method for customizing configuration of a program flow in the cloud, comprising the steps of: S1. Divide the program into modules according to the default execution process of the program, generate a function interface for each module and save it to the cloud.

[0033] Step S1 includes the steps of: S11, dividing the program into multiple functional modules based on the default execution process of the program and the overall function of the program, and generating an interface function for each module; S12, obtaining the member function of the interface function; S13, taking the interface function as a node and the member function as a child node, storing the interface function in a binary tree format, and exporting it as a function interface to the cloud for storage.

[0034] In this embodiment, the binary tree structure corresponding to the program branch generation must be the same as the binary tree structure generated by the program body, ensuring that the cloud and program logic execution are consistent. Among them, the binary tree generated by the program body is a binary tree derived from the "function" interface, which is equivalent to instantiating an interface with a definition; the program branch binary tree is a binary tree composed of program execution logic, which is equivalent to removing the child nodes in the node of the binary tree of the body to form a process.

[0035] In this embodiment, the interface function to be generated is first generated, for example, the interface function CALLTEST, which is composed of CALLTEST1 and CALLTEST2. CALLTEST is called the interface function, and CALLTEST1 and CALLTEST2 are its member functions; secondly, the interface list is obtained, that is, the member list composed of the interface function is obtained, which includes CALLTEST1 and CALLTEST2; then the function interface is exported, that is, a binary tree structure is generated, such as CALLTEST as the root node, CALLTEST1-01 and CALLTEST2-02 are two child nodes of CALLTEST respectively, which are stored as binary tree nodes, including the original execution order of the member functions; finally, the function interface is exported and verified, and the data generated after completing the above steps is the interface data.

[0036] Specifically, the interface function is stored in the form of a binary tree and exported as a function interface to the cloud for storage, wherein the interface function is a root node, the member function is a child node of the interface function, the calling rule corresponding to the member function is a child node of the interface function, and the communication protocol corresponding to the calling rule is a child node of the calling rule.

[0037] In this embodiment, when the interface function and its member functions are stored in binary tree information, the calling rules of the member functions and their corresponding communication protocols are stored at the same time. For example, node A includes two child nodes, namely A1 and A2. The child node of A1 includes the calling rule A1 of the member function A1. 11 , A 11 The child nodes include the call rule A 11 Required communication protocol A 111 , the child nodes of A2 include the calling rule A of member function A2 21 , A 21 The child nodes include the call rule A 21 Required communication protocol A 211 .

[0038] The calling rules include the calling and referencing rules of the member functions and the rules corresponding to the intervention, filtering and transfer functions of the member functions.

[0039] After step S1, the method further includes: A unique identifier for the function interface is generated by a hash algorithm.

[0040] In this embodiment, a unique identifier of the interface is generated by a hash algorithm to replace the traditional file naming, which is unique and will not be repeated.

[0041] S2. Customize the target program flow through the cloud, and call corresponding function interfaces in sequence based on the custom configured target program flow to execute the target program flow.

[0042] Step S2 is specifically as follows: The target program flow is customized through the cloud, and before the program is executed, the function interface corresponding to each flow is sequentially obtained according to the target program flow, the interface function corresponding to the function interface is further obtained, and the sub-nodes of the interface function are traversed to obtain the member functions required by each flow; The member functions corresponding to each process are summarized, and are executed in sequence according to the target program process based on the calling rules and communication protocols corresponding to the member functions.

[0043] In this embodiment, the normal program flow has been fixed during compilation, such as process A (data filtering) - process B (data processing) - process C (data aggregation), that is, process A is executed first for data filtering, then process B is processed for data processing, and finally process C is aggregated. After customizing the program flow based on the function interface through the cloud, other program flow sequences such as process B-process A-process C can be realized, that is, data processing first, then data filtering, and finally data aggregation, which is no longer limited to the fixed program flow after program compilation.

[0044] Please refer to Figure 4 , Embodiment 2 of the present invention is: A terminal 1 for customizing program flow cloud configuration includes a processor 2, a memory 3, and a computer program stored in the memory 3 and executable on the processor 2. When the processor 2 executes the computer program, the steps of a method for customizing program flow cloud configuration in embodiment 1 are implemented.

[0045] In summary, the present invention provides a method and terminal for customizing program flow in the cloud, which divides the program into modules according to the default execution flow of the program and generates interface functions, which are exported as function interfaces and saved in the cloud. By selecting the calling order of the function interfaces in the cloud, the custom configuration program execution flow is realized, the flexibility and compatibility of the program flow configuration are improved, and it is conducive to directly discovering problems through configuration and improving the efficiency of problem handling.

[0046] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for customizing the configuration of a program flow in the cloud, characterized in that: Includes steps: S1. Divide the program into modules according to the default execution process of the program, generate a function interface for each module and save it to the cloud; S2. Customize the target program flow through the cloud, and call corresponding function interfaces in sequence based on the custom configured target program flow to execute the target program flow.

2. A method for customizing program flow cloud configuration according to claim 1, characterized in that: Step S1 includes the steps of: S11, dividing the program into multiple functional modules based on the default execution process of the program and the overall function of the program, and generating an interface function for each module; S12, obtaining the member function of the interface function; S13, taking the interface function as a node and the member function as a child node, storing the interface function in a binary tree format, and exporting it as a function interface to the cloud for storage; Step S2 is specifically as follows: The target program flow is customized through the cloud, and before the program is executed, the function interface corresponding to each flow is sequentially obtained according to the target program flow, the interface function corresponding to the function interface is further obtained, and the sub-nodes of the interface function are traversed to obtain the member functions required by each flow; The member functions corresponding to each process are summarized, and are executed in sequence according to the target program process based on the calling rules and communication protocols corresponding to the member functions.

3. A method for customizing program flow cloud configuration according to claim 2, characterized in that: Step S13 includes: The interface function is stored in a binary tree format and exported as a function interface to the cloud for storage, wherein the interface function is a root node, the member function is a child node of the interface function, the calling rule corresponding to the member function is a child node of the interface function, and the communication protocol corresponding to the calling rule is a child node of the calling rule.

4. The method for customizing program flow cloud configuration according to claim 3, characterized in that: The calling rules include calling and referencing rules of the member function and rules corresponding to the intervention, filtering and transfer functions of the member function.

5. The method for customizing program flow cloud configuration according to claim 1, characterized in that: After step S1, the method further includes: A unique identifier for the function interface is generated by a hash algorithm.

6. A terminal for customizing program flow cloud configuration, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the following steps are implemented: S1. Divide the program into modules according to the default execution process of the program, generate a function interface for each module and save it to the cloud; S2. Customize the target program flow through the cloud, and call corresponding function interfaces in sequence based on the custom configured target program flow to execute the target program flow.

7. A terminal for customizing program flow cloud configuration according to claim 6, characterized in that: Step S1 includes the steps of: S11, dividing the program into multiple functional modules based on the default execution process of the program and the overall function of the program, and generating an interface function for each module; S12, obtaining the member function of the interface function; S13, taking the interface function as a node and the member function as a child node, storing the interface function in a binary tree format, and exporting it as a function interface to the cloud for storage; Step S2 is specifically as follows: The target program flow is customized through the cloud, and before the program is executed, the function interface corresponding to each flow is sequentially obtained according to the target program flow, the interface function corresponding to the function interface is further obtained, and the sub-nodes of the interface function are traversed to obtain the member functions required by each flow; The member functions corresponding to each process are summarized, and are executed in sequence according to the target program process based on the calling rules and communication protocols corresponding to the member functions.

8. A terminal for customizing program flow cloud configuration according to claim 7, characterized in that: Step S13 includes: The interface function is stored in a binary tree format and exported as a function interface to the cloud for storage, wherein the interface function is a root node, the member function is a child node of the interface function, the calling rule corresponding to the member function is a child node of the interface function, and the communication protocol corresponding to the calling rule is a child node of the calling rule.

9. A terminal for customizing program flow cloud configuration according to claim 8, characterized in that: The calling rules include calling and referencing rules of the member function and rules corresponding to the intervention, filtering and transfer functions of the member function.

10. A terminal for customizing program flow cloud configuration according to claim 6, characterized in that: After step S1, the method further includes: A unique identifier for the function interface is generated by a hash algorithm.