CN114254068B - Data transfer method and system - Google Patents

Data transfer method and system Download PDF

Info

Publication number
CN114254068B
CN114254068B CN202210190410.1A CN202210190410A CN114254068B CN 114254068 B CN114254068 B CN 114254068B CN 202210190410 A CN202210190410 A CN 202210190410A CN 114254068 B CN114254068 B CN 114254068B
Authority
CN
China
Prior art keywords
data
node
component
data context
injected
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210190410.1A
Other languages
Chinese (zh)
Other versions
CN114254068A (en
Inventor
周勋
李青
胡云坤
李鹏飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced Institute of Information Technology AIIT of Peking University
Hangzhou Weiming Information Technology Co Ltd
Original Assignee
Advanced Institute of Information Technology AIIT of Peking University
Hangzhou Weiming Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Advanced Institute of Information Technology AIIT of Peking University, Hangzhou Weiming Information Technology Co Ltd filed Critical Advanced Institute of Information Technology AIIT of Peking University
Priority to CN202210190410.1A priority Critical patent/CN114254068B/en
Publication of CN114254068A publication Critical patent/CN114254068A/en
Application granted granted Critical
Publication of CN114254068B publication Critical patent/CN114254068B/en
Priority to PCT/CN2023/074684 priority patent/WO2023160367A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/31Indexing; Data structures therefor; Storage structures
    • G06F16/316Indexing structures
    • G06F16/322Trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a data transfer method and a system, wherein the method comprises the following steps: the data context module receives data according to a global variable receiving function, wherein the global variable receiving function is determined according to a target data context node and input data; if the target data context node is a root node, merging the input data into the self attribute of the root node; and if the target data context node is an unknown node, establishing an identification of the unknown node, storing the identification in a father node, and combining the input data into the self attribute of the established node. The data transfer capability in the low-code platform is effectively improved, and the data interaction requirement under a complex service scene is flexibly realized.

Description

Data transfer method and system
Technical Field
The embodiment of the application relates to the technical field of program development, in particular to a data transfer method and a data transfer system.
Background
The Low Code Development Platform (LCDP) is a development platform that can quickly generate an application without encoding (0 code) or with a small amount of code. The method for developing the application program through visualization (referring to a visual programming language) enables developers with different experience levels to create web pages and mobile application programs through a graphical user interface by using a dragging component and model-driven logic.
With the expansion of the digitization and informatization scale of enterprises, the low-code market grows rapidly. Informatization systems developed based on a low-code platform mode, particularly front-end service systems, are increasing. Due to the good model abstraction capability of the low-code system, the front end can obtain more bottom-layer and richer metadata information. At present, a low-code platform on the market can be customized to complete system building through rich component styles and dragging capability.
However, for the developer, the following problems still remain: at present, the data transfer capability in a low-code platform is very limited, and data interaction under a fixed scene can be realized only by a fixed format or an agreed rule; the data coupling degree with the interface of the back end is high, the back end needs to adjust codes or configure to realize conversion when replacing a data structure, and the development cost is high; the components cannot communicate with each other or the communication is not flexible and variable enough, and the service requirement under a complex scene is difficult to realize.
Disclosure of Invention
Therefore, the embodiment of the application provides a data transfer method and a data transfer system, which effectively improve the data transfer capability in a low-code platform and flexibly meet the data interaction requirement in a complex service scene.
In order to achieve the above object, the embodiments of the present application provide the following technical solutions:
according to a first aspect of embodiments of the present application, there is provided a data flow method, including:
setting a data context tree in a global variable of a low-code platform, wherein the data context tree at least comprises a root node;
acquiring data to be injected, wherein the data to be injected comprises a target node identifier and data to be injected;
if a data context node corresponding to the target node identification exists in the data context tree, injecting the data needing to be injected into the data context node;
if the data context node corresponding to the target node identification does not exist in the data context tree, a data context node corresponding to the target node identification is newly established, the target node identification is stored in a father node, and the data needing to be injected is injected into the newly established data context node.
Optionally, the method further comprises:
determining a data context node where data to be acquired is located and a corresponding data path;
and acquiring the data to be acquired from the data context node according to the data path.
Optionally, the source of the data to be injected at least includes a backend interface, a static file, or a component module; if the source is an assembly module, the data to be injected is the basic attribute of the assembly module.
Optionally, the attributes of the data context node include a self attribute and a reference attribute;
if the data context node is a father node, the reference attribute is null;
and if the data context node is a child node, the reference attribute is a collection of the self attribute and the reference attribute of the parent node to which the child node belongs.
Optionally, if a second component in the component module needs to acquire the basic attribute of the first component, the method includes:
the data context module receives data to be injected of a first component, wherein the data to be injected of the first component comprises a target node identifier and a basic attribute of the first component;
if the data context module determines that the data context node corresponding to the target node identifier does not exist in the data context tree, the data context node corresponding to the target node identifier is established, the target node identifier is stored in a parent node, and the basic attribute of the first component is injected into the self attribute of the established data context node; if the data context node corresponding to the target node identification exists in the data context tree, injecting the basic attribute of the first component into the self attribute of the data context node;
and the data context module calls the basic attribute of the first component from the data context node where the basic attribute of the first component is located according to the data path corresponding to the basic attribute of the first component in the data context tree, and sends the called basic attribute of the first component to the second component.
According to a second aspect of embodiments of the present application, there is provided a data flow system, the system including:
the data context tree setting module is used for setting a data context tree in global variables of a low-code platform, wherein the data context tree at least comprises a root node;
the data acquisition module is used for acquiring data to be injected, wherein the data to be injected comprises a target node identifier and data to be injected;
a first data injection module, configured to inject the data to be injected into the data context node if a data context node corresponding to the target node identifier exists in the data context tree;
and the second data injection module is used for creating a data context node corresponding to the target node identifier if the data context node corresponding to the target node identifier does not exist in the data context tree, storing the target node identifier in a parent node, and injecting the data to be injected into the created data context node.
Optionally, the system further comprises:
the data acquisition module is used for determining a data context node where the data to be acquired is located and a corresponding data path; and acquiring the data to be acquired from the data context node according to the data path.
Optionally, the source of the data to be injected at least includes a backend interface, a static file, or a component module; if the source is an assembly module, the data to be injected is the basic attribute of the assembly module.
According to a third aspect of embodiments of the present application, there is provided an electronic apparatus, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the computer program to implement the method of the first aspect.
According to a fourth aspect of embodiments herein, there is provided a computer readable storage medium having stored thereon computer readable instructions executable by a processor to implement the method of the first aspect described above.
To sum up, the embodiment of the present application provides a data flow method and system, where a data context tree is set in a global variable of a low code platform, where the data context tree at least includes a root node; acquiring data to be injected, wherein the data to be injected comprises a target node identifier and data to be injected; if a data context node corresponding to the target node identification exists in the data context tree, injecting the data needing to be injected into the data context node; if the data context node corresponding to the target node identification does not exist in the data context tree, a data context node corresponding to the target node identification is newly established, the target node identification is stored in a father node, and the data needing to be injected is injected into the newly established data context node. The data transfer capability in the low-code platform is effectively improved, and the data interaction requirement under a complex service scene is flexibly realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It should be apparent that the drawings in the following description are merely exemplary, and that other embodiments can be derived from the drawings provided by those of ordinary skill in the art without inventive effort.
The structures, ratios, sizes, and the like shown in the present specification are only used for matching with the contents disclosed in the specification, so that those skilled in the art can understand and read the present invention, and do not limit the conditions for implementing the present invention, so that the present invention has no technical significance, and any structural modifications, changes in the ratio relationship, or adjustments of the sizes, without affecting the functions and purposes of the present invention, should still fall within the scope of the present invention.
Fig. 1 is a schematic flow chart of a data flow method according to an embodiment of the present application;
FIG. 2 is a diagram of an example data-driven model provided by an embodiment of the present application;
FIG. 3 is a diagram of an example data context model provided by an embodiment of the present application;
FIG. 4 is a diagram of an example data context tree binding data model provided by an embodiment of the present application;
FIG. 5 is a diagram illustrating an exemplary component model provided by an embodiment of the present application;
fig. 6 is a block diagram of a data flow system according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 8 shows a schematic diagram of a computer-readable storage medium provided by an embodiment of the present application.
Detailed Description
The present invention is described in terms of particular embodiments, other advantages and features of the invention will become apparent to those skilled in the art from the following disclosure, and it is to be understood that the described embodiments are merely exemplary of the invention and that it is not intended to limit the invention to the particular embodiments disclosed. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 illustrates a data flow method provided in an embodiment of the present application, where the method includes:
step 101: setting a data context tree in a global variable of a low-code platform, wherein the data context tree at least comprises a root node;
step 102: acquiring data to be injected, wherein the data to be injected comprises a target node identifier and data to be injected;
step 103: if a data context node corresponding to the target node identification exists in the data context tree, injecting the data needing to be injected into the data context node;
step 104: if the data context node corresponding to the target node identification does not exist in the data context tree, a data context node corresponding to the target node identification is newly established, the target node identification is stored in a father node, and the data needing to be injected is injected into the newly established data context node.
In one possible embodiment, the method further comprises: determining a data context node where data to be acquired is located and a corresponding data path; and acquiring the data to be acquired from the data context node according to the data path.
In a possible embodiment, the source of the data to be injected at least comprises a backend interface, a static file or a component module; if the source is an assembly module, the data to be injected is the basic attribute of the assembly module.
In one possible implementation, the attributes of the data context node include a self attribute and a reference attribute; if the data context node is a father node, the reference attribute is null; and if the data context node is a child node, the reference attribute is a collection of the self attribute and the reference attribute of the parent node to which the child node belongs.
In one possible implementation, if a second component in the component module needs to obtain the basic property of the first component, the method includes:
the data context module receives data to be injected of a first component, wherein the data to be injected of the first component comprises a target node identifier and a basic attribute of the first component;
if the data context module determines that the data context node corresponding to the target node identifier does not exist in the data context tree, establishing the data context node corresponding to the target node identifier, storing the target node identifier in a parent node, and injecting the basic attribute of the first component into the self attribute of the established data context node; if the data context node corresponding to the target node identification exists in the data context tree, injecting the basic attribute of the first component into the self attribute of the data context node;
and the data context module calls the basic attribute of the first component from the data context node where the basic attribute of the first component is located according to the data path corresponding to the basic attribute of the first component in the data context tree, and sends the called basic attribute of the first component to the second component.
In the data component module provided in the embodiment of the present application, the component may call data attributes of other components through the data context module.
In one possible implementation, the data context module receives data according to a global variable receive function that is determined according to the target data context node identification and the injected data.
In one possible implementation, the data context module calls data according to a global variable call function, where the global variable call function is determined according to the target data context node identifier and a data path of the call data.
According to the data flow method provided by the embodiment of the application, the data nodes in the data context module are bound through the components, the design mode of the data driving components is effectively realized, and the data flow capacity in the low-code platform is improved.
A unique data binding path is designated by binding the data context identification of the corresponding attribute when the component is selected and analyzing the specific structure of the data in the specific identification. The coupling degree between the component and the data interface can be reduced, and the component can designate a unique data binding path regardless of how the data structure of the interface is designed by the back end. While components may place their properties into the data context module for use by other components. When the attribute changes, the component bound with the data can receive the change at the same time, thereby greatly improving the flexibility of communication between the components and being convenient for realizing the service requirement under the complex service scene.
The data flow method based on the low-code platform provided by the embodiment of the application is described in detail below with reference to the accompanying drawings.
Fig. 2 shows a data-driven model diagram provided in an embodiment of the present application. The entire model proceeds around the data context module.
The data context module is used for data collection work of the low-code platform, and the data source of the data context module can be any mode such as a backend interface, a static file and a component module. Meanwhile, an external data structure of the data context module can provide a unique path for the components to bind data, the attribute of the component module also supports data input into the data context module, and other components realize communication among the components by binding data input into the data context module by any component. Wherein the component module is a module that the low code platform itself has. The embodiment of the application focuses on the part of the component module related to data circulation.
The complete data flow process involves the following aspects:
in a first aspect, a data context tree is initialized.
A data context tree is the underlying data structure in a data context module. Fig. 3 shows a data context model diagram provided by an embodiment of the present application. In the data context model, each data set has a respective child data set and parent data set. A tree-type context model structure is formed through the parent-child relationship, a parent data set is not provided as a root data set, and a child data set is not provided as a leaf data set. While each identifiable data set has two attributes: self attributes and reference attributes. The data in the self attribute is owned or set by the data set at the initial creation and represents the data owned by the data set. The reference attribute refers to a set of self attributes and reference attributes owned by a parent data set for a child data set.
During the process of initializing the data context tree, an empty root data set is generated, and the node of the data set in the data context is marked as D 0 The node has genusThe sex data is used for storing self attributes, and also has a neighbor relation child children for storing a sub-level data set identification. Child children is used for the parent deposit subset identification. Finally, the data context TREE is defined in a global variable of the low code platform, with a name of $ TREE, which is referred to below as the data context TREE.
In a second aspect, data is input into a data context tree.
The data context module defines the data input mode as set, and the method for globally acquiring data input is $ tree. The input data can be from data sets such as backend interfaces, static files, etc., or from component inputs, etc.
The process of data entry requires the specification of the corresponding data context node, described as the expression of the function $ tree n Tdata), where D n For the data context node, Tdata is data to be input.
Data is input by default from the root node when no input node is selected. When selecting root node D 0 When data is input, only the data needs to be merged to the attribute data; when a new data node needs to be created, the new node may be identified as D 1 And inputting data in its data attribute, and simultaneously at D 1 Parent node D of 0 Child's in-neighbor identification D 1
When the source of the input data in the data context is a component, a global input method needs to be called in the component, and a basic attribute unique to the component is input, and the function is described as $ tree.set (D) n PropertyData), in which D n For self-specified data context nodes, PropertyData is a component property.
FIG. 3 shows an internal schematic of a data context model. data2 and data3 are a subset of data1, data3 is a subset of data1 and data2, and data4 is a subset of data1 and data 3. Data2 says that data2 has reference attributes in addition to its own attributes, and the reference attributes of data2 are a set of own attributes (a, b) and reference attributes (none) owned by the child data set data2 and the parent data set data 1. All data sets are selectable nodes.
As shown in fig. 3, when the data context module inputs data, in data3, when the self attribute and the reference attribute in a certain data set are renamed, the self attribute covers the reference attribute during analysis, the value of the reference attribute a in data4 is the value of the self attribute a in data3, the self attribute a in data1 is not affected, and the data is transmitted in a chain structure.
In a third aspect, data in a data context tree is obtained.
The data context tree needs to define an acquisition method get of data, and the acquisition method for globally acquiring data is $ tree. Data node D needing to be appointed to be acquired when data is acquired n And an acquired datapath describing a function $ tree n , path)。
As shown in FIG. 4, an arbitrary data set (a collection of self attributes plus reference attributes) is stored in a tree structure in the data context module. Brackets are used to express the hierarchy within the data set. When a certain attribute value in a data context node needs to be acquired, the data node identifier D can be specified 1 And a data path. The way in which the property values are bound in fig. 4 is expressed as the function $ tree 1 B, f, h). The data path is (b, f, h). The global data acquisition method $ tree.get can also be used within the same module to bind to the required data value.
The specific processes of data node designation and path identification need to be implemented in a visualization form on a low-code platform, and the implementation manners of different platforms are different, so that the embodiments of the present application are not further discussed in this respect.
In a fourth aspect, inter-component communication.
The second aspect mentioned above has mentioned that the self-attributes in the component can be input into the data context, and if necessary, the component can selectively input the self-unique basic attributes into the data context module. The other components can bind the property through a global data acquisition method $ tree. As shown in fig. 5, when a component binds a certain property in the data context tree, the property can be used by the internal logic of the component through real-time flow, that is, the property can be called by other components. Therefore, in the process, the component only needs to pay attention to the logic of the component without paying attention to specific definition, sources, reference modes and the like of the bound attribute, and the limitation that only fixed scenes can be realized by fixed formats or convention rules is broken through.
To sum up, the embodiment of the present application provides a data flow method, where a data context tree is set in a global variable of a low code platform, where the data context tree at least includes a root node; acquiring data to be injected, wherein the data to be injected comprises a target node identifier and data to be injected; if a data context node corresponding to the target node identification exists in the data context tree, injecting the data needing to be injected into the data context node; if the data context node corresponding to the target node identification does not exist in the data context tree, a data context node corresponding to the target node identification is newly established, the target node identification is stored in a father node, and the data needing to be injected is injected into the newly established data context node. The data transfer capability in the low-code platform is effectively improved, and the data interaction requirement under a complex service scene is flexibly realized.
Based on the same technical concept, an embodiment of the present application further provides a data flow system, as shown in fig. 6, the system includes:
a data context tree setting module 601, configured to set a data context tree in a global variable of a low-code platform, where the data context tree at least includes a root node;
a data obtaining module 602, configured to obtain data to be injected, where the data to be injected includes a target node identifier and data to be injected;
a first data injection module 603, configured to inject the data to be injected into the data context node if a data context node corresponding to the target node identifier exists in the data context tree;
a second data injection module 604, configured to, if there is no data context node corresponding to the target node identifier in the data context tree, create a new data context node corresponding to the target node identifier, store the target node identifier in a parent node, and inject the data to be injected into the newly created data context node.
In one possible embodiment, the system further comprises: the data acquisition module is used for determining a data context node where the data to be acquired is located and a corresponding data path; and acquiring the data to be acquired from the data context node according to the data path.
In a possible embodiment, the source of the data to be injected at least comprises a backend interface, a static file or a component module; if the source is an assembly module, the data to be injected is the basic attribute of the assembly module.
The embodiment of the application also provides electronic equipment corresponding to the method provided by the embodiment. Please refer to fig. 7, which illustrates a schematic diagram of an electronic device according to some embodiments of the present application. The electronic device 20 may include: the system comprises a processor 200, a memory 201, a bus 202 and a communication interface 203, wherein the processor 200, the communication interface 203 and the memory 201 are connected through the bus 202; the memory 201 stores a computer program that can be executed on the processor 200, and the processor 200 executes the computer program to perform the method provided by any of the foregoing embodiments of the present application.
The Memory 201 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one physical port 203 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
Bus 202 can be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 201 is used for storing a program, and the processor 200 executes the program after receiving an execution instruction, and the method disclosed by any of the foregoing embodiments of the present application may be applied to the processor 200, or implemented by the processor 200.
The processor 200 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 200. The Processor 200 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 201, and the processor 200 reads the information in the memory 201 and completes the steps of the method in combination with the hardware thereof.
The electronic device provided by the embodiment of the application and the method provided by the embodiment of the application have the same inventive concept and have the same beneficial effects as the method adopted, operated or realized by the electronic device.
Referring to fig. 8, the computer readable storage medium is an optical disc 30, on which a computer program (i.e., a program product) is stored, and when the computer program is executed by a processor, the computer program performs the method provided in any of the foregoing embodiments.
It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, a phase change memory (PRAM), a Static Random Access Memory (SRAM), a Dynamic Random Access Memory (DRAM), other types of Random Access Memories (RAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash memory, or other optical and magnetic storage media, which are not described in detail herein.
The computer-readable storage medium provided by the above-mentioned embodiments of the present application and the method provided by the embodiments of the present application have the same advantages as the method adopted, executed or implemented by the application program stored in the computer-readable storage medium.
It should be noted that:
the algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. In addition, this application is not directed to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the present application as described herein, and any descriptions of specific languages are provided above to disclose the best modes of the present application.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the application, various features of the application are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the application and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: this application is intended to cover such departures from the present disclosure as come within known or customary practice in the art to which this invention pertains. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this application.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the application and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the present application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the creation apparatus of a virtual machine according to embodiments of the present application. The present application may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present application may be stored on a computer readable medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the application, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The above description is only for the preferred embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (4)

1. A method for data streaming, the method comprising:
setting a data context tree in a global variable of a low-code platform, wherein the data context tree at least comprises a root node;
acquiring data to be injected, wherein the data to be injected comprises a target node identifier and data to be injected; the source of the data to be injected at least comprises a back-end interface, a static file or a component module; if the source is an assembly module, the data to be injected is the basic attribute of the assembly module;
if a data context node corresponding to the target node identification exists in the data context tree, injecting the data needing to be injected into the data context node;
if the data context node corresponding to the target node identification does not exist in the data context tree, a data context node corresponding to the target node identification is newly established, the target node identification is stored in a father node, and the data needing to be injected is injected into the newly established data context node;
determining a data context node where data to be acquired is located and a corresponding data path;
acquiring the data to be acquired from the data context node according to the data path; the attributes of the data context nodes comprise self attributes and reference attributes; if the data context node is a father node, the reference attribute is null; if the data context node is a child node, the reference attribute is a set of self attribute and reference attribute of a father node to which the child node belongs;
if a second component in the component module needs to acquire the basic attribute of the first component, the method comprises the following steps:
receiving data to be injected of a first component, wherein the data to be injected of the first component comprises a target node identifier and a basic attribute of the first component;
if the data context node corresponding to the target node identifier does not exist in the data context tree, establishing the data context node corresponding to the target node identifier, storing the target node identifier in a parent node, and injecting the basic attribute of the first component into the self attribute of the established data context node; if the data context node corresponding to the target node identification exists in the data context tree, injecting the basic attribute of the first component into the self attribute of the data context node;
and according to a data path corresponding to the basic attribute of the first component in the data context tree, calling the basic attribute of the first component from a data context node where the basic attribute of the first component is located, and sending the called basic attribute of the first component to the second component.
2. A data streaming system, the system comprising:
the data context tree setting module is used for setting a data context tree in global variables of a low-code platform, and the data context tree at least comprises a root node;
the data acquisition module is used for acquiring data to be injected, wherein the data to be injected comprises a target node identifier and data to be injected; the source of the data to be injected at least comprises a back-end interface, a static file or a component module; if the source is an assembly module, the data to be injected is the basic attribute of the assembly module;
a first data injection module, configured to inject the data to be injected into the data context node if a data context node corresponding to the target node identifier exists in the data context tree;
a second data injection module, configured to, if there is no data context node corresponding to the target node identifier in the data context tree, create a data context node corresponding to the target node identifier, store the target node identifier in a parent node, and inject the data to be injected into the created data context node;
the data acquisition module is also used for determining a data context node where the data to be acquired is located and a corresponding data path; acquiring the data to be acquired from the data context node according to the data path; the attributes of the data context node comprise self attributes and reference attributes; if the data context node is a father node, the reference attribute is null; if the data context node is a child node, the reference attribute is a set of self attribute and reference attribute of a father node to which the child node belongs;
if a second component in the component module needs to acquire the basic attribute of the first component, the system comprises:
the data acquisition module is further configured to receive data to be injected of a first component, where the data to be injected of the first component includes a target node identifier and a basic attribute of the first component;
the second data injection module is further configured to establish a data context node corresponding to the target node identifier and store the target node identifier in a parent node if it is determined that the data context node corresponding to the target node identifier does not exist in the data context tree, and inject the basic attribute of the first component into the self attribute of the established data context node; if the data context node corresponding to the target node identification exists in the data context tree, injecting the basic attribute of the first component into the self attribute of the data context node;
and the data calling module is used for calling the basic attribute of the first component from the data context node where the basic attribute of the first component is located according to the data path corresponding to the basic attribute of the first component in the data context tree, and sending the called basic attribute of the first component to the second component.
3. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor executes when executing the computer program to implement the method as claimed in claim 1.
4. A computer-readable storage medium having computer-readable instructions stored thereon, the computer-readable instructions being executable by a processor to implement the method of claim 1.
CN202210190410.1A 2022-02-28 2022-02-28 Data transfer method and system Active CN114254068B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210190410.1A CN114254068B (en) 2022-02-28 2022-02-28 Data transfer method and system
PCT/CN2023/074684 WO2023160367A1 (en) 2022-02-28 2023-02-07 Data transfer method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210190410.1A CN114254068B (en) 2022-02-28 2022-02-28 Data transfer method and system

Publications (2)

Publication Number Publication Date
CN114254068A CN114254068A (en) 2022-03-29
CN114254068B true CN114254068B (en) 2022-08-09

Family

ID=80800157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210190410.1A Active CN114254068B (en) 2022-02-28 2022-02-28 Data transfer method and system

Country Status (2)

Country Link
CN (1) CN114254068B (en)
WO (1) WO2023160367A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114254068B (en) * 2022-02-28 2022-08-09 杭州未名信科科技有限公司 Data transfer method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162525A (en) * 2019-04-17 2019-08-23 平安科技(深圳)有限公司 Read/write conflict solution, device and storage medium based on B+ tree
CN112395483A (en) * 2020-11-13 2021-02-23 郑州阿帕斯数云信息科技有限公司 Page rendering method and device based on tree structure
CN112905847A (en) * 2021-01-13 2021-06-04 浪潮云信息技术股份公司 Tree structure construction method and device
CN113392068A (en) * 2021-06-28 2021-09-14 上海商汤科技开发有限公司 Data processing method, device and system
CN113612818A (en) * 2021-07-09 2021-11-05 中国汽车技术研究中心有限公司 Industrial app issuing system and method of low-code platform
CN113918151A (en) * 2021-10-12 2022-01-11 平安国际智慧城市科技股份有限公司 Low-code page development method, device, equipment and storage medium
CN114089986A (en) * 2021-11-23 2022-02-25 浩云科技股份有限公司 Method, system, device and medium for configuring low code development platform function expression

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106570017A (en) * 2015-10-09 2017-04-19 北大方正集团有限公司 Data caching method and system
CN107679049A (en) * 2016-08-02 2018-02-09 北京京东尚科信息技术有限公司 Obtain the method, apparatus and system of the hop of tree structure data two
CN108255895A (en) * 2016-12-29 2018-07-06 孙翔 A kind of web data acquisition methods using context environmental rule
CN108932137B (en) * 2018-07-17 2022-09-27 西安航空学院 Assembly-level inter-process pointer analysis method based on speculative multithreading
US20210263834A1 (en) * 2020-02-20 2021-08-26 4Logik LLC Code Generation Platform
CN112698831B (en) * 2020-12-25 2022-08-09 昆明理工大学 Code automatic generation quality evaluation method
CN112988599B (en) * 2021-04-29 2021-07-23 腾讯科技(深圳)有限公司 Page debugging method and device, electronic equipment and storage medium
CN114254068B (en) * 2022-02-28 2022-08-09 杭州未名信科科技有限公司 Data transfer method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162525A (en) * 2019-04-17 2019-08-23 平安科技(深圳)有限公司 Read/write conflict solution, device and storage medium based on B+ tree
CN112395483A (en) * 2020-11-13 2021-02-23 郑州阿帕斯数云信息科技有限公司 Page rendering method and device based on tree structure
CN112905847A (en) * 2021-01-13 2021-06-04 浪潮云信息技术股份公司 Tree structure construction method and device
CN113392068A (en) * 2021-06-28 2021-09-14 上海商汤科技开发有限公司 Data processing method, device and system
CN113612818A (en) * 2021-07-09 2021-11-05 中国汽车技术研究中心有限公司 Industrial app issuing system and method of low-code platform
CN113918151A (en) * 2021-10-12 2022-01-11 平安国际智慧城市科技股份有限公司 Low-code page development method, device, equipment and storage medium
CN114089986A (en) * 2021-11-23 2022-02-25 浩云科技股份有限公司 Method, system, device and medium for configuring low code development platform function expression

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Democratizing the development of recommender systems by means of low-code platforms;Claudio Di Sipio 等;《ACM》;20201026;第1-9页 *
一种SAP低代码开发平台的设计与实现;张明;《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》;20201215;I138-83 *

Also Published As

Publication number Publication date
CN114254068A (en) 2022-03-29
WO2023160367A1 (en) 2023-08-31

Similar Documents

Publication Publication Date Title
US10579344B2 (en) Converting visual diagrams into code
CN107135663B (en) Impact analysis
CN110806863A (en) Interface document generation method and device, electronic equipment and storage medium
CN108920496B (en) Rendering method and device
CN115617327A (en) Low code page building system, method and computer readable storage medium
US8839192B2 (en) System and method for presentation of cross organizational applications
US20160313874A1 (en) Visual effects system for "big data" analysis workflow editors, distribution platforms, execution engines, and management systems comprising same
CN110069259B (en) ID L file-based parsing method and device, electronic equipment and storage medium
JP2006190261A (en) Prescribed navigation using topology metadata and navigation path
CN111177621B (en) Web page development method, device and system
CN106557307B (en) Service data processing method and system
CN109408354B (en) Data processing method and device for application component
CN114254068B (en) Data transfer method and system
JP2005018114A (en) Program maintenance support device, program maintenance support method, and program
CN114707086A (en) Route generation method and system
CN111666100A (en) Software framework generation method and device, electronic equipment and storage medium
da Cruz et al. A metamodel-based approach for automatic user interface generation
CN112068879A (en) Method and device for constructing client application development framework based on configuration
CN116107669B (en) Operator registration method, device and equipment of deep learning framework and storage medium
CN115756433A (en) Code platform migration method and device, electronic equipment and readable storage medium
CN114721647B (en) Object-oriented programming method based on codeless application development
CN107506299B (en) Code analysis method and terminal equipment
CN112463202B (en) Configuration method and device of operating system functional components
CN114677114A (en) Approval process generation method and device based on graph dragging
Sellami et al. Automating resources discovery for multiple data stores cloud applications

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant