A service orchestration system data method based on flat list design

By using a flat List design to assign IDs and parentIds to the service orchestration system, the problem of data expansion difficulties in tree structure design is solved, achieving data consistency between the front-end and back-end and system scalability, and improving the system's flexibility and maintainability.

CN114238331BActive Publication Date: 2024-10-01SHENZHEN QIANHAI HUANRONG LIANYI INFORMATION TECHNOLOGY SERVICES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111546670.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-16
Publication Date
2024-10-01
Estimated Expiration
2041-12-16

AI Technical Summary

Technical Problem

Existing service orchestration systems are based on a tree structure design, which results in a fixed data structure that is difficult to expand, makes front-end and back-end maintenance difficult, makes it difficult to meet complex business logic scenarios, makes it difficult to maintain data consistency, and limits the system's application scenarios.

Method used

It adopts a flat List design, assigns a unique ID and parentId to each field, uses event listeners to monitor field changes, and builds hierarchical relationships based on ID and parentId to realize incremental or differential data modification, maintaining data consistency between the front end and the back end.

Benefits of technology

It achieves consistency between front-end and back-end data, improves the system's scalability and maintainability, adapts to complex business logic scenarios, and its scalability and maintainability are far superior to tree structure designs.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The present invention discloses a service orchestration system data method based on flat List design, which performs incremental or differential modification on the data of the list structure and configures an ID and a parentId for each attribute. Thus, only the hierarchical relationship constructed by the ID and the ParentId needs to be maintained, thereby satisfying the expansion and modification requirements of the front-end or back-end on the relevant fields and maintaining the consistency of the front-end and back-end data, thereby making the system more scalable and maintainable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of service orchestration systems, and in particular to a service orchestration system data method based on flat List design. Background Art

[0002] Existing service orchestration systems are all designed based on tree structures to design orchestration system data. Although tree-structured data looks simple and intuitive, it has great limitations when used in service orchestration systems. The business scenarios and logical interactions of a version of a service orchestration system are much more complex than those of a conventional system. The data structure of the tree structure is fixed, and it requires complex processing to expand this data. Once the business interaction logic is very complex, it is very difficult for the front-end and back-end to maintain data consistency. Moreover, when the back-end uses the service orchestration system to configure the microservice architecture process, it is inevitable to expand the fields in the data. In this way, the front-end and back-end need to maintain 2 to 3 sets of data, and it is difficult to avoid errors for extremely complex data. The service orchestration data designed with a tree structure makes the existing service orchestration system relatively simple in application scenarios, and it is difficult to meet the scenarios of complex business logic. It is difficult for the front-end and back-end to maintain data consistency, which makes it difficult for the orchestration system to expand business.

[0003] Therefore, the prior art has defects and needs to be improved. Summary of the invention

[0004] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a service orchestration system data method based on flat List design.

[0005] The technical solution of the present invention is as follows: a service orchestration system data method based on a flat list design is provided, comprising the following steps:

[0006] Step 1: Create a service orchestration process and set up several nodes that need to be configured;

[0007] Step 2: Define the initial List structure data and select nodes for data configuration;

[0008] Step 3: Assign a unique ID to each field and also assign it a parentId;

[0009] Step 4: Expand and modify the required fields in the JSON editor, and monitor the changes of each field through events;

[0010] Step 5: Repeat step 4. Each time you expand and modify a field, compare the field name with the data in saveList. If the corresponding data can be found, it means that it is a modification operation, and you only need to modify the value of the field; if the corresponding data cannot be found, it means that the element is newly created;

[0011] Step 6: Use ID and parentId as query conditions when polling saveList. If the corresponding ID and parentId are not found in saveList, add a set of data related to the field to saveList.

[0012] Step 7: If the front-end or back-end needs to expand and modify the relevant fields, you only need to compare them with the original savelist.

[0013] Furthermore, the data structure of each node is consistent.

[0014] Furthermore, the expansion and modification include adding, deleting or modifying fields.

[0015] By adopting the above scheme, the present invention makes incremental or differential modifications to the data of the list structure and configures an ID and a parentId for each attribute. In this way, it is only necessary to maintain the hierarchical relationship constructed by the ID and ParentId to meet the expansion and modification requirements of the front-end or back-end for related fields, and maintain the consistency of the front-end and back-end data, thereby making the system more scalable and maintainable. DETAILED DESCRIPTION

