WO2020244033A1 - General data configuration method and system for service invocation - Google Patents

General data configuration method and system for service invocation Download PDF

Info

Publication number
WO2020244033A1
WO2020244033A1 PCT/CN2019/096630 CN2019096630W WO2020244033A1 WO 2020244033 A1 WO2020244033 A1 WO 2020244033A1 CN 2019096630 W CN2019096630 W CN 2019096630W WO 2020244033 A1 WO2020244033 A1 WO 2020244033A1
Authority
WO
WIPO (PCT)
Prior art keywords
sub
business
service
businesses
relationship
Prior art date
Application number
PCT/CN2019/096630
Other languages
French (fr)
Chinese (zh)
Inventor
张继鹏
董卫东
张晓�
周超
李涛
王建
Original Assignee
烽火通信科技股份有限公司
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 烽火通信科技股份有限公司 filed Critical 烽火通信科技股份有限公司
Publication of WO2020244033A1 publication Critical patent/WO2020244033A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service

Definitions

  • the invention relates to the field of data configuration, in particular to a general data configuration method and system for business invocation.
  • the business configuration platform is mainly based on the idea of modularity, that is, the module is the most basic business unit; the realization of a business often requires the interaction between multiple modules (ie multiple sub-businesses).
  • the configuration staff When configuring a business, the configuration staff first needs to understand all the sub-businesses required by the business and the relationship between the sub-businesses, and then the configuration staff needs to write codes corresponding to each sub-business and the relationship. This is not only the configuration process is more cumbersome and the error rate is high; it also requires high configuration personnel (the configuration personnel need to understand the code information of each sub-business, etc.), which limits the scope of use; at the same time, due to the code written by different configuration personnel The types are different, so the reusability of the code written by different configuration personnel is poor.
  • the technical problem solved by the present invention is: how to call a pre-set general data model to configure any service without writing code.
  • the general data configuration method for business invocation includes the following steps: define a unified data model for each sub-business, establish an iterative relationship for each sub-business required by the business to be invoked, and in the iterative relationship Including an initial sub-business and other partner sub-businesses; when a partner sub-business is configured, the initial sub-business is determined according to the iterative relationship; when the initial sub-business is configured, if it is determined according to the iterative relationship that all other partner sub-businesses are configured When completed, the service configuration information of the service to be invoked is formed.
  • the method specifically includes the following steps: obtaining the data model of any sub-service required by the service to be invoked:
  • the business configuration information of the service to be invoked is formed according to all the data models
  • the data model configuration of the initial sub-business is determined to be completed according to the iterative relationship.
  • each data model includes the association relationship between the sub-business and other sub-businesses.
  • the process of creating a data model for each sub-business includes: classifying all sub-businesses according to functions, and one All sub-businesses in a category have the same association relationship; each category records the association relationship between the category and other categories; determine the category corresponding to the sub-business that needs to be created, and according to the association relationship between this category and other categories, After the sub-business is associated with other sub-businesses, the data model of the sub-business is formed.
  • the relationship between sub-businesses includes dependency and parent-child relationship.
  • the dependency is that the sub-business only depends on or is dependent on one other sub-business
  • the parent-child relationship is that the sub-business is controlled by multiple other sub-businesses.
  • the business depends on, or is jointly dependent on a sub-business with other sub-businesses.
  • both the initial sub-business and the partner sub-business may be non-essential sub-businesses, and the data model of the non-essential sub-business is issued after the configuration of the service configuration information of the calling service is completed.
  • the general data configuration system for business calling includes a data model creation module and a data model calling module;
  • the data model creation module is used to: create a data model for each sub-business, and each data model includes the association relationship between the sub-business and other sub-businesses;
  • the data model invocation module is used for: when all the data models required by the service to be invoked are all configured, form the service configuration information of the service to be invoked according to all the data models.
  • the data model calling module includes a general iteration engine, an initial sub-business module and a partner sub-business module;
  • the general iterative engine is used to obtain all sub-business information required by the business to be invoked.
  • All sub-business information includes an initial sub-business and other partner sub-businesses; all sub-businesses are formed according to the relationship between all sub-businesses Get the data model of any sub-business in all sub-businesses: if the data model of the initial sub-business is acquired, notify the initial sub-business module to start working; if the data model of the partner’s sub-business is acquired, notify the partner The sub-business module starts to work;
  • the initial sub-service module is used to: when it is determined according to the iterative relationship that the data models of all partner sub-services are configured, form the service configuration information of the service to be invoked according to all the data models;
  • the partner sub-business module is used to notify the starting sub-business module to start work when it is determined that the data model configuration of the initial sub-business is completed according to the iteration relationship.
  • all the sub-service information also includes non-essential sub-services that can be flexibly configured, and the data model of the non-essential sub-service is issued after the configuration of the service configuration information of the calling service is completed.
  • the workflow of the data model creation module includes: classifying all sub-businesses according to their functions, and all sub-businesses in a category have the same association relationship; each category records the relationship between this category and other categories. Determine the category corresponding to the sub-business that needs to be created, and form the data model of the sub-business after associating the sub-business with other sub-businesses according to the relationship between this category and other categories.
  • the association relationship between the sub-businesses in the data model created by the data model creation module includes a dependency relationship and a parent-child relationship, and the dependency relationship is that the child business only depends on or is dependent on one other child business,
  • the parent-child relationship is that the sub-business is dependent on multiple other sub-businesses, or is dependent on one sub-business in common with other sub-businesses.
  • the present invention can be invoked by different services through a unified data model that is pre-configured and has a very high reusability, so that the configuration personnel only need to know the sub-services required by the service, and there is no need to write each sub-service and the corresponding relationship. In turn, it not only significantly simplifies the business configuration process, and greatly reduces the error rate; but also has low requirements for configuration personnel, and has a wide range of use, which well realizes the unified management of platform data.
  • the present invention divides the initial sub-business and partner sub-business, and its iterative relationship, so as to realize that no matter what sub-business of the business to be called is acquired, the entire business to be called can be configured by iterative relationship. Furthermore, the unified management of platform data is well realized, which is very suitable for promotion.
  • Figure 1 is a schematic diagram of a data model storage method in an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a data model of a sub-service in an embodiment of the present invention
  • Figure 3 is a schematic diagram of the association relationship between the data models in Figure 2;
  • FIG. 4 is a schematic diagram of storing data in an embodiment of the invention.
  • Fig. 5 is a schematic diagram of an iteration process in an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of the mapping relationship between the service to be invoked and the sub-service in the embodiment of the present invention.
  • the general data configuration method for business invocation in the embodiment of the present invention includes the following steps: define a data model for each sub-business that needs to be used (including soon to be used, to be used in the future, and to be used in the future), and each data model Including sub-business keywords, the relationship between the sub-business and other sub-businesses, and the business data of the sub-business; when all the data models required by the business to be called are all configured, it is formed according to all the data models Service configuration information of the service to be invoked.
  • association relationship between sub-businesses includes dependency relationship and parent-child relationship:
  • the dependency is that the sub-service depends on or is dependent on another sub-service, for example, the ARP table (the sub-service) depends on the out-interface table (other sub-services) through the index (foreign key) of the outbound interface;
  • the parent-child relationship is that the sub-business as the "father” is dependent on multiple other sub-businesses, or the sub-business and other sub-businesses are both regarded as "sons” and both depend on one "father” sub-business, such as multiple lag tables (other The child business "son”) relies on the same interface table (the child business "father") through the interface index (foreign key).
  • the difference between the dependency relationship and the parent-child relationship is: the dependency relationship is a one-to-one correspondence, and the parent-child relationship is a one-to-many relationship.
  • the process of defining a data model for each sub-business that needs to be used includes:
  • the dependency relationship includes the list of other classes (depender_list and observer_list) and specific information (DEPENDER_INFO and OBSERVER_INFO) that are dependent on and dependent on this class; the parent-child relationship includes the list of "father” and “son” classes (myfather_list and mychildren_list) and Specific information (FATHER__INFO and CHILDREN__INFO); other types of lists and specific information are related through the list node (list_node).
  • the data model of the sub-service in the embodiment of the present invention includes:
  • Route (routing table), including routing and the next piece of information, depends on Route_path (route protection table) through the foreign key path_id; that is, Route and Route_path are dependent;
  • Route_path (route protection table), including the number of route members, is dependent on multiple Route_path_mem (route member tables) through the same path_id, that is, Route_path (parent) and Route_path_mem (child) are parent-child relationships;
  • Route_path_mem in addition to the parent-child relationship with Route_path, also includes next hop information, which depends on Nh (next hop table) through nh_id;
  • Nh including next hop type and next hop information, depends on Arp (Address resolution protocol, address resolution protocol table) through ifindex (index);
  • Arp depends on if_net (outbound interface table) through the same ifindex;
  • the present invention configures the data model for each sub-service in advance, so that the specific sub-service can be directly called when the service is configured; when the sub-service is called, other required services can be obtained according to the association relationship in the sub-service data model.
  • Sub-business For example, as shown in Figure 2, the L3PATH (layer three protection) service directly calls the Route and Route_path_mem write drivers; the L3UNI (layer three user) service directly calls the Nh, Arp and if_net write drivers; the ARP service directly calls the Arp and if_net write drivers.
  • the present invention can be called by different services through a pre-configured universal data model with very high reusability, so that the configuration personnel only need to know the sub-services required by the service, and there is no need to write each sub-service.
  • the code corresponding to the association relationship in turn, it not only significantly simplifies the business configuration process and greatly reduces the error rate; but also has low requirements for configuration personnel, a wide range of applications, and a good realization of the unified management of platform data.
  • the process of forming the service configuration information of the service to be invoked according to all the data models includes:
  • All sub-business information includes 1 initial sub-business (that is, the sub-business that initiates mapping to the business to be invoked) and other partner sub-businesses (that is, other sub-businesses that participate in mapping or notification). business).
  • the method of specifying the starting sub-business and the partner sub-business, and the iteration relationship can be specified by the business to be invoked, specifically:
  • Each sub-service (class A) contains two parts of information when registering:
  • mapping_starter_list information block that is, some basic information of the sub-business as the starting sub-business, including the product callback function, the sub-business attribute bitmap that the business to be called is concerned with, and the dependent path_list linked list; because one sub-business may be used as multiple to be called The starting sub-business of the business, so the path_list needs to be traversed when the mapping is triggered.
  • mapping_parter_list information block that is, when the sub-business is the partner sub-business of the current service to be called, it needs to notify the corresponding initial sub-business to trigger the mapping of the dependency chain information;
  • PARTER_MAPPING_INFO will store partner sub-business information, attribute bitmap information of interest, necessary and non-essential attribute information, product callback function, etc.; and PATH_NODE is essentially a path information that records the completeness from the partner sub-business to the initial sub-business information.
  • the initial sub-business module stores initial sub-business information and all sub-businesses (that is, the initial sub-business and all partner sub-businesses) Path information; the partner sub-business module stores the complete path information used to notify the initial sub-business.
  • the data model of the initial sub-business determines whether the data models of all other partner sub-businesses are configured according to the iterative relationship (cycle according to the iterative relationship, and obtain the data model information of a partner sub-business in each cycle until the traversal All partner sub-services), if yes, form the service configuration information of the service to be invoked according to all the data models; otherwise, it proves that the data model has not been fully configured, and needs to continue to wait;
  • the partner sub-business judge whether the data model of the initial sub-business is configured according to the iterative relationship. If so, obtain the data model of the initial sub-business (after entering the above-mentioned acquisition is the data model of the initial sub-business) Process); otherwise, it proves that the data model of the initial sub-business has not been configured, and it needs to continue to wait.
  • the present invention can iterate out all partner sub-businesses through the initial sub-business for mapping; or notify the corresponding initial sub-business through the partner sub-business iteration, and then trigger the mapping by the initial sub-business. Therefore, the present invention completes the monitoring of all the configurations of all data models required by the business to be called through the "loop + recursion" mode of the initial sub-business and the partner sub-business; thus, it can meet the custom design and has a high degree of flexibility.
  • the service to be called (because no matter what kind of sub-service is issued, the present invention has corresponding logic to iterate).
  • the design process of the service to be called often encounters multiple alternative scenarios (that is, there is a flexibly configurable "fork point" sub-service notified by the service to be called, that is, the service to be called is notified of the "fork point” "The attributes of sub-services are not necessary, and they may or may not exist).
  • the route NH can be UNI (user side) or NNI (network side)
  • TUNNEL tunnel selection table
  • FTN TUNNEL or TE TUNNEL etc.
  • the present invention also introduces sub-services with non-essential attributes that can be flexibly configured in all sub-service information (hereinafter referred to as non-essential sub-services, namely "fork point" sub-services); because non-essential sub-services will not hinder the to-be-called The configuration of the business, so the non-essential sub-business does not belong to the necessary business configuration information (that is, the non-essential sub-business is not in a parallel relationship with the initial sub-business and the partner sub-business), and the data model of the non-essential sub-business is in the business configuration of the business to be called After the information is configured, it can be issued. For example, a service to be called needs to call 3 sub-services, but the attribute of one of the sub-services is unnecessary. At this time, as long as the other two sub-services have been established, the non-essential sub-service can be issued.
  • non-essential sub-services namely "fork point" sub-services
  • the present invention realizes the rationality condition determination of the "fork point" sub-business through the above design, effectively solves this multiple-choice scenario, greatly increases the flexibility of business design, is concise and versatile, and is very in line with the idea of platformization. Well adapted to the needs of various products.
  • each circle in the left half of the area represents a sub-service
  • the left and right short arrows indicate the dependency between sub-services
  • the long arrow indicates that multiple sub-services on the left jointly map a service to be called.
  • GROUP routing working group
  • UNI no hop on the user side
  • NNI no hop on the network side
  • TUNNEL tunnelnel selection table
  • FTN FEC to NHLFE mapping table
  • TE_PROT Traffic Engineering Protection Table
  • the general data configuration system for business invocation in the embodiment of the present invention includes a data model creation module and a data model invocation module.
  • the data model creation module is used to: create a data model for each sub-business, and each data model includes the relationship between the sub-business and other sub-business; the relationship includes dependency and parent-child relationship, and the dependency is only Depends on or is dependent on one other sub-business, and the parent-child relationship is that the sub-business is dependent on multiple other sub-businesses, or is jointly dependent on one sub-business with other sub-businesses.
  • the specific work flow of the data model creation module includes: classify all sub-businesses according to their functions, and all sub-businesses in a category have the same association relationship; each category records the association relationship between this category and other categories; determine and need The category corresponding to the created sub-business is associated with other sub-businesses based on the association relationship between the sub-business and other sub-businesses to form the data model of the sub-business.
  • the data model invocation module is used for: when all the data models required by the service to be invoked are all configured, form the service configuration information of the service to be invoked according to all the data models.
  • the data model calling module specifically includes the general iteration engine, the initial sub-business module and the partner sub-business module;
  • the general iterative engine is used to obtain all the sub-business information required by the service to be invoked.
  • All sub-business information includes 1 starting sub-business, several partner sub-businesses, and several non-essential sub-businesses that can be flexibly configured;
  • the relationship between the businesses forms the iterative relationship of all sub-businesses; to obtain the data model of any sub-business in all sub-businesses: if the data model of the initial sub-business is acquired, notify the initial sub-business module to start working; It is the data model of the partner's sub-business, and the partner's sub-business module is notified to start working; if the data model of the non-essential sub-business is obtained, the business configuration information of the service to be called is issued after the configuration is completed.
  • the initial sub-service module is used to form the service configuration information of the service to be invoked according to all the data models when it is determined that the data models of all partner sub-services are configured according to the iterative relationship.
  • the partner sub-business module is used to notify the starting sub-business module to start work when it is determined that the data model configuration of the initial sub-business is completed according to the iteration relationship.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Disclosed are a general data configuration method and system for service invocation, relating to the field of data configuration. The method comprises the steps of: defining a uniform data model for each sub-service, and establishing an iteration relationship for each sub-service required by a service to be invoked, wherein the iteration relationship comprises one initial sub-service and the remaining partner sub-services; after the configuration of one partner sub-service is completed, determining the initial sub-service according to the iteration relationship; and after the configuration of the initial sub-service is completed, if it is determined, according to the iteration relationship, that the configuration of all the remaining partner sub-services is also completed, forming service configuration information of said service. According to the present invention, a uniform data model is invoked by different services, thereby obviously simplifying a service configuration process; and according to the present invention, by means of the division of an initial sub-service, partner sub-services, and an iteration relationship therebetween, a whole service to be invoked can be configured according to the iteration relationship, regardless of any acquired sub-service of a service to be invoked.

Description

用于业务调用的通用数据配置方法及系统General data configuration method and system for business calling 技术领域Technical field
本发明涉及数据配置领域,具体涉及一种用于业务调用的通用数据配置方法及系统。The invention relates to the field of data configuration, in particular to a general data configuration method and system for business invocation.
背景技术Background technique
业务配置平台主要是基于模块化思想,即以模块作为最基本的业务单元;一项业务的实现往往需要多个模块(即多项子业务)之间的交互。The business configuration platform is mainly based on the idea of modularity, that is, the module is the most basic business unit; the realization of a business often requires the interaction between multiple modules (ie multiple sub-businesses).
但是,通过业务配置平台配置业务时存在以下缺陷:However, the following defects exist when configuring services through the service configuration platform:
配置一项业务时,首先需要配置人员了解该业务所需的所有子业务、以及子业务之间的关联关系,然后配置人员需要编写与各个子业务及关联关系对应的代码。这不仅配置过程比较繁琐,出错率较高;而且对配置人员的要求较高(需要配置人员了解各个子业务的代码信息等),局限了使用范围;与此同时,由于不同配置人员编写的代码类型不同,因此不同配置人员编写的代码的复用性较差。When configuring a business, the configuration staff first needs to understand all the sub-businesses required by the business and the relationship between the sub-businesses, and then the configuration staff needs to write codes corresponding to each sub-business and the relationship. This is not only the configuration process is more cumbersome and the error rate is high; it also requires high configuration personnel (the configuration personnel need to understand the code information of each sub-business, etc.), which limits the scope of use; at the same time, due to the code written by different configuration personnel The types are different, so the reusability of the code written by different configuration personnel is poor.
发明内容Summary of the invention
针对现有技术中存在的缺陷,本发明解决的技术问题为:如何在不需要编写代码的情况下,调用预先设置好的通用数据模型进行任意业务的配置。In view of the defects in the prior art, the technical problem solved by the present invention is: how to call a pre-set general data model to configure any service without writing code.
为达到以上目的,本发明提供的用于业务调用的通用数据配置方法,包括以下步骤:为每条子业务定义统一的数据模型,为待调用业务所需的每条子业务建立迭代关系,迭代关系中包括一条起始子业务 和其余伙伴子业务;当一条伙伴子业务配置完成后,根据迭代关系确定起始子业务;当起始子业务配置完成后,若根据迭代关系确定其余伙伴子业务均配置完成,则形成待调用业务的业务配置信息。To achieve the above objectives, the general data configuration method for business invocation provided by the present invention includes the following steps: define a unified data model for each sub-business, establish an iterative relationship for each sub-business required by the business to be invoked, and in the iterative relationship Including an initial sub-business and other partner sub-businesses; when a partner sub-business is configured, the initial sub-business is determined according to the iterative relationship; when the initial sub-business is configured, if it is determined according to the iterative relationship that all other partner sub-businesses are configured When completed, the service configuration information of the service to be invoked is formed.
在上述技术方案的基础上,该方法具体包括以下步骤:获取待调用业务所需的任意子业务的数据模型:On the basis of the above technical solution, the method specifically includes the following steps: obtaining the data model of any sub-service required by the service to be invoked:
若当前子业务为起始子业务、且根据迭代关系判定所有伙伴子业务的数据模型均配置完成,则根据所述所有数据模型形成待调用业务的业务配置信息;If the current sub-business is the initial sub-business and it is determined based on the iteration relationship that the data models of all partner sub-businesses are all configured, then the business configuration information of the service to be invoked is formed according to all the data models;
若当前子业务为伙伴子业务、且根据迭代关系判定起始子业务的数据模型配置完成,则获取起始子业务的数据模型。If the current sub-business is a partner sub-business, and the data model configuration of the initial sub-business is determined to be completed according to the iterative relationship, the data model of the initial sub-business is acquired.
在上述技术方案的基础上,每个数据模型中包括该子业务与其他子业务之间的关联关系,所述为每条子业务创建数据模型的流程包括:按照功能将所有子业务进行分类,一个类别中所有子业务的关联关系相同;每个类别中记载有该类与其他类之间的关联关系;确定与需要创建的子业务对应的类别,根据该类与其他类之间的关联关系,将该子业务与其他子业务关联后,形成该子业务的数据模型。On the basis of the above technical solution, each data model includes the association relationship between the sub-business and other sub-businesses. The process of creating a data model for each sub-business includes: classifying all sub-businesses according to functions, and one All sub-businesses in a category have the same association relationship; each category records the association relationship between the category and other categories; determine the category corresponding to the sub-business that needs to be created, and according to the association relationship between this category and other categories, After the sub-business is associated with other sub-businesses, the data model of the sub-business is formed.
在上述技术方案的基础上,子业务之间的关联关系包括依赖关系和父子关系,依赖关系为该子业务仅依赖或被依赖于一条其他子业务,父子关系为该子业务被多条其他子业务依赖、或者与其他子业务共同依赖于一条子业务。On the basis of the above technical solution, the relationship between sub-businesses includes dependency and parent-child relationship. The dependency is that the sub-business only depends on or is dependent on one other sub-business, and the parent-child relationship is that the sub-business is controlled by multiple other sub-businesses. The business depends on, or is jointly dependent on a sub-business with other sub-businesses.
在上述技术方案的基础上,所述起始子业务和伙伴子业务均可以为非必要子业务,非必要子业务的数据模型待调用业务的业务配置信息配置完成后下发。On the basis of the foregoing technical solution, both the initial sub-business and the partner sub-business may be non-essential sub-businesses, and the data model of the non-essential sub-business is issued after the configuration of the service configuration information of the calling service is completed.
本发明提供的用于业务调用的通用数据配置系统,包括数据模型创建模块和数据模型调用模块;The general data configuration system for business calling provided by the present invention includes a data model creation module and a data model calling module;
数据模型创建模块用于:为每条子业务创建数据模型,每个数据模型中包括该子业务与其他子业务之间的关联关系;The data model creation module is used to: create a data model for each sub-business, and each data model includes the association relationship between the sub-business and other sub-businesses;
数据模型调用模块用于:当待调用业务所需的所有数据模型全部配置完成后,根据所述所有数据模型形成待调用业务的业务配置信息。The data model invocation module is used for: when all the data models required by the service to be invoked are all configured, form the service configuration information of the service to be invoked according to all the data models.
在上述技术方案的基础上,所述数据模型调用模块包括通用迭代引擎、起始子业务模块和伙伴子业务模块;On the basis of the above technical solution, the data model calling module includes a general iteration engine, an initial sub-business module and a partner sub-business module;
通用迭代引擎用于:获取待调用业务所需的所有子业务信息,所有子业务信息中包括1个起始子业务和其余伙伴子业务;根据所有子业务之间的关联关系,形成所有子业务的迭代关系;获取所有子业务中任意子业务的数据模型:若获取的是起始子业务的数据模型,通知起始子业务模块开始工作;若获取的是伙伴子业务的数据模型,通知伙伴子业务模块开始工作;The general iterative engine is used to obtain all sub-business information required by the business to be invoked. All sub-business information includes an initial sub-business and other partner sub-businesses; all sub-businesses are formed according to the relationship between all sub-businesses Get the data model of any sub-business in all sub-businesses: if the data model of the initial sub-business is acquired, notify the initial sub-business module to start working; if the data model of the partner’s sub-business is acquired, notify the partner The sub-business module starts to work;
起始子业务模块用于:当根据迭代关系判定所有伙伴子业务的数据模型均配置完成时,根据所述所有数据模型形成待调用业务的业务配置信息;The initial sub-service module is used to: when it is determined according to the iterative relationship that the data models of all partner sub-services are configured, form the service configuration information of the service to be invoked according to all the data models;
伙伴子业务模块用于:当根据迭代关系判定起始子业务的数据模型配置完成时,通知起始子业务模块开始工作。The partner sub-business module is used to notify the starting sub-business module to start work when it is determined that the data model configuration of the initial sub-business is completed according to the iteration relationship.
在上述技术方案的基础上,所述所有子业务信息还包括可灵活配置的非必要子业务,非必要子业务的数据模型待调用业务的业务配置信息配置完成后下发。On the basis of the above technical solution, all the sub-service information also includes non-essential sub-services that can be flexibly configured, and the data model of the non-essential sub-service is issued after the configuration of the service configuration information of the calling service is completed.
在上述技术方案的基础上,所述数据模型创建模块的工作流程包括:按照功能将所有子业务进行分类,一个类别中所有子业务的关联关系相同;每个类别中记载有该类与其他类之间的关联关系;确定与需要创建的子业务对应的类别,根据该类与其他类之间的关联关系, 将该子业务与其他子业务关联后,形成该子业务的数据模型。On the basis of the above technical solution, the workflow of the data model creation module includes: classifying all sub-businesses according to their functions, and all sub-businesses in a category have the same association relationship; each category records the relationship between this category and other categories. Determine the category corresponding to the sub-business that needs to be created, and form the data model of the sub-business after associating the sub-business with other sub-businesses according to the relationship between this category and other categories.
在上述技术方案的基础上,所述数据模型创建模块创建的数据模型中子业务之间的关联关系包括依赖关系和父子关系,依赖关系为该子业务仅依赖或被依赖于一条其他子业务,父子关系为该子业务被多条其他子业务依赖、或者与其他子业务共同依赖于一条子业务。On the basis of the above technical solution, the association relationship between the sub-businesses in the data model created by the data model creation module includes a dependency relationship and a parent-child relationship, and the dependency relationship is that the child business only depends on or is dependent on one other child business, The parent-child relationship is that the sub-business is dependent on multiple other sub-businesses, or is dependent on one sub-business in common with other sub-businesses.
与现有技术相比,本发明的优点在于:Compared with the prior art, the advantages of the present invention are:
本发明能够通过预先配置好、且复用性非常高的统一数据模型来被不同的业务调用,因此使得配置人员仅需知晓该业务所需的子业务,不需要编写各个子业务及关联关系对应的代码;进而不仅显著简化了业务配置过程,大幅度降低了出错率;而且对配置人员的要求较低,使用范围比较广泛,良好的实现了平台数据的统一化管理。The present invention can be invoked by different services through a unified data model that is pre-configured and has a very high reusability, so that the configuration personnel only need to know the sub-services required by the service, and there is no need to write each sub-service and the corresponding relationship. In turn, it not only significantly simplifies the business configuration process, and greatly reduces the error rate; but also has low requirements for configuration personnel, and has a wide range of use, which well realizes the unified management of platform data.
在此基础上,本发明通过对起始子业务和伙伴子业务、及其迭代关系的划分,进而实现无论获取的是待调用业务的任意子业务,都可以迭代关系来配置整个待调用业务,进而良好的实现了平台数据的统一化管理,非常适于推广。On this basis, the present invention divides the initial sub-business and partner sub-business, and its iterative relationship, so as to realize that no matter what sub-business of the business to be called is acquired, the entire business to be called can be configured by iterative relationship. Furthermore, the unified management of platform data is well realized, which is very suitable for promotion.
附图说明Description of the drawings
图1为本发明实施例中数据模型存储方式的示意图;Figure 1 is a schematic diagram of a data model storage method in an embodiment of the present invention;
图2为本发明实施例中子业务的数据模型的示意图;2 is a schematic diagram of a data model of a sub-service in an embodiment of the present invention;
图3为图2中数据模型之间的关联关系的示意图;Figure 3 is a schematic diagram of the association relationship between the data models in Figure 2;
图4为本发明实施例中的数据管理方式存储示意图;4 is a schematic diagram of storing data in an embodiment of the invention;
图5为本发明实施例中的迭代流程示意图;Fig. 5 is a schematic diagram of an iteration process in an embodiment of the present invention;
图6为本发明实施例中待调用业务与子业务的映射关系示意图。FIG. 6 is a schematic diagram of the mapping relationship between the service to be invoked and the sub-service in the embodiment of the present invention.
具体实施方式Detailed ways
以下结合附图及实施例对本发明作进一步详细说明。The present invention will be further described in detail below in conjunction with the drawings and embodiments.
本发明实施例中的用于业务调用的通用数据配置方法,包括以下步骤:为需要使用(包括即将使用、以后会使用、以及以后可能会使用)的每条子业务定义数据模型,每个数据模型中包括子业务关键词、该子业务与其他子业务之间的关联关系、以及该子业务的业务数据;当待调用业务所需的所有数据模型全部配置完成后,根据所述所有数据模型形成待调用业务的业务配置信息。The general data configuration method for business invocation in the embodiment of the present invention includes the following steps: define a data model for each sub-business that needs to be used (including soon to be used, to be used in the future, and to be used in the future), and each data model Including sub-business keywords, the relationship between the sub-business and other sub-businesses, and the business data of the sub-business; when all the data models required by the business to be called are all configured, it is formed according to all the data models Service configuration information of the service to be invoked.
优选的,子业务之间的关联关系包括依赖关系和父子关系:Preferably, the association relationship between sub-businesses includes dependency relationship and parent-child relationship:
依赖关系为该子业务依赖或被依赖于一条其他子业务,比如ARP表(该子业务)通过出接口的索引(外键)依赖于出接口表(其他子业务);The dependency is that the sub-service depends on or is dependent on another sub-service, for example, the ARP table (the sub-service) depends on the out-interface table (other sub-services) through the index (foreign key) of the outbound interface;
父子关系为该子业务作为“父亲”被多条其他子业务依赖、或者该子业务和其他子业务都作为“儿子”、且均依赖于一条“父亲”子业务,比如多张lag表(其他子业务“儿子”)通过接口索引(外键)依赖同一张接口表(该子业务“父亲”)。The parent-child relationship is that the sub-business as the "father" is dependent on multiple other sub-businesses, or the sub-business and other sub-businesses are both regarded as "sons" and both depend on one "father" sub-business, such as multiple lag tables (other The child business "son") relies on the same interface table (the child business "father") through the interface index (foreign key).
依赖关系与父子关系的区别为:依赖关系为一一对应关系,父子关系为一对多关系。The difference between the dependency relationship and the parent-child relationship is: the dependency relationship is a one-to-one correspondence, and the parent-child relationship is a one-to-many relationship.
优选的,参见图1所示,所述为需要使用的每条子业务定义数据模型的流程包括:Preferably, referring to Figure 1, the process of defining a data model for each sub-business that needs to be used includes:
按照功能将所有子业务进行分类,即一个类别中所有子业务的关联关系相同,不同类别的子业务的类型不同;每类的节点(CLASS_TREE)中记载有该类与其他类之间的关联关系,如图1中的依赖关系(DEPENDENCY_INFO)和父子关系(FATHER_CHILDREN_INFO)。依赖关系又包括依赖于和被依赖本类的其他类清单(depender_list和observer_list)以及具体信息(DEPENDER_INFO和OBSERVER_INFO);父子关系又包括“父亲” 类和“儿子”类的清单(myfather_list和mychildren_list)以及具体信息(FATHER__INFO和CHILDREN__INFO);其他类的清单与具体信息之间通过清单节点(list_node)关联。All sub-businesses are classified according to function, that is, all sub-businesses in a category have the same association relationship, and the types of sub-businesses of different categories are different; each type of node (CLASS_TREE) records the association relationship between this category and other categories , As shown in the dependency relationship (DEPENDENCY_INFO) and parent-child relationship (FATHER_CHILDREN_INFO) in Figure 1. The dependency relationship includes the list of other classes (depender_list and observer_list) and specific information (DEPENDER_INFO and OBSERVER_INFO) that are dependent on and dependent on this class; the parent-child relationship includes the list of "father" and "son" classes (myfather_list and mychildren_list) and Specific information (FATHER__INFO and CHILDREN__INFO); other types of lists and specific information are related through the list node (list_node).
确定与需要创建的子业务对应的类别,判断该类别下是否存在该子业务的数据模型,若是,则证明已经创建,结束;否则根据该类与其他类之间的关联关系,将该子业务与其他子业务关联后,形成该子业务的数据模型、并储存于该类别中。Determine the category corresponding to the sub-business that needs to be created, and determine whether the data model of the sub-business exists under this category. If it is, it proves that it has been created and ended; otherwise, the sub-business is based on the association relationship between this category and other categories. After being associated with other sub-businesses, the data model of the sub-business is formed and stored in the category.
可以得出,当其他类中不存在与该子业务关联的关联子业务时,可通过上述方式来创建关联子业务。It can be concluded that when there is no associated sub-business associated with the sub-business in other classes, the associated sub-business can be created in the above manner.
参见图2和图3所示,本发明实施例中的子业务的数据模型包括:Referring to Figures 2 and 3, the data model of the sub-service in the embodiment of the present invention includes:
Route(路由表),包括路由及下一条信息,通过外键path_id依赖Route_path(路由保护表);即Route与Route_path为依赖关系;Route (routing table), including routing and the next piece of information, depends on Route_path (route protection table) through the foreign key path_id; that is, Route and Route_path are dependent;
Route_path(路由保护表),包括路由成员的数量,通过相同的path_id被多个Route_path_mem(路由成员表)依赖,即Route_path(父)与Route_path_mem(子)为父子关系;Route_path (route protection table), including the number of route members, is dependent on multiple Route_path_mem (route member tables) through the same path_id, that is, Route_path (parent) and Route_path_mem (child) are parent-child relationships;
Route_path_mem,除了与Route_path为父子关系,还包括下一跳信息,通过nh_id依赖于Nh(下一跳表);Route_path_mem, in addition to the parent-child relationship with Route_path, also includes next hop information, which depends on Nh (next hop table) through nh_id;
Nh,包括下一跳类型及下一跳的信息,通过ifindex(索引)依赖于Arp(Address resolution protocol,地址解析协议表);Nh, including next hop type and next hop information, depends on Arp (Address resolution protocol, address resolution protocol table) through ifindex (index);
Arp通过相同的ifindex依赖于if_net(出接口表);Arp depends on if_net (outbound interface table) through the same ifindex;
if_net,被Arp依赖。if_net is dependent on Arp.
本发明通过预先为每条子业务配置的数据模型的方式,使得在配置业务时直接调用具体的子业务;调用子业务时,还可根据子业务数据模型中的关联关系来获取其他需要用到的子业务。例如参见图2所示,L3PATH(三层保护)业务直接调用Route和Route_path_mem写 驱动;L3UNI(三层用户)业务直接调用Nh、Arp和if_net写驱动;ARP业务直接调用Arp和if_net写驱动。The present invention configures the data model for each sub-service in advance, so that the specific sub-service can be directly called when the service is configured; when the sub-service is called, other required services can be obtained according to the association relationship in the sub-service data model. Sub-business. For example, as shown in Figure 2, the L3PATH (layer three protection) service directly calls the Route and Route_path_mem write drivers; the L3UNI (layer three user) service directly calls the Nh, Arp and if_net write drivers; the ARP service directly calls the Arp and if_net write drivers.
由此可知,本发明能够通过预先配置好、且复用性非常高的通用数据模型来被不同的业务调用,因此使得配置人员仅需知晓该业务所需的子业务,不需要编写各个子业务及关联关系对应的代码;进而不仅显著简化了业务配置过程,大幅度降低了出错率;而且对配置人员的要求较低,使用范围比较广泛,良好的实现了平台数据的统一化管理。It can be seen that the present invention can be called by different services through a pre-configured universal data model with very high reusability, so that the configuration personnel only need to know the sub-services required by the service, and there is no need to write each sub-service. And the code corresponding to the association relationship; in turn, it not only significantly simplifies the business configuration process and greatly reduces the error rate; but also has low requirements for configuration personnel, a wide range of applications, and a good realization of the unified management of platform data.
优选的,当待调用业务所需的所有数据模型全部配置完成后,根据所述所有数据模型形成待调用业务的业务配置信息的流程包括:Preferably, after all the data models required for the service to be invoked are all configured, the process of forming the service configuration information of the service to be invoked according to all the data models includes:
获取待调用业务所需的所有子业务信息,所有子业务信息中包括1个起始子业务(即向待调用业务发起映射的子业务)和其余伙伴子业务(即其他参与映射或通知的子业务)。Obtain all the sub-business information required by the service to be invoked. All sub-business information includes 1 initial sub-business (that is, the sub-business that initiates mapping to the business to be invoked) and other partner sub-businesses (that is, other sub-businesses that participate in mapping or notification). business).
参见图4所示,起始子业务和伙伴子业务的指定方式、以及迭代关系可以由待调用业务本身指定,具体为:As shown in Figure 4, the method of specifying the starting sub-business and the partner sub-business, and the iteration relationship can be specified by the business to be invoked, specifically:
每个子业务(class A)在注册时会包含两部分信息:Each sub-service (class A) contains two parts of information when registering:
(1)mapping_starter_list信息块:即子业务作为起始子业务的一些基本信息,包括产品回调函数、待调用业务选择关注的子业务属性bitmap、依赖path_list链表;由于一个子业务可能作为多个待调用业务的起始子业务,因此在触发映射时需要对path_list进行遍历。(1) Mapping_starter_list information block: that is, some basic information of the sub-business as the starting sub-business, including the product callback function, the sub-business attribute bitmap that the business to be called is concerned with, and the dependent path_list linked list; because one sub-business may be used as multiple to be called The starting sub-business of the business, so the path_list needs to be traversed when the mapping is triggered.
(2)mapping_parter_list信息块:即子业务作为当前待调用业务的伙伴子业务时,需要通知相应起始子业务触发映射的依赖链信息;(2) Mapping_parter_list information block: that is, when the sub-business is the partner sub-business of the current service to be called, it needs to notify the corresponding initial sub-business to trigger the mapping of the dependency chain information;
STARTER_MAPPING_INFO中的path_list信息:Path_list information in STARTER_MAPPING_INFO:
待调用业务组装时需要的伙伴子业务信息所在依赖链的集合;平台在集齐所有伙伴子业务信息时,会对这些依赖链集合进行遍历,获 取所有伙伴子业务中由待调用业务关注的属性值,最后一次性组装下发产品。The collection of dependency chains where the partner sub-business information required for the assembly of the business to be called is located; when the platform gathers all partner sub-business information, it will traverse these dependency chain collections to obtain the attributes of all partner sub-businesses that are concerned by the business to be called Value, the final assembly and delivery of the product.
PARTER_MAPPING_INFO及其PATH_NODE信息:PARTER_MAPPING_INFO and its PATH_NODE information:
PARTER_MAPPING_INFO中会存储伙伴子业务信息、被关注的属性bitmap信息、必要非必要属性信息、产品回调函数等;而PATH_NODE本质上是一个路径信息,记录着从该伙伴子业务到起始子业务的完整信息。PARTER_MAPPING_INFO will store partner sub-business information, attribute bitmap information of interest, necessary and non-essential attribute information, product callback function, etc.; and PATH_NODE is essentially a path information that records the completeness from the partner sub-business to the initial sub-business information.
实际使用时,可通过起始子业务模块和伙伴子业务模块来实现上述流程,起始子业务模块存储有起始子业务信息、以及所有子业务(即起始子业务与所有伙伴子业务)的路径信息;伙伴子业务模块存储有用于通知起始子业务的完整路径信息。In actual use, the above process can be realized through the initial sub-business module and the partner sub-business module. The initial sub-business module stores initial sub-business information and all sub-businesses (that is, the initial sub-business and all partner sub-businesses) Path information; the partner sub-business module stores the complete path information used to notify the initial sub-business.
接下来参见图5所示,需要获取所有子业务中任意子业务的数据模型:Next, referring to Figure 5, we need to obtain the data model of any sub-business in all sub-businesses:
当获取的是起始子业务的数据模型时,根据迭代关系判断其余所有伙伴子业务的数据模型是否配置完成(根据迭代关系进行循环,每次循环获取一个伙伴子业务的数据模型信息,直到遍历所有的伙伴子业务),若是,根据所述所有数据模型形成待调用业务的业务配置信息;否则证明数据模型还未配置完全,需继续等待;When the data model of the initial sub-business is obtained, determine whether the data models of all other partner sub-businesses are configured according to the iterative relationship (cycle according to the iterative relationship, and obtain the data model information of a partner sub-business in each cycle until the traversal All partner sub-services), if yes, form the service configuration information of the service to be invoked according to all the data models; otherwise, it proves that the data model has not been fully configured, and needs to continue to wait;
当获取的是伙伴子业务时,根据迭代关系判断起始子业务的数据模型是否配置完成,若是,获取起始子业务的数据模型(之后进入上述获取的是起始子业务的数据模型时的流程);否则证明起始子业务的数据模型还未配置,需继续等待。When the partner sub-business is acquired, judge whether the data model of the initial sub-business is configured according to the iterative relationship. If so, obtain the data model of the initial sub-business (after entering the above-mentioned acquisition is the data model of the initial sub-business) Process); otherwise, it proves that the data model of the initial sub-business has not been configured, and it needs to continue to wait.
由此可知,本发明能够通过起始子业务迭代出所有伙伴子业务进行映射;或者通过伙伴子业务迭代通知对应的起始子业务,再由起始子业务触发映射。因此,本发明通过起始子业务和伙伴子业务的“循 环+递归”的方式,来完成待调用业务所需的所有数据模型全部配置的监测;进而能够满足自定义设计、且灵活度较高的待调用业务(因为无论下发的是何种子业务,本发明都有对应的逻辑进行迭代)。From this, it can be seen that the present invention can iterate out all partner sub-businesses through the initial sub-business for mapping; or notify the corresponding initial sub-business through the partner sub-business iteration, and then trigger the mapping by the initial sub-business. Therefore, the present invention completes the monitoring of all the configurations of all data models required by the business to be called through the "loop + recursion" mode of the initial sub-business and the partner sub-business; thus, it can meet the custom design and has a high degree of flexibility. The service to be called (because no matter what kind of sub-service is issued, the present invention has corresponding logic to iterate).
优选的,由于待调用业务的设计过程中经常会遇到多选一的场景(即存在由待调用业务告知的可灵活配置的“分叉点”子业务,即待调用业务告知“分叉点”子业务的属性为非必要,可以有,也可以没有),例如路由NH(下一跳)可以是UNI(用户侧)或者NNI(网络侧),TUNNEL(隧道选择表)可以是FTN TUNNEL或者TE TUNNEL等;但是实际场景中业务只会下发一种类型,若普通的流程进行迭代时,在这种“分叉点”处无法自适应地进行处理。Preferably, because the design process of the service to be called often encounters multiple alternative scenarios (that is, there is a flexibly configurable "fork point" sub-service notified by the service to be called, that is, the service to be called is notified of the "fork point" "The attributes of sub-services are not necessary, and they may or may not exist). For example, the route NH (next hop) can be UNI (user side) or NNI (network side), and TUNNEL (tunnel selection table) can be FTN TUNNEL or TE TUNNEL, etc.; but in the actual scenario, only one type of service will be issued. If the normal process is iterated, it cannot be processed adaptively at this "fork point".
故,本发明在所有子业务信息还引入了可灵活配置的非必要属性的子业务(以下简称非必要子业务,即“分叉点”子业务);因为非必要子业务不会妨碍待调用业务的配置,所以非必要子业务不属于必须的业务配置信息(即非必要子业务与起始子业务和伙伴子业务不是并列关系),非必要子业务的数据模型在待调用业务的业务配置信息配置完成后就可以下发。比如一个待调用业务需要调用3个子业务,但是其中一个子业务的属性为非必要,此时只要其他2个子业务已经建立,该非必要子业务就可以下发。Therefore, the present invention also introduces sub-services with non-essential attributes that can be flexibly configured in all sub-service information (hereinafter referred to as non-essential sub-services, namely "fork point" sub-services); because non-essential sub-services will not hinder the to-be-called The configuration of the business, so the non-essential sub-business does not belong to the necessary business configuration information (that is, the non-essential sub-business is not in a parallel relationship with the initial sub-business and the partner sub-business), and the data model of the non-essential sub-business is in the business configuration of the business to be called After the information is configured, it can be issued. For example, a service to be called needs to call 3 sub-services, but the attribute of one of the sub-services is unnecessary. At this time, as long as the other two sub-services have been established, the non-essential sub-service can be issued.
本发明通过上述设计来实现“分叉点”子业务的合理性条件判定,有效地解决该种多选一场景,大大增加了业务设计的灵活性,既简洁又通用,十分符合平台化思想,很好地适配各种产品的需求。The present invention realizes the rationality condition determination of the "fork point" sub-business through the above design, effectively solves this multiple-choice scenario, greatly increases the flexibility of business design, is concise and versatile, and is very in line with the idea of platformization. Well adapted to the needs of various products.
下面举例说明业务配置信息的形成流程。The following examples illustrate the formation process of service configuration information.
参见图6所示,左半区域的每个圆框各代表一个子业务,左右短箭头表示子业务之间的依赖关系,长箭头表示由左面多个子业务共同映射一个待调用业务。此场景下GROUP(路由工作组)为起始子业 务,UNI(用户侧下一跳)、NNI(网络侧下一跳)、TUNNEL(隧道选择表)、FTN(FEC to NHLFE映射表)、TE_PROT(流量工程保护表)这些子业务都存在于多选一场景中,即联合体场景,因此会被设置为非必要子业务,以增加产品设计的灵活性。其余子业务均为伙伴子业务,虽然MEMBER(工作组成员表)和ARP是待调用业务不需要映射的子业务,但是要作为路径伙伴参与映射。As shown in Figure 6, each circle in the left half of the area represents a sub-service, the left and right short arrows indicate the dependency between sub-services, and the long arrow indicates that multiple sub-services on the left jointly map a service to be called. In this scenario, GROUP (routing working group) is the initial sub-service, UNI (next hop on the user side), NNI (next hop on the network side), TUNNEL (tunnel selection table), FTN (FEC to NHLFE mapping table), TE_PROT (Traffic Engineering Protection Table) These sub-services all exist in more than one scenario, the consortium scenario, so they will be set as unnecessary sub-services to increase the flexibility of product design. The remaining sub-services are all partner sub-services. Although MEMBER (Working Group Member Table) and ARP are sub-services that do not need to be mapped for the service to be called, they must participate in the mapping as path partners.
本发明实施例中的用于业务调用的通用数据配置系统,包括数据模型创建模块和数据模型调用模块。The general data configuration system for business invocation in the embodiment of the present invention includes a data model creation module and a data model invocation module.
数据模型创建模块用于:为每条子业务创建数据模型,每个数据模型中包括该子业务与其他子业务之间的关联关系;关联关系包括依赖关系和父子关系,依赖关系为该子业务仅依赖或被依赖于一条其他子业务,父子关系为该子业务被多条其他子业务依赖、或者与其他子业务共同依赖于一条子业务。The data model creation module is used to: create a data model for each sub-business, and each data model includes the relationship between the sub-business and other sub-business; the relationship includes dependency and parent-child relationship, and the dependency is only Depends on or is dependent on one other sub-business, and the parent-child relationship is that the sub-business is dependent on multiple other sub-businesses, or is jointly dependent on one sub-business with other sub-businesses.
数据模型创建模块的具体工作流程包括:按照功能将所有子业务进行分类,一个类别中所有子业务的关联关系相同;每个类别中记载有该类与其他类之间的关联关系;确定与需要创建的子业务对应的类别,根据该类与其他类之间的关联关系,将该子业务与其他子业务关联后,形成该子业务的数据模型。The specific work flow of the data model creation module includes: classify all sub-businesses according to their functions, and all sub-businesses in a category have the same association relationship; each category records the association relationship between this category and other categories; determine and need The category corresponding to the created sub-business is associated with other sub-businesses based on the association relationship between the sub-business and other sub-businesses to form the data model of the sub-business.
数据模型调用模块用于:当待调用业务所需的所有数据模型全部配置完成后,根据所述所有数据模型形成待调用业务的业务配置信息。The data model invocation module is used for: when all the data models required by the service to be invoked are all configured, form the service configuration information of the service to be invoked according to all the data models.
数据模型调用模块具体包括通用迭代引擎、起始子业务模块和伙伴子业务模块;The data model calling module specifically includes the general iteration engine, the initial sub-business module and the partner sub-business module;
通用迭代引擎用于:获取待调用业务所需的所有子业务信息,所有子业务信息中包括1个起始子业务、若干伙伴子业务、以及若干可 灵活配置的非必要子业务;根据所有子业务之间的关联关系,形成所有子业务的迭代关系;获取所有子业务中任意子业务的数据模型:若获取的是起始子业务的数据模型,通知起始子业务模块开始工作;若获取的是伙伴子业务的数据模型,通知伙伴子业务模块开始工作;若获取的是非必要子业务的数据模型,则待调用业务的业务配置信息配置完成后下发。The general iterative engine is used to obtain all the sub-business information required by the service to be invoked. All sub-business information includes 1 starting sub-business, several partner sub-businesses, and several non-essential sub-businesses that can be flexibly configured; The relationship between the businesses forms the iterative relationship of all sub-businesses; to obtain the data model of any sub-business in all sub-businesses: if the data model of the initial sub-business is acquired, notify the initial sub-business module to start working; It is the data model of the partner's sub-business, and the partner's sub-business module is notified to start working; if the data model of the non-essential sub-business is obtained, the business configuration information of the service to be called is issued after the configuration is completed.
起始子业务模块用于:当根据迭代关系判定所有伙伴子业务的数据模型均配置完成时,根据所述所有数据模型形成待调用业务的业务配置信息。The initial sub-service module is used to form the service configuration information of the service to be invoked according to all the data models when it is determined that the data models of all partner sub-services are configured according to the iterative relationship.
伙伴子业务模块用于:当根据迭代关系判定起始子业务的数据模型配置完成时,通知起始子业务模块开始工作。The partner sub-business module is used to notify the starting sub-business module to start work when it is determined that the data model configuration of the initial sub-business is completed according to the iteration relationship.
需要说明的是:本发明实施例提供的系统在进行模块间通信时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将系统的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。It should be noted that when the system provided by the embodiment of the present invention performs inter-module communication, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be allocated by different functional modules as required. That is, the internal structure of the system is divided into different functional modules to complete all or part of the functions described above.
进一步,本发明不局限于上述实施方式,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围之内。本说明书中未作详细描述的内容属于本领域专业技术人员公知的现有技术。Further, the present invention is not limited to the above-mentioned embodiments. For those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and modifications can be made, and these improvements and modifications are also regarded as the present invention. Within the scope of protection. The content not described in detail in this specification belongs to the prior art known to those skilled in the art.

Claims (10)

  1. 一种用于业务调用的通用数据配置方法,其特征在于,该方法包括以下步骤:为每条子业务定义统一的数据模型,为待调用业务所需的每条子业务建立迭代关系,迭代关系中包括一条起始子业务和其余伙伴子业务;当一条伙伴子业务配置完成后,根据迭代关系确定起始子业务;当起始子业务配置完成后,若根据迭代关系确定其余伙伴子业务均配置完成,则形成待调用业务的业务配置信息。A general data configuration method for business invocation, which is characterized in that the method includes the following steps: define a unified data model for each sub-business, establish an iterative relationship for each sub-business required by the business to be invoked, and the iterative relationship includes One initial sub-business and other partner sub-businesses; when a partner sub-business is configured, the initial sub-business is determined according to the iterative relationship; when the initial sub-business is configured, if it is determined according to the iteration relationship that the remaining partner sub-businesses are all configured , Then the service configuration information of the service to be invoked is formed.
  2. 如权利要求1所述的用于业务调用的通用数据配置方法,其特征在于,该方法具体包括以下步骤:获取待调用业务所需的任意子业务的数据模型:The universal data configuration method for service invocation according to claim 1, wherein the method specifically includes the following steps: obtaining the data model of any sub-service required by the service to be invoked:
    若当前子业务为起始子业务、且根据迭代关系判定所有伙伴子业务的数据模型均配置完成,则根据所述所有数据模型形成待调用业务的业务配置信息;If the current sub-business is the initial sub-business and it is determined based on the iteration relationship that the data models of all partner sub-businesses are all configured, then the business configuration information of the service to be invoked is formed according to all the data models;
    若当前子业务为伙伴子业务、且根据迭代关系判定起始子业务的数据模型配置完成,则获取起始子业务的数据模型。If the current sub-business is a partner sub-business, and the data model configuration of the initial sub-business is determined to be completed according to the iterative relationship, the data model of the initial sub-business is acquired.
  3. 如权利要求1所述的用于业务调用的通用数据配置方法,其特征在于,每个数据模型中包括该子业务与其他子业务之间的关联关系,所述为每条子业务创建数据模型的流程包括:按照功能将所有子业务进行分类,一个类别中所有子业务的关联关系相同;每个类别中记载有该类与其他类之间的关联关系;确定与需要创建的子业务对应的类别,根据该类与其他类之间的关联关系,将该子业务与其他子业务关联后,形成该子业务的数据模型。The universal data configuration method for business invocation according to claim 1, wherein each data model includes the association relationship between the sub-business and other sub-businesses, and the data model creation method for each sub-business The process includes: classifying all sub-businesses according to their functions, and all sub-businesses in a category have the same association relationship; each category records the association relationship between this category and other categories; determining the category corresponding to the sub-business that needs to be created According to the association relationship between this class and other classes, after associating this sub-business with other sub-businesses, the data model of this sub-business is formed.
  4. 如权利要求1所述的用于业务调用的通用数据配置方法,其特征在于:子业务之间的关联关系包括依赖关系和父子关系,依赖关系为该子业务仅依赖或被依赖于一条其他子业务,父子关系为该子业 务被多条其他子业务依赖、或者与其他子业务共同依赖于一条子业务。The universal data configuration method for business invocation according to claim 1, characterized in that: the association relationship between the sub-services includes a dependency relationship and a parent-child relationship, and the dependency relationship is that the sub-business only depends on or is dependent on one of the other children. Business, the parent-child relationship is that the sub-business is dependent on multiple other sub-businesses, or is dependent on one sub-business in common with other sub-businesses.
  5. 如权利要求1至4任一项所述的用于业务调用的通用数据配置方法,其特征在于,所述起始子业务和伙伴子业务均可以为非必要子业务,非必要子业务的数据模型待调用业务的业务配置信息配置完成后下发。The general data configuration method for business invocation according to any one of claims 1 to 4, wherein the initial sub-business and partner sub-business can both be non-essential sub-business, and data of non-essential sub-business The model will be issued after the configuration of the service configuration information of the service to be called.
  6. 一种用于业务调用的通用数据配置系统,其特征在于:该系统包括数据模型创建模块和数据模型调用模块;A general data configuration system for business calling, characterized in that: the system includes a data model creation module and a data model calling module;
    数据模型创建模块用于:为每条子业务创建数据模型,每个数据模型中包括该子业务与其他子业务之间的关联关系;The data model creation module is used to: create a data model for each sub-business, and each data model includes the association relationship between the sub-business and other sub-businesses;
    数据模型调用模块用于:当待调用业务所需的所有数据模型全部配置完成后,根据所述所有数据模型形成待调用业务的业务配置信息。The data model invocation module is used for: when all the data models required by the service to be invoked are all configured, form the service configuration information of the service to be invoked according to all the data models.
  7. 如权利要求6所述的用于业务调用的通用数据配置系统,其特征在于:所述数据模型调用模块包括通用迭代引擎、起始子业务模块和伙伴子业务模块;8. The general data configuration system for business invocation according to claim 6, wherein the data model invocation module includes a general iteration engine, an initial sub-business module and a partner sub-business module;
    通用迭代引擎用于:获取待调用业务所需的所有子业务信息,所有子业务信息中包括1个起始子业务和其余伙伴子业务;根据所有子业务之间的关联关系,形成所有子业务的迭代关系;获取所有子业务中任意子业务的数据模型:若获取的是起始子业务的数据模型,通知起始子业务模块开始工作;若获取的是伙伴子业务的数据模型,通知伙伴子业务模块开始工作;The general iterative engine is used to obtain all sub-business information required by the business to be invoked. All sub-business information includes an initial sub-business and other partner sub-businesses; all sub-businesses are formed according to the relationship between all sub-businesses Get the data model of any sub-business in all sub-businesses: if the data model of the initial sub-business is acquired, notify the initial sub-business module to start working; if the data model of the partner’s sub-business is acquired, notify the partner The sub-business module starts to work;
    起始子业务模块用于:当根据迭代关系判定所有伙伴子业务的数据模型均配置完成时,根据所述所有数据模型形成待调用业务的业务配置信息;The initial sub-service module is used to: when it is determined according to the iterative relationship that the data models of all partner sub-services are configured, form the service configuration information of the service to be invoked according to all the data models;
    伙伴子业务模块用于:当根据迭代关系判定起始子业务的数据模型配置完成时,通知起始子业务模块开始工作。The partner sub-business module is used to notify the starting sub-business module to start work when it is determined that the data model configuration of the initial sub-business is completed according to the iteration relationship.
  8. 如权利要求7所述的用于业务调用的通用数据配置系统,其特征在于:所述所有子业务信息还包括可灵活配置的非必要子业务,非必要子业务的数据模型待调用业务的业务配置信息配置完成后下发。The universal data configuration system for service invocation according to claim 7, characterized in that: the information of all sub-services also includes non-essential sub-services that can be flexibly configured, and the data model of the non-essential sub-services is the service to be invoked. The configuration information is delivered after the configuration is completed.
  9. 如权利要求6至8任一项所述的用于业务调用的通用数据配置系统,其特征在于:所述数据模型创建模块的工作流程包括:按照功能将所有子业务进行分类,一个类别中所有子业务的关联关系相同;每个类别中记载有该类与其他类之间的关联关系;确定与需要创建的子业务对应的类别,根据该类与其他类之间的关联关系,将该子业务与其他子业务关联后,形成该子业务的数据模型。The universal data configuration system for business invocation according to any one of claims 6 to 8, wherein the workflow of the data model creation module includes: classifying all sub-businesses according to functions, and all sub-businesses in a category The association relationship of the sub-business is the same; each category records the association relationship between this category and other categories; determines the category corresponding to the sub-business that needs to be created, and based on the association relationship between this category and other categories, After the business is associated with other sub-businesses, the data model of the sub-business is formed.
  10. 如权利要求6至8任一项所述的用于业务调用的通用数据配置系统,其特征在于:所述数据模型创建模块创建的数据模型中子业务之间的关联关系包括依赖关系和父子关系,依赖关系为该子业务仅依赖或被依赖于一条其他子业务,父子关系为该子业务被多条其他子业务依赖、或者与其他子业务共同依赖于一条子业务。The general data configuration system for business invocation according to any one of claims 6 to 8, characterized in that: the association relationship between the sub-businesses in the data model created by the data model creation module includes a dependency relationship and a parent-child relationship , The dependency relationship is that the sub-business only depends on or is dependent on one other sub-business, and the parent-child relationship is that the sub-business is dependent on multiple other sub-businesses, or is jointly dependent on one sub-business with other sub-businesses.
PCT/CN2019/096630 2019-06-05 2019-07-19 General data configuration method and system for service invocation WO2020244033A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910488130.7 2019-06-05
CN201910488130.7A CN112052294B (en) 2019-06-05 2019-06-05 General data configuration method and system for service call

Publications (1)

Publication Number Publication Date
WO2020244033A1 true WO2020244033A1 (en) 2020-12-10

Family

ID=73609520

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/096630 WO2020244033A1 (en) 2019-06-05 2019-07-19 General data configuration method and system for service invocation

Country Status (2)

Country Link
CN (1) CN112052294B (en)
WO (1) WO2020244033A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186834A (en) * 2011-12-31 2013-07-03 阿里巴巴集团控股有限公司 Method and device of business process configuration
CN104270257A (en) * 2014-09-10 2015-01-07 烽火通信科技股份有限公司 Network element level network management service configuration adaptive system and method based on PB and XPATH
CN105959135A (en) * 2016-04-28 2016-09-21 烽火通信科技股份有限公司 PTN equipment single-disk configuration system and method based on common business model
US20160306628A1 (en) * 2015-04-17 2016-10-20 Ulrich Bestfleisch Layered Business Configuration

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095504B (en) * 2013-01-25 2016-03-02 山东广电网络有限公司济南分公司 A kind of wired network infrastructure resource management system
CN103825755B (en) * 2013-11-27 2017-02-15 广东电网公司电力调度控制中心 Power secondary system modeling method and system
CN106776995B (en) * 2016-12-06 2020-08-28 北京神舟航天软件技术有限公司 Structured data tree-form acquisition method based on model-driven architecture

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186834A (en) * 2011-12-31 2013-07-03 阿里巴巴集团控股有限公司 Method and device of business process configuration
CN104270257A (en) * 2014-09-10 2015-01-07 烽火通信科技股份有限公司 Network element level network management service configuration adaptive system and method based on PB and XPATH
US20160306628A1 (en) * 2015-04-17 2016-10-20 Ulrich Bestfleisch Layered Business Configuration
CN105959135A (en) * 2016-04-28 2016-09-21 烽火通信科技股份有限公司 PTN equipment single-disk configuration system and method based on common business model

Also Published As

Publication number Publication date
CN112052294A (en) 2020-12-08
CN112052294B (en) 2023-01-31

Similar Documents

Publication Publication Date Title
US20020032769A1 (en) Network management method and system
US11361027B2 (en) Historical state management in databases
US20030212778A1 (en) UML representation of parameter calculation expressions for service monitoring
CN109635019A (en) Request processing method, device, equipment and storage medium
US10848347B2 (en) Managing virtual local area network domains
US20040213230A1 (en) Data matrix method and system for distribution of data
CN102754409A (en) Methods, systems, and computer readable media for diameter protocol harmonization
CN109656688B (en) Method, system and server for realizing distributed business rules
US10911314B2 (en) Systems and methods for determining entry points for mapping a network
CN101631041B (en) Service configuration processing method and configuration relation management module
Di Luna et al. Counting in anonymous dynamic networks under worst-case adversary
US20120300675A1 (en) Link inference in large networks based on incomplete data
EP3637690B1 (en) Service configuration-driven flow table method and device
CN105429879A (en) Flow table item querying method, flow table item querying equipment and flow table item querying system
CN108733698A (en) A kind of processing method and background service system of log information
CN109547288A (en) A kind of unrelated forwarding Network Programmable flow measuring method of agreement
US8392548B1 (en) Method and apparatus for generating diagnostic information for errors detected in a network management protocol
WO2020244033A1 (en) General data configuration method and system for service invocation
CN102136957B (en) Label switched path monitoring realization method, device and system
WO2023125773A1 (en) Global exception handling method and platform in large-scale micro-service cluster scenario
CN115297050B (en) Cloud network-based intelligent measurement terminal establishment method
CN1677935B (en) Conversion system for configuration of information model tree in telecommunication management network and method thereof
CN108449562A (en) A kind of method and device for adding web camera in network hard disk video recorder
CN106330477A (en) Ethernet service configuration method, configuration device and network management
CN108023948A (en) A kind of system and method for handling third party system information

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19931950

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19931950

Country of ref document: EP

Kind code of ref document: A1