A parameter pipeline transmission method, system and device

By dynamically building transmission links and identification status tags, the problems of insufficient identification of upstream and downstream node relationships in parameter transfer between nodes are solved, and the accurate transmission of parameters and high performance, stability and scalability of workflows are achieved.

CN119512525BActive Publication Date: 2025-04-29SHENZHOU LINGYUN (BEIJING) TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510058616.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-15
Publication Date
2025-04-29
Estimated Expiration
2045-01-15

AI Technical Summary

Technical Problem

The prior art lacks accurate upstream and downstream node relationship identification mechanism in parameter transmission between nodes, lacks adaptability, poor real-time and synchronization, and low scalability, which affects the performance, stability and scalability of the workflow.

Method used

By obtaining the node to be transmitted and its downstream nodes, listening to the output events of the node to be transmitted, in response to the captured parameters, determining the status tag and target node of the parameters based on the downstream nodes, dynamically constructing the transmission link to transmit parameters, realizing the accurate transmission of parameters and adapting to complex node topology structures.

Benefits of technology

It realizes accurate parameter transmission, avoids parameter transmission path errors, improves the performance and stability of the workflow, and can quickly adapt to changes in new nodes or node connections, without large-scale reconstruction, reduces maintenance costs, and improves the universality and flexibility of the transmission mechanism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119512525B_ABST
    Figure CN119512525B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of software technology, and discloses a parameter pipeline transmission method, system and device. The method includes: obtaining a node to be transmitted and all its corresponding downstream nodes, monitoring the output events of the node to be transmitted; in response to capturing a number of parameters sent by the node to be transmitted, determining the state label and a number of target nodes corresponding to each parameter based on all downstream nodes; based on each state label, constructing a transmission link between the node to be transmitted and each target node to transmit each parameter to the target matching position in each corresponding target node. Through the solution of the present invention, the problems of being unable to accurately identify the relationship between upstream and downstream nodes, insufficient adaptation flexibility, poor parameter real-time and synchronization, and low scalability in the process of parameter transmission between nodes are solved, so as to meet the diversified needs of parameter transmission between nodes and improve the performance, stability and scalability of workflows.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of software technology, and in particular to a parameter pipeline transmission method, system and device. Background Art

[0002] As an important tool in the current application software system field, online visual workflow editors have effectively improved development efficiency and lowered development barriers by allowing users to drag and connect nodes in a graphical way to build workflows. For example, the editor in the Unreal Engine 5 demonstrates the power of this visual development model. However, in this type of editor, the parameter transfer technology between nodes is the key to achieving an efficient and stable workflow.

[0003] The parameter transmission technology between nodes needs to meet multiple key requirements, including parameter data transmission between upstream and downstream nodes, parameter adaptability between different types of nodes, real-time and synchronization guarantee, data integrity and accuracy maintenance, and scalability and flexibility support. These requirements are directly related to the performance, stability and scalability of the entire workflow. However, the relevant technologies have obvious shortcomings in these aspects. In terms of parameter transmission between upstream and downstream nodes, the relevant technologies often lack an accurate upstream and downstream node relationship identification mechanism, which easily leads to parameter transmission type errors and affects the normal advancement of the workflow. In terms of adaptability transmission between different types of nodes, the adaptation flexibility of the relevant technologies is seriously insufficient, and it cannot cope well with the increasing number of diverse node types, which limits the application of visual workflow editors in complex business scenarios. In terms of real-time and synchronization guarantee, the monitoring mechanism of the relevant technologies is not sensitive enough, and it is easy to have a lag in parameter update transmission, which affects the collaborative work of related nodes. In terms of scalability and flexibility support, the architectural design of the relevant technologies is relatively limited, and it is often necessary to reconstruct the entire parameter transmission system on a large scale to adapt to new business needs and changes. This is not only time-consuming and labor-intensive, but also easy to introduce new errors.

[0004] Therefore, in order to give full play to the advantages of the visual workflow editor, there is still room for improvement in the inter-node parameter passing technology of related technologies. Summary of the invention

[0005] In view of this, the present invention proposes a parameter pipeline transmission method, system and computer equipment, which solve the problems of inability to accurately identify the upstream and downstream node relationships, insufficient adaptation flexibility, poor parameter real-time and synchronization, and low scalability during the parameter transmission process between nodes, so as to meet the diverse needs of parameter transmission between nodes and improve the performance, stability and scalability of the workflow.

