CA3142770A1 - Component linkage configuration method, device, computer equipment and storage medium - Google Patents
Component linkage configuration method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CA3142770A1 CA3142770A1 CA3142770A CA3142770A CA3142770A1 CA 3142770 A1 CA3142770 A1 CA 3142770A1 CA 3142770 A CA3142770 A CA 3142770A CA 3142770 A CA3142770 A CA 3142770A CA 3142770 A1 CA3142770 A1 CA 3142770A1
- Authority
- CA
- Canada
- Prior art keywords
- data
- linkage
- component
- attribute
- event
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000009877 rendering Methods 0.000 claims abstract description 51
- 230000007246 mechanism Effects 0.000 claims abstract description 14
- 238000004590 computer program Methods 0.000 claims description 25
- 238000006243 chemical reaction Methods 0.000 claims description 7
- 230000008569 process Effects 0.000 description 9
- 238000010276 construction Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/28—Databases characterised by their database models, e.g. relational or object models
- G06F16/284—Relational databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Computational Linguistics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention discloses a component linkage configuration method, a computer equipment and a storage medium. The method comprises: obtaining demand data of a component to be configured, creating a plurality of attributes of the component to be configured according to the demand data, and generating attribute data, configuring linkage configuration data between the plural attributes according to the demand data, wherein the linkage configuration data includes linkage data and linkage relation, matching the linkage configuration data with the attribute data according to a preset rule, and obtaining valid association data, calculating to obtain an association data object to be processed according to the valid association data and the linkage data, employing a preset rendering mechanism to perform linkage rendering on the association data object to be processed, and generating a target component.
Description
COMPONENT LINKAGE CONFIGURATION METHOD, DEVICE, COMPUTER
EQUIPMENT AND STORAGE MEDIUM
BACKGROUND OF THE INVENTION
Technical Field [0001] The present invention relates to the field of configuration technology, and more particularly to a component linkage configuration method, device, computer equipment and storage medium.
Description of Related Art
EQUIPMENT AND STORAGE MEDIUM
BACKGROUND OF THE INVENTION
Technical Field [0001] The present invention relates to the field of configuration technology, and more particularly to a component linkage configuration method, device, computer equipment and storage medium.
Description of Related Art
[0002] In the currently available visual construction platforms, almost all construction components as supplied are custom-developed, while there lacks open component construction. The difficulty of open component construction rests in the attributes of the components and complexity of events. The attributes of a component can be randomly collocated and combined, different values assigned to attributes also render different the other attributes and events associated therewith, so it is required to well process the restraint between different attributes and events, and the linkage restraint between infinite hierarchies.
[0003] Accordingly, there is an urgent need to propose a novel component linkage configuration method, so as to solve the above problems.
SUMMARY OF THE INVENTION
SUMMARY OF THE INVENTION
[0004] In order to solve the problems pending in the state of the art, embodiments of the present invention provide a method of and a device for configuring a component in linkage, a Date recue / Date received 2021-12-17 computer equipment and a storage medium, so as to overcome prior-art problems in which there is restraint between attributes and there is restraint between attributes and events in component configuration.
[0005] To solve one or more of the aforementioned technical problems, the present invention employs the following technical solutions.
[0006] According to the first aspect, a component linkage configuration method is provided, and the method comprises the following steps:
[0007] obtaining demand data of a component to be configured, creating a plurality of attributes of the component to be configured according to the demand data, and generating attribute data;
[0008] configuring linkage configuration data between the plural attributes according to the demand data, wherein the linkage configuration data includes linkage data and linkage relation;
[0009] matching the linkage configuration data with the attribute data according to a preset rule, and obtaining valid association data;
[0010] calculating to obtain an association data object to be processed according to the valid association data and the linkage data; and
[0011] employing a preset rendering mechanism to perform linkage rendering on the association data object to be processed, and generating a target component.
[0012] Further, the step of configuring linkage configuration data between the plural attributes according to the demand data includes:
[0013] configuring linkage data between the plural attributes according to the demand data, and determining linkage relation between the plural attributes according to the linkage data.
[0014] Further, the step of matching the linkage configuration data with the attribute data according to a preset rule, and obtaining valid association data includes:
Date recue / Date received 2021-12-17
Date recue / Date received 2021-12-17
[0015] obtaining a data type of the linkage configuration data, and matching a corresponding target preset rule out of the preset rule according to the data type; and
[0016] matching the linkage configuration data with the attribute data according to the target preset rule, and obtaining valid association data.
[0017] Further, the data type includes a single element type and a list element type.
[0018] Further, when the data type is the list element type, the step of matching the linkage configuration data with the attribute data according to the target preset rule, and obtaining valid association data includes:
[0019] after multi-dimension to one-dimension conversion of attribute fields in the linkage configuration data according to hierarchical relation of the attributes, matching the converted linkage configuration data with the attribute data according to the target preset rule, and obtaining valid association data.
[0020] Moreover, the method further comprises:
[0021] creating an event of the component to be configured according to the demand data, and configuring event data of the event and binding relation of the event with a corresponding attribute according to the attribute data.
[0022] Moreover, the method further comprises:
[0023] determining event configuration information with which the attribute is associated according to the attribute data, the event data and the binding relation, and rendering the event according to the event configuration information.
[0024] According to the second aspect, a device is provided, and the device comprises:
[0025] an attribute creating module, for obtaining demand data of a component to be configured, creating a plurality of attributes of the component to be configured according to the demand data, and generating attribute data;
Date recue / Date received 2021-12-17
Date recue / Date received 2021-12-17
[0026] a linkage configuring module, for configuring linkage configuration data between the plural attributes according to the demand data, wherein the linkage configuration data includes linkage data and linkage relation;
[0027] a data matching module, for matching the linkage configuration data with the attribute data according to a preset rule, and obtaining valid association data;
[0028] an object obtaining module, for calculating to obtain an association data object to be processed according to the valid association data and the linkage data; and
[0029] a linkage rendering module, for employing a preset rendering mechanism to perform linkage rendering on the association data object to be processed, and generating a target component.
[0030] According to the third aspect, a computer equipment is provided, which comprises a memory, a processor and a computer program stored on the memory and operable on the processor, and the following steps are realized when the processor executes the computer program:
[0031] obtaining demand data of a component to be configured, creating a plurality of attributes of the component to be configured according to the demand data, and generating attribute data;
[0032] configuring linkage configuration data between the plural attributes according to the demand data, wherein the linkage configuration data includes linkage data and linkage relation;
[0033] matching the linkage configuration data with the attribute data according to a preset rule, and obtaining valid association data;
[0034] calculating to obtain an association data object to be processed according to the valid association data and the linkage data; and
[0035] employing a preset rendering mechanism to perform linkage rendering on the association data object to be processed, and generating a target component.
[0036] According to the fourth aspect, further provided is a computer-readable storage medium Date recue / Date received 2021-12-17 storing a computer program thereon, and the following steps are realized when the computer program is executed by a processor:
[0037] obtaining demand data of a component to be configured, creating a plurality of attributes of the component to be configured according to the demand data, and generating attribute data;
[0038] configuring linkage configuration data between the plural attributes according to the demand data, wherein the linkage configuration data includes linkage data and linkage relation;
[0039] matching the linkage configuration data with the attribute data according to a preset rule, and obtaining valid association data;
[0040] calculating to obtain an association data object to be processed according to the valid association data and the linkage data; and
[0041] employing a preset rendering mechanism to perform linkage rendering on the association data object to be processed, and generating a target component.
[0042] Technical solutions provided by the embodiments of the present invention bring about the following advantageous effects:
[0043] In the component linkage configuration method, deviceõ computer equipment and storage medium provided by the embodiments of the present invention, by obtaining demand data of a component to be configured, creating a plurality of attributes of the component to be configured according to the demand data, and generating attribute data, configuring linkage configuration data between the plural attributes according to the demand data, wherein the linkage configuration data includes linkage data and linkage relation, matching the linkage configuration data with the attribute data according to a preset rule, obtaining valid association data, calculating to obtain an associated data object to be processed according to the valid association data and the linkage data, employing a preset rendering mechanism to perform linkage rendering on the association data object to be processed, and generating a target component, the present invention has solved the problems concerning restraint between attributes and restraint between Date recue / Date received 2021-12-17 attributes and events in component configuration, so as to realize the configuring capability that can be provided by the component itself, whereby the configuration effect is immediately displayed in accordance with the configuration and componentper se, and products with such auxiliary applications become more open and smart.
BRIEF DESCRIPTION OF THE DRAWINGS
BRIEF DESCRIPTION OF THE DRAWINGS
[0044] To more clearly explain the technical solutions in the embodiments of the present invention, drawings required for use in the following explanation of the embodiments are briefly described below. Apparently, the drawings described below are merely directed to some embodiments of the present invention, while it is further possible for persons ordinarily skilled in the art to base on these drawings to acquire other drawings, and no creative effort will be spent in the process.
[0045] Fig. 1 is a view illustrating the framework of a component configuring system according to an exemplary embodiment;
[0046] Fig. 2 is a flowchart schematically illustrating a component configuring process according to an exemplary embodiment;
[0047] Fig. 3 is a flowchart schematically illustrating a component rendering process according to an exemplary embodiment;
[0048] Fig. 4 is a flowchart illustrating a method of configuring a component in linkage according to an exemplary embodiment;
[0049] Fig. 5 is a view schematically illustrating the structure of a device for configuring a component in linkage according to an exemplary embodiment; and Date recue / Date received 2021-12-17
[0050] Fig. 6 is a view schematically illustrating the internal structure of a computer equipment according to an exemplary embodiment.
DETAILED DESCRIPTION OF THE INVENTION
DETAILED DESCRIPTION OF THE INVENTION
[0051] To make more lucid and clear the objectives, technical solutions and advantages of the present invention, technical solutions in the embodiments of the present invention will be described more clearly and completely below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the embodiments described below are merely partial, rather than the entire, embodiments of the present invention. All other embodiments achievable by persons ordinarily skilled in the art on the basis of the embodiments in the present invention without creative effort shall all fall within the protection scope of the present invention.
[0052] As noted in the Description of Related Art, due to such factors as attributes of component and complexity of events existent in open component construction, component constructing functions in some visual construction platforms in the state of the art usually support customized development, and cannot support open component construction.
[0053] To address such problem, a component linkage configuration method is creatively proposed in the embodiments of the present invention. This method combines individuality and commonality of each technology stack, takes the component as an independent module by loading the component, inputs data thereto via configuration and linkage rendering, so as to adapt to components output by different technology stacks, to realize configuration linkage of such inherent attributes as attributes, events and slots in multiple states and multiple dimensions, to hence exhibit to users a closely knit configuration of attributes and events. A system architecture that realizes the aforementioned method is as shown in Fig. 1, it mainly consists of an application layer, a logical layer and a foundation support, of which the application layer includes a Date recue / Date received 2021-12-17 configuration end and a rendering end for supplying the user with configuration and rendering of the component, the logical layer includes data and a processor for storing relevant data and processing the relevant data, and the foundation support includes data type and control type for defining the data type and control type supported by the system.
Embodiment 1
Embodiment 1
[0054] Specifically, the aforementioned system mainly includes two sections when it executes the component linkage configuration method.
[0055] Section One: Component Configuration
[0056] Specifically, as shown in Fig. 2, plural attributes are firstly created at the configuration end according to user demand, and attribute data is stored in a preset format.
As a preferred example, the attribute data can be stored in JSON format. The linkage between the attributes is subsequently configured, that is to say, linkage configuration data between the attributes is configured, and the linkage configuration data is likewise stored in a preset format. As a preferred example, the linkage configuration data can be stored in JSON Schema format. The linkage configuration data includes linkage data and linkage relation. During specific implementation, it is possible to base on the types of the attribute and control thereof to divide the linkage data in terms of data type into a simple structure (including, but not limited to, numerical value, character string, Boolean value, etc.) and a complex structure (including, but not limited to, object, array, etc.), and to divide the linkage relation into character string matching, numerical value interval matching, and Boolean value matching, etc. As should be noted here, in the embodiments of the present invention, it is achievable to configure linkage restraint under different data types on the basis of the JavaScript data type in combination with the JSON schema specification. To subsequently enhance execution efficiency of the matching algorithm, it is possible to convert the attributes from multi-dimension to one-dimension according to hierarchical Date recue / Date received 2021-12-17 relation of the attributes.
As a preferred example, the attribute data can be stored in JSON format. The linkage between the attributes is subsequently configured, that is to say, linkage configuration data between the attributes is configured, and the linkage configuration data is likewise stored in a preset format. As a preferred example, the linkage configuration data can be stored in JSON Schema format. The linkage configuration data includes linkage data and linkage relation. During specific implementation, it is possible to base on the types of the attribute and control thereof to divide the linkage data in terms of data type into a simple structure (including, but not limited to, numerical value, character string, Boolean value, etc.) and a complex structure (including, but not limited to, object, array, etc.), and to divide the linkage relation into character string matching, numerical value interval matching, and Boolean value matching, etc. As should be noted here, in the embodiments of the present invention, it is achievable to configure linkage restraint under different data types on the basis of the JavaScript data type in combination with the JSON schema specification. To subsequently enhance execution efficiency of the matching algorithm, it is possible to convert the attributes from multi-dimension to one-dimension according to hierarchical Date recue / Date received 2021-12-17 relation of the attributes.
[0057] If the component to be configured in the user demand further includes events, it is further required to create the events, and to configure a binding relation of each event with a corresponding attribute and event data of each event on the basis of the stored attribute data, and to store the binding relation and the event data in a preset format.
As a preferred example, the binding relation and the event data can likewise be stored in the JSON
format.
As a preferred example, the binding relation and the event data can likewise be stored in the JSON
format.
[0058] Section Two: Component Rendering
[0059] Specifically, with reference to Fig. 3, in the embodiments of the present invention, as regards component rendering, considering the problem of page rendering performance so as to reduce the circumstance in which sequential processing of data would trigger doubled component rendering to thereby cause waste of thread occupation, the problem concerning linkage data matching is hence firstly dealt with, and an intersection of data is finally output, to thereby render the component.
[0060] During specific implementation, the rendering end firstly analyzes the configuration data structure obtained from the configuration end to split the configuration data structure in at least three sets of data, namely attribute data, event data, and linkage configuration data.
[0061] The linkage configuration data is firstly matched with the attribute data according to a preset rule to obtain valid association data. In order to enhance the execution efficiency of the matching algorithm, it is possible to, on the basis of element data types in a linkage configuration data list, divide the linkage configuration data into single element type (for instance, the data is a numerical value, a character string, a Boolean value, an object to which element cannot be added) and list element type (such as an object to which element can be added, an array object, etc.). Different matching rules are set for linkage Date recue / Date received 2021-12-17 configuration data of different types. As a preferred example, with respect to linkage configuration data of the single element type, it can be directly matched with the values of the attribute data to output the valid association data. With respect to linkage configuration data of the list element type, it is required to firstly convert the attributes from multi-dimension to one-dimension on the basis of the hierarchical relation of the attributes, namely to convert its attribute fields from multi-dimension to one-dimension, and subsequently to recursively process each element value, and to match according to the values of the attribute data to output the valid association data.
[0062] Specifically, since the attribute data configured by the configuration end in the embodiments of the present invention is of a tree structure that has infinite hierarchies, the time complexity of such data is relatively high during technical processing, as recursion of hierarchies is required for search, and the efficiency is low, so its conversion from multi-dimensional array to one-dimensional (that is to say, all attributes pertain to the same hierarchy) array enables quick search of the data object to be processed. During specific implementation, since the multi-dimensional array realizes the hierarchical relation according to the children fields in each attribute object data, and each attribute has a corresponding key under its current hierarchy, recursion is performed once through children and key to add a temporary index field in each attribute object, whereby firstly the uniqueness of each attribute object is guaranteed, and secondly it is made possible to quickly locate to its location in the multi-dimensional array through this field, so as to facilitate logic processing.
[0063] An example is taken below to explain the process of matching linkage configuration data of list element type with the attribute data according to a preset rule and obtaining the valid association data.
[0064] Suppose attribute A of the component is of a numerical value type, attribute B is a Boolean value, and attribute C is a character string. The linkage data of the configuration is that, Date recue / Date received 2021-12-17 when the value of attribute A equals to 0, the content of attribute C is cleared, when the value of attribute B is false, the configuration control of attribute C is hidden and the value of attribute C is removed. It is matched through attribute value data that the value of A is 0 and value of B is false, the intersection of the two is taken and the configuration control of attribute C is hidden and the value of C is removed according to weights.
[0065] Finally, the association data object to be processed is distributed to each of the corresponding attribute control, and attribute linkage rendering is realized via the rendering mechanism.
[0066] With respect to a component that contains an event, it is further required to perform event logic processing. During specific implementation, the attribute data and event data obtained by analysis are combined, with the event data as a starting point, the numerical value of the attribute is matched according to the attribute bound to the event (including the attribute whose data type is array or object), and the associated event configuration list information is finally output. Event configuration is rendered through the event configuration list information, and event codes can be output according to the combination of event template, slot and event type, etc.
Embodiment 2
Embodiment 2
[0067] Fig. 4 is a flowchart illustrating a method of configuring a component in linkage according to an exemplary embodiment, with reference to Fig. 4, the method comprises the following steps.
[0068] Si - obtaining demand data of a component to be configured, creating a plurality of attributes of the component to be configured according to the demand data, and generating attribute data.
Date recue / Date received 2021-12-17
Date recue / Date received 2021-12-17
[0069] Specifically, in this embodiment, the component to be configured includes, but is not limited to include, a page, etc. Plural attributes are pre-created according to demand data proposed by the user, and corresponding attribute data is generated, wherein the attributes are divided in terms of data type into character string, numerical value, Boolean value, object, array, etc., and the generated attribute data also has different data structures corresponding to the different data types, for instance, the array further covers therein corresponding list data and default values, etc. The attribute data is stored in a preset format, such as the JSON format, to facilitate subsequent loading and use.
[0070] S2 - configuring linkage configuration data between the plural attributes according to the demand data, wherein the linkage configuration data includes linkage data and linkage relation.
[0071] Specifically, after the attributes have been created, it is further required to base on the demand data proposed by the user to configure linkage configuration data between the attributes, and the linkage configuration data includes linkage data and linkage relation.
The linkage data includes, but is not limited to include, optional values of attributes as configured. When the value assigned to an attribute with linkage relation is changed, the values of other attributes and events associated with the attribute are also changed therewith.
The linkage data includes, but is not limited to include, optional values of attributes as configured. When the value assigned to an attribute with linkage relation is changed, the values of other attributes and events associated with the attribute are also changed therewith.
[0072] S3 - matching the linkage configuration data with the attribute data according to a preset rule, and obtaining valid association data.
[0073] Specifically, while a rendering process is being performed, the configuration data obtained from the configuration end is firstly analyzed through the rendering end, to extract therefrom attribute data and linkage configuration data, if the component includes an event, it is further required to extract event data. The linkage configuration data is subsequently matched with the attribute data according to a preset rule, and valid Date recue / Date received 2021-12-17 association data is obtained. As should be noted here, in the embodiments of the present invention, there may be many association data configured by one component, while during the process of rendering, in combination with the actual attribute data and event data etc., the data that actually triggers an association condition is referred to as the valid association data. For instance, in the association data and association relation configured for attribute A, when the value is true, attribute B is hidden, when the value is false, attribute C is hidden, at this time the value of A is false in the actual attribute data, then attribute C being hidden in the case of false is the valid association data.
[0074] S4 - calculating to obtain an association data object to be processed according to the valid association data and the linkage data.
[0075] Specifically, after the valid association data has been obtained, key in the association data is valuated in combination with the type of the associated attribute and the hierarchical relation with the associated attribute; if the association data contains an event, association data objects to which the event corresponds are further required to be extracted in combination with the data of the event, and the association data objects are finally implanted into corresponding attributes in the attribute configuration data and into corresponding events in the event data.
[0076] S5 - employing a preset rendering mechanism to perform linkage rendering on the associated data object to be processed, and generating a target component.
[0077] As a preferred embodiment in the embodiments of the present invention, the step of configuring linkage configuration data between the plural attributes according to the demand data includes:
[0078] configuring linkage data between the plural attributes according to the demand data, and determining linkage relation between the plural attributes according to the linkage data.
Date recue / Date received 2021-12-17
Date recue / Date received 2021-12-17
[0079] As a preferred embodiment in the embodiments of the present invention, the step of matching the linkage configuration data with the attribute data according to a preset rule, and obtaining valid association data includes:
[0080] obtaining a data type of the linkage configuration data, and matching a corresponding target preset rule out of the preset rule according to the data type; and
[0081] matching the linkage configuration data with the attribute data according to the target preset rule, and obtaining valid association data.
[0082] As a preferred embodiment in the embodiments of the present invention, the data type includes a single element type and a list element type.
[0083] As a preferred embodiment in the embodiments of the present invention, when the data type is the list element type, the step of matching the linkage configuration data with the attribute data according to the target preset rule, and obtaining valid association data includes:
[0084] after multi-dimension to one-dimension conversion of attribute fields in the linkage configuration data according to hierarchical relation of the attributes, matching the converted linkage configuration data with the attribute data according to the target preset rule, and obtaining valid association data.
[0085] As a preferred embodiment in the embodiments of the present invention, the method further comprises:
[0086] creating an event of the component to be configured according to the demand data, and configuring event data of the event and binding relation of the event with a corresponding attribute according to the attribute data.
[0087] As a preferred embodiment in the embodiments of the present invention, the method further comprises:
[0088] determining event configuration information with which the attribute is associated Date recue / Date received 2021-12-17 according to the attribute data, the event data and the binding relation, and rendering the event according to the event configuration information.
[0089] As a preferred embodiment in the embodiments of the present invention, the method further comprises:
[0090] monitoring attribute value of the attribute, if the attribute value varies, outputting rendering data again according to corresponding data, and reloading the component.
Embodiment 3
Embodiment 3
[0091] Fig. 5 is a view schematically illustrating the structure of a device for configuring a component in linkage according to an exemplary embodiment, and the device comprises:
[0092] an attribute creating module, for obtaining demand data of a component to be configured, creating a plurality of attributes of the component to be configured according to the demand data, and generating attribute data;
[0093] a linkage configuring module, for configuring linkage configuration data between the plural attributes according to the demand data, wherein the linkage configuration data includes linkage data and linkage relation;
[0094] a data matching module, for matching the linkage configuration data with the attribute data according to a preset rule, and obtaining valid association data;
[0095] an object obtaining module, for calculating to obtain an associated data object to be processed according to the valid association data and the linkage data; and
[0096] a linkage rendering module, for employing a preset rendering mechanism to perform linkage rendering on the associated data object to be processed, and generating a target component.
[0097] As a preferred embodiment in the embodiments of the present invention, the linkage configuring module is specifically employed for:
[0098] configuring linkage data between the plural attributes according to the demand data, and Date recue / Date received 2021-12-17 determining linkage relation between the plural attributes according to the linkage data.
[0099] As a preferred embodiment in the embodiments of the present invention, the data matching module is specifically employed for:
[0100] obtaining a data type of the linkage configuration data, and matching a corresponding target preset rule out of the preset rule according to the data type; and
[0101] matching the linkage configuration data with the attribute data according to the target preset rule, and obtaining valid association data.
[0102] As a preferred embodiment in the embodiments of the present invention, the data type includes a single element type and a list element type.
[0103] As a preferred embodiment in the embodiments of the present invention, the data matching module is further employed for:
[0104] after multi-dimension to one-dimension conversion of attribute fields in the linkage configuration data according to hierarchical relation of the attributes, matching the converted linkage configuration data with the attribute data according to the target preset rule, and obtaining valid association data.
[0105] As a preferred embodiment in the embodiments of the present invention, the device further comprises:
[0106] an event creating module, for creating an event of the component to be configured according to the demand data, and configuring event data of the event and binding relation of the event with a corresponding attribute according to the attribute data.
[0107] As a preferred embodiment in the embodiments of the present invention, the device further comprises:
[0108] an event rendering module, for determining event configuration information with which the attribute is associated according to the attribute data, the event data and the binding Date recue / Date received 2021-12-17 relation, and rendering the event according to the event configuration information.
[0109] Fig. 6 is a view schematically illustrating the internal structure of a computer equipment according to an exemplary embodiment, with reference to Fig. 6, the computer equipment comprises a processor, a memory, and a network interface connected to each other via a system bus. The processor of the computer equipment is employed to provide computing and controlling capabilities. The memory of the computer equipment includes a nonvolatile storage medium and an internal memory. The nonvolatile storage medium stores therein an operating system, a computer program and a database. The internal memory provides environment for the running of the operating system and the computer program in the nonvolatile storage medium. The network interface of the computer equipment is employed to connect to an external terminal via network for communication.
The computer program realizes component linkage configuration method when it is executed by a processor.
The computer program realizes component linkage configuration method when it is executed by a processor.
[0110] As understandable to persons skilled in the art, the structure illustrated in Fig. 6 is merely a block diagram of partial structure relevant to the solution of the present application, and does not constitute any restriction to the computer equipment on which the solution of the present application is applied, as the specific computer equipment may comprise component parts that are more than or less than those illustrated in Fig. 6, or may combine certain component parts, or may have different layout of component parts.
[0111] As a preferred embodiment in the embodiments of the present invention, the computer equipment comprises a memory, a processor and a computer program stored on the memory and operable on the processor, and the following steps are realized when the processor executes the computer program:
[0112] obtaining demand data of a component to be configured, creating a plurality of attributes of the component to be configured according to the demand data, and generating attribute data;
Date recue / Date received 2021-12-17
Date recue / Date received 2021-12-17
[0113] configuring linkage configuration data between the plural attributes according to the demand data, wherein the linkage configuration data includes linkage data and linkage relation;
[0114] matching the linkage configuration data with the attribute data according to a preset rule, and obtaining valid association data;
[0115] calculating to obtain an associated data object to be processed according to the valid association data and the linkage data; and
[0116] employing a preset rendering mechanism to perform linkage rendering on the association data object to be processed, and generating a target component.
[0117] As a preferred embodiment in the embodiments of the present invention, when the processor executes the computer program, the following step is further realized:
[0118] configuring linkage data between the plural attributes according to the demand data, and determining linkage relation between the plural attributes according to the linkage data.
[0119] As a preferred embodiment in the embodiments of the present invention, when the processor executes the computer program, the following steps are further realized:
[0120] obtaining a data type of the linkage configuration data, and matching a corresponding target preset rule out of the preset rule according to the data type; and
[0121] matching the linkage configuration data with the attribute data according to the target preset rule, and obtaining valid association data.
[0122] As a preferred embodiment in the embodiments of the present invention, the data type includes a single element type and a list element type.
[0123] As a preferred embodiment in the embodiments of the present invention, when the processor executes the computer program, the following step is further realized:
[0124] after multi-dimension to one-dimension conversion of attribute fields in the linkage configuration data according to hierarchical relation of the attributes, matching the Date recue / Date received 2021-12-17 converted linkage configuration data with the attribute data according to the target preset rule, and obtaining valid association data.
[0125] As a preferred embodiment in the embodiments of the present invention, when the processor executes the computer program, the following step is further realized:
[0126] creating an event of the component to be configured according to the demand data, and configuring event data of the event and binding relation of the event with a corresponding attribute according to the attribute data.
[0127] As a preferred embodiment in the embodiments of the present invention, when the processor executes the computer program, the following step is further realized:
[0128] determining event configuration information with which the attribute is associated according to the attribute data, the event data and the binding relation, and rendering the event according to the event configuration information.
[0129] In the embodiments of the present invention, there is further provided a computer-readable storage medium storing a computer program thereon, and the following steps are realized when the computer program is executed by a processor:
[0130] obtaining demand data of a component to be configured, creating a plurality of attributes of the component to be configured according to the demand data, and generating attribute data;
[0131] configuring linkage configuration data between the plural attributes according to the demand data, wherein the linkage configuration data includes linkage data and linkage relation;
[0132] matching the linkage configuration data with the attribute data according to a preset rule, and obtaining valid association data;
[0133] calculating to obtain an associated data object to be processed according to the valid association data and the linkage data; and
[0134] employing a preset rendering mechanism to perform linkage rendering on the associated Date recue / Date received 2021-12-17 data object to be processed, and generating a target component.
[0135] As a preferred embodiment in the embodiments of the present invention, when the computer program is executed by a processor, the following step is further realized:
[0136] configuring linkage data between the plural attributes according to the demand data, and determining linkage relation between the plural attributes according to the linkage data.
[0137] As a preferred embodiment in the embodiments of the present invention, when the computer program is executed by a processor, the following steps are further realized:
[0138] obtaining a data type of the linkage configuration data, and matching a corresponding target preset rule out of the preset rule according to the data type; and
[0139] matching the linkage configuration data with the attribute data according to the target preset rule, and obtaining valid association data.
[0140] As a preferred embodiment in the embodiments of the present invention, when the computer program is executed by a processor, the following step is further realized:
[0141] after multi-dimension to one-dimension conversion of attribute fields in the linkage configuration data according to hierarchical relation of the attributes, matching the converted linkage configuration data with the attribute data according to the target preset rule, and obtaining valid association data.
[0142] As a preferred embodiment in the embodiments of the present invention, when the computer program is executed by a processor, the following step is further realized:
[0143] creating an event of the component to be configured according to the demand data, and configuring event data of the event and binding relation of the event with a corresponding attribute according to the attribute data.
[0144] As a preferred embodiment in the embodiments of the present invention, when the computer program is executed by a processor, the following step is further realized:
Date recue / Date received 2021-12-17
Date recue / Date received 2021-12-17
[0145] determining event configuration information with which the attribute is associated according to the attribute data, the event data and the binding relation, and rendering the event according to the event configuration information.
[0146] In summary, technical solutions provided by the embodiments of the present invention bring about the following advantageous effects.
[0147] In the method of and device for configuring a component in linkage, computer equipment and storage medium provided by the embodiments of the present invention, by obtaining demand data of a component to be configured, creating a plurality of attributes of the component to be configured according to the demand data, and generating attribute data, configuring linkage configuration data between the plural attributes according to the demand data, wherein the linkage configuration data includes linkage data and linkage relation, matching the linkage configuration data with the attribute data according to a preset rule, obtaining valid association data, calculating to obtain an associated data object to be processed according to the valid association data and the linkage data, employing a preset rendering mechanism to perform linkage rendering on the associated data object to be processed, and generating a target component, the present invention has solved the problems concerning restraint between attributes and restraint between attributes and events in component configuration, so as to realize the configuring capability that can be provided by the component itself, whereby the configuration effect is immediately displayed in accordance with the configuration and componentper se, and products with such auxiliary applications become more open and smart.
[0148] As should be noted, when the device for configuring a component in linkage provided by the aforementioned embodiment triggers a configuring business, it is merely exemplarily described with its division into the aforementioned various functional modules, whereas in actual application it is possible to base on requirements to assign the aforementioned functions to different functional modules for completion, that is to say, the internal Date recue / Date received 2021-12-17 structure of the device is divided into different functional modules to complete the entire or partial functions as described above. In addition, the device for configuring a component in linkage provided by the aforementioned embodiment pertains to the same inventive conception as the method of configuring a component in linkage, in other words, the device is based on the method of configuring a component in linkage ¨ see the method embodiment for its specific implementation process, while no repetition will be made in this context.
[0149] As comprehensible to persons ordinarily skilled in the art, the entire or partial steps in the aforementioned embodiments can be completed via hardware, or via a program instructing relevant hardware, the program can be stored in a computer-readable storage medium, and the storage medium can be a read-only memory, a magnetic disk or an optical disk, etc.
[0150] The foregoing embodiments are merely preferred embodiments of the present invention, and they are not to be construed as restrictive to the present invention. Any amendment, equivalent substitution, and improvement makeable within the spirit and principle of the present invention shall all fall within the protection scope of the present invention.
Date recue / Date received 2021-12-17
Date recue / Date received 2021-12-17
Claims (10)
1. A component linkage configuration method, characterized in that the method comprises the following steps:
obtaining demand data of a component to be configured, creating a plurality of attributes of the component to be configured according to the demand data, and generating attribute data;
configuring linkage configuration data between the plural attributes according to the demand data, wherein the linkage configuration data includes linkage data and linkage relation;
matching the linkage configuration data with the attribute data according to preset rule(s), and obtaining valid association data;
calculating to obtain an association data object to be processed according to the valid association data and the linkage data; and employing a preset rendering mechanism to perform linkage rendering on the association data object to be processed, and generating a target component.
obtaining demand data of a component to be configured, creating a plurality of attributes of the component to be configured according to the demand data, and generating attribute data;
configuring linkage configuration data between the plural attributes according to the demand data, wherein the linkage configuration data includes linkage data and linkage relation;
matching the linkage configuration data with the attribute data according to preset rule(s), and obtaining valid association data;
calculating to obtain an association data object to be processed according to the valid association data and the linkage data; and employing a preset rendering mechanism to perform linkage rendering on the association data object to be processed, and generating a target component.
2. The component linkage configuration method of Claim 1, characterized in that the step of configuring linkage configuration data between the plural attributes according to the demand data includes:
configuring linkage data between the plural attributes according to the demand data, and determining linkage relation between the plural attributes according to the linkage data.
Date recue / Date received 2021-12-17
configuring linkage data between the plural attributes according to the demand data, and determining linkage relation between the plural attributes according to the linkage data.
Date recue / Date received 2021-12-17
3. The component linkage configuration method of Claim 1 or 2, characterized in that the step of matching the linkage configuration data with the attribute data according to preset rule(s), and obtaining valid association data includes:
obtaining a data type of the linkage configuration data, and matching a corresponding target preset rule out of the preset rule(s) according to the data type; and matching the linkage configuration data with the attribute data according to the target preset rule, and obtaining valid association data.
obtaining a data type of the linkage configuration data, and matching a corresponding target preset rule out of the preset rule(s) according to the data type; and matching the linkage configuration data with the attribute data according to the target preset rule, and obtaining valid association data.
4. The component linkage configuration method of Claim 3, characterized in that the data type includes single element type and list element type.
5. The component linkage configuration method of Claim 4, characterized in that, when the data type is the list element type, the step of matching the linkage configuration data with the attribute data according to the target preset rule, and obtaining valid association data includes:
after multi-dimension to one-dimension conversion of attribute fields in the linkage configuration data according to hierarchical relation of the attributes, matching the converted linkage configuration data with the attribute data according to the target preset rule, and obtaining valid association data.
after multi-dimension to one-dimension conversion of attribute fields in the linkage configuration data according to hierarchical relation of the attributes, matching the converted linkage configuration data with the attribute data according to the target preset rule, and obtaining valid association data.
6. The component linkage configuration method of Claim 1 or 2, characterized in that the method further comprises:
creating an event of the component to be configured according to the demand data, and configuring event data of the event and binding relation of the event with a corresponding attribute according to the attribute data.
Date recue / Date received 2021-12-17
creating an event of the component to be configured according to the demand data, and configuring event data of the event and binding relation of the event with a corresponding attribute according to the attribute data.
Date recue / Date received 2021-12-17
7. The component linkage configuration method of Claim 6, characterized in that the method further comprises:
determining event configuration information with which the attribute is associated according to the attribute data, the event data and the binding relation, and rendering the event according to the event configuration information.
determining event configuration information with which the attribute is associated according to the attribute data, the event data and the binding relation, and rendering the event according to the event configuration information.
8. A component linkage configuration device, characterized in that the device comprises:
an attribute creating module, for obtaining demand data of a component to be configured, creating a plurality of attributes of the component to be configured according to the demand data, and generating attribute data;
a linkage configuring module, for configuring linkage configuration data between the plural attributes according to the demand data, wherein the linkage configuration data includes linkage data and linkage relation;
a data matching module, for matching the linkage configuration data with the attribute data according to preset rule(s), and obtaining valid association data;
an object obtaining module, for calculating to obtain an association data object to be processed according to the valid association data and the linkage data; and a linkage rendering module, for employing a preset rendering mechanism to perform linkage rendering on the association data object to be processed, and generating a target component.
an attribute creating module, for obtaining demand data of a component to be configured, creating a plurality of attributes of the component to be configured according to the demand data, and generating attribute data;
a linkage configuring module, for configuring linkage configuration data between the plural attributes according to the demand data, wherein the linkage configuration data includes linkage data and linkage relation;
a data matching module, for matching the linkage configuration data with the attribute data according to preset rule(s), and obtaining valid association data;
an object obtaining module, for calculating to obtain an association data object to be processed according to the valid association data and the linkage data; and a linkage rendering module, for employing a preset rendering mechanism to perform linkage rendering on the association data object to be processed, and generating a target component.
9. A computer equipment, comprising a memory, a processor and a computer program stored on the memory and operable on the processor, characterized in that the method steps according to any of Claims 1 to 7 are realized when the processor executes the computer program.
Date recue / Date received 2021-12-17
Date recue / Date received 2021-12-17
10. A computer-readable storage medium, storing a computer program thereon, characterized in that the method steps according to any of Claims 1 to 7 are realized when the computer program is executed by a processor.
Date recue / Date received 2021-12-17
Date recue / Date received 2021-12-17
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011499476.6A CN112487112A (en) | 2020-12-17 | 2020-12-17 | Method and device for linkage configuration of components, computer equipment and storage medium |
CN202011499476.6 | 2020-12-17 |
Publications (1)
Publication Number | Publication Date |
---|---|
CA3142770A1 true CA3142770A1 (en) | 2022-06-17 |
Family
ID=74914644
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CA3142770A Pending CA3142770A1 (en) | 2020-12-17 | 2021-12-17 | Component linkage configuration method, device, computer equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112487112A (en) |
CA (1) | CA3142770A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114385148A (en) * | 2021-12-17 | 2022-04-22 | 深圳前海微众银行股份有限公司 | Method, device, equipment and storage medium for realizing linkage function |
CN114401302B (en) * | 2022-03-02 | 2023-05-16 | 清华大学 | Linkage action execution method, linkage action execution device and storage medium |
CN114942819B (en) * | 2022-07-22 | 2022-11-11 | 浙江中控技术股份有限公司 | Data field processing method, electronic device and computer readable storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018076946A1 (en) * | 2016-10-24 | 2018-05-03 | 北京亚控科技发展有限公司 | Method and system for displaying physical object based on configuration, and computer program and storage medium |
CN110727869A (en) * | 2019-10-18 | 2020-01-24 | 北京字节跳动网络技术有限公司 | Page construction method and device |
CN111443911A (en) * | 2020-03-24 | 2020-07-24 | 五八有限公司 | Page development method and device, electronic equipment and computer storage medium |
CN111708537A (en) * | 2020-06-18 | 2020-09-25 | 深圳前海微众银行股份有限公司 | Page rendering method and device based on component template and readable storage medium |
-
2020
- 2020-12-17 CN CN202011499476.6A patent/CN112487112A/en active Pending
-
2021
- 2021-12-17 CA CA3142770A patent/CA3142770A1/en active Pending
Also Published As
Publication number | Publication date |
---|---|
CN112487112A (en) | 2021-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109324791B (en) | Financial self-service terminal business process development method and device and terminal equipment | |
CA3142770A1 (en) | Component linkage configuration method, device, computer equipment and storage medium | |
CN111818175B (en) | Enterprise service bus configuration file generation method, device, equipment and storage medium | |
CN107330014B (en) | Data table creating method and device | |
CN114238381A (en) | Data quality checking method, device and computer readable storage medium | |
CN115794213A (en) | Configurable object management method, device and equipment based on embedded system | |
US9330372B2 (en) | Generating an improved development infrastructure | |
CN114816170A (en) | Rule scheme generation method, device, medium and electronic equipment | |
CN112835638A (en) | Configuration information management method and device based on embedded application program | |
CN117234582A (en) | Project code processing method and device, electronic equipment and storage medium | |
CN113485686B (en) | Information system program generation method and device, electronic equipment and storage medium | |
CN115617338A (en) | Method and device for quickly generating service page and readable storage medium | |
CN114911541A (en) | Configuration information processing method and device, electronic equipment and storage medium | |
CN115576624A (en) | Programming framework optimization method, system, terminal equipment and storage medium | |
CN110362305A (en) | A kind of form component state switching method and device | |
CN113342399A (en) | Application structure configuration method and device and readable storage medium | |
CN113868138A (en) | Method, system, equipment and storage medium for acquiring test data | |
CN115687704A (en) | Information display method and device, electronic equipment and computer readable storage medium | |
CN113342647A (en) | Test data generation method and device | |
CN111078337A (en) | Pattern adjusting method, system and computer readable storage medium | |
CN112464132A (en) | Page generation and configuration method and device | |
JPH0934938A (en) | Cost setting method | |
US10684781B1 (en) | Big data read-write reduction | |
CN116301758B (en) | Rule editing method, device, equipment and medium based on event time points | |
US20050108201A1 (en) | Method to query an embedded database |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
EEER | Examination request |
Effective date: 20220916 |
|
EEER | Examination request |
Effective date: 20220916 |
|
EEER | Examination request |
Effective date: 20220916 |
|
EEER | Examination request |
Effective date: 20220916 |
|
EEER | Examination request |
Effective date: 20220916 |
|
EEER | Examination request |
Effective date: 20220916 |
|
EEER | Examination request |
Effective date: 20220916 |