A method and device for constructing and running, a computer device and a storage medium

By combining a component library with a visual orchestration canvas, users can build business process diagrams by dragging and dropping and connecting lines, configure node parameters and dialogue templates, solve the code dependency problem in existing technologies, decouple logic and dialogue, and improve the automation of application building and running and the scalability of the system.

CN122240493APending Publication Date: 2026-06-19BEIJING LONGJU YIXING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-03-23
Publication Date
2026-06-19

AI Technical Summary

Technical Problem

In existing technologies, the application building and running process relies on code implementation, making it difficult for business-related personnel to directly participate in process configuration and optimization. Requirement changes need to be passed through the development stage, and the logic is scattered in the code and lacks intuitive expression. Adjustments require redevelopment and redeployment, affecting iteration efficiency and optimization results.

Method used

This provides a method for building and running applications. Through a test environment that combines a component library with a visual orchestration canvas, users can build business process diagrams by dragging and connecting lines, configure node parameters and dialogue templates, establish mapping relationships, decouple logic from dialogue, and automatically schedule node execution and generate output results during the runtime phase.

Benefits of technology

It improves the intuitiveness and flexibility of process construction, enhances the decoupling between logical processing and speech output, improves the automation and execution efficiency of application construction and operation, and enhances the scalability and maintainability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122240493A_ABST
    Figure CN122240493A_ABST
Patent Text Reader

Abstract

This application discloses an application building and running method, apparatus, computer device, and storage medium. The method includes: loading a test environment, which includes at least a component library and a visual orchestration canvas; constructing a business process diagram based on the placement and connection relationships of multiple functional nodes in the component library on the visual orchestration canvas; obtaining the node parameters and dialogue templates corresponding to each functional node, parsing variable placeholders, and establishing mapping relationships; triggering a running instruction, parsing the connection relationships and data dependencies between functional nodes in the business process diagram, executing each functional node, and generating node output data based on the node parameters of each functional node; determining the correspondence between the data fields in the node output data and the variable placeholders in the dialogue template according to the mapping relationship, and filling the corresponding variable placeholders with the node output data to generate the output result. This method can simplify the development process and improve the participation of business personnel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of software development technology, and in particular to an application building and running method, apparatus, computer equipment, and storage medium. Background Technology

[0002] Currently, cloud service platforms offer interfaces for various artificial intelligence capabilities, including speech recognition, natural language processing, and text-to-speech. In practical application development, these different capabilities need to be combined and data flow and processing completed according to predetermined logic to achieve functions such as intelligent customer service, virtual digital humans, or shopping guides. Existing implementations typically rely on developers writing code to complete interface calls, process orchestration, and logic control.

[0003] In this process, application construction and adjustments rely entirely on code implementation, making it difficult for business stakeholders to directly participate in process configuration and optimization. Requirement changes must be communicated and implemented through the development phase, resulting in a lengthy process. Application processes and logic are scattered throughout the code, lacking an intuitive form of expression; understanding and modification depend entirely on code analysis. Verification of dialogue flows or decision-making logic typically requires constructing test data and investigating logs, a process that is not very intuitive. Furthermore, the dialogue and strategy content are coupled with the code, requiring redevelopment and redeployment for adjustments, impacting application iteration efficiency and optimization effectiveness. Summary of the Invention

[0004] This application provides an application building and running method, apparatus, computer equipment, and storage medium that can simplify the development process and increase the participation of business personnel.

[0005] On the one hand, this application provides a method for building and running an application, including: Load the test environment, which includes at least: a component library and a visual orchestration canvas; Based on the placement and connection relationships of multiple functional nodes in the component library on the visual orchestration canvas, a business process diagram is constructed. Obtain the node parameters and dialogue templates corresponding to each functional node, parse the variable placeholders in the dialogue templates, and establish a mapping relationship between node parameters and variable placeholders; In response to the trigger execution command, the connection relationship and data dependency relationship between each functional node in the business process diagram are parsed, and each functional node is executed according to the connection relationship and data dependency relationship, and node output data is generated according to the node parameters of each functional node. Based on the mapping relationship, determine the correspondence between the data fields in the node output data and the variable placeholders in the dialogue template, and fill the corresponding variable placeholders in the dialogue template with the node output data to generate the output result.