[0006] Based on the above purpose, an embodiment of the present invention provides a parameter pipeline transmission method, which specifically includes the following steps:

[0007] Obtain the node to be transmitted and all its corresponding downstream nodes, and monitor the output events of the node to be transmitted;

[0008] In response to capturing a plurality of parameters sent by the node to be transmitted, determining a state label and a plurality of target nodes corresponding to each of the parameters based on all the downstream nodes;

[0009] Based on each of the state tags, a transmission link is constructed between the node to be transmitted and each of the target nodes, so as to transmit each of the parameters to the target matching position in each of the corresponding target nodes.

[0010] In some implementations, the step of determining the state label and the plurality of target nodes corresponding to each of the parameters based on all the downstream nodes includes:

[0011] Identify the data format of each of the parameters, and determine the parameter type corresponding to each of the parameters based on the data format;

[0012] Obtaining the parameter bit corresponding to each of the downstream nodes;

[0013] Based on the parameter type, all target parameter positions that match the parameter are searched in all the parameter positions, and the downstream node corresponding to each target parameter position is used as the target node of the parameter;

[0014] The state label corresponding to each of the parameters is determined based on the corresponding parameter type and all the target nodes.

[0015] In some implementations, the step of constructing a transmission link between the node to be transmitted and each of the target nodes based on each of the state tags includes:

[0016] According to the status labels of all the parameters, the transmission link between the node to be transmitted and the target parameter bits in all the target nodes is constructed, and each target parameter bit is used as a target matching position in the corresponding target node.

[0017] In some implementations, the parameter pipeline transmission method further includes:

[0018] Determining whether each of the parameters allows parallel transmission;

[0019] If the parameter allows parallel transmission, setting the link type of the corresponding transmission link to a parallel link;

[0020] If the parameter does not allow parallel transmission, the link type of the corresponding transmission link is set to a serial link.

[0021] In some implementations, the parameter pipeline transmission method further includes:

[0022] Determining a first priority for transmitting each of the parameters according to a capture time of each of the parameters and a link type of a transmission link thereof;

[0023] Based on the parameter with the highest first priority, determining whether the number of the target nodes corresponding to the parameter is greater than one;

[0024] In response to the number being greater than one, determining a second priority of each corresponding target node according to a node type of each corresponding target node;

[0025] Based on the second priority, the transmission order of all the transmission links corresponding to the parameter with the highest first priority is adjusted.

[0026] In some implementations, the step of transmitting each of the parameters to the target matching position in each of the target nodes corresponding thereto includes:

[0027] According to the state label, determining whether the parameter is a dynamically changing parameter;

[0028] If the parameter is a dynamically changing parameter, a snapshot record of the parameter is obtained, and a data value corresponding to the snapshot record is transmitted to a target matching position in each of the target nodes.

[0029] In some implementations, the parameter pipeline transmission method further includes:

[0030] In response to the number being equal to one, the first parameter with the highest priority is transmitted to the target matching position in the corresponding target node through its transmission link.

[0031] In some implementations, after the step of capturing the plurality of parameters sent by the node to be transmitted, the method further includes:

[0032] Verify that the parameters are complete;

[0033] In response to the parameter being incomplete, the transmission of the parameter is interrupted and the output event of the node to be transmitted is continuously monitored.

[0034] Another aspect of the embodiment of the present invention further provides a parameter pipeline transmission system, including:

[0035] A parameter monitoring unit, configured to obtain a node to be transmitted and all its corresponding downstream nodes, and monitor output events of the node to be transmitted;

[0036] A parameter processing unit configured to, in response to capturing a plurality of parameters sent by the node to be transmitted, determine a state label and a plurality of target nodes corresponding to each of the parameters based on all the downstream nodes;

[0037] The link construction unit is configured to construct a transmission link between the node to be transmitted and each of the target nodes based on each of the state tags, so as to transmit each of the parameters to the target matching position in each of the corresponding target nodes.

[0038] According to another aspect of an embodiment of the present invention, a computer device is provided, comprising: at least one processor; and a memory, wherein the memory stores a computer program executable on the processor, and the computer program implements the steps of the above method when executed by the processor.

[0039] The present invention has at least the following beneficial technical effects: the parameter pipeline transmission method of the present invention captures the parameters sent by the node to be transmitted in real time by monitoring the output events of the node to be transmitted, and dynamically generates a transmission link based on the status label of the parameter to complete the parameter transmission, avoiding the limitations of static preset links, adapting to complex node topology structures, and in the process of dynamic generation of the transmission link, clarifying the target matching position in the target node, achieving accurate parameter transmission, avoiding parameter transmission path errors that affect the normal advancement of the entire workflow, and dynamically determining the target node and generating the transmission link through the real-time captured parameters. It can quickly adapt to the addition of new nodes or node connection changes without large-scale reconstruction, reducing maintenance costs, meeting the adaptation requirements between different types of nodes, and improving the versatility and flexibility of the transmission mechanism. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.

[0041] Figure 1 A block diagram of an embodiment of a parameter pipeline transmission method provided by the present invention;

[0042] Figure 2 A schematic diagram of an embodiment of the processing logic of the parameter pipeline transmission method provided by the present invention;

[0043] Figure 3 A schematic diagram of an embodiment of a parameter pipeline transmission system provided by the present invention;

[0044] Figure 4 A schematic structural diagram of an embodiment of a computer device provided by the present invention. DETAILED DESCRIPTION

[0045] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0046] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities with the same name or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one.

[0047] Regarding the related technologies of parameter transmission between nodes, in terms of parameter transmission between upstream and downstream nodes, when analyzing the relationship between upstream and downstream nodes, as the number of nodes increases and the business logic becomes increasingly complex, it is easy to misjudge the upstream and downstream nodes, resulting in incorrect parameter transmission path selection, which may cause transmission exceptions or type conflicts, making it impossible for subsequent processes to work based on correct parameters, affecting the fluency of the entire workflow. In terms of parameter adaptability between different types of nodes, parameter transmission often relies on fixed static rules and lacks flexibility. When faced with the increasing number of diverse node types, such as some composite nodes that integrate multiple functions, it is impossible to reasonably convert and distribute parameters according to the specific characteristics of the nodes, which limits the application of visual workflow editors in complex business scenarios. In terms of real-time and synchronization guarantee, the monitoring mechanism is not sensitive enough. When the node operation status in the workflow is changeable, the change of the parameter status of a node cannot be perceived in time, resulting in the phenomenon of parameter update transmission lag, which makes the related nodes unable to work together based on the latest parameters. In some scenarios with high real-time requirements, such as real-time data analysis and processing, the analysis results will be seriously distorted. In terms of scalability and flexibility support, the architectural design has great limitations. Most workflows do not fully consider future business expansion and changes during initial design. Once there is a need to add new node types, introduce new parameter types, or adjust the workflow architecture, it is often necessary to reconstruct the entire parameter delivery system on a large scale. This is not only time-consuming and labor-intensive, but also easy to introduce new errors during the reconstruction process, affecting the normal use of the entire visual editor.

[0048] In order to solve the defects of the above-mentioned related technologies, the first aspect of the embodiments of the present invention provides a parameter pipeline transmission method. Figure 1 As shown, it includes the following steps:

[0049] Step S100, obtaining the node to be transmitted and all its corresponding downstream nodes, and monitoring the output events of the node to be transmitted;

[0050] Step S200, in response to capturing a number of parameters sent by the node to be transmitted, determining a state label and a number of target nodes corresponding to each parameter based on all downstream nodes;

[0051] Step S300: construct a transmission link between the node to be transmitted and each target node based on each state tag, so as to transmit each parameter to the target matching position in each corresponding target node.

