Search

CN-115268885-B - Data assembly component and data assembly method

CN115268885BCN 115268885 BCN115268885 BCN 115268885BCN-115268885-B

Abstract

The invention discloses a data assembly component and a data assembly method, the data assembly component is divided into two parts, namely data model conversion and data processing. The data model conversion is to convert the entity object Schema data model to be assembled into a custom grammar sugar rule script, firstly, carrying out data association in a visual way on a page, automatically matching, filling the Schema data model by matching with a function element method, and then converting the Schema data model into the custom grammar rule script. The execution engine generates target data by analyzing the custom grammar rule script by acquiring source data from the context when processing the custom grammar rule script, and sets the target data into the context, and acquires the target data from the context when using the target data. The invention can complete the assembly of the entity object only by automatically or manually matching the attribute of the entity object in the visualization on the page, thereby greatly improving the on-line research and development efficiency of research personnel.

Inventors

  • CHEN BIN

Assignees

  • 运去哪物流科技集团有限公司
  • 上海汇航捷讯网络科技有限公司

Dates

Publication Date
20260421
Application Date
20220614
Priority Date
20220614

Claims (1)

  1. 1. The data assembling method is characterized by comprising data model conversion and data processing, wherein the data model conversion is to convert an entity object Schema data model to be assembled into a custom grammar sugar rule script, and comprises the following specific steps of: The method comprises the steps of 1, completing the definition of a physical object Schema data model to be assembled on a Schema-tab page, and completing the definition of the physical object Schema data model to be assembled on the Schema-tab page through importing a common VO, importing a dependent interface and importing a context operation; Step 2, performing assignment operation on the Schema data model in a data association, automatic matching and function element method mode on an assignment-tab page, and simultaneously providing search, emptying, folding, duplicate removal and empty judgment operation on the Schema data model node attribute; Step 3, aiming at the assignment operation of each node attribute, completing assignment of the Schema data model in a text box of a corresponding node in a tab page by adopting a plurality of auxiliary functions, and converting the Schema data model into a custom grammar sugar rule script after saving; Step 4, executing a custom grammar sugar rule script on the test-tab page local simulator to obtain simulation target assembly data; and 5, when the custom grammar sugar rule script is executed by the production environment, analyzing the value of each node from the context source data by using JsonPath and mvel actuators of snack packages, and for the composite object node, storing each hierarchical object of the composite object by using a ThreadLocal actuator and analyzing and obtaining target assembly data by using JsonPath or mvel actuators.

Description

Data assembly component and data assembly method Technical Field The invention relates to the field of data assembly, in particular to a data assembly component and a data assembly method. Background The data assembly component circulated in the market at present achieves the purpose through drawing a drawing control, is not clear and visual enough, has insufficient automation and low efficiency of the function of assigning the internal attribute, and provides a data assembly component and a data assembly method. Disclosure of Invention The present invention is directed to overcoming the drawbacks of the prior art, and provides a data assembly and a data assembly method for solving the problems set forth in the background art. The technical scheme is that the data assembly component comprises data model conversion and data processing, wherein the data model conversion is to convert an entity object Schema data model to be assembled into a custom grammar sugar rule script. A data assembling method comprises the following specific steps: Step 1, completing the definition of a Schema data model of an entity object to be assembled on a Schema-tab page; Step 2, performing assignment operation on the Schema data model in a data association, automatic matching and function element method mode on an assignment-tab page, and simultaneously providing search, emptying, folding, duplicate removal and empty judgment operation on the Schema data model node attribute; Step 3, aiming at the assignment operation of each node attribute, adopting a plurality of auxiliary functions in a text box of a corresponding node in a tab page to finish assignment of the Schema data model, and converting the Schema data model into a custom grammar sugar rule script after saving; Step 4, executing a custom grammar sugar rule script on the test-tab page local simulator to obtain simulation target assembly data; and 5, when the custom grammar sugar rule script is executed by the production environment, analyzing the value of each node from the context source data by using JsonPath and mvel actuators of snack packages, and for the composite object node, storing each hierarchical object of the composite object by using a ThreadLocal actuator and analyzing and obtaining target assembly data by using JsonPath or mvel actuators. As a preferred embodiment of the present invention, the plurality of auxiliary functions in the step 3 include using an association function, using a function element method, and viewing assignment use cases. As a preferable technical scheme of the invention, in the step 1, the definition of the entity object Schema data model required to be assembled is completed through importing a common VO, importing a dependent interface and importing a context operation. The invention has the beneficial effects that the invention can complete the assembly of the entity object only by automatically or manually matching the attribute of the entity object visualized on the page when the research and development personnel assemble the data, and the work of data assembly is not completed by purely writing codes, thereby greatly improving the efficiency of online research and development of the research and development personnel. Drawings FIG. 1 is a system frame diagram of the present invention; FIG. 2 is a page view of the Schema-tab of the present invention; FIG. 3 is a page view of the assignment-tab of the present invention; FIG. 4 is a page view of a test-tab of the present invention; FIG. 5 is a page diagram of the context of the present invention; FIG. 6 is a page diagram of a function of the present invention; FIG. 7 is a page diagram of a functional use case of the present invention. Detailed Description The preferred embodiments of the present invention will be described in detail below with reference to the attached drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making clear and defining the scope of the present invention. The embodiment of the invention provides a technical scheme that the data assembly component comprises data model conversion and data processing, wherein the data model conversion is to convert an entity object Schema data model to be assembled into a custom grammar sugar rule script. A data assembling method comprises the following specific steps: Step 1, as shown in fig. 2, a developer can complete the definition of the Schema data model of the entity object to be assembled by importing common VO, importing dependent interfaces, importing context and the like on the Schema-tab page. And 2, performing assignment operation on the Schema data model in a manner of data association, automatic matching and function element method on an assignment-tab page shown in fig. 3, and simultaneously providing operations of searching, emptying, folding, de-duplication and empty judgment on the node attribute of the Schema data model