[0006] On the other hand, this application provides an application building and running apparatus, the apparatus comprising: The environment loading module is used to load the test environment, which includes at least: a component library and a visual orchestration canvas; The flowchart building module is used to build business process diagrams based on the placement and connection relationships of multiple functional nodes in the component library on the visual orchestration canvas. The node configuration module is used to obtain the node parameters and dialogue templates corresponding to each functional node, parse the variable placeholders in the dialogue templates, and establish the mapping relationship between node parameters and variable placeholders. The execution module is used to respond to the triggered execution command, parse the connection relationship and data dependency relationship between each functional node in the business process diagram, execute each functional node according to the connection relationship and data dependency relationship, and generate node output data according to the node parameters of each functional node. The output module is used to determine the correspondence between the data fields in the node output data and the variable placeholders in the dialogue template according to the mapping relationship, and to fill the corresponding variable placeholders in the dialogue template with the node output data to generate the output result.

[0007] In another aspect, this application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the application construction and running method described in the first aspect.

[0008] In another aspect, this application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the application construction and running method described in the first aspect.

[0009] This application implements an application building and running method apparatus, computer equipment, and storage medium. This method provides a testing environment combining a component library and a visual orchestration canvas, enabling users to build business process diagrams through drag-and-drop and connection methods. This achieves visual orchestration of application logic, reduces reliance on code development, and improves the intuitiveness and flexibility of process building. By configuring node parameters and dialogue templates for functional nodes and establishing a mapping relationship between node parameters and variable placeholders, business data and displayed content are separated, decoupling logic processing from dialogue output, facilitating subsequent adjustments and maintenance. During the running phase, the execution of each functional node is automatically scheduled according to the business process diagram, and the output data of the functional nodes is filled into the corresponding variable placeholders according to the mapping relationship, automatically generating structured output results. This improves the automation level and execution efficiency of application building and running, and enhances the scalability and maintainability of the system. Attached Figure Description

[0010] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0011] Figure 1 This is a flowchart illustrating the application of the build and run method in one embodiment.

[0012] Figure 2 This is a structural diagram of the construction and running method applied in one embodiment.

[0013] Figure 3 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0014] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0015] In one embodiment, such as Figure 1 As shown, an application building and running method is provided, including: S100: Load the test environment, which includes at least: a component library and a visual orchestration canvas; S200: Construct a business process diagram based on the placement and connection relationships of multiple functional nodes in the component library on the visual orchestration canvas; S300: Obtain the node parameters and dialogue templates corresponding to each functional node, parse the variable placeholders in the dialogue templates, and establish the mapping relationship between node parameters and variable placeholders; S400: In response to the trigger run command, it parses the connection relationship and data dependency relationship between each functional node in the business process diagram, executes each functional node according to the connection relationship and data dependency relationship, and generates node output data according to the node parameters of each functional node; S500: Based on the mapping relationship, determine the correspondence between the data fields in the node output data and the variable placeholders in the dialogue template, and fill the corresponding variable placeholders in the dialogue template with the node output data to generate the output result.

[0016] Among them, the component library refers to a pre-encapsulated and reusable collection of functional nodes used to provide different types of business processing capabilities; the visual orchestration canvas refers to a graphical interface area used to display and edit business process diagrams; the business process diagram refers to a structured flowchart composed of functional nodes and the connections between them, used to represent business execution logic and data flow paths; node parameters refer to configuration data used to define the operating rules, input content, or processing conditions of functional nodes; the dialogue template refers to an output text structure containing fixed text content and variable placeholders; and the variable placeholders refer to the identifier fields in the dialogue template used to receive and replace actual data.