[0052] In some embodiments, the workflow is an event-driven process-based logic editable engine, which is triggered by an event and performs a sequential step-by-step logic execution process according to the connected nodes. When a node is executed, the execution result of the current node is passed to the next node as one or more parameters. The parameter pipeline transmission method of the present invention is to implement the parameter transfer logic between nodes. The parameters of the node to be output will first enter the parameter pipeline for processing and then be passed to the corresponding target node downstream. The parameter pipeline includes two modules: parameter processing and intelligent matching. Figure 2 As shown, all downstream nodes of the node to be processed include execution node 1 and execution node 2. All parameters (parameter 1, parameter 2 and parameter 3) output by the node to be processed will first enter the parameter processing module of the parameter pipeline for classification processing to obtain the parameter type of each parameter. According to each parameter type, the matching relationship between the parameter and the downstream node is identified, that is, whether the parameter bit in each downstream node can adapt to each parameter type is analyzed, and the downstream node where the parameter bit that can be adapted is located is determined as the target node of the parameter. The status label of the parameter is generated according to the parameter type and target node obtained by the analysis for subsequent intelligent matching. Further, parameter balance optimization can be performed. Specifically, the parameter transmission priority and link type are adjusted according to the status label, and the adjusted information is also updated to the status label for subsequent intelligent matching. During the processing of the intelligent matching module, a dynamic transmission link is created between the parameter and its target node according to the status label. When processing multiple target nodes, the optimal transmission order of the parameters is determined in combination with the node type and priority to ensure real-time and accuracy while taking into account the requirements of parallelism and seriality. The parameters are passed to the target matching position in the target node according to the intelligent matching processing results. For example, parameter 1 and parameter 2 are matched to their respective target matching positions in execution node 1, and parameter 3 is matched to the target matching position of execution node 2.

[0053] In some implementations, all downstream nodes directly associated with the node to be transmitted are identified through the relationship between connected nodes in the preset workflow, and the information of the downstream nodes, including node type, supported parameter bits, etc., are extracted. After the node to be transmitted completes a task or executes a certain logic, its output events are monitored, and when capturing parameters, the parameter information is recorded, such as capture time, data format, data source, etc. The captured parameters are parsed and marked as time data, array data, IP address, constant data, or variable data, etc., according to the parameter type.

[0054] The parameter pipeline transmission method of the present invention captures the parameters sent by the node to be transmitted in real time by monitoring the output events of the node to be transmitted, and dynamically generates a transmission link based on the status label of the parameter to complete the transmission of the parameter, avoiding the limitations of the static preset link, adapting to the complex node topology structure, and in the process of dynamic generation of the transmission link, clarifying the target matching position in the target node, realizing accurate parameter transmission, avoiding parameter transmission path errors that affect the normal advancement of the entire workflow, and dynamically determining the target node and generating the transmission link through the parameters captured in real time. It can quickly adapt to the addition of new nodes or node connection changes without large-scale reconstruction, reducing maintenance costs, meeting the adaptation requirements between different types of nodes, and improving the versatility and flexibility of the transmission mechanism.

[0055] In some embodiments, the step of determining a status label and several target nodes corresponding to each parameter based on all downstream nodes includes: identifying the data format of each parameter, and determining the parameter type corresponding to each parameter based on the data format; obtaining the parameter bit corresponding to each downstream node; based on the parameter type, querying all target parameter bits that match the parameter in all parameter bits, and taking the downstream node corresponding to each target parameter bit as the target node of the parameter; and determining the status label corresponding to each parameter based on the corresponding parameter type and all target nodes.

[0056] In some embodiments, the data format of each parameter is automatically identified, and the corresponding parameter type is marked for the parameter based on the data format. The identification method includes a regular algorithm, etc. The parameter type is the basis for subsequent matching of the target node and the generation of the state label. Marking the parameter type ensures that the parameter can adapt to the parameter requirements of the target node during transmission, avoiding format incompatibility issues.

[0057] In some embodiments, the parameter bits supported by each downstream node corresponding to the node to be transmitted are extracted. Based on the parameter type of the parameter, the target parameter bit matching it is queried in all parameter bits, and the downstream node where the target parameter bit is located is determined as the target node. The parameter bit refers to the predefined interface position in the node for receiving parameters, which can be understood as the logical position inside the node for storing or processing a certain parameter data. Each node may include one or more parameter bits, and the parameter bit is usually determined by the design logic of the node. In one example, in some nodes, the parameter bit can be the input parameter position in the function definition inside the node. For example, in the function f (a, b), a and b are parameter bits. The parameter bit can also be certain fields in a complex data structure. For example, "key1" and "key2" in the JSON data {"key1":value1, "key2":value2} can be regarded as parameter bits. During the execution of the node, the parameter bit can be the position of certain bound variables, indicating the dynamic storage position of the parameter. For example, the variable x is designated as the parameter bit for storing a certain transmission parameter in the node.