[0016] The present invention is described in detail below in conjunction with specific embodiments.

[0017] The present invention provides a service orchestration system data method based on flat List design, comprising the following steps:

[0018] Step 1: Create a service orchestration process and set up several nodes that need to be configured. The data structure of each node is consistent.

[0019] Step 2: Define the initial List structure data, let saveList = []; the saveList is the data used to interact with the backend during the entire configuration process.

[0020] Step 3: Assign a unique id to each field and also assign a parentId to it.

[0021] Step 4: Expand and modify the required fields on the json editor, and monitor the changes of each field through events, addEventListener('change','refreshSaveList',false). Whenever there is an add, delete, modify, or query operation on the json editor, it will trigger the update of the original saveList, and each temporary save will save the modification of an attribute. The expansion modification includes adding, deleting, or modifying fields.

[0022] Step 5: Repeat step 4. Each time you expand and modify a field, compare the field name with the data in saveList. If the corresponding data can be found, it means it is a modification operation, and you only need to modify the value of the field; if the corresponding data cannot be found, it means it is a newly created element.

[0023] Step 6: Use ID and parentId as query conditions when polling saveList. If the corresponding ID and parentId are not found in saveList, add a set of data related to the field to saveList.

[0024] Step 7: If the front-end or back-end needs to expand and modify the relevant fields, you only need to compare them with the original savelist.

[0025] The hierarchical mapping relationship between elements in saveList is defined by ID and parentId. Whether adding, deleting, modifying or checking, all operations are performed using ID and parentId. In this way, adding, deleting and modifying data can be done directly on the front end, avoiding wasting manpower on the back end to encode. At the same time, based on the data designed with this list structure, the fields of the root node can also be described.

[0026] The present invention uses a flat List structure for the data of the orchestration system. The service orchestration system designed with a flat List structure is far superior to the service orchestration system designed with a tree structure in terms of flexibility and scalability. No matter how complex the interaction and business scenarios are, the front and back ends only need to maintain the same set of data, so it is easy to ensure the consistency of the system data, and it is easy to make incremental or differential modifications to the data of the List structure. It only needs to configure an ID and a parentId for each attribute, and maintain the hierarchical relationship constructed by the ID and ParentId. This service orchestration system based on a flat List design has a much wider range of application scenarios than the orchestration service system designed with a tree structure; the system is also far superior to the system designed with a tree structure in terms of scalability; because the front and back ends only need to maintain the same set of data, the maintainability of this system is far higher than that of the service orchestration system designed with a tree structure.

[0027] To summarize, the present invention makes incremental or differential modifications to the data of the list structure and configures an ID and a parentId for each attribute. In this way, only the hierarchical relationship constructed by the ID and ParentId needs to be maintained, which can meet the expansion and modification requirements of the front-end or back-end for related fields and maintain the consistency of the front-end and back-end data, thereby making the system more scalable and maintainable.

[0028] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A service orchestration system data method based on flat list design, It is characterized in that The steps include: Step 1: Create a service orchestration process and set up several nodes that need to be configured; Step 2: Define the initial List structure data and select nodes for data configuration; Step 3: Assign a unique ID to each field and also assign it a parentId; Step 4: Expand and modify the required fields in the JSON editor, and monitor the changes of each field through events; Step 5: Repeat step 4. Each time you expand and modify a field, compare the field name with the data in saveList. If the corresponding data can be found, it means that it is a modification operation, and you only need to modify the value of the field; if the corresponding data cannot be found, it means that the element is newly created; Step 6: Use ID and parentId as query conditions when polling saveList. If the corresponding ID and parentId are not found in saveList, add a set of data related to the field to saveList. Step 7: If the front-end or back-end needs to expand and modify the relevant fields, you only need to compare them with the original savelist.

2. According to the service orchestration system data method based on flat list design according to claim 1, It is characterized in that The data structure of each node is consistent.

3. According to claim 1, the service orchestration system data method based on flat list design, It is characterized in that The expansion modification includes adding, deleting or modifying fields.