[0017] Specifically, by loading a test environment containing a component library and a visual orchestration canvas, users can complete the process setup preparation within a unified interface, providing a foundational environment for subsequent building and verification. Users drag and drop multiple functional nodes from the component library onto the visual orchestration canvas and connect them to form a business process diagram. This graphically clarifies the execution order and data flow relationships between functional nodes, presenting the logical structure in an intuitive way, thereby lowering the application building threshold and improving process understanding efficiency. After the process structure is determined, node parameters and dialogue templates are configured for each functional node, and variable placeholders are set in the dialogue templates. A mapping relationship between node parameters and variable placeholders is established, separating business processing logic from output content. This allows data rule adjustments to be made without modifying the process structure, enhancing system flexibility and maintainability. When a run command is triggered, the system automatically schedules the execution of each functional node according to the business process diagram. Combining node parameters and the established mapping relationship, the system determines the correspondence between output data and variable placeholders, automatically filling the output data into the corresponding positions in the dialogue template to generate the output results. The above process achieves a complete closed loop from visual orchestration and parameter configuration to automatic operation and result generation, improving execution efficiency and enhancing the visualization of the application building process.

[0018] In one embodiment, the test environment further includes a test panel, and the method further includes: In response to receiving test input from the test panel and triggering the run command, the business process diagram is invoked based on the test input, and each functional node is scheduled to be executed sequentially according to the execution order; In response to the business process diagram being in an execution state, the status of the currently executing functional nodes on the visual orchestration canvas is marked, and the execution progress of the business process diagram is updated. The test panel displays the input data and output results of each functional node; Based on the output, adjust the script template or node parameters, and re-execute the business process diagram based on the adjusted script template or node parameters to generate updated output.

[0019] Among them, the test panel refers to the interactive interface used in the test environment to input test data, trigger execution, and display execution results; test input refers to the data content entered by the user in the test panel to simulate real business scenarios; status identifier refers to the visual marker used to distinguish the current execution status of functional nodes; execution progress refers to the progress of completed nodes and pending nodes in the business process diagram during the operation.

[0020] Specifically, by introducing a test panel into the testing environment, process construction and verification are completed within the same environment. After the user inputs test inputs and triggers the run command in the test panel, the system calls the pre-built business process diagram based on the test inputs and schedules execution sequentially according to the connection relationships between each functional node, thereby simulating the operation of the complete business logic. During execution, the visual orchestration canvas identifies the status of the functional nodes currently in execution and updates the execution progress of the business process diagram synchronously, presenting the process trajectory dynamically and facilitating intuitive understanding of the node execution order and running status. Simultaneously, the test panel displays the input data and output results of each functional node in a structured format in real time, making the data flow path and processing results clearly visible and reducing the difficulty of problem localization. Users can adjust the dialogue templates or node parameters based on the output results and re-execute the business process diagram based on the adjusted configuration to quickly generate updated output results, thus forming a closed-loop optimization process of construction, testing, adjustment, and re-verification. Through the above mechanism, the process operation can be visualized and monitored, and the data results can be fed back in real time, improving debugging efficiency and modification response speed, reducing the cost of repeated deployment or code investigation, and enhancing the flexibility and controllability of the application building process.

[0021] In one embodiment, in response to the business process diagram being in an execution state, the status of the currently executing functional node on the visual orchestration canvas is marked, including: Dynamically highlight the functional nodes that are currently in the execution state, and display dynamic flow indicators that are consistent with the data transmission direction on the connection lines between the functional nodes and their downstream functional nodes.

[0022] Among them, dynamic highlighting refers to the display method of visually enhancing nodes in real time through color changes, border flashing, or brightness enhancement during the execution of functional nodes; downstream functional nodes refer to nodes located after the current functional node in the business process diagram, which are used to receive the output data of the current functional node; connecting lines refer to the lines used to represent the data flow relationship between functional nodes; dynamic flow indicators refer to the data flow effect presented in animation along the direction of the connecting lines, used to indicate the data transmission path and direction.

[0023] Specifically, when the business process diagram is executed, the system dynamically highlights the functional nodes currently in execution on the visual orchestration canvas, allowing users to quickly identify the currently running processing unit among numerous nodes. Simultaneously, dynamic flow indicators consistent with the data transmission direction are displayed on the connection lines between this functional node and its downstream functional nodes, presenting the data flow path in an animated manner. This combination of node highlighting and dynamic flow indicators on connection lines presents the execution path and data flow of the business process in an intuitive and continuous manner, allowing users to observe the execution sequence and data transmission direction in real time without relying on logs or code. During this process, the synchronous display of process status changes and data flow not only enhances the visualization of the operation process but also enables rapid location of problematic nodes and paths when execution anomalies or data blockages occur, thereby improving debugging efficiency and the accuracy of problem identification, further enhancing the controllability and transparency of the application construction and operation process.

[0024] In one embodiment, the method further includes: In response to any exception occurring during the execution of a functional node, the exception status of the functional node is marked on the visualization orchestration canvas, and the corresponding error information is displayed in the test panel.

[0025] Among them, "abnormality" refers to unexpected states such as runtime errors, data verification failures, or logical processing anomalies that occur during the execution of a functional node; "abnormality status identifier" refers to the visual marking method used to distinguish abnormal nodes in the visualization interface; and "error message" refers to the prompt content used to describe the cause, type, or location of the abnormality.

[0026] Specifically, when any functional node encounters an exception during the execution of the business process flowchart, the system captures the exception status in real time and marks the corresponding functional node with the exception status on the visual orchestration canvas, enabling the exception node to be quickly identified in the overall process. Simultaneously, the error information corresponding to the functional node is displayed in the test panel, presenting the cause of the exception, its location, and related prompts in a structured format. By visually marking exceptions in the flowchart and combining this with the error information display in the test panel, the system achieves simultaneous output of exception location and cause explanation. This allows users to understand the specific error content while viewing the process structure, avoiding repeated switching between different interfaces and improving troubleshooting efficiency.

[0027] In one embodiment, the method further includes: In response to the start of execution of the business process diagram, based on the connection relationships and data dependencies between the functional nodes in the business process diagram, a set of functional nodes that can be executed in parallel is determined from the currently pending functional nodes, wherein there are no data dependencies between the functional nodes in the set of functional nodes that can be executed in parallel. Each functional node in the set of functional nodes that can be executed in parallel is scheduled to be executed in parallel by different processes. After the set of parallel executable functional nodes has been completed, the output data of each functional node is obtained, and the output data is used as the input data of subsequent functional nodes to continue scheduling and executing the business process diagram according to the connection relationship between each functional node in the business process diagram.

[0028] Among them, data dependency refers to the data association relationship in the business process diagram where the execution result of one functional node serves as a prerequisite for the execution of another functional node; the set of functional nodes that can be executed in parallel refers to the set of multiple functional nodes that do not have mutual data dependencies in the current execution stage and can be executed simultaneously; process refers to the processing resources used to carry out the running tasks of functional nodes, including threads or independent computing instances; and functional nodes to be executed refer to functional nodes that meet the prerequisites in the current process stage but have not yet been scheduled for execution.

[0029] Specifically, when responding to a runtime command to schedule the execution of a business process diagram, the system first analyzes the functional nodes to be executed based on the connection relationships and data dependencies between each functional node. It then filters out functional nodes without mutual data dependencies, forming a set of functional nodes that can be executed in parallel. By determining the data dependencies between nodes, the system ensures that parallel execution will not cause data conflicts or incorrect execution order, thus guaranteeing the correctness of the process from a logical perspective. After determining the set of functional nodes that can be executed in parallel, each functional node in the set is scheduled to different execution units for parallel execution, allowing multiple independent tasks to be processed simultaneously. This shortens the overall process execution time and improves resource utilization efficiency. After all functional nodes in the set have completed execution, the system aggregates the output data of each functional node and, based on the connection relationships in the business process diagram, passes the output data to subsequent functional nodes as input data to continue scheduling the execution of subsequent processes. Through this scheduling mechanism, parallel processing is achieved while ensuring the accuracy of data dependencies.

[0030] In one embodiment, the method further includes: For at least one target function node in the business process diagram, set at least two versions, each version corresponding to a version identifier and corresponding node parameters or script template; In response to the execution of the business process diagram and the execution of the target functional node, determine the target version from at least two versions based on the allocation information in the test input; The target function node is executed based on the node parameters or dialogue template corresponding to the target version. The execution of the target function node is based on the connection relationship between each function node in the business process diagram and the scheduling of the set of function nodes that can be executed in parallel. Establish and record the association between the version identifier of the target version and the output data of the target functional node.