[0058] In some implementations, the parameter type of each parameter is matched with the parameter types supported by all parameter bits, and all target parameter bits that meet the matching conditions are queried. In one example, parameter 1 is constant data, and both downstream node A and downstream node B include parameter bits that support constant data, then the target nodes of parameter 1 include downstream node A and downstream node B. The transmission target of the parameter is accurately located according to the parameter type, and the output parameter of the upstream node is correctly matched to the correct parameter position of the downstream node, ensuring that the parameter can be normally received and processed by the downstream node.

[0059] The parameter pipeline transmission method of the present invention is based on the precise matching of parameter types and parameter bits, which reduces errors or losses in the parameter transmission process, can support a variety of parameter types and node types, and enhances scalability and flexibility through type identification and status label generation. In the face of new parameter types or new nodes, adaptation can be completed quickly without the need to reconstruct the parameter transmission system, thereby reducing maintenance costs.

[0060] In some embodiments, the step of constructing a transmission link between the node to be transmitted and each target node based on each status label includes: constructing a transmission link between the node to be transmitted and the target parameter bits in all target nodes according to the status labels of all parameters, and using each target parameter bit as the target matching position in the corresponding target node.

[0061] In some embodiments, the status tag includes the parameter type and the target node, which is the key basis for building a transmission link. According to the status tag, the target parameter position of each parameter in the target node is identified, and an end-to-end transmission mapping is constructed based on the output port of the node to be transmitted and the target parameter position of the target node to dynamically build a transmission link for the parameter. Ensure that the parameter can be transmitted to the correct target node and the correct position to avoid data confusion or type matching errors. According to the status tag, not only the target matching position of the parameter can be determined, but also the synchronization mechanism of the parameter can be determined. For example, after successfully matching the target matching position, the target node transfers data according to the IP address of the node to be processed.

[0062] The parameter pipeline transmission method of the present invention dynamically constructs a transmission link for each received parameter, can adapt to the transmission of different parameter types, meet the transmission requirements of multiple nodes and multiple parameters in complex workflow scenarios, and avoids the problem of being unable to reasonably convert and distribute parameters due to reliance on fixed static rules. The matching rule of parameter-target parameter bits avoids parameter type mismatch or link error problems, ensuring the reliability of the entire system.

[0063] In some embodiments, the parameter pipeline transmission method of the present invention also includes: determining whether each parameter allows parallel transmission; if the parameter allows parallel transmission, setting the link type of its transmission link to a parallel link; if the parameter does not allow parallel transmission, setting the link type of its corresponding transmission link to a serial link.

[0064] In some embodiments, the parameter pipeline needs to sense the node type and status tags of the upstream and downstream nodes, so as to distribute these parameters to enter the target node in parallel or serial manner. In one example, according to the parameter type in the status tag, it is determined whether the parameter allows parallel transmission. When the parameter type is time data, IP address, constant data or variable data, the parameter allows parallel transmission, and the link type of the transmission link corresponding to the parameter is set to a parallel link, and the parameter is distributed to enter the target node in parallel. When the parameter type is array data, the parameter does not allow parallel transmission, and the link type of the transmission link corresponding to the parameter is set to a serial link, and the parameter is distributed to enter the target node in a serial manner. This is because array data often needs to maintain order and must be transmitted in serial mode to ensure the integrity and correctness of the data.

[0065] In some embodiments, when there are multiple target nodes that match the parameters output by multiple nodes to be transmitted, the parameter pipeline controls the process of these parameters according to the link type. If the transmission links corresponding to the parameters output by multiple nodes to be transmitted are all parallel links, these parameters can be transmitted in parallel to the corresponding same target node, maximizing the use of node resources and reducing transmission delays. If at least one of the transmission links corresponding to the parameters output by the above multiple nodes to be transmitted is a serial link, the transmission order needs to be coordinated. Further, the link type that preferentially occupies the target node resources can be determined based on the parameter capture time. For example, the link type corresponding to the parameter with the earliest capture time preferentially occupies the target node resources. If there are multiple parameters with the same capture time, the link type that preferentially occupies the target node resources is determined based on the node type of each node to be processed that outputs these parameters. Node types include execution nodes, function nodes, variable nodes, and constant nodes. For example, when the node type is an execution node, the link type corresponding to its output parameter preferentially occupies the target node resources.