[0031] Among them, the target functional node refers to the functional node in the business process diagram that is set to support multiple version configurations; the version refers to the independent configuration instance of the same functional node under different business strategies, parameter rules or dialogue content; the version identifier refers to the unique marking information used to distinguish different versions; and the allocation information refers to the control field carried in the test input to indicate which version to select for execution.

[0032] Specifically, at least two versions are pre-configured for at least one target functional node in the business process diagram. Each version corresponds to an independent version identifier and corresponding node parameters or dialogue templates, enabling the same functional node to run under different configuration strategies. When the business process diagram is executed by the execution command and the target functional node is reached, the system determines the target version from the pre-configured versions based on the allocation information carried in the test input. The allocation information may include version number, strategy label, or experiment group identifier, used to clarify the configuration version used for the current execution. After determining the target version, the system executes the target functional node according to the node parameters or dialogue template corresponding to that version. The execution process is scheduled in conjunction with the connection relationships between functional nodes in the business process diagram, and when there is a set of functional nodes that can be executed in parallel, it is executed according to the established parallel scheduling mechanism to ensure that the multi-version mechanism is consistent with the overall process scheduling logic and does not affect the correctness of the process structure and the parallel execution strategy. After the target functional node is executed, the version identifier of the target version is associated with the output data of that node and recorded to form a traceable mapping relationship between the version and the result.

[0033] In one embodiment, based on the mapping relationship, the correspondence between data fields in the node output data and variable placeholders in the script template is determined, and the node output data is filled into the corresponding variable placeholders in the script template to generate the output result, including: Based on the mapping relationship, identify the variable placeholders to be filled from the speech template; Iterate through the data fields in the node output data, and associate and bind any data field with a variable placeholder according to the mapping relationship; Replace the value of any data field that has been associated and bound with the text with the value of the variable placeholder that is bound to it in the text template. The variable placeholders in the response template are all replaced, and the output result is obtained.

[0034] Among them, data fields refer to specific, independently identifiable and processable information units in the node output data, such as numerical values, strings, or object attributes, used to carry the result information after the functional node is executed; association binding refers to establishing a one-to-one or one-to-many correspondence between data fields and variable placeholders to ensure that data is accurately mapped to specific positions in the template.

[0035] Specifically, after accurately identifying all variable placeholders to be filled from the script template based on the mapping relationship, the system automatically traverses each data field in the node output data and strictly binds each data field to the corresponding variable placeholder in a one-to-one or one-to-many manner according to the pre-established mapping relationship. Then, the specific values ​​of the bound data fields are replaced one by one in the position of the variable placeholder bound to them in the script template. When all variable placeholders in the script template have been successfully replaced, a complete output result is generated immediately. The closed-loop automated process completely eliminates errors such as field mismatch, missing filling, and inconsistent format that are very easy to occur in the traditional manual configuration or hard-coded filling method. It fundamentally ensures the accurate correspondence and real-time synchronization between the multi-node output data and the end-user script in complex business processes.

[0036] Upon receiving the trigger command, the system first parses the connections and data dependencies between functional nodes in the business process diagram to generate an execution sequence. This execution sequence can be a strictly sequential sequence or, provided the data dependency conditions are met, a scheduling sequence containing nodes that can be executed in parallel, thus providing a structured execution basis for subsequent scheduling. Based on the generated execution sequence, the system triggers the execution process of each functional node sequentially or in parallel. When executing any functional node, the system reads the node parameters corresponding to that functional node and loads the associated dialogue template, enabling independent management of data processing logic and output structure.

[0037] The system scans the variable placeholders in the dialogue template and extracts them to form an identifier list. This identifier list is used to mark all data locations to be filled. Based on the pre-established mapping relationship between node parameters and variable placeholders, and combined with the identifier list, the output data of the functional nodes is calculated using key-value pair matching. Simultaneously, a correspondence is established between the data fields in the output data and the variable placeholder identifiers. This correspondence clarifies the specific location in the dialogue template where each data field should be filled.

[0038] After determining the correspondence, the system replaces the output data one by one with the corresponding variable placeholders in the dialogue template, completing the generation of the dialogue content for a single node. For dialogue templates corresponding to multiple functional nodes in the business process diagram, after each replacement, the final output result is generated based on each replaced dialogue template. Through the above process, an automated processing mechanism is realized from process scheduling, parameter parsing, template parsing, data matching to text generation, making node logic processing and output content generation a standardized process. This not only ensures the accuracy and consistency of data filling, but also improves output generation efficiency, reduces the complexity of manual splicing or rule coding, and enhances the scalability and maintainability of the system in complex business scenarios.

[0039] In one embodiment, a user constructs a customer consultation process flow within a visual orchestration canvas. This flow includes: a user input node, an intent recognition node, a conditional judgment node, a knowledge query node, a general response node, and a voice output node. Data flow relationships are established between the nodes via connecting lines, and some nodes without data dependencies can be executed in parallel when certain conditions are met.

[0040] When a user enters "I want to learn about the latest products" in the test panel and triggers the run command, the system first parses the connection relationships and data dependencies between the functional nodes in the business process diagram and generates an execution sequence. Then, it schedules each functional node to run in sequence, and executes the corresponding node in parallel when the condition of no dependency is met.

[0041] During execution, the system reads the node parameters of each functional node and loads the corresponding script template. The script template contains variable placeholders, such as "product information" and "user questions." Based on the mapping relationship between node parameters and variable placeholders, the system establishes a correspondence between the data fields output by upstream nodes and the variable placeholders in the template, and fills the output data into the corresponding positions to generate complete response content.

[0042] On the visualization canvas, the currently executing function node is dynamically highlighted, and connecting lines indicate the direction of data flow; the test panel synchronously displays the input data and output results of each node. If a node malfunctions, the node will be indicated by an error status icon on the canvas, and the corresponding error message will be displayed in the test panel, facilitating quick problem localization.

[0043] Furthermore, for general response nodes, multiple versions of the script template can be pre-configured. When the system is dispatched to this node, it determines the target version based on the allocation information carried in the test input, generates the response content according to the corresponding template, and records the correlation between the version identifier and the output result for subsequent effect comparison and optimization.

[0044] In one embodiment, such as Figure 2 As shown, this application provides an application building and running apparatus, which includes: an environment loading module 210, a flowchart building module 220, a node configuration module 230, a running module 240, and an output module 250, comprising: Environment loading module 210 is used to load the test environment, wherein the test environment includes at least: a component library and a visual orchestration canvas; The flowchart building module 220 is used to build a business process diagram based on the placement and connection relationships of multiple functional nodes in the component library on the visual orchestration canvas. The node configuration module 230 is used to obtain the node parameters and dialogue templates corresponding to each functional node, parse the variable placeholders in the dialogue template, and establish the mapping relationship between node parameters and variable placeholders. The running module 240 is used to respond to the triggered running command, parse the connection relationship and data dependency relationship between each functional node in the business process diagram, execute each functional node according to the connection relationship and data dependency relationship, and generate node output data according to the node parameters of each functional node. The output module 250 is used to determine the correspondence between the data fields in the node output data and the variable placeholders in the dialogue template according to the mapping relationship, and to fill the corresponding variable placeholders in the dialogue template with the node output data to generate the output result.

[0045] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above-described application building and running method embodiments at runtime.

[0046] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0047] Embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above-described application construction and operation method embodiments.

[0048] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, such as Figure 3As shown, to clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described in terms of functionality in the above description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0049] The above provides a detailed description of an application construction and operation method provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are merely for the purpose of helping to understand the method and its core ideas. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this application.

Claims

1. An application building and running method, characterized in that, include: Load the test environment, wherein the test environment includes at least: a component library and a visual orchestration canvas; Based on the placement and connection relationships of multiple functional nodes in the component library on the visual arrangement canvas, a business process diagram is constructed. Obtain the node parameters and dialogue templates corresponding to each functional node, parse the variable placeholders in the dialogue templates, and establish a mapping relationship between the node parameters and the variable placeholders; In response to the triggering of the run command, the connection relationship and data dependency relationship between each functional node in the business process diagram are parsed, and each functional node is executed according to the connection relationship and the data dependency relationship, and node output data is generated according to the node parameters of each functional node; Based on the mapping relationship, the correspondence between the data fields in the node output data and the variable placeholders in the script template is determined, and the node output data is filled into the corresponding variable placeholders in the script template to generate the output result.