[0066] The parameter pipeline transmission method of the present invention adopts parallel transmission for independent parameters, greatly reducing waiting time and resource consumption, improving transmission efficiency, and adopts serial transmission for non-independent parameters, ensuring the correctness of data order and dependency, and avoiding processing logic errors. It can simultaneously process different types of parameters that require sequence or non-sequence, adapt to the diverse needs in complex scenarios, and flexibly divide link types to maximize the processing capacity of the target node to achieve load balancing. The parameter pipeline can intelligently adapt to different parameter types and requirements, providing stable and efficient support for parameter reception and processing of the target node.

[0067] In some embodiments, the parameter pipeline transmission method of the present invention also includes: determining the first priority of transmitting each parameter based on the capture time of each parameter and the link type of its transmission link; based on the parameter with the highest first priority, judging whether the number of corresponding target nodes is greater than one; in response to the number being greater than one, determining the second priority of each corresponding target node based on the node type of each corresponding target node; based on the second priority, adjusting the transmission order of all transmission links corresponding to the parameter with the highest first priority.

[0068] In some embodiments, the parameter pipeline transmission method of the present invention further includes: in response to the number being equal to one, transmitting the first highest priority parameter to a target matching position in its corresponding target node through its transmission link.

[0069] In some embodiments, the priority (i.e., first priority) of different parameters affects the allocation of target parameter bits, and parameters with high priority are bound first, i.e., they occupy the target parameter bits first. The capture time reflects the real-time nature of parameter generation or acquisition. For parameters with higher real-time requirements, their priority is higher, and the link type directly affects the transmission method of the parameters. In one example, the earlier the capture time, the higher the first priority. If the link type corresponding to the parameter with the earliest capture time is a parallel link, all parameters adjacent to its capture time and whose link type is a parallel link are parameters with the highest first priority. At this time, all parameters with the highest first priority can be transmitted to their respective target nodes in parallel. If the link type corresponding to the parameter with the earliest capture time is a serial link, only this parameter is the parameter with the highest first priority. At this time, the parameter with the highest first priority is transmitted serially to its target node, and after its transmission is completed, the subsequent parameters are processed according to the above steps.

[0070] In some embodiments, when the same parameter with the highest first priority has multiple target nodes, it is necessary to further prioritize the target nodes (i.e., the second priority) to ensure that the most important nodes can receive data in a limited manner. When the same parameter has only one target node, the parameter is directly transmitted to the target node through its transmission link without additional priority adjustment. The type of target node affects its sensitivity and priority requirements for the parameter. For example, the execution node is used to perform specific tasks, especially real-time tasks, and requires real-time processing of transmitted data, usually with the highest second priority. Function nodes usually perform data calculation, conversion or processing, and the second priority is lower than the execution node. Variable nodes are used to store intermediate data or dynamic variables, and the second priority is lower than the function node. Constant nodes are used to store fixed data, and the parameters will not change dynamically with the workflow, and the second priority is the lowest. For multiple target nodes corresponding to the same parameter, the transmission links of these target nodes are sorted based on the second priority, and the parameter can be preferentially transmitted to the target node with the highest second priority. After the target node with the highest second priority is transmitted, the parameters are sequentially transmitted to the subsequent target nodes in the sorting order.

[0071] The parameter pipeline transmission method of the present invention combines link types and node types, and realizes efficient scheduling and accurate distribution of multi-parameter transmission tasks through priority management and dynamic allocation.

[0072] In some embodiments, the step of transmitting each parameter to the target matching position in each corresponding target node includes: judging whether the parameter is a dynamically changing parameter based on the status label; if the parameter is a dynamically changing parameter, obtaining a snapshot record of the parameter, and transmitting the data value corresponding to the snapshot record to the target matching position in each target node.