2. The application construction and running method according to claim 1, characterized in that, The testing environment also includes a testing panel, and the method further includes: In response to the test panel receiving test input and triggering the run instruction, the business process diagram is invoked based on the test input, and each of the functional nodes is scheduled to be executed sequentially according to the execution order; In response to the business process diagram being in an execution state, the status of the currently executing functional node on the visualization orchestration canvas is marked, and the execution progress of the business process diagram is updated. The test panel displays the input data and output results of each functional node. Based on the output, the script template or the node parameters are adjusted, and the business process diagram is re-executed based on the adjusted script template or the node parameters to generate the updated output.

3. The application construction and running method according to claim 2, characterized in that, In response to the business process diagram being in an execution state, the status of the currently executing functional node on the visual orchestration canvas is marked, including: The function node currently in execution state is dynamically highlighted, and a dynamic flow indicator consistent with the data transmission direction is displayed on the connection line between the function node and its downstream function node.

4. The application construction and running method according to claim 2, characterized in that, The method further includes: In response to an exception occurring during the execution of any of the aforementioned functional nodes, the abnormal status of the functional node is marked on the visualization orchestration canvas, and the error information corresponding to the functional node is displayed in the test panel.

5. An application construction and running method according to any one of claims 1-4, characterized in that, The method further includes: In response to the start of execution of the business process diagram, based on the connection relationship and data dependency relationship between each functional node in the business process diagram, a set of functional nodes that can be executed in parallel is determined from the currently executed functional nodes, wherein there is no data dependency relationship between each functional node in the set of functional nodes that can be executed in parallel; Each of the functional nodes in the set of parallel executable functional nodes is scheduled to different processes for parallel execution; After the set of parallel executable functional nodes has been executed, the output data of each functional node is obtained, and the output data is used as the input data of the subsequent functional nodes to continue scheduling the execution of the business process diagram according to the connection relationship between each functional node in the business process diagram.

6. The application construction and running method according to claim 5, characterized in that, The method further includes: At least two versions are set for at least one target function node in the business process diagram, and each version corresponds to a version identifier and the corresponding node parameter or the script template. In response to executing the business process diagram and executing the target function node, the target version among the at least two versions is determined based on the allocation information in the test input; The target function node is executed according to the node parameters or the dialogue template corresponding to the target version, wherein the execution of the target function node is based on the connection relationship between each function node in the business process diagram and the scheduling of the set of function nodes that can be executed in parallel. The version identifier of the target version is associated with the output data of the target functional node and recorded.

7. The application construction and running method according to claim 6, characterized in that, The step involves determining the correspondence between data fields in the node output data and variable placeholders in the dialogue template based on the mapping relationship, and filling the corresponding variable placeholders in the dialogue template with the node output data to generate the output result, including: Based on the mapping relationship, the variable placeholders to be filled are identified from the script template; Traverse the data fields in the output data of the nodes, and associate and bind any data field with the variable placeholder according to the mapping relationship; Replace the value of any of the data fields that have been associated and bound with the script template with the value of the variable placeholder. The output result is obtained after all the variable placeholders in the script template are replaced.

8. An application building and running apparatus, characterized in that, The device includes: An environment loading module is used to load a test environment, wherein the test environment includes at least: a component library and a visual orchestration canvas; The flowchart construction module is used to construct a business process diagram based on the placement and connection relationships of multiple functional nodes in the component library on the visual arrangement canvas. The node configuration module is used to obtain the node parameters and dialogue templates corresponding to each functional node, parse the variable placeholders in the dialogue templates, and establish the mapping relationship between the node parameters and the variable placeholders. The running module is used to respond to the triggered running command, parse the connection relationship and data dependency relationship between each functional node in the business process diagram, execute each functional node according to the connection relationship and data dependency relationship, and generate node output data according to the node parameters of each functional node; The output module is used to determine the correspondence between the data fields in the node output data and the variable placeholders in the speech template according to the mapping relationship, and to fill the corresponding variable placeholders in the speech template with the node output data to generate the output result.

9. A computer device, 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, it implements the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.