[0073] In some embodiments, the dynamically changing parameter index value is data that changes continuously with time or external state, such as real-time sensor data, current system time, or dynamic calculation results. The status label of the parameter will indicate the parameter type and dynamically changing attributes. Snapshot recording refers to capturing and saving the value of the dynamically changing parameter at a specific time point to ensure data consistency during subsequent transmission. When the parameter is a dynamically changing variable, that is, a dynamically changing parameter, the parameter pipeline will take a snapshot record of the variable parameter during the parameter balance optimization process and cache it in the pipeline. Furthermore, the cache mechanism of the parameter pipeline can also set an expiration time to ensure real-time performance. When the transmission link transmits parameters, the data value of the snapshot record is obtained in the parameter pipeline cache and passed to the target node.

[0074] The parameter pipeline transmission method of the present invention utilizes snapshot records to avoid inconsistent data received by the target node due to parameter changes in the transmission link, thereby ensuring data consistency and real-time performance, being able to timely perceive changes in the parameter status of a certain node, and preventing the phenomenon of parameter update transmission lag, thereby meeting the transmission requirements in high-performance, high-real-time scenarios.

[0075] In some implementations, after the step of capturing several parameters sent by the node to be transmitted, the step further includes: verifying whether the parameters are complete; in response to incomplete parameters, interrupting the transmission of the parameters and continuing to monitor the output events of the node to be transmitted.

[0076] In some implementations, for incomplete or abnormal parameters, the transmission of the parameters is interrupted, a log is recorded, and an error prompt is returned to avoid parameter transmission errors, which prevent subsequent processes from being able to work based on the correct parameters, seriously affecting the normal progress of the entire workflow.

[0077] Based on the same inventive concept, according to another aspect of the present invention, Figure 3 As shown, an embodiment of the present invention further provides a parameter pipeline transmission system, comprising:

[0078] A parameter monitoring unit 110 is configured to obtain a node to be transmitted and all its corresponding downstream nodes, and monitor output events of the node to be transmitted;

[0079] The parameter processing unit 120 is configured to determine, in response to capturing a number of parameters sent by the node to be transmitted, a state label and a number of target nodes corresponding to each parameter based on all downstream nodes;

[0080] The link construction unit 130 is configured to construct a transmission link between the node to be transmitted and each target node based on each state label, so as to transmit each parameter to a target matching position in each corresponding target node.

[0081] The parameter pipeline transmission system of the present invention captures the parameters sent by the node to be transmitted in real time by monitoring the output events of the node to be transmitted, and dynamically generates a transmission link based on the status label of the parameter to complete the parameter transmission, avoiding the limitations of static preset links, adapting to complex node topology structures, and in the process of dynamic generation of the transmission link, clarifying the target matching position in the target node, achieving accurate parameter transmission, avoiding parameter transmission path errors that affect the normal advancement of the entire workflow, and dynamically determining the target node and generating the transmission link through the real-time captured parameters. It can quickly adapt to the addition of new nodes or node connection changes without large-scale reconstruction, reducing maintenance costs, meeting the adaptation requirements between different types of nodes, and improving the versatility and flexibility of the transmission mechanism.

[0082] Based on the same inventive concept, according to another aspect of the present invention, Figure 4 As shown, an embodiment of the present invention further provides a computer device 30, which includes a processor 310 and a memory 320. The memory 320 stores a computer program 321 that can be run on the processor. When the processor 310 executes the program, the steps of the above method are performed.

[0083] Finally, it should be noted that a person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium of the program can be a disk, an optical disk, a read-only storage memory (ROM) or a random access memory (RAM), etc. The above-mentioned computer program embodiments can achieve the same or similar effects as the corresponding above-mentioned any method embodiments.

[0084] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.

[0085] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope of the embodiments disclosed in the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. The serial numbers of the embodiments disclosed in the above embodiments of the present invention are for description only and do not represent the advantages and disadvantages of the embodiments. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.

[0086] It should be understood that, as used herein, the singular forms "a", "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations including one or more of the associated listed items.

[0087] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the above embodiments of the present invention, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.

Claims

1. A parameter pipeline transmission method, characterized in that: include: Obtain all downstream nodes corresponding to the node to be transmitted, and monitor the output events of the node to be transmitted; In response to capturing a plurality of parameters sent by the node to be transmitted, determining a state label and a plurality of target nodes corresponding to each of the parameters based on all the downstream nodes; Based on each of the state tags, a transmission link is constructed between the node to be transmitted and each of the target nodes, so as to transmit each of the parameters to a target matching position in each of the target nodes corresponding thereto; The step of determining the state label and a plurality of target nodes corresponding to each of the parameters based on all the downstream nodes includes: Identify the data format of each of the parameters, and determine the parameter type corresponding to each of the parameters based on the data format; Obtaining the parameter bit corresponding to each of the downstream nodes; Based on the parameter type, all target parameter positions that match the parameter are searched in all the parameter positions, and the downstream node corresponding to each target parameter position is used as the target node of the parameter; Determine the state label corresponding to each parameter based on the corresponding parameter type and all the target nodes; The step of constructing a transmission link between the node to be transmitted and each of the target nodes based on each of the state tags includes: According to the status labels of all the parameters, the transmission link between the node to be transmitted and the target parameter bits in all the target nodes is constructed, and each target parameter bit is used as a target matching position in the corresponding target node.

2. The parameter pipeline transmission method according to claim 1, characterized in that: Also includes: Determining whether each of the parameters allows parallel transmission; If the parameter allows parallel transmission, setting the link type of the corresponding transmission link to a parallel link; If the parameter does not allow parallel transmission, the link type of the corresponding transmission link is set to a serial link.

3. The parameter pipeline transmission method according to claim 1, characterized in that: Also includes: Determining a first priority for transmitting each of the parameters according to a capture time of each of the parameters and a link type of a transmission link thereof; Based on the parameter with the highest first priority, determining whether the number of the target nodes corresponding to the parameter is greater than one; In response to the number being greater than one, determining a second priority of each corresponding target node according to a node type of each corresponding target node; Based on the second priority, the transmission order of all the transmission links corresponding to the parameter with the highest first priority is adjusted.

4. The parameter pipeline transmission method according to claim 1, characterized in that: The step of transmitting each of the parameters to the target matching position in each of the target nodes corresponding thereto comprises: According to the state label, determining whether the parameter is a dynamically changing parameter; If the parameter is a dynamically changing parameter, a snapshot record of the parameter is obtained, and a data value corresponding to the snapshot record is transmitted to a target matching position in each of the target nodes.

5. The parameter pipeline transmission method according to claim 3, characterized in that: Also includes: In response to the number being equal to one, the first parameter with the highest priority is transmitted to the target matching position in the corresponding target node through the corresponding transmission link.

6. The parameter pipeline transmission method according to claim 1, characterized in that: After the step of capturing the plurality of parameters sent by the node to be transmitted, the method further includes: Verify that the parameters are complete; In response to the parameter being incomplete, the transmission of the parameter is interrupted and the output event of the node to be transmitted is continuously monitored.

7. A parameter pipeline transmission system, characterized in that: include: A parameter monitoring unit, configured to obtain a node to be transmitted and all its corresponding downstream nodes, and monitor output events of the node to be transmitted; A parameter processing unit configured to, in response to capturing a plurality of parameters sent by the node to be transmitted, determine a state label and a plurality of target nodes corresponding to each of the parameters based on all the downstream nodes; A link construction unit, configured to construct a transmission link between the node to be transmitted and each of the target nodes based on each of the state tags, so as to transmit each of the parameters to a target matching position in each of the target nodes corresponding thereto; The parameter processing unit is further configured to: identify the data format of each parameter, determine the parameter type corresponding to each parameter based on the data format; obtain the parameter bit corresponding to each downstream node; based on the parameter type, query all target parameter bits matching the parameter in all parameter bits, and use the downstream node corresponding to each target parameter bit as the target node of the parameter; determine the state label corresponding to each parameter based on the corresponding parameter type and all the target nodes; The link construction unit is also configured to: construct the transmission link between the node to be transmitted and the target parameter bits in all the target nodes according to the status labels of all the parameters, and use each target parameter bit as a target matching position in the corresponding target node.

8. A computer device comprising: at least one processor; as well as A memory storing a computer program executable on the processor, wherein the processor executes the steps of the method according to any one of claims 1 to 6 when executing the program.

Citation Information

Patent Citations

  • Workflow engine management method and device, storage medium and terminal

    CN108762735A

  • Sub-item expansion method and system based on parameter chain

    CN111506307A