Movatterモバイル変換


[0]ホーム

URL:


CN113923250B - Method, device and system for assisting network service arrangement - Google Patents

Method, device and system for assisting network service arrangement
Download PDF

Info

Publication number
CN113923250B
CN113923250BCN202010648613.1ACN202010648613ACN113923250BCN 113923250 BCN113923250 BCN 113923250BCN 202010648613 ACN202010648613 ACN 202010648613ACN 113923250 BCN113923250 BCN 113923250B
Authority
CN
China
Prior art keywords
data model
network service
node control
data
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010648613.1A
Other languages
Chinese (zh)
Other versions
CN113923250A (en
Inventor
钟锋
丘水平
石勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co LtdfiledCriticalHuawei Technologies Co Ltd
Priority to CN202010648613.1ApriorityCriticalpatent/CN113923250B/en
Publication of CN113923250ApublicationCriticalpatent/CN113923250A/en
Application grantedgrantedCritical
Publication of CN113923250BpublicationCriticalpatent/CN113923250B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本申请实施例公开了一种辅助网络服务编排的方法、装置及系统,涉及计算机领域,实现了网络服务编排过程的可视化,降低了网络服务编排的复杂度,提高了编排效率。具体方案为:在第一设备的显示界面上显示网络服务的逻辑图;然后第一设备根据逻辑图辅助编排网络服务;其中,逻辑图包括至少一个节点控件;该至少一个节点控件中的每个节点控件分别与网络服务包括的至少一个数据模型中的一个数据模型之间关联。

Figure 202010648613

The embodiment of the present application discloses a method, device and system for assisting network service orchestration, which relate to the computer field, realize the visualization of the network service orchestration process, reduce the complexity of network service orchestration, and improve the orchestration efficiency. The specific solution is: displaying the logic diagram of the network service on the display interface of the first device; then the first device assists in arranging the network service according to the logic diagram; wherein, the logic diagram includes at least one node control; each of the at least one node control The node controls are respectively associated with one data model in at least one data model included in the network service.

Figure 202010648613

Description

Translated fromChinese
一种辅助网络服务编排的方法、装置及系统A method, device and system for assisting network service orchestration

技术领域technical field

本申请实施例涉及信息技术领域,尤其涉及一种辅助网络服务编排的方法、装置及系统。The embodiments of the present application relate to the field of information technology, and in particular to a method, device and system for assisting network service orchestration.

背景技术Background technique

网络服务是基于超文本传输协议(hypertext transfer protocol,http)的远程调用技术开发的应用程序。该应用程序可以支持跨编程语言及跨操作系统的访问。例如,技术人员开发了一个查询天气的网络服务,用户可以通过任一个设备访问该应用程序(查询天气的网络服务)查询天气。具体的,用户可以在该应用程序中输入“今日天气”,该应用程序生成用于查询今日天气的查询请求,并将该查询请求发送给服务网关。服务网关根据该查询请求从数据库中获取到今日的天气数据,并将今日的天气数据发送给用户设备。Web service is an application developed based on the remote calling technology of hypertext transfer protocol (http). The application can support access across programming languages and operating systems. For example, technicians have developed a web service for querying the weather, and users can access the application (the web service for querying the weather) through any device to query the weather. Specifically, the user can input "today's weather" in the application program, and the application program generates a query request for querying today's weather, and sends the query request to the service gateway. The service gateway obtains today's weather data from the database according to the query request, and sends today's weather data to the user equipment.

其中,网络服务的编排过程可以包括网络服务的设计、开发、测试、和发布等。Wherein, the orchestration process of the network service may include the design, development, testing, and publishing of the network service.

目前,网络服务的编排过程主要包括:首先,开发人员分析待编排的网络服务需要的数据模型、数据模型内的数据结构之间的关系、数据模型之间的关系以及输入输出参数等,然后人工梳理出该网络服务需要的数据模型、数据模型内的数据结构之间的关系、数据模型之间的关系以及输入输出参数等信息之间的逻辑关系,再根据该逻辑关系编写可运行的脚本程序。进一步对编写的脚本程序进行测试与发布。At present, the orchestration process of network services mainly includes: first, developers analyze the data model required by the network service to be orchestrated, the relationship between data structures in the data model, the relationship between data models, and input and output parameters, etc., and then manually Sort out the logical relationship between the data model required by the network service, the relationship between data structures in the data model, the relationship between data models, and the input and output parameters, and then write an executable script program based on the logical relationship . Further test and publish the written script program.

但是,网络服务的编排过程中,开发人员需要查阅数据模型信息,需要熟悉数据库查询语言,需要人工梳理数据库中各数据模型中的数据结构和各数据模型之间的关联逻辑以及输入输出参数与数据模型之间的逻辑关系等,所以对开发人员的技能要求较高,且整个实现过程复杂,效率低。However, during the orchestration process of network services, developers need to consult the data model information, need to be familiar with the database query language, and need to manually sort out the data structure in each data model in the database and the association logic between each data model, as well as the input and output parameters and data. The logical relationship between models, etc., so the developer's skills are required to be high, and the entire implementation process is complicated and inefficient.

发明内容Contents of the invention

本申请提供一种辅助网络服务编排的方法、装置及系统,实现了网络服务编排过程的可视化,降低了网络服务编排的复杂度,提高了编排效率。The present application provides a method, device and system for assisting network service orchestration, which realizes the visualization of the network service orchestration process, reduces the complexity of network service orchestration, and improves the orchestration efficiency.

为了达到上述目的,本申请采用如下技术方案:In order to achieve the above object, the application adopts the following technical solutions:

第一方面,本申请提供一种辅助网络服务编排的方法,该方法可以应用于第一设备,网络服务包括至少一个数据模型,该方法可以包括:在第一设备的显示界面上显示网络服务的逻辑图;其中,逻辑图包括至少一个节点控件;至少一个节点控件中的每个节点控件分别与至少一个数据模型中的一个数据模型之间关联;根据逻辑图辅助编排网络服务。In a first aspect, the present application provides a method for assisting network service orchestration, the method can be applied to a first device, and the network service includes at least one data model, and the method can include: displaying the network service on the display interface of the first device A logic diagram; wherein, the logic diagram includes at least one node control; each node control in the at least one node control is associated with at least one data model in the data model; and the network service is assisted in arranging according to the logic diagram.

通过本申请提供的辅助网络服务编排的方法,根据构建逻辑图的方式,将网络服务包括的数据模型在逻辑图中以可视化的节点控件来表示,通过逻辑图可以清楚直接的得到网络服务包括的节点控件,即网络服务包括的数据模型,还可以通过逻辑图中的节点控件自动获取与节点控件关联的数据模型内的数据的存储关系,然后根据逻辑图中的节点控件辅助编排网络服务,避免了人工梳理网络服务包括的数据模型内的数据的存储关系,人工编排网络服务的复杂过程,实现了网络服务编排过程的可视化,降低了网络服务编排的复杂度,提高了编排效率。Through the method for assisting network service orchestration provided by this application, according to the way of constructing the logic diagram, the data model included in the network service is represented in the logic diagram with a visual node control, and the network service can be clearly and directly obtained through the logic diagram. The node control, that is, the data model included in the network service, can also automatically obtain the storage relationship of the data in the data model associated with the node control through the node control in the logic diagram, and then assist in arranging the network service according to the node control in the logic diagram, avoiding It eliminates the complex process of manually sorting out the data storage relationship in the data model included in network services and manually arranges network services, realizes the visualization of network service orchestration process, reduces the complexity of network service orchestration, and improves the orchestration efficiency.

其中,可以根据实际需求配置网络服务的逻辑图,本申请对此不予具体限定。Wherein, the logic diagram of the network service may be configured according to actual requirements, which is not specifically limited in this application.

一种可能的实现方式中,网络服务可以包括一个数据模型,对应的,网络服务的逻辑图中包括一个节点控件。In a possible implementation manner, the network service may include a data model, and correspondingly, the logic diagram of the network service includes a node control.

另一种可能的实现方式中,网络服务可以包括多个数据模型及数据模型之间的关系,对应的,网络服务的逻辑图中可以包括多个节点控件以及关系控件。其中,节点控件与节点控件之间通过关系控件进行连接。在该可能的实现方式中,根据构建逻辑图的方式,将网络服务包括的数据模型及数据模型之间的关系在逻辑图中以可视化的节点控件和关系控件来表示,可以清楚直接的得到网络服务的逻辑关系(网络服务的逻辑关系可以包括数据模型、数据模型之间的关系以及数据模型内的数据的存储关系),然后根据逻辑图中的节点控件辅助编排网络服务,避免了人工梳理网络服务的逻辑关系,人工编排网络服务的复杂过程,实现了网络服务编排过程的可视化,降低了网络服务编排的复杂度,提高了编排效率。In another possible implementation manner, the network service may include multiple data models and the relationships among the data models, and correspondingly, the logic diagram of the network service may include multiple node controls and relationship controls. Wherein, the node controls are connected with the node controls through relation controls. In this possible implementation, according to the way of constructing the logic diagram, the data model included in the network service and the relationship between the data models are represented in the logic diagram by visual node controls and relationship controls, and the network can be clearly and directly obtained. The logical relationship of the service (the logical relationship of the network service can include the data model, the relationship between the data models, and the storage relationship of the data in the data model), and then assist in the arrangement of the network service according to the node controls in the logic diagram, avoiding the manual combing of the network The logical relationship of services and the complex process of manually arranging network services realize the visualization of the network service arrangement process, reduce the complexity of network service arrangement, and improve the arrangement efficiency.

结合第一方面,在一种可能的实现方式中,根据逻辑图辅助编排网络服务,可以包括:给网络服务包括的至少一个节点控件添加网络服务的输入参数和网络服务的输出参数。在该可能的实现方式中,通过给逻辑图中的相关控件添加网络服务的输入参数和网络服务的输出参数,进一步提高了网络服务编排过程的可视化程度,降低了网络服务编排的复杂度,提高了编排效率。With reference to the first aspect, in a possible implementation manner, assisting in arranging the network service according to the logic diagram may include: adding input parameters and output parameters of the network service to at least one node control included in the network service. In this possible implementation, by adding network service input parameters and network service output parameters to the relevant controls in the logic diagram, the visualization of the network service orchestration process is further improved, the complexity of network service orchestration is reduced, and the network service orchestration is improved. arrangement efficiency.

结合第一方面或上述一种可能的实现方式中,在另一种可能的实现方式中,给网络服务包括的至少一个节点控件添加网络服务的输入参数和网络服务的输出参数,可以包括:给至少一个节点控件中的与网络服务包括的第一个数据模型关联的节点控件添加网络服务的输入参数;给至少一个节点控件中的与网络服务包括的最后一个数据模型关联的节点控件添加网络服务的输出参数。在该可能的实现方式中,通过给逻辑图中相关控件(与网络服务包括的第一个数据模型关联的节点控件、以及与网络服务包括的最后一个数据模型关联的节点控件)添加输入参数和输出参数的节点控件,进一步提高了网络服务编排过程的可视化程度,降低了网络服务编排的复杂度,提高了编排效率。In combination with the first aspect or one of the above possible implementations, in another possible implementation, adding input parameters and output parameters of the network service to at least one node control included in the network service may include: Add the input parameters of the network service to the node control associated with the first data model included in the network service in at least one node control; add the network service to the node control associated with the last data model included in the network service in at least one node control output parameters. In this possible implementation, by adding input parameters and The node control of the output parameters further improves the visualization of the network service orchestration process, reduces the complexity of the network service orchestration, and improves the orchestration efficiency.

结合第一方面或上述一种可能的实现方式中,在另一种可能的实现方式中,网络服务可以包括一个数据模型,即网络服务包括的第一个数据模型和网络服务包括的最后一个数据模型相同。In combination with the first aspect or one of the above possible implementations, in another possible implementation, the web service may include a data model, that is, the first data model included in the web service and the last data included in the web service The models are the same.

对应的,与网络服务包括的第一个数据模型关联的节点控件,和与网络服务包括的最后一个数据模型关联的节点控件相同。Correspondingly, the node control associated with the first data model included in the web service is the same as the node control associated with the last data model included in the web service.

其中,网络服务包括的数据模型既是网络服务包括的第一数据模型,也是网络服务包括的最后一个数据模型,即逻辑图中包括一个节点控件,针对该节点控件分别添加网络服务的输入参数和网络服务的输出参数。Among them, the data model included in the network service is not only the first data model included in the network service, but also the last data model included in the network service, that is, a node control is included in the logic diagram, and the input parameters of the network service and the network The output parameters of the service.

结合第一方面或上述一种可能的实现方式中,在另一种可能的实现方式中,网络服务可以包括多个数据模型,即网络服务包括的第一个数据模型和网络服务包括的最后一个数据模型不同。In combination with the first aspect or one of the above possible implementations, in another possible implementation, the web service may include multiple data models, that is, the first data model included in the web service and the last data model included in the web service The data model is different.

对应的,与网络服务包括的第一个数据模型关联的节点控件,和与网络服务包括的最后一个数据模型关联的节点控件不同。Correspondingly, the node control associated with the first data model included in the web service is different from the node control associated with the last data model included in the web service.

其中,网络服务包括的第一个数据模型的标识和网络服务包括的最后一个数据模型的标识是对于用户来说是已知的,一种可能的实现方式中,根据网络服务包括的第一个数据模型的标识确定出待添加网络服务的输入参数的控件;根据网络服务包括的最后一个数据模型的标识确定出待添加网络服务的输出参数的控件。Wherein, the identifier of the first data model included in the network service and the identifier of the last data model included in the network service are known to the user. In a possible implementation, according to the first data model included in the network service The identification of the data model determines the control of the input parameter of the network service to be added; the control of the output parameter of the network service to be added is determined according to the identification of the last data model included in the network service.

结合第一方面或上述一种可能的实现方式中,在另一种可能的实现方式中,网络服务可以包括的第一个数据模型的数量可以为一个,或者也可以为多个。With reference to the first aspect or one of the above possible implementation manners, in another possible implementation manner, the network service may include one or more first data models.

对应的,与网络服务包括的第一个数据模型关联的节点控件的数量可以为一个,或者也可以为多个。Correspondingly, the number of node controls associated with the first data model included in the network service may be one, or may also be multiple.

结合第一方面或上述一种可能的实现方式中,在另一种可能的实现方式中,网络服务可以包括的最后一个数据模型的数量可以为一个,或者也可以为多个。In combination with the first aspect or one of the above possible implementation manners, in another possible implementation manner, the number of the last data model that the network service may include may be one, or may also be multiple.

对应的,与网络服务包括的最后一个数据模型关联的节点控件的数量可以为一个,或者也可以为多个。Correspondingly, the number of node controls associated with the last data model included in the network service may be one, or may also be multiple.

结合第一方面或上述一种可能的实现方式中,在另一种可能的实现方式中,根据网络服务包括的多个第一个数据模型的标识确定出每个待添加网络服务的输入参数的控件;根据网络服务包括的多个最后一个数据模型的标识确定出每个待添加网络服务的输出参数的控件。In combination with the first aspect or one of the above possible implementation manners, in another possible implementation manner, the input parameters of each network service to be added are determined according to identifiers of multiple first data models included in the network service. A control; a control for determining the output parameters of each network service to be added according to the identifiers of a plurality of last data models included in the network service.

结合第一方面或上述任一种可能的实现方式中,在另一种可能的实现方式中,给至少一个节点控件中的与网络服务包括的第一个数据模型关联的节点控件添加网络服务的输入参数,以确定将网络服务包括的第一个数据模型的第一属性信息作为网络服务的输入参数。In combination with the first aspect or any of the above possible implementation manners, in another possible implementation manner, the node control associated with the first data model included in the network service among at least one node control is added with the Input parameters to determine that the first attribute information of the first data model included in the network service is used as the input parameter of the network service.

结合第一方面或上述任一种可能的实现方式中,在另一种可能的实现方式中,给至少一个节点控件中的与网络服务包括的最后一个数据模型关联的节点控件添加网络服务的输出参数,以确定将网络服务包括的最后一个数据模型的第二属性信息作为网络服务的输出参数。In combination with the first aspect or any of the above possible implementations, in another possible implementation, add the output of the network service to the node control associated with the last data model included in the network service among at least one node control parameters to determine that the second attribute information of the last data model included in the network service is used as an output parameter of the network service.

结合第一方面或上述任一种可能的实现方式中,在另一种可能的实现方式中,该方法还可以包括:接收第一操作;响应于第一操作,在至少一个节点控件中确定与网络服务包括的第一个数据模型关联的节点控件;针对与网络服务包括的第一个数据模型关联的节点控件,接收该网络服务的输入参数。在该可能的实现方式中,可以通过灵活配置第一操作,灵活接收网络服务的输入参数,进一步提高了网络服务编排过程的可视化,降低了网络服务编排的复杂度,提高了编排效率。With reference to the first aspect or any one of the above possible implementation manners, in another possible implementation manner, the method may further include: receiving a first operation; in response to the first operation, determining in at least one node control and The node control associated with the first data model included in the network service; for the node control associated with the first data model included in the network service, the input parameters of the network service are received. In this possible implementation, the first operation can be flexibly configured to flexibly receive the input parameters of the network service, which further improves the visualization of the network service orchestration process, reduces the complexity of the network service orchestration, and improves the orchestration efficiency.

结合第一方面或上述任一种可能的实现方式中,在另一种可能的实现方式中,该方法还可以包括:接收第二操作;响应于第二操作,在至少一个节点控件中确定与网络服务包括的最后一个数据模型关联的节点控件;针对与网络服务包括的最后一个数据模型关联的节点控件,接收该网络服务的输出参数。在该可能的实现方式中,可以通过灵活配置第二操作,灵活接收网络服务的输出参数,进一步提高了网络服务编排过程的可视化,降低了网络服务编排的复杂度,提高了编排效率。With reference to the first aspect or any of the above possible implementation manners, in another possible implementation manner, the method may further include: receiving a second operation; in response to the second operation, determining in at least one node control the The node control associated with the last data model included in the network service; for the node control associated with the last data model included in the network service, receive the output parameters of the network service. In this possible implementation, the second operation can be flexibly configured to flexibly receive the output parameters of the network service, which further improves the visualization of the network service orchestration process, reduces the complexity of the network service orchestration, and improves the orchestration efficiency.

结合第一方面或上述任一种可能的实现方式,在另一种可能的实现方式中,在第一设备的显示界面上显示网络服务的逻辑图,可以包括:在第一设备的显示界面上添加至少一个节点控件中的第一节点控件;第一节点控件为逻辑图中的任一个节点控件;第一节点控件与至少一个数据模型中的第一数据模型关联。With reference to the first aspect or any of the above possible implementation manners, in another possible implementation manner, displaying the logic diagram of the network service on the display interface of the first device may include: displaying on the display interface of the first device Adding the first node control in the at least one node control; the first node control is any node control in the logic diagram; the first node control is associated with the first data model in the at least one data model.

可选的,在第一设备的显示界面上显示网络服务的逻辑图,可以包括:在第一设备的显示界面上添加至少一个节点控件中的第一节点控件;第一节点控件为逻辑图中任一个节点控件;将第一节点控件与至少一个数据模型中的第一数据模型关联。Optionally, displaying the logic diagram of the network service on the display interface of the first device may include: adding at least one first node control in the node control on the display interface of the first device; the first node control is a logic diagram Any node control; associating the first node control with the first data model in the at least one data model.

结合第一方面或上述任一种可能的实现方式,在另一种可能的实现方式中,该方法还可以包括:根据第一数据模型的标识和第一节点控件的标识,将第一节点控件与第一数据模型关联。在该可能的实现方式中,通过数据模型的标识和节点控件的标识实现数据模型与节点控件的关联,由于一个标识具有唯一指向性,所以该关联的可靠性较高,网络服务的可靠性也较高。With reference to the first aspect or any of the above possible implementation manners, in another possible implementation manner, the method may further include: according to the identifier of the first data model and the identifier of the first node control, assigning the first node control Associated with the first data model. In this possible implementation, the association between the data model and the node control is realized through the identification of the data model and the identification of the node control. Since an identification has unique directionality, the reliability of the association is high, and the reliability of the network service is also high. higher.

可选的,该方法还可以包括:获取第一数据模型的标识和第一节点控件的标识;根据第一数据模型的标识和第一节点控件的标识,将第一节点控件与第一数据模型关联。Optionally, the method may further include: acquiring the identifier of the first data model and the identifier of the first node control; according to the identifier of the first data model and the identifier of the first node control, linking the first node control and the associated.

结合第一方面或上述任一种可能的实现方式,在另一种可能的实现方式中,根据第一数据模型的标识和第一节点控件的标识,将第一节点控件与第一数据模型关联,可以包括:根据第一数据模型的标识、第一节点控件的标识和过滤条件,将第一节点控件与第一数据模型中满足过滤条件的数据关联。在该可能的实现方式中,可以灵活配置过滤条件,实现节点控件与数据模型之间的灵活关联,提高了编排效率。With reference to the first aspect or any of the above possible implementation manners, in another possible implementation manner, associate the first node control with the first data model according to the identifier of the first data model and the identifier of the first node control , may include: according to the identifier of the first data model, the identifier of the first node control and the filter condition, associating the first node control with the data satisfying the filter condition in the first data model. In this possible implementation manner, the filter conditions can be flexibly configured to realize the flexible association between the node control and the data model, thereby improving the arrangement efficiency.

可选的,根据第一数据模型的标识和第一节点控件的标识,将第一节点控件与第一数据模型关联,可以包括:获取第一数据模型的标识、第一节点控件的标识和过滤条件;根据第一数据模型的标识、第一节点控件的标识和过滤条件,将第一节点控件与第一数据模型中满足过滤条件的数据关联。Optionally, associating the first node control with the first data model according to the identifier of the first data model and the identifier of the first node control may include: obtaining the identifier of the first data model, the identifier of the first node control, and filtering Condition: according to the identifier of the first data model, the identifier of the first node control and the filter condition, associate the first node control with the data satisfying the filter condition in the first data model.

结合第一方面或上述任一种可能的实现方式,在另一种可能的实现方式中,第一设备获取第一节点控件的标识、第一数据模型的标识和过滤条件,第一设备接收用户的第三操作,根据该第三操作的指示将第一节点控件与网络服务包括的第一数据模型中满足过滤条件的数据关联。With reference to the first aspect or any of the above possible implementation manners, in another possible implementation manner, the first device obtains the identifier of the first node control, the identifier of the first data model, and the filter condition, and the first device receives the user The third operation is to associate the first node control with the data satisfying the filter condition in the first data model included in the network service according to the instruction of the third operation.

其中,过滤条件可以用于对数据模型中的部分数据进行过滤。第一设备可以根据实际需求配置过滤条件,本申请对此不予具体限定。Among them, the filter condition can be used to filter part of the data in the data model. The first device may configure filter conditions according to actual needs, which is not specifically limited in this application.

结合第一方面或上述任一种可能的实现方式,在另一种可能的实现方式中,过滤条件可以是关于时间的不等式。In combination with the first aspect or any one of the foregoing possible implementation manners, in another possible implementation manner, the filter condition may be an inequality about time.

结合第一方面或上述任一种可能的实现方式,在另一种可能的实现方式中,过滤条件可以是关于数据模型中某些属性参数的不等式。In combination with the first aspect or any one of the above possible implementation manners, in another possible implementation manner, the filter condition may be an inequality about certain attribute parameters in the data model.

结合第一方面或上述任一种可能的实现方式,在另一种可能的实现方式中,逻辑图包括至少两个节点控件,网络服务包括至少两个数据模型,该方法还可以包括:根据第二数据模型的标识和至少两个节点控件中的第二节点控件的标识,将第二节点控件与第二数据模型关联;第一数据模型与第二数据模型之间具有第一关系;第二节点控件为逻辑图中的除第一节点控件之外的任一个节点控件;第一关系用于表示第一数据模型与第二数据模型相关。In combination with the first aspect or any one of the above possible implementation manners, in another possible implementation manner, the logic graph includes at least two node controls, and the network service includes at least two data models, and the method may further include: according to the first The identification of the second data model and the identification of the second node control in the at least two node controls associate the second node control with the second data model; there is a first relationship between the first data model and the second data model; the second The node control is any node control in the logic diagram except the first node control; the first relationship is used to indicate that the first data model is related to the second data model.

可选的,逻辑图包括至少两个节点控件,网络服务包括至少两个数据模型,该方法还可以包括:获取第二数据模型的标识和至少两个节点控件中的第二节点控件的标识;第一数据模型与第二数据模型之间具有第一关系;第二节点控件为逻辑图中的除第一节点控件之外的任一个节点控件;第一关系用于表示第一数据模型与第二数据模型相关;将第二节点控件与第二数据模型关联。Optionally, the logic graph includes at least two node controls, and the network service includes at least two data models, and the method may further include: obtaining an identifier of the second data model and an identifier of the second node control among the at least two node controls; There is a first relationship between the first data model and the second data model; the second node control is any node control in the logic diagram except the first node control; the first relationship is used to represent the first data model and the second node control The second data model is related; associate the second node control with the second data model.

结合第一方面或上述任一种可能的实现方式,在另一种可能的实现方式中,该逻辑图还可以包括第一关系控件;该方法还可以包括:根据第一关系控件的标识和第一关系的标识,将第一关系控件与第一关系关联;第一节点控件与第二节点控件通过第一关系控件连接。In combination with the first aspect or any of the above possible implementation manners, in another possible implementation manner, the logic diagram may further include a first relational control; the method may further include: according to the identifier of the first relational control and the second An identification of a relationship, associating the first relationship control with the first relationship; the first node control and the second node control are connected through the first relationship control.

可选的,逻辑图还可以包括第一关系控件;该方法还可以包括:获取第一关系控件的标识和第一关系的标识;第一节点控件与第二节点控件通过第一关系控件连接;将第一关系控件与第一关系关联。Optionally, the logic diagram may also include a first relationship control; the method may also include: obtaining an identifier of the first relationship control and an identifier of the first relationship; connecting the first node control and the second node control through the first relationship control; Associate the first relationship control with the first relationship.

结合第一方面或上述任一种可能的实现方式,在另一种可能的实现方式中,该方法还可以包括:根据搜索指令,获取与第一数据模型相关的候选关系,和/或与第一数据模型存在关系的候选数据模型;其中,搜索指令包括第一数据模型的标识;候选关系包括第一关系,候选数据模型包括第二数据模型。在该可能的实现方式中,可以通过搜索指令,搜索相关的数据模型和/或相关的关系,进一步提高了网络编排的智能性,降低了编排的复杂性,提高编排的效率。With reference to the first aspect or any of the above possible implementation manners, in another possible implementation manner, the method may further include: acquiring a candidate relationship related to the first data model according to the search instruction, and/or related to the first data model A data model has a candidate data model of a relationship; wherein, the search instruction includes the identifier of the first data model; the candidate relationship includes the first relationship, and the candidate data model includes the second data model. In this possible implementation manner, the intelligence of network layout can be further improved, the complexity of layout can be reduced, and the efficiency of layout can be improved by searching for related data models and/or related relationships through searching instructions.

可选的,该方法还可以包括:接收搜索指令;搜索指令包括第一数据模型的标识;搜索指令用于指示搜索与第一数据模型相关的关系,和/或与第一数据模型存在关系的数据模型;根据搜索指令,获取与第一数据模型相关的候选关系,和/或与第一数据模型存在关系的候选数据模型;其中,候选关系包括第一关系,候选数据模型包括第二数据模型。Optionally, the method may further include: receiving a search instruction; the search instruction includes an identifier of the first data model; the search instruction is used to instruct to search for a relationship related to the first data model, and/or a relationship with the first data model Data model; According to the search instruction, obtain candidate relationships related to the first data model, and/or candidate data models that have a relationship with the first data model; wherein, the candidate relationship includes the first relationship, and the candidate data model includes the second data model .

结合第一方面或上述任一种可能的实现方式,在另一种可能的实现方式中,根据搜索指令,获取与第一数据模型相关的候选关系,和/或与第一数据模型存在关系的候选数据模型,可以包括:将搜索指令发送给第二设备;第二设备中存储了多个数据模型和数据模型之间的关系;接收第二设备发送的候选关系和/或候选数据模型。在该可能的实现方式中,在搜索相关的数据模型或者相关的关系时,可以通过其他设备辅助搜索,提高了编排的灵活性,降低了编排的复杂性,提高了编排效率。In combination with the first aspect or any of the above possible implementation manners, in another possible implementation manner, according to the search instruction, obtain the candidate relationship related to the first data model, and/or the candidate relationship related to the first data model The candidate data model may include: sending a search instruction to the second device; storing multiple data models and relationships among the data models in the second device; receiving candidate relationships and/or candidate data models sent by the second device. In this possible implementation manner, when searching for related data models or related relationships, other devices can be used to assist the search, which improves the flexibility of arrangement, reduces the complexity of arrangement, and improves the efficiency of arrangement.

结合第一方面或上述任一种可能的实现方式,在另一种可能的实现方式中,逻辑图可以包括至少两个节点控件,网络服务可以包括至少两个数据模型,该至少两个数据模型包括第三数据模型和第四数据模型;该方法还可以包括:根据路径推荐指令,获取一个或多个候选路径;路径推荐指令包括第三数据模型的标识和第四数据模型的标识;候选路径包括以第三数据模型为起点、且以第四数据模型为终点的路径;一个或多个候选路径包括目标路径,目标路径中的数据模型和数据模型之间的关系分别对应的控件构成的路径,是逻辑图中的一条路径。在该可能的实现方式中,通过路径推荐的方式可以自动获取网络服务的一段目标路径,提高了编排的智能性,降低了编排的复杂性,提高了编排效率。In combination with the first aspect or any of the above possible implementation manners, in another possible implementation manner, the logic diagram may include at least two node controls, and the network service may include at least two data models, the at least two data models Including a third data model and a fourth data model; the method may also include: obtaining one or more candidate paths according to the path recommendation instruction; the path recommendation instruction includes the identification of the third data model and the identification of the fourth data model; the candidate path Including the path starting from the third data model and ending with the fourth data model; one or more candidate paths include the target path, the data model in the target path and the path formed by the controls corresponding to the relationship between the data models respectively , is a path in the logic graph. In this possible implementation manner, a target path of the network service can be automatically obtained through path recommendation, which improves the intelligence of the orchestration, reduces the complexity of the orchestration, and improves the efficiency of the orchestration.

其中,第三数据模型可以网络服务的第一个数据模型,也可以是网络服务包括的一段路径中的第一数据模型;对应的,第四数据模型可以网络服务的最后一个数据模型,也可以是网络服务包括的一段路径中的最后一个数据模型。Wherein, the third data model may be the first data model of the network service, or the first data model in a path included in the network service; correspondingly, the fourth data model may be the last data model of the network service, or Is the last data model in the path that the web service includes.

结合第一方面或上述任一种可能的实现方式,在另一种可能的实现方式中,该逻辑图只包括多条条路径,目标路径中的数据模型和数据模型之间的关系分别对应的控件构成的路径,是逻辑图中的一条路径。In combination with the first aspect or any of the above possible implementations, in another possible implementation, the logic diagram only includes multiple paths, and the data models in the target path and the relationships between the data models correspond to The path formed by the controls is a path in the logic diagram.

结合第一方面或上述任一种可能的实现方式,在另一种可能的实现方式中,该逻辑图只包括一条路径,即通过路径推荐的方式获取的目标路径中的数据模型和数据模型之间的关系分别对应的控件构成的路径为网络服务的逻辑图。In combination with the first aspect or any of the above possible implementation manners, in another possible implementation manner, the logic graph only includes one path, that is, the data model in the target path acquired through path recommendation and the data model between the data model The path formed by the controls corresponding to the relationship among them is the logical diagram of the network service.

可选的,逻辑图包括至少两个节点控件,网络服务包括至少两个数据模型,该方法还可以包括:接收路径推荐指令,路径推荐指令包括至少两个数据模型中的第三数据模型的标识和第四数据模型的标识;路径推荐指令用于指示推荐以第三数据模型为起点、第四数据模型为终点一个或多个候选路径;根据路径推荐指令,获取一个或多个候选路径;一个候选路径包括多个数据模型及数据模型之间的关系;获取目标路径中的数据模型对应的节点控件,以及目标路径中的数据模型之间的关系对应的关系控件;其中,一个或多个候选路径包括目标路径。Optionally, the logic graph includes at least two node controls, the network service includes at least two data models, and the method may further include: receiving a path recommendation instruction, where the path recommendation instruction includes an identification of a third data model in the at least two data models and the identification of the fourth data model; the path recommendation instruction is used to indicate that one or more candidate paths are recommended starting from the third data model and ending at the fourth data model; according to the path recommendation instruction, one or more candidate paths are obtained; one Candidate paths include multiple data models and relationships between data models; obtain node controls corresponding to data models in the target path, and relationship controls corresponding to relationships between data models in the target path; among them, one or more candidate path includes target path.

结合第一方面或上述任一种可能的实现方式,在另一种可能的实现方式中,该方法还可以包括:将第三数据模型的标识和第四数据模型的标识发送给第二设备;第二设备中存储了多个数据模型和数据模型之间的关系;接收第二设备发送的一个或多个候选路径。在该可能的实现方式中,在进行路径推荐时,可以通过其他设备辅助推荐,提高了编排的灵活性,降低了编排的复杂性,提高了编排效率。With reference to the first aspect or any of the foregoing possible implementation manners, in another possible implementation manner, the method may further include: sending the identifier of the third data model and the identifier of the fourth data model to the second device; Multiple data models and relationships between the data models are stored in the second device; and one or more candidate paths sent by the second device are received. In this possible implementation manner, when performing path recommendation, other devices may be used to assist in the recommendation, which improves the flexibility of the arrangement, reduces the complexity of the arrangement, and improves the arrangement efficiency.

结合第一方面或上述任一种可能的实现方式,在另一种可能的实现方式中,路径推荐指令还可以包括至少两个数据模型中的第五数据模型的标识;候选路径具体可以包括以第三数据模型为起点、且以第四数据模型为终点,并经过第五数据模型的路径。在该可能的实现方式中,在进行路径推荐时,可以灵活配置推荐的信息(第三数据模型的标识、第四数据模型的标识以及第五数据模型的标识),提高了推荐的灵活性、编排的灵活性,降低了编排的复杂性,提高了编排效率。With reference to the first aspect or any of the above possible implementation manners, in another possible implementation manner, the path recommendation instruction may further include an identification of a fifth data model among the at least two data models; the candidate path may specifically include: A path starting from the third data model, ending at the fourth data model, and passing through the fifth data model. In this possible implementation, when performing path recommendation, the recommended information (identification of the third data model, identification of the fourth data model, and identification of the fifth data model) can be flexibly configured, which improves the flexibility of recommendation, The flexibility of orchestration reduces the complexity of orchestration and improves the efficiency of orchestration.

可选的,路径推荐指令中还可以包括第五数据模型的标识;第五数据模型为网络服务包括的至少两个数据模型中除第三数据模型和第四数据模型之外的数据模型;路径推荐指令具体用于指示推荐以第三数据模型为起点、第四数据模型为终点,并经过第五数据模型的一个或多个候选路径。Optionally, the path recommendation instruction may also include an identifier of a fifth data model; the fifth data model is a data model other than the third data model and the fourth data model among the at least two data models included in the network service; the path The recommendation instruction is specifically used to instruct to recommend one or more candidate paths starting from the third data model, ending at the fourth data model, and passing through the fifth data model.

结合第一方面或上述任一种可能的实现方式,在另一种可能的实现方式中,该方法还可以包括:根据待移动的控件和目标位置,将待移动的控件移动至第一设备的显示界面中的目标位置处;待移动的控件可以包括逻辑图中的一个或多个节点控件。在该可能的实现方式中,可以对逻辑图中的控件进行移动,提高了编排的灵活性,降低了编排的复杂性,提高了编排效率。With reference to the first aspect or any of the above possible implementation manners, in another possible implementation manner, the method may further include: moving the control to be moved to the first device according to the control to be moved and the target position. The target position in the display interface; the control to be moved may include one or more node controls in the logic diagram. In this possible implementation, the controls in the logic diagram can be moved, which improves the flexibility of layout, reduces the complexity of layout, and improves the efficiency of layout.

其中,目标位置可以为第一设备显示界面中的目标区域。Wherein, the target location may be a target area on the display interface of the first device.

具体的,目标位置可以为第一设备显示界面上的一个具体的坐标值或者位置编号。例如,目标位置可以为用户输入的坐标值或者位置编号等信息;或者目标位置可以为根据用户的操作识别得到的坐标值或者位置信息。Specifically, the target location may be a specific coordinate value or location number on the display interface of the first device. For example, the target position may be information such as coordinate values or position numbers input by the user; or the target position may be coordinate values or position information identified according to user operations.

结合第一方面或上述任一种可能的实现方式,在另一种可能的实现方式中,待移动的控件可以包括逻辑图中的一个或多个关系控件。With reference to the first aspect or any of the above possible implementation manners, in another possible implementation manner, the control to be moved may include one or more relational controls in the logic diagram.

结合第一方面或上述任一种可能的实现方式,在另一种可能的实现方式中,待移动的控件可以包括逻辑图中的一个或多个关系控件,以及一个或多个节点控件。With reference to the first aspect or any of the above possible implementation manners, in another possible implementation manner, the controls to be moved may include one or more relational controls and one or more node controls in the logic diagram.

结合第一方面或上述任一种可能的实现方式,在另一种可能的实现方式中,该方法还可以包括:将网络服务的结构图转换为网络服务的脚本程序;网络服务的结构图包括:逻辑图、网络服务的输入参数和网络服务的输出参数;将网络服务的脚本发布至网关设备。在该可能的实现方式中,通过将结构图自动转换为脚本程序,降低了编排的复杂性,提高了编排效率。In combination with the first aspect or any of the above possible implementations, in another possible implementation, the method may further include: converting the network service structure diagram into a network service script program; the network service structure diagram includes : logic diagram, input parameter of network service and output parameter of network service; publish the script of network service to the gateway device. In this possible implementation manner, by automatically converting the structure diagram into a script program, the complexity of layout is reduced and the efficiency of layout is improved.

结合第一方面或上述任一种可能的实现方式,在另一种可能的实现方式中,该方法还可以包括:接收网关设备发送的网络服务的输入参数值;运行加入了输入参数值的网络服务的脚本程序,得到网络服务的输出参数值;将网络服务的输出参数值发送给网关设备。In combination with the first aspect or any of the above possible implementation manners, in another possible implementation manner, the method may further include: receiving the input parameter value of the network service sent by the gateway device; running the network service with the input parameter value The script program of the service obtains the output parameter value of the network service, and sends the output parameter value of the network service to the gateway device.

第二方面,本申请提供一种辅助网络服务编排的装置,用于实现上述第一方面描述的方法。该辅助网络服务编排的装置可以为服务器或支持服务器实现该第一方面描述的方法的装置,例如该装置包括芯片系统。例如,该辅助网络服务编排的装置可以部署于第一设备,网络服务包括至少一个数据模型,该装置可以包括:显示单元和处理单元。In a second aspect, the present application provides an apparatus for assisting network service orchestration, which is used to implement the method described in the first aspect above. The device for assisting network service orchestration may be a server or a device supporting the server to implement the method described in the first aspect, for example, the device includes a chip system. For example, the apparatus for assisting network service orchestration may be deployed on the first device, the network service includes at least one data model, and the apparatus may include: a display unit and a processing unit.

显示单元,用于在第一设备的显示界面上显示网络服务的逻辑图;其中,逻辑图包括至少一个节点控件;至少一个节点控件中的每个节点控件分别与至少一个数据模型中的一个数据模型之间关联。A display unit, configured to display a logical graph of the network service on the display interface of the first device; wherein, the logical graph includes at least one node control; each node control in the at least one node control is respectively associated with a data in the at least one data model Links between models.

处理单元,用于根据逻辑图辅助编排网络服务。The processing unit is used to assist in the orchestration of network services according to the logic diagram.

通过本申请提供的辅助网络服务编排的装置,根据构建逻辑图的方式,将网络服务包括的数据模型在逻辑图中以可视化的节点控件来表示,通过逻辑图可以清楚直接的得到网络服务包括的节点控件,即网络服务包括的数据模型,还可以通过逻辑图中的节点控件自动获取与节点控件关联的数据模型内的数据的存储关系,然后根据逻辑图中的节点控件辅助编排网络服务,避免了人工梳理网络服务包括的数据模型内的数据的存储关系,人工编排网络服务的复杂过程,实现了网络服务编排过程的可视化,降低了网络服务编排的复杂度,提高了编排效率。Through the device for assisting network service orchestration provided by this application, according to the way of constructing the logic diagram, the data model included in the network service is represented in the logic diagram as a visual node control, and the content of the network service can be clearly and directly obtained through the logic diagram The node control, that is, the data model included in the network service, can also automatically obtain the storage relationship of the data in the data model associated with the node control through the node control in the logic diagram, and then assist in arranging the network service according to the node control in the logic diagram, avoiding It eliminates the complex process of manually sorting out the data storage relationship in the data model included in network services and manually arranges network services, realizes the visualization of network service orchestration process, reduces the complexity of network service orchestration, and improves the orchestration efficiency.

结合第二方面,在一种可能的实现方式中,处理单元可以具体用于:给至少一个节点控件添加网络服务的输入参数和网络服务的输出参数。在该可能的实现方式中,通过逻辑图中的相关控件添加网络服务的输入参数和网络服务的输出参数,进一步提高了网络服务编排过程的可视化,降低了网络服务编排的复杂度,提高了编排效率。With reference to the second aspect, in a possible implementation manner, the processing unit may be specifically configured to: add an input parameter of a network service and an output parameter of the network service to at least one node control. In this possible implementation, the input parameters and output parameters of the network service are added through the relevant controls in the logic diagram, which further improves the visualization of the network service orchestration process, reduces the complexity of the network service orchestration, and improves the orchestration process. efficiency.

结合第二方面或上述一种可能的实现方式,在另一种可能的实现方式中,处理单元可以具体用于:给至少一个节点控件中的与网络服务包括的第一个数据模型关联的节点控件添加网络服务的输入参数;给至少一个节点控件中的与网络服务包括的最后一个数据模型关联的节点控件添加网络服务的输出参数。在该可能的实现方式中,通过逻辑图可以清楚的看到待添加输入参数和输出参数的节点控件(与网络服务包括的第一个数据模型关联的节点控件、与网络服务包括的最后一个数据模型关联的节点控件),进一步提高了网络服务编排过程的可视化程度,降低了网络服务编排的复杂度,提高了编排效率。With reference to the second aspect or one of the above possible implementation manners, in another possible implementation manner, the processing unit may be specifically configured to: assign a node associated with the first data model included in the network service in at least one node control The control adds the input parameter of the network service; adds the output parameter of the network service to the node control associated with the last data model included in the network service among at least one node control. In this possible implementation, the node control to be added with input parameters and output parameters can be clearly seen through the logic diagram (the node control associated with the first data model included in the network service, the last data model included in the network service The node control associated with the model) further improves the visualization of the network service orchestration process, reduces the complexity of the network service orchestration, and improves the orchestration efficiency.

结合第二方面或上述任一种可能的实现方式中,在另一种可能的实现方式中,给至少一个节点控件中的与网络服务包括的第一个数据模型关联的节点控件添加网络服务的输入参数,以确定将网络服务包括的第一个数据模型的第一属性信息作为网络服务的输入参数。In combination with the second aspect or any of the above possible implementation manners, in another possible implementation manner, the node control associated with the first data model included in the network service among at least one node control is added with the Input parameters to determine that the first attribute information of the first data model included in the network service is used as the input parameter of the network service.

结合第二方面或上述任一种可能的实现方式中,在另一种可能的实现方式中,给至少一个节点控件中的与网络服务包括的最后一个数据模型关联的节点控件添加网络服务的输出参数,以确定将网络服务包括的最后一个数据模型的第二属性信息作为网络服务的输出参数。In combination with the second aspect or any of the above possible implementations, in another possible implementation, add the output of the network service to the node control associated with the last data model included in the network service among at least one node control parameters to determine that the second attribute information of the last data model included in the network service is used as an output parameter of the network service.

结合第二方面或上述任一种可能的实现方式中,在另一种可能的实现方式中,该方法还可以包括:接收第一操作;响应于第一操作,在至少一个节点控件中确定与网络服务包括的第一个数据模型关联的节点控件;针对与网络服务包括的第一个数据模型关联的节点控件,接收该网络服务的输入参数。在该可能的实现方式中,可以通过灵活配置第一操作,灵活接收网络服务的输入参数,进一步提高了网络服务编排过程的可视化程度,降低了网络服务编排的复杂度,提高了编排效率。With reference to the second aspect or any of the above possible implementation manners, in another possible implementation manner, the method may further include: receiving the first operation; in response to the first operation, determining in at least one node control and The node control associated with the first data model included in the network service; for the node control associated with the first data model included in the network service, the input parameters of the network service are received. In this possible implementation, the first operation can be flexibly configured to flexibly receive the input parameters of the network service, which further improves the visibility of the network service orchestration process, reduces the complexity of the network service orchestration, and improves the orchestration efficiency.

结合第二方面或上述任一种可能的实现方式中,在另一种可能的实现方式中,该方法还可以包括:接收第二操作;响应于第二操作,在至少一个节点控件中确定与网络服务包括的最后一个数据模型关联的节点控件;针对与网络服务包括的最后一个数据模型关联的节点控件,接收该网络服务的输出参数。在该可能的实现方式中,可以通过灵活配置第二操作,灵活接收网络服务的输出参数,进一步提高了网络服务编排过程的可视化程度,降低了网络服务编排的复杂度,提高了编排效率。With reference to the second aspect or any one of the above possible implementation manners, in another possible implementation manner, the method may further include: receiving a second operation; in response to the second operation, determining in at least one node control and The node control associated with the last data model included in the network service; for the node control associated with the last data model included in the network service, receive the output parameters of the network service. In this possible implementation, the second operation can be flexibly configured to flexibly receive the output parameters of the network service, which further improves the visibility of the network service orchestration process, reduces the complexity of the network service orchestration, and improves the orchestration efficiency.

结合第二方面或上述任一种可能的实现方式,在另一种可能的实现方式中,显示单元可以具体用于:在第一设备的显示界面上添加至少一个节点控件中的第一节点控件;第一节点控件为逻辑图中的任一个节点控件;第一节点控件与至少一个数据模型中的第一数据模型关联;第一数据模型为网络服务包括的任一个数据模型。With reference to the second aspect or any of the above possible implementation manners, in another possible implementation manner, the display unit may be specifically configured to: add the first node control in at least one node control on the display interface of the first device ; The first node control is any node control in the logic diagram; the first node control is associated with the first data model in at least one data model; the first data model is any data model included in the network service.

结合第二方面或上述任一种可能的实现方式,在另一种可能的实现方式中,该装置还可以包括:第一关联单元,用于根据第一数据模型的标识和第一节点控件的标识,将第一节点控件与第一数据模型关联。在该可能的实现方式中,通过数据模型的标识和节点控件的标识实现关联,由于一个标识具有唯一指向性,所以该关联的可靠性较高,网络服务的可靠性也较高。With reference to the second aspect or any of the above possible implementation manners, in another possible implementation manner, the device may further include: a first associating unit configured to ID, associate the first node control with the first data model. In this possible implementation, the association is realized through the identification of the data model and the identification of the node control. Since an identification has unique directionality, the reliability of the association is high, and the reliability of the network service is also high.

结合第二方面或上述任一种可能的实现方式,在另一种可能的实现方式中,第一关联单元可以具体用于:根据第一数据模型的标识、第一节点控件的标识和过滤条件,将第一节点控件与第一数据模型中满足过滤条件的数据关联。在该可能的实现方式中,可以灵活配置过滤条件,实现节点控件与数据模型之间的灵活关联,提高了编排效率。With reference to the second aspect or any of the above possible implementation manners, in another possible implementation manner, the first associating unit may be specifically configured to: according to the identifier of the first data model, the identifier of the first node control, and the filter condition , associate the first node control with the data satisfying the filter condition in the first data model. In this possible implementation manner, the filter conditions can be flexibly configured to realize the flexible association between the node control and the data model, thereby improving the arrangement efficiency.

结合第二方面或上述任一种可能的实现方式,在另一种可能的实现方式中,逻辑图包括至少两个节点控件,网络服务包括至少两个数据模型,该装置还可以包括:第二关联单元,用于根据第二数据模型的标识和至少两个节点控件中的第二节点控件的标识,将第二节点控件与第二数据模型关联;第一数据模型与第二数据模型之间具有第一关系;第二节点控件为逻辑图中的除第一节点控件之外的任一个节点控件;第一关系用于表示第一数据模型与第二数据模型相关。With reference to the second aspect or any of the above possible implementation manners, in another possible implementation manner, the logical graph includes at least two node controls, the network service includes at least two data models, and the device may further include: a second An associating unit, configured to associate the second node control with the second data model according to the identification of the second data model and the identification of the second node control in at least two node controls; between the first data model and the second data model It has a first relationship; the second node control is any node control in the logic diagram except the first node control; the first relationship is used to indicate that the first data model is related to the second data model.

结合第二方面或上述任一种可能的实现方式,在另一种可能的实现方式中,该逻辑图还可以包括第一关系控件;该装置还可以包括:第三关联单元,用于根据第一关系控件的标识和第一关系的标识,将第一关系控件与第一关系关联;第一节点控件与第二节点控件通过第一关系控件连接。With reference to the second aspect or any of the above possible implementation manners, in another possible implementation manner, the logic diagram may further include a first relationship control; the device may further include: a third associating unit, configured to An identification of a relationship control and an identification of the first relationship, and associate the first relationship control with the first relationship; the first node control and the second node control are connected through the first relationship control.

结合第二方面或上述任一种可能的实现方式,在另一种可能的实现方式中,该装置还可以包括:搜索单元,用于根据搜索指令,获取与第一数据模型相关的候选关系,和/或与第一数据模型存在关系的候选数据模型;其中,搜索指令包括第一数据模型的标识;候选关系包括第一关系,候选数据模型包括第二数据模型。在该可能的实现方式中,可以通过搜索指令,搜索相关的数据模型和/或相关的关系,进一步提高了网络编排的智能性,降低了编排的复杂性,提高编排的效率。With reference to the second aspect or any one of the above possible implementation manners, in another possible implementation manner, the device may further include: a search unit configured to obtain, according to a search instruction, candidate relationships related to the first data model, And/or a candidate data model that has a relationship with the first data model; wherein, the search instruction includes an identifier of the first data model; the candidate relationship includes the first relationship, and the candidate data model includes the second data model. In this possible implementation manner, the intelligence of network layout can be further improved, the complexity of layout can be reduced, and the efficiency of layout can be improved by searching for related data models and/or related relationships through searching instructions.

结合第二方面或上述任一种可能的实现方式,在另一种可能的实现方式中,该搜索单元可以具体用于:将搜索指令发送给第二设备;第二设备中存储了多个数据模型和数据模型之间的关系;接收第二设备发送的候选关系和/或候选数据模型。在该可能的实现方式中,在搜索相关的数据模型或者相关的关系时,可以通过其他设备辅助搜索,提高了编排的灵活性,降低了编排的复杂性,提高了编排效率。With reference to the second aspect or any of the above possible implementation manners, in another possible implementation manner, the search unit may be specifically configured to: send a search instruction to the second device; the second device stores a plurality of data The relationship between the model and the data model; receiving the candidate relationship and/or the candidate data model sent by the second device. In this possible implementation manner, when searching for related data models or related relationships, other devices can be used to assist the search, which improves the flexibility of arrangement, reduces the complexity of arrangement, and improves the efficiency of arrangement.

结合第二方面或上述任一种可能的实现方式,在另一种可能的实现方式中,该逻辑图可以包括至少两个节点控件,网络服务可以包括至少两个数据模型,该至少两个数据模型包括第三数据模型和第四数据模型;该装置还可以包括:推荐单元,用于根据路径推荐指令,获取一个或多个候选路径;路径推荐指令包括第三数据模型的标识和第四数据模型的标识;候选路径包括以第三数据模型为起点、且以第四数据模型为终点的路径;一个或多个候选路径包括目标路径,目标路径中的数据模型和数据模型之间的关系分别对应的控件构成的路径,是逻辑图中的一条路径。在该可能的实现方式中,通过路径推荐的方式可以自动获取网络服务的一段目标路径,提高了编排的智能性,降低了编排的复杂性,提高了编排效率。With reference to the second aspect or any of the above possible implementation manners, in another possible implementation manner, the logic diagram may include at least two node controls, the network service may include at least two data models, and the at least two data models The model includes a third data model and a fourth data model; the device may also include: a recommending unit, configured to obtain one or more candidate paths according to the path recommendation instruction; the path recommendation instruction includes the identification of the third data model and the fourth data The identification of the model; the candidate path includes the path starting from the third data model and ending at the fourth data model; one or more candidate paths include the target path, and the data model in the target path and the relationship between the data models are respectively The path formed by the corresponding controls is a path in the logic diagram. In this possible implementation manner, a target path of the network service can be automatically obtained through path recommendation, which improves the intelligence of the orchestration, reduces the complexity of the orchestration, and improves the efficiency of the orchestration.

结合第二方面或上述任一种可能的实现方式,在另一种可能的实现方式中,该装置还可以包括:第一发送单元,用于将第三数据模型的标识和第四数据模型的标识发送给第二设备;第二设备中存储了多个数据模型和数据模型之间的关系;第一接收单元,用于接收第二设备发送的一个或多个候选路径。在该可能的实现方式中,在进行路径推荐时,可以通过其他设备辅助推荐,提高了编排的灵活性,降低了编排的复杂性,提高了编排效率。With reference to the second aspect or any of the above possible implementation manners, in another possible implementation manner, the device may further include: a first sending unit, configured to send the identifier of the third data model and the identifier of the fourth data model The identification is sent to the second device; multiple data models and relationships between the data models are stored in the second device; the first receiving unit is configured to receive one or more candidate paths sent by the second device. In this possible implementation manner, when performing path recommendation, other devices may be used to assist in the recommendation, which improves the flexibility of the arrangement, reduces the complexity of the arrangement, and improves the arrangement efficiency.

结合第二方面或上述任一种可能的实现方式,在另一种可能的实现方式中,路径推荐指令还可以包括至少两个数据模型中的第五数据模型的标识;候选路径具体包括以第三数据模型为起点、且以第四数据模型为终点,并经过第五数据模型的路径。在该可能的实现方式中,在进行路径推荐时,可以灵活配置推荐的信息,提高了推荐的灵活性、编排的灵活性,降低了编排的复杂性,提高了编排效率。With reference to the second aspect or any of the above possible implementation manners, in another possible implementation manner, the path recommendation instruction may further include an identification of a fifth data model among at least two data models; the candidate path specifically includes A path starting from the third data model, ending at the fourth data model, and passing through the fifth data model. In this possible implementation manner, when performing route recommendation, the recommended information can be flexibly configured, which improves the flexibility of recommendation and arrangement, reduces the complexity of arrangement, and improves the arrangement efficiency.

结合第二方面或上述任一种可能的实现方式,在另一种可能的实现方式中,该装置还可以包括:移动单元,用于根据待移动的控件和目标位置,将待移动的控件移动至第一设备的显示界面中的目标位置处;待移动的控件包括逻辑图中的一个或多个节点控件。在该可能的实现方式中,可以对逻辑图中的控件进行移动,提高了编排的灵活性,降低了编排的复杂性,提高了编排效率。With reference to the second aspect or any of the above possible implementation manners, in another possible implementation manner, the device may further include: a moving unit configured to move the control to be moved according to the control to be moved and the target position to the target position in the display interface of the first device; the control to be moved includes one or more node controls in the logic diagram. In this possible implementation, the controls in the logic diagram can be moved, which improves the flexibility of layout, reduces the complexity of layout, and improves the efficiency of layout.

结合第二方面或上述任一种可能的实现方式,在另一种可能的实现方式中,该装置还可以包括:转换单元,用于将网络服务的结构图转换为网络服务的脚本程序;网络服务的结构图包括:逻辑图、网络服务的输入参数和网络服务的输出参数;发布单元,用于将网络服务的脚本发布至网关设备。在该可能的实现方式中,通过将结构图自动转换为脚本程序,降低了编排的复杂性,提高了编排效率。With reference to the second aspect or any of the above possible implementation manners, in another possible implementation manner, the device may further include: a conversion unit configured to convert the structure diagram of the network service into a script program of the network service; The structural diagram of the service includes: a logic diagram, input parameters of the network service, and output parameters of the network service; a publishing unit for publishing the script of the network service to the gateway device. In this possible implementation manner, by automatically converting the structure diagram into a script program, the complexity of layout is reduced and the efficiency of layout is improved.

结合第二方面或上述任一种可能的实现方式,在另一种可能的实现方式中,该装置还可以包括:第二接收单元,用于接收网关设备发送的网络服务的输入参数值;运行单元,用于运行加入了输入参数值的网络服务的脚本程序,得到网络服务的输出参数值;第二发送单元,用于将网络服务的输出参数值发送给网关设备。With reference to the second aspect or any of the above possible implementation manners, in another possible implementation manner, the apparatus may further include: a second receiving unit, configured to receive the input parameter value of the network service sent by the gateway device; The unit is used to run the script program of the network service added with the input parameter value to obtain the output parameter value of the network service; the second sending unit is used to send the output parameter value of the network service to the gateway device.

需要说明的是,第二方面的各个单元具体实现同第一方面中相应的方法描述,这里不再赘述。上述第二方面的功能模块可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块。例如,收发器,用于完成接收单元和发送单元的功能,处理器,用于完成处理单元的功能,存储器,用于处理器处理本申请实施例的方法的程序指令。处理器、收发器和存储器通过总线连接并完成相互间的通信。It should be noted that the specific implementation of each unit in the second aspect is the same as the corresponding method description in the first aspect, and will not be repeated here. The above-mentioned functional modules of the second aspect may be realized by hardware, or may be realized by executing corresponding software by hardware. Hardware or software includes one or more modules corresponding to the above-mentioned functions. For example, the transceiver is used to implement the functions of the receiving unit and the sending unit, the processor is used to implement the functions of the processing unit, and the memory is used for the processor to process the program instructions of the method of the embodiment of the present application. The processor, transceiver and memory are connected and communicate with each other through the bus.

第三方面,本申请提供一种辅助网络服务编排的装置,该辅助网络服务编排的装置可以实现上述方法示例中的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个上述功能相应的模块。该辅助网络服务编排的装置可以以芯片的产品形态存在。In a third aspect, the present application provides a device for assisting network service orchestration. The device for assisting network service orchestration can realize the functions in the above method examples, and the functions can be realized by hardware or by executing corresponding software on the hardware. The hardware or software includes one or more modules with corresponding functions above. The device for assisting network service orchestration may exist in the product form of a chip.

结合第三方面,在一种可能的实现方式中,该辅助网络服务编排的装置可以为服务器。该服务器的结构中包括处理器和收发器,该处理器被配置为支持该辅助网络服务编排的装置执行上述方法中相应的功能。该收发器用于支持该服务器与其他设备之间的通信。该服务器还可以包括存储器,该存储器用于与处理器耦合,其保存该服务器必要的程序指令和数据。With reference to the third aspect, in a possible implementation manner, the device for assisting network service orchestration may be a server. The structure of the server includes a processor and a transceiver, and the processor is configured to support the apparatus for assisting network service orchestration to perform corresponding functions in the above method. The transceiver is used to support communication between the server and other devices. The server may also include a memory, which is used to be coupled with the processor, and stores necessary program instructions and data of the server.

第四方面,提供了一种辅助网络服务编排的系统,该系统中包括辅助网络服务编排的装置,该辅助网络服务编排的装置可以为第二方面或第二方面任一种可能的实现方式中的辅助网络服务编排的装置。In the fourth aspect, a system for assisting network service orchestration is provided, the system includes a device for assisting network service orchestration, and the device for assisting network service orchestration can be the second aspect or any possible implementation of the second aspect A device for assisting network service orchestration.

第五方面,提供了一种辅助网络服务编排的系统,该系统中包括辅助网络服务编排的装置,该辅助网络服务编排的装置可以为第三方面或第三方面任一种可能的实现方式中的辅助网络服务编排的装置。In the fifth aspect, a system for assisting network service orchestration is provided, the system includes a device for assisting network service orchestration, and the device for assisting network service orchestration can be the third aspect or any possible implementation of the third aspect A device for assisting network service orchestration.

第六方面,提供了一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行上述任一方面或任一种可能的实现方式提供的辅助网络服务编排的方法。In a sixth aspect, a computer-readable storage medium is provided, including instructions, which, when run on a computer, cause the computer to execute the method for assisting network service orchestration provided in any one of the above-mentioned aspects or any possible implementation manner.

第七方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述任一方面或任一种可能的实现方式提供的辅助网络服务编排的方法。In a seventh aspect, a computer program product containing instructions is provided, which, when run on a computer, causes the computer to execute the method for assisting network service orchestration provided in any one of the above aspects or any possible implementation manner.

第八方面,本申请实施例提供了一种芯片系统,该芯片系统包括处理器,还可以包括存储器,用于实现上述方法中的功能。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。In an eighth aspect, an embodiment of the present application provides a chip system, where the chip system includes a processor and may further include a memory, configured to implement the functions in the above method. The system-on-a-chip may consist of chips, or may include chips and other discrete devices.

其中,需要说明的是,上述各个方面中的任意一个方面的各种可能的实现方式,在方案不矛盾的前提下,均可以进行组合。Wherein, it should be noted that various possible implementation manners of any one of the above aspects can be combined under the premise that the schemes are not contradictory.

附图说明Description of drawings

图1为本申请提供的一种网络服务的逻辑图的结构示意图;FIG. 1 is a schematic structural diagram of a logic diagram of a network service provided by the present application;

图2为本申请提供的一种网络服务系统的结构示意图;FIG. 2 is a schematic structural diagram of a network service system provided by the present application;

图3为本申请提供的一种服务器的结构示意图;FIG. 3 is a schematic structural diagram of a server provided by the present application;

图4为本申请提供的一种电子设备的结构示意图;FIG. 4 is a schematic structural diagram of an electronic device provided by the present application;

图5a为本申请提供的一种辅助网络服务编排的方法的流程示意图;FIG. 5a is a schematic flowchart of a method for assisting network service orchestration provided by the present application;

图5为本申请提供的另一种辅助网络服务编排的方法的流程示意图;FIG. 5 is a schematic flowchart of another method for assisting network service orchestration provided by the present application;

图6为本申请提供的一种数据库中存储的路径图的结构示意图;FIG. 6 is a schematic structural diagram of a path diagram stored in a database provided by the present application;

图7为本申请提供的另一种网络服务的逻辑图的结构示意图;FIG. 7 is a schematic structural diagram of a logic diagram of another network service provided by the present application;

图8为本申请提供的再一种辅助网络服务编排的方法的流程示意图;FIG. 8 is a schematic flowchart of another method for assisting network service orchestration provided by the present application;

图9为本申请提供的一种服务编排界面的示意图;FIG. 9 is a schematic diagram of a service orchestration interface provided by the present application;

图10为本申请提供的另一种服务编排界面的示意图;FIG. 10 is a schematic diagram of another service orchestration interface provided by the present application;

图11为本申请提供的再一种服务编排界面的示意图;FIG. 11 is a schematic diagram of another service orchestration interface provided by the present application;

图12为本申请提供的再一种服务编排界面的示意图;FIG. 12 is a schematic diagram of another service orchestration interface provided by the present application;

图13为本申请提供的再一种服务编排界面的示意图;Fig. 13 is a schematic diagram of another service orchestration interface provided by the present application;

图14为本申请提供的再一种服务编排界面的示意图;FIG. 14 is a schematic diagram of another service orchestration interface provided by the present application;

图15为本申请提供的再一种服务编排界面的示意图;Fig. 15 is a schematic diagram of another service orchestration interface provided by the present application;

图16为本申请提供的再一种服务编排界面的示意图;FIG. 16 is a schematic diagram of another service orchestration interface provided by the present application;

图17为本申请提供的一种辅助网络服务编排的装置的结构示意图;FIG. 17 is a schematic structural diagram of a device for assisting network service orchestration provided by the present application;

图18为本申请提供的另一种辅助网络服务编排的装置的结构示意图;FIG. 18 is a schematic structural diagram of another device for assisting network service orchestration provided by the present application;

图19为本申请提供的另一种服务器的结构示意图。FIG. 19 is a schematic structural diagram of another server provided by the present application.

具体实施方式Detailed ways

本申请说明书和权利要求书及上述附图中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于限定特定顺序。The terms "first", "second" and "third" in the specification and claims of the present application and the above drawings are used to distinguish different objects, rather than to limit a specific order.

在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念,便于理解。In the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. To be precise, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner for easy understanding.

在本申请的描述中,除非另有说明,“/”表示前后关联的对象是一种“或”的关系,例如,A/B可以表示A或B;本申请中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A,B可以是单数或者复数。并且,在本申请的描述中,除非另有说明,“多个”是指两个或多于两个。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In the description of this application, unless otherwise specified, "/" means that the objects associated with each other are an "or" relationship, for example, A/B can mean A or B; "and/or" in this application is only It is an association relationship describing associated objects, which means that there can be three kinds of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone, among which A, B Can be singular or plural. And, in the description of the present application, unless otherwise specified, "plurality" means two or more than two. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one item (piece) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple .

在本申请实施例中,至少一个还可以描述为一个或多个,多个可以是两个、三个、四个或者更多个,本申请不做限制。In the embodiment of this application, at least one can also be described as one or more, and multiple can be two, three, four or more, which is not limited in this application.

为了便于理解,先对本申请涉及的技术术语进行解释。For ease of understanding, the technical terms involved in this application are explained first.

网络服务,可以指基于http的远程调用技术开发的应用程序。例如,网络服务可以是一个查询天气的应用程序。The network service may refer to an application program developed based on the HTTP remote calling technology. For example, a web service could be an application that queries the weather.

数据模型,可以指以某种特定的存储结构来表示存储数据、存储数据之间的相关性的形式。其中,数据模型可以包括数据的存储结构、数据的内容以及数据的内容之间的相关性。例如,表1示意了一种关于员工信息的数据模型A。数据模型A中以表格的形式存储了多个员工的编号、多个员工的姓名以及多个员工的地址。其中,数据模型A中用同一行表示同一个员工的信息,不同列分别表示多个员工的编号、员工的姓名以及员工的住址。A data model can refer to a specific storage structure to represent stored data and the correlation between stored data. Wherein, the data model may include the storage structure of the data, the content of the data, and the correlation among the contents of the data. For example, Table 1 illustrates a data model A about employee information. Data model A stores numbers of multiple employees, names of multiple employees, and addresses of multiple employees in the form of a table. Among them, in the data model A, the same row represents the information of the same employee, and different columns represent the numbers, names and addresses of multiple employees respectively.

表1Table 1

员工的编号employee number员工的姓名employee's name员工的住址employee's address001001张三Zhang San地址1Address 1002002李四Li Si地址2address 2……...……...……...055055王五Wang Wu地址2address 2

数据模型的属性信息,可以指数据模型包括的多组数据之间不同类别的信息。例如,表1所示的数据模型中,数据模型的属性信息可以为:员工编号、员工姓名和员工地址。The attribute information of the data model may refer to different types of information among multiple sets of data included in the data model. For example, in the data model shown in Table 1, the attribute information of the data model may be: employee number, employee name and employee address.

关系,可以指两个数据模型之间的相关性。示例性的,两个包含相同属性信息的数据模型之间相关。其中,一个关系可以包括具体的指示方向,也可以不包括指示方向。例如,一个关系可以用于指示数据模型A与数据模型B之间的相关性。当该一个关系包括具体的指示方向时,其可以表示数据模型A到数据模型B之间的相关性,即从数据模型A指向数据模型B;当该一个关系不包括指示方向时,其可以表示数据模型A到数据模型B之间的相关性,也可以表示数据模型B到数据模型A之间的相关性,即可以从数据模型A指向数据模型B,也可以从数据模型B指向数据模型A。A relationship, which can refer to a correlation between two data models. Exemplarily, two data models containing the same attribute information are related. Wherein, a relationship may include a specific indication direction, or may not include an indication direction. For example, a relationship can be used to indicate a dependency between data model A and data model B. When the relationship includes a specific direction, it can represent the correlation between data model A and data model B, that is, from data model A to data model B; when the relationship does not include a direction, it can represent The correlation between data model A and data model B can also represent the correlation between data model B and data model A, that is, it can point from data model A to data model B, or from data model B to data model A .

数据库,可以指存储了多个数据模型及数据模型之间的关系的集合。示例性的,数据库可以以图的方式进行存储。示例性的,在数据库中,以数据模型作为节点,数据模型之间的关系作为连接线的方式存储数据。A database may refer to a collection that stores multiple data models and relationships between data models. Exemplarily, the database can be stored in the form of graphs. Exemplarily, in the database, data is stored in a manner of using data models as nodes and relationships between data models as connecting lines.

控件,可以指对数据和/或功能的封装。示例性的,可以将数据库中的一个数据模型封装为一个控件,称为节点控件,也可以将数据库中数据模型之间的关系封装为一个控件,称为关系控件。例如,控件的功能可以包括控件的函数功能、关联功能等。A control may refer to an encapsulation of data and/or functionality. Exemplarily, a data model in the database can be encapsulated as a control, which is called a node control, and a relationship between data models in the database can also be packaged as a control, which is called a relational control. For example, the function of the control may include the functional function, associated function, etc. of the control.

标识,指用于区分不同对象的信息,一个对象的标识可以用于唯一指示该对象。例如,标识可以为编码,记号等。例如,数据模型的标识可以用于区分不同的数据模型,一个数据模型的标识唯一指示一个数据模型。关系的标识可以用于区分不同的关系,一个关系的标识可以唯一指示一个关系。节点控件的标识可以用于区分不同的节点控件,一个节点控件的标识可以唯一指示一个节点控件。关系控件的标识可以用于区分不同的关系控件,一个关系控件的标识可以唯一指示一个关系控件。An identifier refers to information used to distinguish different objects, and an identifier of an object can be used to uniquely indicate the object. For example, identification can be a code, a sign, etc. For example, the identifier of a data model can be used to distinguish different data models, and the identifier of a data model uniquely indicates a data model. The identifier of a relationship can be used to distinguish different relationships, and an identifier of a relationship can uniquely indicate a relationship. The identifier of the node control can be used to distinguish different node controls, and the identifier of a node control can uniquely indicate a node control. The identifier of a relational control can be used to distinguish different relational controls, and an identifier of a relational control can uniquely indicate a relational control.

逻辑图,可以指用于通过控件的方式表示数据模型以及数据模型之间的关系的可视化控件组成的图形。示例性的,逻辑图可以包括一个节点控件;或者逻辑图也可以包括多个节点控件和节点控件之间的关系控件。A logic diagram may refer to a graph composed of visual controls used to represent data models and relationships between data models by means of controls. Exemplarily, the logic diagram may include one node control; or the logic diagram may also include multiple node controls and relationship controls between the node controls.

图1示意了一种网络服务的逻辑图,该逻辑图中包括多个节点控件和多个关系控件,通过节点控件以及关系控件表示网络服务需要的数据模型及数据模型之间的关系。例如,图1中通过圆圈表示节点控件,通过直线表示节点控件之间的关系控件。Fig. 1 schematically shows a logic diagram of a network service, the logic diagram includes multiple node controls and multiple relationship controls, and the data model required by the network service and the relationship between the data models are represented by the node controls and the relationship controls. For example, in FIG. 1 , circles are used to represent node controls, and straight lines are used to represent relationship controls between node controls.

现有的网络服务的编排过程主要包括:首先,开发人员分析待编排的网络服务需要的数据模型、数据模型内的数据结构之间的关系、数据模型之间的关系以及输入输出参数等,然后人工梳理出该网络服务需要的数据模型、数据模型内的数据结构之间的关系、数据模型之间的关系以及输入输出参数等信息之间的逻辑关系,再根据该逻辑关系编写可运行的脚本程序。进一步对编写的脚本程序进行测试与发布。The orchestration process of existing network services mainly includes: first, the developer analyzes the data model required by the network service to be orchestrated, the relationship between data structures in the data model, the relationship between data models, and input and output parameters, etc., and then Manually sort out the logical relationship between the data model required by the network service, the relationship between data structures in the data model, the relationship between data models, and the input and output parameters, and then write an executable script based on the logical relationship program. Further test and publish the written script program.

但是,网络服务的编排过程中,开发人员需要查阅数据模型信息,需要熟悉数据库查询语言,需要人工梳理数据库中各数据模型中的数据结构和各数据模型之间的关联逻辑以及输入输出参数与数据模型之间的逻辑关系等,所以对开发人员的技能要求较高,且整个实现过程复杂,效率低。However, during the orchestration process of network services, developers need to consult the data model information, need to be familiar with the database query language, and need to manually sort out the data structure in each data model in the database and the association logic between each data model, as well as the input and output parameters and data. The logical relationship between models, etc., so the developer's skills are required to be high, and the entire implementation process is complicated and inefficient.

基于此,本申请提供了一种辅助网络服务编排的方法,通过构建逻辑图的方式,将网络服务包括的数据模型在逻辑图中以可视化的节点控件来表示,通过逻辑图可以清楚直接的得到网络服务包括的节点控件,即网络服务包括的数据模型,还可以通过逻辑图中的节点控件自动获取与节点控件关联的数据模型内的数据的存储关系,然后根据逻辑图中的节点控件辅助编排网络服务,避免了人工梳理网络服务包括的数据模型内的数据的存储关系,人工编排网络服务的复杂过程,实现了网络服务编排过程的可视化,降低了网络服务编排的复杂度,提高了编排效率。Based on this, this application provides a method for assisting network service orchestration. By constructing a logic diagram, the data model included in the network service is represented in the logic diagram as a visual node control, which can be clearly and directly obtained through the logic diagram. The node control included in the network service, that is, the data model included in the network service, can also automatically obtain the storage relationship of the data in the data model associated with the node control through the node control in the logic diagram, and then assist in the arrangement according to the node control in the logic diagram Network service avoids the need to manually sort out the data storage relationship in the data model included in the network service, and manually arranges the complex process of network services, realizes the visualization of the network service orchestration process, reduces the complexity of network service orchestration, and improves the orchestration efficiency .

下面将结合附图对本申请实施例的实施方式进行详细描述。The implementation of the embodiment of the present application will be described in detail below with reference to the accompanying drawings.

本申请实施例提供的辅助网络服务编排的方法可以应用于图2所示的网络服务系统20中,该网络通信系统20可以包括服务器201和服务网关202。服务器201、服务网关202之间通过网线连接,采用http传输数据。The method for assisting network service orchestration provided by the embodiment of the present application can be applied to the network service system 20 shown in FIG. 2 , and the network communication system 20 can include a server 201 and a service gateway 202 . The server 201 and the service gateway 202 are connected through a network cable, and HTTP is used to transmit data.

其中,服务器201可以用于接收外部的输入,并对输入的数据进行处理。示例性的,服务器201可以根据编排人员的输入生成不同的网络服务。Wherein, the server 201 can be used to receive external input and process the input data. Exemplarily, the server 201 can generate different network services according to the input of the editor.

服务器201还可以用于运行生成的网络服务,并将该网络服务发布至服务网关202。示例性的,服务器201可以向服务网关202提供一个网络服务访问的应用程序接口(application program interface,API)接口,服务网关202通过该API接口调用该网络服务。The server 201 can also be used to run the generated web service, and publish the web service to the service gateway 202 . Exemplarily, the server 201 may provide the service gateway 202 with an application program interface (application program interface, API) interface for network service access, and the service gateway 202 invokes the network service through the API interface.

服务器201还可以用于接收输入信息,并将该输入信息发送至服务网关202。服务器201还可以用于接收服务网关202发送的输出信息,并将接收的输出信息呈现给用户。示例性的,输入信息可以是网络服务的输入参数值,输出信息可以是网络服务的输出参数值。The server 201 can also be used to receive input information and send the input information to the service gateway 202 . The server 201 can also be used to receive the output information sent by the service gateway 202, and present the received output information to the user. Exemplarily, the input information may be an input parameter value of the network service, and the output information may be an output parameter value of the network service.

可选的,如图2所示,网络通信系统20还可以包括客户机203,客户机203与服务网关202之间通过网线连接,采用http传输数据。Optionally, as shown in FIG. 2 , the network communication system 20 may further include a client 203, which is connected to the service gateway 202 through a network cable and uses http to transmit data.

客户机203可以用于接收输入信息,并将该输入信息发送给服务网关202。客户机203还可以用于接收服务网关202发送的输出信息,并将接收的输出信息呈现给用户。The client 203 can be used to receive input information and send the input information to the service gateway 202 . The client 203 can also be used to receive the output information sent by the service gateway 202, and present the received output information to the user.

由于网络服务已经发布至服务网关202,服务网关202可以用于接收服务器201发送的输入信息,并通过API接口调用该网络服务,得到网络服务的数据信息后,服务网关202将输出信息发送给服务器201。Since the network service has been released to the service gateway 202, the service gateway 202 can be used to receive the input information sent by the server 201, and call the network service through the API interface. After obtaining the data information of the network service, the service gateway 202 sends the output information to the server 201.

可选的,当客户机203用于接收输入信息时,服务网关202可以用于接收客户机203发送的输入信息,并通过API接口调用该网络服务,得到网络服务的数据信息后将输出信息发送给客户机203。Optionally, when the client 203 is used to receive input information, the service gateway 202 can be used to receive the input information sent by the client 203, and call the network service through the API interface, and send the output information after obtaining the data information of the network service 203 to the client.

服务器201可以为物理服务器,或者云服务器或者其他具有相关处理能力的设备。The server 201 may be a physical server, or a cloud server or other devices with relevant processing capabilities.

服务网关202可以为广域网络的配置的公共服务器,或者局域网络配置的公共服务器或者其他具有相关处理能力的设备。The service gateway 202 may be a public server configured on a wide area network, or a public server configured on a local area network, or other devices with related processing capabilities.

客户机203可以为笔记本电脑、台式电脑或者其他具有相关处理能力的电子设备。The client 203 may be a notebook computer, a desktop computer or other electronic devices with relevant processing capabilities.

现以编排一个网络服务的过程、访问一个网络服务的过程为例,对网络通信系统20中各设备之间的通信过程进行详细说明。Taking the process of arranging a network service and the process of accessing a network service as examples, the communication process between devices in the network communication system 20 will be described in detail.

编排一个网络服务时,服务器201可以接收编排人员的输入,根据输入得到一个网络服务,服务器201将该网络服务发布至服务网关202。When programming a network service, the server 201 may receive input from the programmer, obtain a network service according to the input, and the server 201 publishes the network service to the service gateway 202 .

访问一个网络服务时,服务器201或者客户机203可以接收该网络服务的输入参数值,并将该输入参数值发送给服务网关202;服务网关202通过API接口调用该网络服务,将该输入参数值通过该API接口发送给服务器201;服务器201接收该输入参数值,并运行加入了该输入参数值的脚本程序,得到该网络的输出参数值,并将该输出参数值通过该API接口发送给服务网关202;服务网关202将该输出参数值发送给服务器201或者客户机203;服务器201或者客户机203将该输入参数值呈现给用户。When accessing a network service, the server 201 or client 203 can receive the input parameter value of the network service, and send the input parameter value to the service gateway 202; the service gateway 202 calls the network service through the API interface, and the input parameter value Send to the server 201 through the API interface; the server 201 receives the input parameter value, and runs the script program that has added the input parameter value, obtains the output parameter value of the network, and sends the output parameter value to the service through the API interface The gateway 202; the service gateway 202 sends the output parameter value to the server 201 or the client 203; the server 201 or the client 203 presents the input parameter value to the user.

图3为本申请实施例提供的一种服务器201的结构示意图。FIG. 3 is a schematic structural diagram of a server 201 provided by an embodiment of the present application.

其中,服务器201可以包括服务编排界面模块2011、数据模型管理模块2012、关联路径推荐模块2013、图数据库模块2014、脚本生成模块2015以及执行引擎模块2016。Wherein, the server 201 may include a service orchestration interface module 2011 , a data model management module 2012 , an associated path recommendation module 2013 , a graph database module 2014 , a script generation module 2015 and an execution engine module 2016 .

其中,服务编排界面模块2011,可以用于响应用户指令,根据用户指令在显示界面构建网络服务的逻辑图。服务编排界面模块2011还可以用于接收数据模型管理模块2012和关联路径推荐模块2013发送的数据,并将该数据以节点控件和关系控件的方式在显示界面显示。Among them, the service orchestration interface module 2011 can be used to respond to user instructions and construct a logic diagram of network services on the display interface according to user instructions. The service orchestration interface module 2011 can also be used to receive data sent by the data model management module 2012 and the associated path recommendation module 2013, and display the data on the display interface in the form of node controls and relationship controls.

数据模型管理模块2012,可以用于接收服务编排界面模块2011发送的请求信息,将该请求信息转换为图数据库模块2014可以识别的格式,然后转发给图数据库模块2014。数据模型管理模块2012还可以用于接收图数据库模块2014发送的数据,并将该数据转换为服务编排界面模块2011可以识别的格式,然后发送给服务编排界面模块2011。The data model management module 2012 can be used to receive the request information sent by the service orchestration interface module 2011 , convert the request information into a format that the graph database module 2014 can recognize, and then forward it to the graph database module 2014 . The data model management module 2012 can also be used to receive the data sent by the graph database module 2014, convert the data into a format that the service orchestration interface module 2011 can recognize, and then send it to the service orchestration interface module 2011.

可选的,数据模型管理模块2012,还可以用于对图数据库模块2014包括的数据模型和数据模型之间的关系进行增加、删除、改正或查询。Optionally, the data model management module 2012 can also be used to add, delete, correct or query the data models included in the graph database module 2014 and the relationships between the data models.

关联路径推荐模块2013可以用于接收服务编排界面模块2011发送的请求信息,并将该请求信息转换为图数据库模块2014可以识别的格式,然后发送给图数据库模块2014。关联路径推荐模块2013还可以用于接收图数据库模块2014发送的数据,并将该数据转换为服务编排界面模块2011可以识别的格式,然后发送给服务编排界面模块2011。The associated path recommendation module 2013 can be used to receive the request information sent by the service orchestration interface module 2011 , convert the request information into a format that the graph database module 2014 can recognize, and then send it to the graph database module 2014 . The associated path recommendation module 2013 can also be used to receive the data sent by the graph database module 2014 , convert the data into a format that the service orchestration interface module 2011 can recognize, and then send it to the service orchestration interface module 2011 .

图数据库模块2014,可以用于接收数据模型管理模块2012或关联路径推荐模块2013发送请求。并根据该请求进行搜索与路径推荐,搜索到满足该请求的数据发送给对应的数据模型管理模块2012或关联路径推荐模块2013。示例性的,该搜索可以是搜索与某个数据模型存在关系的数据模型和/或某个数据模型相关的关系。路径的推荐,即找到满足请求的路径。The graph database module 2014 may be configured to receive a request from the data model management module 2012 or the associated path recommendation module 2013 . Search and route recommendation are performed according to the request, and the searched data satisfying the request is sent to the corresponding data model management module 2012 or associated route recommendation module 2013 . Exemplarily, the search may be searching for a data model that has a relationship with a certain data model and/or a relationship related to a certain data model. Path recommendation, that is, finding a path that satisfies the request.

脚本生成模块2015,可以用于接收服务编排界面模块2011发送的脚本程序生成请求,并根据该请求中的结构图,生成相应的网络服务的脚本程序。脚本生成模块2015,还可以用于将该脚本程序发送给服务编排界面模块2011和/或执行引擎模块2016。The script generation module 2015 may be configured to receive the script program generation request sent by the service orchestration interface module 2011, and generate a corresponding network service script program according to the structure diagram in the request. The script generation module 2015 may also be configured to send the script program to the service orchestration interface module 2011 and/or the execution engine module 2016 .

执行引擎模块2016,可以用于将该网络服务的可执行文件进行发布。执行引擎模块2016还可以用于接收外部的请求信息,然后运行脚本生成模块2015发送的网络服务的脚本程序,得到输出信息,并将该输出信息发出。The execution engine module 2016 can be used to publish the executable file of the network service. The execution engine module 2016 can also be used to receive external request information, and then run the script program of the network service sent by the script generation module 2015 to obtain output information and send the output information.

其中,图3所示的服务器201中,一个查询流程可以包括:Wherein, in the server 201 shown in Figure 3, a query process may include:

服务编排界面模块2011接收用户输入的搜索信息,并将该搜索信息发送给数据模型管理模块2012;数据模型管理模块2012接收该搜索信息并将该搜索信息转换为图数据库模块2014可以识别的格式,然后发送给图数据库模块2014;图数据库模块2014接收到该搜索信息后,在其内部进行搜索与查询,得到响应数据,将该响应数据发送给数据模型管理模块2012;数据模型管理模块2012接收该响应数据并将该响应数据转换为服务编排界面模块2011可以识别的格式,然后发送给服务编排界面模块2011;服务编排界面模块2011将该响应数据呈现给用户。The service orchestration interface module 2011 receives the search information input by the user, and sends the search information to the data model management module 2012; the data model management module 2012 receives the search information and converts the search information into a format that the graph database module 2014 can recognize, Then send it to the graph database module 2014; after the graph database module 2014 receives the search information, it searches and inquires inside, obtains the response data, and sends the response data to the data model management module 2012; the data model management module 2012 receives the data Respond to the data and convert the response data into a format that the service orchestration interface module 2011 can recognize, and then send it to the service orchestration interface module 2011; the service orchestration interface module 2011 presents the response data to the user.

图3所示的服务器201中,一个路径推荐流程可以包括:In the server 201 shown in FIG. 3 , a path recommendation process may include:

服务编排界面模块2011接收用户输入的路径推荐请求,并将该请求发送给关联路径推荐模块2013;关联路径推荐模块2013接收该请求并将该请求转换为图数据库模块2014可以识别的格式,然后发送给图数据库模块2014;图数据库模块2014接收到该请求后,在其内部进行路径查询与推荐,得到候选路径,将该候选路径发送给关联路径推荐模块2013;关联路径推荐模块2013接收该候选路径并将该候选路径转换为服务编排界面模块2011可以识别的格式,然后发送给服务编排界面模块2011;服务编排界面模块2011将该候选路径呈现给用户。The service orchestration interface module 2011 receives the path recommendation request input by the user, and sends the request to the associated path recommendation module 2013; the associated path recommendation module 2013 receives the request and converts the request into a format that the graph database module 2014 can recognize, and then sends To the graph database module 2014; after receiving the request, the graph database module 2014 performs path query and recommendation internally to obtain a candidate path, and sends the candidate path to the associated path recommendation module 2013; the associated path recommendation module 2013 receives the candidate path And convert the candidate path into a format that the service orchestration interface module 2011 can recognize, and then send it to the service orchestration interface module 2011; the service orchestration interface module 2011 presents the candidate path to the user.

需要说明的是,在实际应用中,可以根据实际需求将上述部分或全部模块配置到不同的服务器中,实现各模块对应的功能,本申请对此不予限定。It should be noted that, in practical applications, some or all of the above modules may be configured in different servers according to actual needs to realize the corresponding functions of each module, which is not limited in this application.

示例1,如图3所示,可以将上述服务编排界面模块2011、数据模型管理模块2012、关联路径推荐模块2013、图数据库模块2014、脚本生成模块2015以及执行引擎模块2016配置为同一个服务器,通过该一个服务器的运行,实现上述各模块的功能。Example 1, as shown in Figure 3, the above-mentioned service orchestration interface module 2011, data model management module 2012, associated path recommendation module 2013, graph database module 2014, script generation module 2015 and execution engine module 2016 can be configured as the same server, Through the operation of the one server, the functions of the above modules are realized.

示例2,可以将上述服务编排界面模块2011配置为一个服务器,数据模型管理模块2012、关联路径推荐模块2013、图数据库模块2014、脚本生成模块2015配置为另一个服务器,执行引擎模块2016配置为再一个服务器,通过该多个服务器的运行,实现上述各模块的功能。Example 2, the above-mentioned service orchestration interface module 2011 can be configured as a server, the data model management module 2012, the associated path recommendation module 2013, the graph database module 2014, and the script generation module 2015 can be configured as another server, and the execution engine module 2016 can be configured as another server. One server realizes the functions of the above-mentioned modules through the operation of the plurality of servers.

示例3,可以将上述服务编排界面模块2011配置为一个服务器,数据模型管理模块2012、关联路径推荐模块2013、脚本生成模块2015配置为另一个服务器,图数据库模块2014配置为再一个服务器,执行引擎模块2016配置为再一个服务器,通过该多个服务器的运行,实现上述各模块的功能。Example 3, the above-mentioned service orchestration interface module 2011 can be configured as a server, the data model management module 2012, the associated path recommendation module 2013, and the script generation module 2015 can be configured as another server, the graph database module 2014 can be configured as another server, and the execution engine The module 2016 is configured as another server, and the functions of the above-mentioned modules are realized through the operation of the multiple servers.

示例4,可以将上述服务编排界面模块2011、数据模型管理模块2012、关联路径推荐模块2013、图数据库模块2014、脚本生成模块2015以及执行引擎模块2016分别配置为一个独立的服务器中,通过该多个服务器的运行,实现上述各模块的功能。Example 4, the above-mentioned service orchestration interface module 2011, data model management module 2012, associated path recommendation module 2013, graph database module 2014, script generation module 2015, and execution engine module 2016 can be respectively configured as an independent server. The operation of each server realizes the functions of the above modules.

下面结合附图,对本申请的实施例提供的辅助网络服务编排的方法及装置进行具体阐述。The method and device for assisting network service orchestration provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

一方面,本申请实施例提供一种电子设备40,用于执行本申请提供的辅助网络服务编排的方法,该电子设备40可以为图2或图3中示意的服务器201或网关设备202或客户机203。On the one hand, the embodiment of the present application provides anelectronic device 40 for executing the method for assisting network service orchestration provided by the present application. Theelectronic device 40 can be the server 201 or the gateway device 202 or the client shown in FIG. 2 or FIG. 3 Machine 203.

如图4所示,电子设备40可以包括处理器401、存储器402以及收发器403。As shown in FIG. 4 , theelectronic device 40 may include aprocessor 401 , amemory 402 and atransceiver 403 .

下面结合图4对电子设备40的各个构成部件进行具体的介绍:The components of theelectronic device 40 will be specifically introduced below in conjunction with FIG. 4 :

其中,存储器402可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);或者非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);或者上述种类的存储器的组合,用于存储可实现本申请方法的程序代码、配置文件或其他内容。Wherein, thememory 402 can be a volatile memory (volatile memory), such as a random-access memory (random-access memory, RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (read-only memory, ROM), flash memory (flash memory), hard disk (hard disk drive, HDD) or solid-state drive (solid-state drive, SSD); program code, configuration files or other content.

处理器401是电子设备40的控制中心。例如,处理器401可以是一个中央处理器(central processing unit,CPU),也可以是特定集成电路(application specificintegrated circuit,ASIC),或者是被配置成实施本申请实施例的一个或多个集成电路,例如:一个或多个微处理器(digital singnal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA)。Theprocessor 401 is the control center of theelectronic device 40 . For example, theprocessor 401 may be a central processing unit (central processing unit, CPU), or a specific integrated circuit (application specific integrated circuit, ASIC), or be configured to implement one or more integrated circuits of the embodiments of the present application , for example: one or more microprocessors (digital signal processor, DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA).

收发器403用于与其他设备进行通信。收发器403可以为通信端口或者其他。Thetransceiver 403 is used to communicate with other devices.Transceiver 403 may be a communication port or otherwise.

显示器404用于显示网络服务的逻辑图。显示器404可以为显示屏幕等。Thedisplay 404 is used to display the logic diagram of the network service. Thedisplay 404 may be a display screen or the like.

处理器401通过运行或执行存储在存储器402内的软件程序和/或模块,以及调用存储在存储器402内的数据,当电子设备40为服务器201时,执行如下功能:Theprocessor 401 runs or executes the software programs and/or modules stored in thememory 402, and calls the data stored in thememory 402. When theelectronic device 40 is the server 201, it performs the following functions:

在第一设备的显示界面上显示网络服务的逻辑图;其中,逻辑图包括至少一个节点控件;该至少一个节点控件中的每个节点控件分别与网络服务包括的至少一个数据模型中的一个数据模型之间关联;根据逻辑图辅助编排网络服务。A logical diagram of the network service is displayed on the display interface of the first device; wherein the logical diagram includes at least one node control; each node control in the at least one node control is respectively related to a data in at least one data model included in the network service Association between models; assist in orchestrating network services based on logic diagrams.

另一方面,本申请实施例提供的辅助网络服务编排的方法,下面对辅助网络服务编排的方法进行详细说明。On the other hand, the method for assisting network service orchestration provided by the embodiment of the present application will be described in detail below.

需要说明的是,本申请实施例的实现过程中,服务器中的部分操作可能是基于用户输入的相关信息进行相应的处理,虽然实施例中描述了用户输入信息等步骤或操作,但这只是为了更清楚、简洁地描述服务器如何实现本申请实施例的方案。对于用户输入等用户相关的步骤或操作,不应构成对本申请实施例提供的方案的限制。It should be noted that during the implementation of the embodiment of the present application, some operations in the server may be based on relevant information input by the user for corresponding processing. Although steps or operations such as user input information are described in the embodiment, this is only for Describe more clearly and concisely how the server implements the solutions of the embodiments of the present application. User-related steps or operations such as user input should not be construed as limiting the solutions provided by the embodiments of the present application.

在编排网络服务时,首先获取该网络服务包括的数据模型,根据网络服务包括的数据模型编排网络服务。具体可以包括但不限于下述实施例1或实施例2。When arranging a network service, first obtain the data model included in the network service, and arrange the network service according to the data model included in the network service. Specifically, it may include but not limited to thefollowing embodiment 1 or embodiment 2.

实施例1Example 1

网络服务包括多个数据模型,实施例1提供一种辅助编排网络服务的方法,用于根据网络服务包括的多个数据模型辅助网络服务的编排,如图5所示,该方法主要包括:The network service includes multiple data models.Embodiment 1 provides a method for assisting in the arrangement of the network service, which is used to assist in the arrangement of the network service according to the multiple data models included in the network service. As shown in FIG. 5 , the method mainly includes:

S501、第一设备添加网络服务的控件。S501. The first device adds a network service control.

S501的实现可以包括但不限于:单独添加控件方式;搜索添加控件方式;路径推荐添加控件方式。The implementation of S501 may include but not limited to: ways of adding controls individually; ways of adding controls through searching; ways of adding controls through path recommendation.

需要说明的是,在进行网络服务的编排过程中,可以根据实际情况选用上述三种方式中的任一个方式,或者几个方式的结合来完成网络服务的所有控件的添加,本申请对此不予具体限定。It should be noted that, in the process of orchestrating network services, any one of the above three methods, or a combination of several methods can be selected according to the actual situation to complete the addition of all controls of the network service. be specifically limited.

例如,当用户已知网络服务的第一个数据模型和最后一个数据模型时,可以直接采用路径推荐添加控件方式完成网络服务的所有控件的添加。For example, when the user knows the first data model and the last data model of the network service, all controls of the network service may be added directly by way of adding controls through path recommendation.

再例如,当用户已知网络服务的第一个数据模型和最后一个数据模型时,首先可以采用单独添加控件方式添加网络服务的第一个数据模型对应的节点控件,然后采用搜索添加控件方式添加网络服务包括的其他数据模型对应的节点控件以及数据模型之间的关系对应的关系控件。For another example, when the user knows the first data model and the last data model of the network service, he can first add the node control corresponding to the first data model of the network service by adding a control separately, and then add the control by searching Node controls corresponding to other data models included in the network service and relationship controls corresponding to relationships between data models.

再例如,当用户已知网络服务的所有数据模型及数据模型之间的关系时,可以采用单独添加控件方式逐一添加网络服务的所有数据模型对应的节点控件及数据模型之间的关系对应的关系控件。For another example, when the user knows all the data models of the network service and the relationship between the data models, the node control corresponding to all the data models of the network service and the relationship between the data models can be added one by one by adding controls separately. controls.

再例如,当用户已知网络服务的第一个数据模型和最后一个数据模型时,首先可以采用单独添加控件方式添加网络服务的第一个数据模型对应的节点控件,然后采用搜索添加控件方式添加网络服务中一个或多个数据模型对应的控件以及数据模型之间的关系对应的关系控件,然后采用路径推荐添加控件方式添加网络服务的其他数据模型对应的控件以及数据模型之间的关系对应的关系控件。For another example, when the user knows the first data model and the last data model of the network service, he can first add the node control corresponding to the first data model of the network service by adding a control separately, and then add the control by searching Controls corresponding to one or more data models in the network service and relational controls corresponding to the relationship between data models, and then add controls corresponding to other data models of the network service and corresponding to the relationship between data models by using path recommendation to add controls Relationship controls.

再例如,当用户已知网络服务的第一个数据模型,中间的一个或几个数据模型以及最后一个数据模型时,也可以采用路径推荐添加控件方式获取某一段路径(第一个数据模型与中间已知数据模型之间的路径)的控件,然后进一步采用单独添加控件方式或者搜索添加控件方式添加网络服务的其他数据模型对应的控件以及数据模型之间的关系对应的关系控件。For another example, when the user knows the first data model of the network service, one or several data models in the middle, and the last data model, he can also use the method of path recommendation to add controls to obtain a certain path (the first data model and The path between the data models is known in the middle), and then further add controls corresponding to other data models of the network service and relationship controls corresponding to the relationship between data models by adding controls individually or by searching and adding controls.

可以理解的,网络服务的控件的添加过程还可以包括其他实现方式,此处不再一一列举。It can be understood that the process of adding the control of the network service may also include other implementation manners, which will not be listed here.

现以第一设备添加第一节点控件为例,对单独添加控件方式进行说明,具体可以包括但不限于下述S5011和S5012。Now, taking the first device adding the first node control as an example, the way of adding the control separately will be described, which may specifically include but not limited to the following S5011 and S5012.

其中,第一节点控件可以是网络服务包括的任意一个节点控件。其他节点控件或者关系控件的添加过程与添加第一节点控件的过程类似,不再一一赘述。Wherein, the first node control may be any node control included in the network service. The process of adding other node controls or relationship controls is similar to the process of adding the first node control, and will not be repeated here.

S5011、第一设备在其显示界面上添加第一节点控件。S5011. The first device adds a first node control on its display interface.

一种可能的实现方式中,S5011可以实现为:第一设备可以接收第一指令,第一设备根据第一指令的指示创建一个新的节点控件,并将该新的节点控件作为第一节点控件,然后为创建的节点控件配置属性信息。In a possible implementation manner, S5011 may be implemented as follows: the first device may receive the first instruction, the first device creates a new node control according to the instruction of the first instruction, and uses the new node control as the first node control , and then configure property information for the created node control.

另一种可能的实现方式中,第一设备的编排网络服务的应用程序中预先配置了多种控件。例如,节点控件、关系控件等。S5011可以实现为:第一设备可以接收选择操作,响应该选择操作并直接获取需要的节点控件,将所获取的节点控件作为第一节点控件,然后为该节点控件配置属性信息。In another possible implementation manner, various controls are pre-configured in the application program for orchestrating network services of the first device. For example, Node controls, Relationship controls, etc. S5011 may be implemented as follows: the first device may receive a selection operation, respond to the selection operation and directly obtain a required node control, use the obtained node control as the first node control, and then configure attribute information for the node control.

示例性的,该选择操作可以包括点击(如单击鼠标左键、双击鼠标左键、单击鼠标右键、双击鼠标右键)或者拖拽等。Exemplarily, the selection operation may include clicking (such as clicking the left mouse button, double-clicking the left mouse button, clicking the right mouse button, double-clicking the right mouse button) or dragging.

其中,节点控件的属性信息可以包括节点控件的标识。Wherein, the attribute information of the node control may include an identifier of the node control.

可选的,节点控件的属性信息还可以包括节点控件的名称、功能、形状和位置等。节点控件的名称可以用于表征该节点控件的内容、作用等信息。节点控件的功能可以包括节点控件的函数功能、关联功能等。其中,节点控件的形状和位置用于指示节点控件以属性信息中的形状和位置进行显示。Optionally, the attribute information of the node control may also include the name, function, shape and position of the node control. The name of the node control can be used to represent information such as the content and function of the node control. The function of the node control may include the function function and associated function of the node control. Wherein, the shape and position of the node control are used to instruct the node control to be displayed with the shape and position in the attribute information.

其中,可以根据实际需求配置节点控件的属性信息,本申请对此不予限定。节点控件的属性信息可以在网络服务编排的设计阶段静态配置,或者,节点控件的属性信息也可以设置为可配置内容,在网络服务的使用阶段由用户或者管理员或者其他人员修改配置。Wherein, the attribute information of the node control can be configured according to actual requirements, which is not limited in this application. The attribute information of the node control can be statically configured in the design phase of network service orchestration, or the attribute information of the node control can also be set as configurable content, and the configuration can be modified by the user or administrator or other personnel during the use phase of the network service.

具体的,配置节点控件的属性信息可以实现为:Specifically, the attribute information of the configuration node control can be implemented as:

第一设备根据用户的输入,配置节点控件的属性信息。The first device configures attribute information of the node control according to user input.

或者,第一设备根据系统自动配置节点控件的属性信息。Alternatively, the first device automatically configures the attribute information of the node control according to the system.

或者,第一设备通过其他方式配置节点控件的属性信息,本申请对此不予具体限定。Alternatively, the first device configures the attribute information of the node control in other ways, which is not specifically limited in this application.

示例性的,用户可以点击第一设备的显示界面上的“添加节点控件”,第一设备接收并响应用户的点击操作,创建一个节点控件并显示。然后,第一设备可以根据用户输入的节点控件的标识(例如为JD001)、节点控件的名称(例如为员工)配置节点控件的属性信息。Exemplarily, the user may click "add node control" on the display interface of the first device, and the first device receives and responds to the user's click operation, creates and displays a node control. Then, the first device may configure the attribute information of the node control according to the identifier of the node control (for example, JD001) and the name of the node control (for example, employee) input by the user.

示例性的,第一设备的编排网络服务的应用程序中预先配置了节点控件。用户可以通过点击、拖拽的方式选择需要获取的节点控件并显示。然后第一设备可以根据该节点控件的添加顺序配置节点控件的标识,按系统的默认名称配置节点控件的名称等信息。Exemplarily, the node control is pre-configured in the application program of the orchestration network service of the first device. The user can select and display the node control to be obtained by clicking or dragging. Then the first device can configure the identifier of the node control according to the order in which the node control is added, and configure information such as the name of the node control according to the default name of the system.

S5012、第一设备将第一节点控件与第一数据模型关联。S5012. The first device associates the first node control with the first data model.

其中,第一数据模型是网络服务包括的任一个数据模型。Wherein, the first data model is any data model included in the network service.

S5012的实现可以包括但不限于下述方法1或方法2。The implementation of S5012 may include but not limited to the followingmethod 1 or method 2.

方法1、第一设备将第一节点控件与网络服务包括的第一数据模型中的全部数据建立关联。Method 1. The first device associates the first node control with all data in the first data model included in the network service.

方法1的实现可以包括:第一设备获取第一节点控件的标识和第一数据模型的标识;第一设备接收用户的第三操作,第一设备响应第三操作,将第一节点控件的标识与网络服务包括的第一数据模型的标识关联。The implementation ofmethod 1 may include: the first device acquires the identifier of the first node control and the identifier of the first data model; Associated with the identifier of the first data model included in the web service.

第一设备获取第一节点控件的标识和第一数据模型的标识时,一种可能的实现方式中,第一设备可以接收用户输入的第一节点控件的标识和网络服务包括的第一数据模型的标识。另一种可能的实现方式中,第一设备可以自动为第一节点控件分配第一节点控件的标识,然后接收用户输入的第一数据模型的标识。When the first device obtains the identifier of the first node control and the identifier of the first data model, in a possible implementation manner, the first device may receive the identifier of the first node control and the first data model included in the network service input by the user. logo. In another possible implementation manner, the first device may automatically assign the identifier of the first node control to the first node control, and then receive the identifier of the first data model input by the user.

第一设备接收用户的第三操作时,第一设备接收用户的第三操作,通过分析第三操作的点击位置或者点击按键等信息,确定需要将第一节点控件和网络服务包括的第一数据模型关联。When the first device receives the user's third operation, the first device receives the user's third operation, and determines the first data that needs to be included in the first node control and network service by analyzing information such as the click position or click button of the third operation Model association.

其中,第三操作可以是点击(如单击鼠标左键、双击鼠标左键、单击鼠标右键、双击鼠标右键等)显示界面中的某个位置或者点击显示界面中的某个按键。本申请对比不予具体限定。Wherein, the third operation may be clicking (such as clicking the left mouse button, double-clicking the left mouse button, clicking the right mouse button, double-clicking the right mouse button, etc.) a certain position in the display interface or clicking a certain button in the display interface. The comparison in this application is not specifically limited.

第一设备响应第三操作,将第一节点控件的标识与网络服务包括的第一数据模型的标识关联时,一种可能的实现方式中,关联信息可以保存在每个控件的属性信息中。具体的,第一设备响应第三操作,将第一节点控件的标识与网络服务包括的第一数据模型的标识保存于第一节点控件的属性信息中。When the first device responds to the third operation and associates the identifier of the first node control with the identifier of the first data model included in the network service, in a possible implementation manner, the association information may be stored in the attribute information of each control. Specifically, in response to the third operation, the first device saves the identifier of the first node control and the identifier of the first data model included in the network service in the property information of the first node control.

其中,一组关联信息可以包括一个节点控件的标识和对应的数据模型的标识;或者一个关系控件的标识和对应的数据模型之间的关系。Wherein, a set of associated information may include an identifier of a node control and an identifier of a corresponding data model; or a relationship between an identifier of a relational control and a corresponding data model.

另一种可能的实现方式中,关联信息以关联表的形式保存于服务器的固定位置。具体的,第一设备响应第三操作,将第一节点控件的标识与网络服务包括的第一数据模型的标识保存于关联表中。In another possible implementation manner, the association information is stored in a fixed location of the server in the form of an association table. Specifically, in response to the third operation, the first device saves the identifier of the first node control and the identifier of the first data model included in the network service in the association table.

具体的,本申请对于S5012的实现中的每个步骤的执行顺序不进行限定。Specifically, the present application does not limit the execution order of each step in the implementation of S5012.

示例性的,第一设备的编排网络服务的应用程序中预先配置了节点控件的关联属性项,该关联属性项用于建立节点控件与数据模型之间的关联。当用户需要建立第一节点控件与网络服务的第一数据模型的关联时,用户可以点击第一节点控件的关联属性,第一设备响应该点击第一节点控件的关联属性的操作,显示一个用于输入关联对象的信息框,用户在该信息框中输入“第一节点控件的标识(例如为JD029)、网络服务包括的第一数据模型的标识(例如为SJ042)”。然后,用户点击“完成”,第一设备响应该“完成”点击操作,将JD029和SJ042作为第一节点控件的属性信息进行保存,后续针对第一节点控件的各种指令,可以通过该关联信息直接指示网络服务包括的第一数据模型进行相关操作,实现第一节点控件和网络服务包括的第一数据模型的关联。Exemplarily, an association property item of a node control is pre-configured in the application program of the orchestration network service of the first device, and the association property item is used to establish an association between the node control and the data model. When the user needs to establish an association between the first node control and the first data model of the network service, the user can click the associated attribute of the first node control, and the first device responds to the operation of clicking the associated attribute of the first node control, and displays a For inputting the information box of the associated object, the user inputs "the identification of the first node control (for example, JD029), the identification of the first data model included in the network service (for example, SJ042)" in the information box. Then, the user clicks "Finish", the first device responds to the "Finish" click operation, and saves JD029 and SJ042 as the attribute information of the first node control, and subsequent various instructions for the first node control can use this associated information Directly instruct the first data model included in the network service to perform related operations, realizing the association between the first node control and the first data model included in the network service.

示例性的,如表2所示,第一设备的编排网络服务的应用程序中预先配置了一个关联表,该关联表包括控件项以及实体项(数据模型或数据模型之间的关系)。同一列中的控件与实体关联。Exemplarily, as shown in Table 2, an association table is pre-configured in the application program of the first device for orchestrating network services, and the association table includes control items and entity items (data models or relationships between data models). Controls in the same column are associated with entities.

表2Table 2

控件项control itemJD001JD001GXK001GXK001……...JD022JD022实体项entity itemSJ004SJ004GX007GX007……...SJ035SJ035

需要说明的是,表2只是示例性的展示了一种关联表的存储形式,不应构成对关联表的内容及存储形式的具体限定。It should be noted that Table 2 is only an exemplary display of a storage form of the association table, and should not constitute a specific limitation on the content and storage form of the association table.

当用户需要将第一节点控件与网络服务包括的第一数据模型关联时,用户可以点击第一设备的显示界面上的“添加关联”,该第一设备响应该点击“添加关联”,显示一个用于输入关联对象的信息框,用户在该信息框中输入“第一节点控件的标识(例如为JD029)、网络服务包括的第一数据模型的标识(例如为SJ042)”。然后第一设备根据JD029、SJ042更新该关联表格。When the user needs to associate the first node control with the first data model included in the network service, the user can click "add association" on the display interface of the first device, and the first device responds to the click "add association" and displays a An information box for inputting associated objects, in which the user inputs "the identifier of the first node control (for example, JD029), the identifier of the first data model included in the network service (for example, SJ042)". Then the first device updates the association table according to JD029 and SJ042.

方法2、第一设备将第一节点控件与网络服务包括的第一数据模型中满足过滤条件的数据建立关联。Method 2. The first device associates the first node control with the data satisfying the filter condition in the first data model included in the network service.

其中,过滤条件可以用于对数据模型中的部分数据进行过滤。第一设备可以根据实际需求配置过滤条件,本申请对此不予具体限定。Among them, the filter condition can be used to filter part of the data in the data model. The first device may configure filter conditions according to actual needs, which is not specifically limited in this application.

示例性的,该过滤条件可以是关于时间的不等式;或者,该过滤条件可以是关于数据模型中某些属性参数的不等式。Exemplarily, the filter condition may be an inequality about time; or, the filter condition may be an inequality about some attribute parameters in the data model.

方法2的实现中,第一设备获取第一节点控件的标识、第一数据模型的标识和过滤条件,第一设备接收用户的第三操作,根据该第三操作的指示将第一节点控件与网络服务包括的第一数据模型中满足过滤条件的数据关联。In the implementation of method 2, the first device obtains the identifier of the first node control, the identifier of the first data model and the filter condition, the first device receives the third operation of the user, and combines the first node control with the Data associations that meet the filter condition in the first data model included in the network service.

示例性的,如表3所示,第一设备的编排网络服务的应用程序中预先配置了一个关联表,该关联表还包括过滤条件。Exemplarily, as shown in Table 3, an association table is pre-configured in the application program of the first device for orchestrating network services, and the association table further includes filter conditions.

表3table 3

控件项control itemJD001JD001GXK001GXK001……...JD022JD022实体项entity itemSJ004SJ004GX007GX007……...SJ035SJ035过滤条件filter condition存储时间>10月1日Storage time > October 1st

需要说明的是,表3只是示例性的展示了另一种关联表的存储形式,不应构成对关联表的内容及存储形式的具体限定。It should be noted that Table 3 is only an exemplary display of another storage form of the association table, and should not constitute a specific limitation on the content and storage form of the association table.

当用户需要将第一节点控件与网络服务包括的第一数据模型关联时,在方法1的基础上,用户还可以点击第一设备的显示界面上的“添加过滤条件”,该第一设备响应该点击“添加过滤条件”操作,显示一个用于输入关联对象的信息框,用户在该信息框中输入“第一节点控件的标识(例如为JD029)和过滤条件(例如为,存储时间>10月1日)”或者输入“网络服务包括的第一数据模型的标识(例如为SJ042)和过滤条件(例如为,存储时间>10月1日)”。然后,第一设备根据“JD029、存储时间>10月1日”更新该关联表格;或者第一设备根据“SJ042、存储时间>10月1日”更新该关联表格。When the user needs to associate the first node control with the first data model included in the network service, on the basis ofmethod 1, the user can also click "add filter condition" on the display interface of the first device, and the first device responds The "add filter condition" operation should be clicked to display an information box for entering the associated object, and the user enters "the first node control ID (for example, JD029) and the filter condition (for example, storage time > 10 1st)" or input "identification of the first data model included in the network service (for example, SJ042) and filter condition (for example, storage time>October 1st)". Then, the first device updates the association table according to "JD029, storage time > October 1"; or the first device updates the association table according to "SJ042, storage time > October 1".

现对通过单独添加控件方式添加第二节点控件和第一关系控件的过程进行说明。该过程可以包括但不限于下述S5013和S5014。The process of adding the second node control and the first relationship control by adding controls separately will now be described. This process may include but not limited to the following S5013 and S5014.

其中,第一节点控件与第二节点控件通过第一关系控件进行连接。Wherein, the first node control and the second node control are connected through the first relationship control.

S5013、第一设备在其显示界面上添加第二节点控件和第一关系控件。S5013. The first device adds the second node control and the first relationship control on its display interface.

其中,S5013中的具体实现可以参考S5011,此处不再赘述。Wherein, for the specific implementation in S5013, reference may be made to S5011, which will not be repeated here.

需要说明的是,S5013中对于添加第二节点控件和第一关系控件的顺序不予限定。It should be noted that the order of adding the second node control and the first relationship control in S5013 is not limited.

S5014、第一设备根据第二数据模型的标识和至少两个节点控件中的第二节点控件的标识,将第二节点控件与第二数据模型关联。S5014. The first device associates the second node control with the second data model according to the identifier of the second data model and the identifier of the second node control among the at least two node controls.

其中,第一数据模型与第二数据模型之间具有第一关系;第二节点控件为逻辑图中的除第一节点控件之外的任一个节点控件;第一关系用于表示第一数据模型与第二数据模型相关。Among them, there is a first relationship between the first data model and the second data model; the second node control is any node control in the logic diagram except the first node control; the first relationship is used to represent the first data model Associated with the second data model.

具体的,S5014的实现过程可以参考S5012,此处不再一一赘述。Specifically, for the implementation process of S5014, reference may be made to S5012, which will not be repeated here.

S5014a、第一设备根据第一关系控件的标识和第一关系的标识,将第一关系控件与第一关系关联。S5014a. The first device associates the first relationship control with the first relationship according to the identifier of the first relationship control and the identifier of the first relationship.

其中,第一节点控件与第二节点控件通过第一关系控件连接。Wherein, the first node control and the second node control are connected through the first relationship control.

具体的,S5014a的实现过程可以参考S5012,此处不再一一赘述。Specifically, for the implementation process of S5014a, reference may be made to S5012, which will not be repeated here.

需要说明的是,本申请对于执行S5014及S5014a的顺序不作具体限定,可以根据实际情况进行配置。例如,可以先执行S5014,第一设备先将第二节点控件与第二数据模型关联,然后再执行S5014a,第一设备再将第一关系控件与第一关系关联。或者,可以先执行S5014a,第一设备先将第一关系控件与第一关系关联;然后再执行S5014,第一设备再将第二节点控件与第二数据模型关联。It should be noted that, the present application does not specifically limit the sequence of executing S5014 and S5014a, which may be configured according to actual conditions. For example, S5014 may be executed first, and the first device first associates the second node control with the second data model, and then executes S5014a, and the first device associates the first relationship control with the first relationship. Alternatively, S5014a may be executed first, and the first device first associates the first relationship control with the first relationship; and then S5014 is executed, and the first device associates the second node control with the second data model.

现以第一设备添加第二节点控件和第一关系为例,对搜索添加控件的方式进行说明,具体可以包括但不限于下述S5015至S5017。Taking the first device adding the second node control and the first relationship as an example, the manner of searching and adding the control will be described, which may specifically include but not limited to the following S5015 to S5017.

其中,第二节点控件与第一节点控件之间通过第一关系控件连接。Wherein, the second node control is connected to the first node control through the first relationship control.

S5015、第一设备根据搜索指令,获取与第一数据模型相关的候选关系,和/或与第一数据模型存在关系的候选数据模型。S5015. According to the search instruction, the first device acquires candidate relationships related to the first data model, and/or candidate data models that have relationships with the first data model.

其中,搜索指令包括第一数据模型的标识。Wherein, the search instruction includes the identifier of the first data model.

其中,候选关系包括第一关系,候选数据模型包括第二数据模型。第一数据模型与第二数据模型之间具有第一关系,第一关系用于表示第一数据模型与第二数据模型相关。Wherein, the candidate relationship includes the first relationship, and the candidate data model includes the second data model. There is a first relationship between the first data model and the second data model, and the first relationship is used to indicate that the first data model is related to the second data model.

一种可能的实现方式中,第一设备根据搜索指令中包括的第一数据模型的标识,在第一设备的数据库中搜索与第一数据模型相关的一个或多个候选关系,和/或与第一数据模型存在关系的一个或多个候选数据模型。In a possible implementation manner, the first device searches the database of the first device for one or more candidate relationships related to the first data model according to the identifier of the first data model included in the search instruction, and/or with One or more candidate data models for which the first data model exists a relationship.

另一种可能的实现方式中,第一设备将搜索指令发送给第二设备。第一设备接收第二设备发送的与第一数据模型相关的候选关系,和/或与第一数据模型存在关系的候选数据模型。In another possible implementation manner, the first device sends the search instruction to the second device. The first device receives a candidate relationship related to the first data model and/or a candidate data model having a relationship with the first data model sent by the second device.

其中,第二设备中存储了多个数据模型和数据模型之间的关系。示例性的,第二设备可以为包括图3中图数据库模块2014的服务器。Wherein, the second device stores multiple data models and relationships between the data models. Exemplarily, the second device may be a server including the graph database module 2014 in FIG. 3 .

可以理解的,在另一种可能的实现方式中,第二设备根据搜索指令中的第一数据模型的标识,在第一设备的数据库中搜索与第一数据模型相关的一个或多个候选关系,和/或与第一数据模型存在关系的一个或多个候选数据模型;然后将与第一数据模型相关的一个或多个候选关系,和/或与第一数据模型存在关系的一个或多个候选数据模型发送给第一设备。It can be understood that, in another possible implementation manner, the second device searches the database of the first device for one or more candidate relationships related to the first data model according to the identifier of the first data model in the search instruction , and/or one or more candidate data models that have a relationship with the first data model; then one or more candidate relationships that are related to the first data model, and/or one or more candidate data models that have a relationship with the first data model A candidate data model is sent to the first device.

需要说明的是,第一设备获取与第一数据模型相关的一个或多个候选关系,和/或与第一数据模型存在关系的一个或多个候选数据模型,可以通过一个搜索指令获取,也可以通过两个搜索指令分别获取,本申请对此不予具体限定。It should be noted that the first device obtains one or more candidate relationships related to the first data model, and/or one or more candidate data models that have a relationship with the first data model, which may be obtained through a search command, or It can be obtained respectively through two search instructions, which is not specifically limited in this application.

然后,第一设备根据获取的与第一数据模型相关的一个或多个候选关系,和/或与第一数据模型存在关系的一个或多个候选数据模型,确定第二数据模型,和/或确定第一关系。Then, the first device determines the second data model according to the acquired one or more candidate relationships related to the first data model, and/or one or more candidate data models that have a relationship with the first data model, and/or Identify the first relationship.

第一设备从候选数据模型中确定第二数据模型和/或确定第一关系时,一种可能的实现方式中,第一设备根据第一规则从候选数据模型中确定第二数据模型和/或第一关系。When the first device determines the second data model and/or determines the first relationship from the candidate data models, in a possible implementation manner, the first device determines the second data model and/or the second data model from the candidate data models according to the first rule first relationship.

该第一规则可以包括:数据模型或关系的存储时间最新。The first rule may include: the storage time of the data model or relation is the latest.

或者,与该数据模型相关的关系最多,或与关系相关的数据模型最多。Alternatively, the data model has the most relationships, or the data model has the most relationships.

第一设备从候选数据模型中确定第二数据模型和/或确定第一关系时,另一种可能的实现方式中,第一设备可以根据用户的操作确定第二数据模型。When the first device determines the second data model and/or determines the first relationship from the candidate data models, in another possible implementation manner, the first device may determine the second data model according to a user operation.

示例性的,第一设备将候选数据模型及候选数据模型的相关信息(存储时间、相关的关系、数据模型的名称等)显示于第一设备的显示界面上,第一设备接收用户在显示界面上的选择操作,确定第二数据模型;第一设备将候选关系及候选关系的相关信息(存储时间、相关的数据模型、关系的名称等)显示于第一设备的显示界面上,第一设备接收用户在显示界面上的选择操作,确定第一关系。Exemplarily, the first device displays the candidate data model and related information of the candidate data model (storage time, related relationship, name of the data model, etc.) on the display interface of the first device, and the first device receives the The selection operation above determines the second data model; the first device displays the candidate relationship and related information (storage time, related data model, relationship name, etc.) on the display interface of the first device, and the first device A user's selection operation on the display interface is received to determine the first relationship.

需要说明的是,若搜索指令的搜索结果为空,则向用户输出第一提示信息“未搜索到相关数据模型”。It should be noted that, if the search result of the search instruction is empty, the first prompt message "No relevant data model has been found" is output to the user.

S5016、第一设备获取第二节点控件和第一关系控件。S5016. The first device acquires the second node control and the first relationship control.

其中,S5016的实现过程与S5011类似,具体实现参考S5011,不再一一赘述。Wherein, the implementation process of S5016 is similar to that of S5011, and reference is made to S5011 for specific implementation, which will not be repeated one by one.

S5017、第一设备将第二节点控件和第二数据模型关联;将第一关系控件与第一关系关联。S5017. The first device associates the second node control with the second data model; associates the first relationship control with the first relationship.

其中,S5017的实现过程与S5012类似,具体实现参考S5012,不再一一赘述。Wherein, the implementation process of S5017 is similar to that of S5012, and reference is made to S5012 for specific implementation, so details will not be repeated one by one.

需要说明的是,可以通过一次搜索,第一设备获取与第一数据模型相关的第一关系,和与第一数据模型存在关系的第二数据模型,然后分别为第二数据模型添加第二节点控件,为第一关系添加第一关系控件,分别将第二数据模型与第二节点控件之间的关联,以及将第一关系控件与第一关系之间的关联。It should be noted that, through one search, the first device can obtain the first relationship related to the first data model and the second data model that has a relationship with the first data model, and then add second nodes to the second data model respectively Control, add the first relationship control for the first relationship, respectively associate the second data model with the second node control, and associate the first relationship control with the first relationship.

或者,也可以先通过一次搜索,第一设备获取与第一数据模型相关的第一关系,为第一关系添加第一关系控件,将第一关系控件与第一关系之间的关联;再通过另一次搜索,第一设备获取与第一数据模型存在关系的第二数据模型,为第二数据模型添加第二节点控件,将第二数据模型与第二节点控件之间的关联。Alternatively, it is also possible to perform a search first, the first device obtains the first relationship related to the first data model, adds a first relationship control to the first relationship, and associates the first relationship control with the first relationship; and then through For another search, the first device acquires a second data model that has a relationship with the first data model, adds a second node control to the second data model, and associates the second data model with the second node control.

或者,也可以先通过另一次搜索,第一设备获取与第一数据模型存在关系的第二数据模型,为第二数据模型添加第二节点控件,将第二数据模型与第二节点控件之间的关联;再通过一次搜索,第一设备获取与第一数据模型相关的第一关系,为第一关系添加第一关系控件,将第一关系控件与第一关系之间的关联。Alternatively, through another search, the first device may obtain the second data model that has a relationship with the first data model, add a second node control to the second data model, and connect the second data model to the second node control association; through another search, the first device obtains the first relationship related to the first data model, adds a first relationship control to the first relationship, and associates the first relationship control with the first relationship.

现以第一设备添加第三节点控件和第四节点控件为例,对路径推荐添加控件的方式进行说明,具体可以包括但不限于下述S5018至S5019a。其他路径推荐控件的添加过程类似,不再一一赘述。Taking the first device adding the third node control and the fourth node control as an example, the method of adding controls for path recommendation is described, which may specifically include but not limited to the following S5018 to S5019a. The process of adding other path recommendation controls is similar, and will not be repeated one by one.

其中,第三节点控件与第三数据模型关联,第四节点控件与第四数据模型关联。第三数据模型为网络服务包括的第一路径中的第一个数据模型,第四数据模型为网络服务包括的第一路径中的最后一个数据模型;第一路径为网络服务包括的任一个路径;路径可以包括多个数据模型及数据模型之间的关系。Wherein, the third node control is associated with the third data model, and the fourth node control is associated with the fourth data model. The third data model is the first data model in the first path included in the network service, and the fourth data model is the last data model in the first path included in the network service; the first path is any path included in the network service ; Paths can include multiple data models and relationships between data models.

其中,路径推荐添加控件的方式可以包括但不限于:方案A或方案B。Wherein, the ways of adding controls in path recommendation may include but not limited to: scheme A or scheme B.

方案A、根据起始数据模型与终点数据模型获取推荐路径。Solution A: Acquire the recommended path according to the start data model and the end point data model.

方案B、根据起始数据模型、终点数据模型,以及中间的途径数据模型获取推荐路径。Scheme B, obtain the recommended route according to the starting data model, the end point data model, and the intermediate route data model.

S5018、第一设备接收路径推荐指令。S5018. The first device receives a path recommendation instruction.

针对方案A,路径推荐指令包括第三数据模型的标识和第四数据模型的标识;路径推荐指令用于指示推荐以第三数据模型为起点、第四数据模型为终点一个或多个候选路径。For solution A, the path recommendation instruction includes the identifier of the third data model and the identifier of the fourth data model; the path recommendation instruction is used to instruct to recommend one or more candidate paths starting from the third data model and ending at the fourth data model.

进一步的,针对方案B,路径推荐推荐指令中还可以包括第五数据模型的标识。路径推荐指令用于指示推荐以第三数据模型为起点、第四数据模型为终点,并经过第五数据模型的一个或多个候选路径。Further, for scheme B, the path recommendation recommendation instruction may also include the identifier of the fifth data model. The path recommendation instruction is used to instruct to recommend one or more candidate paths starting from the third data model, ending at the fourth data model, and passing through the fifth data model.

其中,第五数据模型是网络服务包括的除第三数据模型、第四数据模型之外的数据模型。Wherein, the fifth data model is a data model other than the third data model and the fourth data model included in the network service.

具体的,第五数据模型的数量可以是一个,也可以是多个,本申请对此不予具体限定。Specifically, the number of the fifth data model may be one or multiple, which is not specifically limited in the present application.

S5019、第一设备根据路径推荐指令,获取一个或多个候选路径。S5019. The first device acquires one or more candidate routes according to the route recommendation instruction.

针对方案A、一种可能的实现方式中,第一设备可以采用关联路径推荐算法在第一设备的数据库中获取以第三数据模型为起点、第四数据模型为终点的一个或多个候选路径。For solution A, in a possible implementation manner, the first device may use the associated path recommendation algorithm to obtain one or more candidate paths starting from the third data model and ending at the fourth data model in the database of the first device .

其中,关联路径推荐算法是基于数据库的最短路径算法扩展,算法逻辑为推荐途径了用户指定模型节点,且途径节点数量最小的路径。算法处理时首先获取从起始节点到途径节点的最短路径,再获取从途径节点到目标节点的最短路径,将这两步的结果组合为最终结果。例如,数据库中存储的路径图如图6所示,查找从数据模型A(简称A)途径B到F的路径,结果为:A-B-C-F或者,A-B-D-F。Among them, the associated path recommendation algorithm is an extension of the shortest path algorithm based on the database. The algorithm logic recommends the path with the user-specified model node and the path with the smallest number of nodes. When processing the algorithm, first obtain the shortest path from the starting node to the path node, and then obtain the shortest path from the path node to the target node, and combine the results of these two steps into the final result. For example, the path diagram stored in the database is shown in FIG. 6 , and the path from data model A (referred to as A) to path B to F is searched, and the result is: A-B-C-F or, A-B-D-F.

针对方案A、另一种可能的实现方式中,第一设备将第三数据模型的标识和第四数据模型的标识发送给第二设备。第一设备接收第二设备发送的一个或多个候选路径。Regarding solution A, in another possible implementation manner, the first device sends the identifier of the third data model and the identifier of the fourth data model to the second device. The first device receives one or more candidate paths sent by the second device.

可以理解的,第二设备接收到第三数据模型的标识和第四数据模型的标识后,第二设备采用关联路径推荐算法在数据库中获取以第三数据模型为起点、第四数据模型为终点的一个或多个候选路径。It can be understood that after the second device receives the identification of the third data model and the identification of the fourth data model, the second device adopts the associated path recommendation algorithm to obtain the data in the database starting from the third data model and ending at the fourth data model. One or more candidate paths for .

针对方案B,S5019的实现过程中,第一设备获取以第三数据模型为起点、第四数据模型为终点,并经过第五数据模型的一个或多个候选路径。For solution B, during the implementation of S5019, the first device acquires one or more candidate paths that start from the third data model, end at the fourth data model, and pass through the fifth data model.

具体的获取过程与方案A类似,不再一一赘述。The specific acquisition process is similar to solution A, and will not be repeated here.

若路径推荐指令的结果为空,则向用户输出第二提示信息“未找到匹配路径”。且第一设备不再执行S5019a。If the result of the path recommendation instruction is empty, output a second prompt message "no matching path found" to the user. And the first device does not execute S5019a any more.

S5019a、第一设备获取逻辑图中的一条路径。S5019a. The first device acquires a path in the logic graph.

其中,该逻辑图中的一条路径包括目标路径中的数据模型对应的节点控件,以及目标路径中的数据模型之间的关系对应的关系控件。Wherein, a path in the logic diagram includes node controls corresponding to data models in the target path, and relationship controls corresponding to relationships between data models in the target path.

其中,一个或多个候选路径包括目标路径。Wherein, one or more candidate paths include the target path.

若S5019中获取的候选路径的数量为1,则候选路径即目标路径。If the number of candidate paths acquired in S5019 is 1, the candidate path is the target path.

若S5019中获取的候选路径的数量大于1,第一设备首先在候选路径中确定目标路径,然后再获取目标路径中包括的数据模型和数据模型之间的关系,第一设备为目标路径中的每个数据模型建立对应的节点控件,并将节点控件与对应的数据模型之间关联;第一设备为目标路径中的每个关系建立对应的关系控件,并将关系控件与对应的关系之间关联。If the number of candidate paths acquired in S5019 is greater than 1, the first device first determines the target path among the candidate paths, and then acquires the data model included in the target path and the relationship between the data models. The first device is the target path in the target path. Each data model establishes a corresponding node control, and associates the node control with the corresponding data model; the first device establishes a corresponding relationship control for each relationship in the target path, and associates the relationship control with the corresponding relationship associated.

具体的,添加控件以及关联的过程可以与S5011和S5012类似,可以参考S5011和S5012的具体实现,此处不再一一说明。Specifically, the process of adding controls and associating them may be similar to S5011 and S5012, and reference may be made to specific implementations of S5011 and S5012, which will not be described one by one here.

一种可能的实现方式中,第一设备可以根据第二规则确定目标路径。In a possible implementation manner, the first device may determine the target path according to the second rule.

其中,可以根据实际需求配置第二规则,本申请对此不予具体限定。Wherein, the second rule may be configured according to actual requirements, which is not specifically limited in this application.

示例性的,第二规则可以包括:包括数据模型数量最少的路径;或者其他。Exemplarily, the second rule may include: the path including the least number of data models; or others.

另一种可能的实现方式中,第一设备可以根据用户的操作确定目标路径。In another possible implementation manner, the first device may determine the target path according to the user's operation.

示例性的,第一设备将候选路径显示于第一设备的显示界面上,第一设备接收用户在显示界面上的选择操作,确定目标路径。Exemplarily, the first device displays the candidate routes on a display interface of the first device, and the first device receives a user's selection operation on the display interface to determine the target route.

经过S501之后,第一设备添加了网络服务包括的所有数据模型对应的节点控件,以及数据模型之间的关系对应的关系控件,得到网络服务的逻辑图。After S501, the first device adds node controls corresponding to all data models included in the network service, and relationship controls corresponding to relationships between data models, to obtain a logic diagram of the network service.

如图5或图5a所示,本申请实施例1提供一种辅助编排网络服务的方法,还可以包括S502。As shown in FIG. 5 or FIG. 5a,Embodiment 1 of the present application provides a method for assisting in orchestrating network services, which may further include S502.

S502、在第一设备的显示界面上显示网络服务的逻辑图。S502. Display a logic diagram of the network service on a display interface of the first device.

其中,网络服务的逻辑图包括S501中获取的节点控件和关系控件。一个节点控件与网络服务包括的一个数据模型关联,一个关系控件与网络服务包括的一个关系关联。Wherein, the logic diagram of the network service includes the node control and the relationship control obtained in S501. A node control is associated with a data model included in the web service, and a relationship control is associated with a relationship included in the web service.

不同的网络服务包括不同的数据模型以及数据模型之间的关系,可以得到不同形式的网络服务的逻辑图。Different network services include different data models and relationships between data models, and logical diagrams of different forms of network services can be obtained.

示例性的,图7中示意了多种网络服务的逻辑图的可能的形式。图7中的a示意了一种简单的具有单一关系(一个节点控件至连接一个关系控件)路径的网络逻辑图;图7中的b或c示意了一种一对多的网络逻辑图,即网络服务的逻辑图中包括多个第一节点控件(网络服务包括的第一个数据模型对应的节点控件)或者多个第二节点控件(网络服务包括的最后一个数据模型对应的节点控件);图7中的d示意了一种多对多的网络逻辑图。即网络服务的逻辑图中包括多个第一节点控件和多个第二节点控件。Exemplarily, FIG. 7 shows possible forms of logic diagrams of various network services. A in Fig. 7 illustrates a simple network logic diagram with a path of a single relationship (a node control to a connection control); b or c in Fig. 7 illustrates a one-to-many network logic diagram, namely The logic diagram of the network service includes multiple first node controls (node controls corresponding to the first data model included in the network service) or multiple second node controls (node controls corresponding to the last data model included in the network service); d in FIG. 7 shows a many-to-many network logic diagram. That is, the logic diagram of the network service includes multiple first node controls and multiple second node controls.

可以理解的,图7只是示例性的列举了几种可能的网络服务的逻辑图的方式,不应构成对网络服务的逻辑图的具体限定。网络服务的逻辑图还可以为别的表现形式,此处不再一一列举。It can be understood that FIG. 7 is only an exemplary manner of enumerating several possible logic diagrams of network services, and should not constitute a specific limitation on the logic diagrams of network services. The logic diagram of the network service may also be expressed in other forms, which will not be listed here.

S503、第一设备根据逻辑图辅助编排网络服务。S503. The first device assists in arranging network services according to the logic diagram.

其中,S503可以实现为第一设备给逻辑图中的节点控件添加网络服务的输入参数和网络服务的输出参数。Wherein, S503 may be implemented as the first device adding input parameters of the network service and output parameters of the network service to the node controls in the logic diagram.

具体的,第一设备给逻辑图中与网络服务包括的第一个数据模型关联的节点控件添加网络服务的输入参数,以确定将网络服务包括的第一个数据模型的第一属性信息作为网络服务的输入参数。第一设备给逻辑图中与网络服务包括的最后一个数据模型关联的节点控件添加网络服务的输出参数,以确定将网络服务包括的最后一个数据模型的第二属性信息作为网络服务的输出参数。Specifically, the first device adds an input parameter of the network service to the node control associated with the first data model included in the network service in the logic diagram, so as to determine that the first attribute information of the first data model included in the network service is used as the network Input parameters for the service. The first device adds an output parameter of the network service to the node control associated with the last data model included in the network service in the logic diagram, so as to determine that the second attribute information of the last data model included in the network service is used as the output parameter of the network service.

其中,本申请对于网络服务包括的第一个数据模型的数量和网络服务包括的最后一个数据模型的数量不予具体限定。Wherein, the present application does not specifically limit the quantity of the first data model included in the network service and the quantity of the last data model included in the network service.

一种可能的实现方式中,网络服务可以包括的第一个数据模型的数量可以为一个,或者也可以为多个。对应的,逻辑图中与网络服务包括的第一个数据模型关联的节点控件的数量可以为一个,或者也可以为多个。In a possible implementation manner, the network service may include one or more first data models. Correspondingly, the number of node controls associated with the first data model included in the network service in the logic diagram may be one, or may also be multiple.

另一种可能的实现方式中,网络服务可以包括的最后一个数据模型的数量可以为一个,或者也可以为多个。对应的,逻辑图中与网络服务包括的最后一个数据模型关联的节点控件的数量可以为一个,或者也可以为多个。In another possible implementation manner, the number of the last data model that the network service may include may be one, or may also be multiple. Correspondingly, the number of node controls associated with the last data model included in the network service in the logic diagram may be one, or may also be multiple.

具体的,网络服务的输入参数、络服务的输出参数可以是数据模型中的一个或多个属性项。例如,如表1所示的数据模型,可以将网络服务的输入参数设置为员工编号、员工的姓名和员工地址中的一项或多项。Specifically, the input parameters of the network service and the output parameters of the network service may be one or more attribute items in the data model. For example, in the data model shown in Table 1, the input parameters of the network service can be set to one or more of employee number, employee name and employee address.

S503的实现可以包括但不限于下述方式1或方式2。The implementation of S503 may include but not limited to the followingmanner 1 or manner 2.

方式1的实现可以包括但不限于下述步骤1与步骤2。Implementation ofmode 1 may include but not limited to the followingsteps 1 and 2.

步骤1、第一设备接收第一操作;响应于第一操作,在逻辑图中确定与网络服务包括的第一个数据模型关联的节点控件;针对与网络服务包括的第一个数据模型关联的节点控件,接收网络服务的输入参数。Step 1. The first device receives the first operation; in response to the first operation, determine the node control associated with the first data model included in the network service in the logic diagram; for the node control associated with the first data model included in the network service The node control receives the input parameters of the network service.

步骤2、第一设备接收第二操作;响应于第二操作,在逻辑图中确定与网络服务包括的最后一个数据模型关联的节点控件;针对与网络服务包括的最后一个数据模型关联的节点控件,接收网络服务的输入参数。Step 2. The first device receives the second operation; in response to the second operation, determine the node control associated with the last data model included in the network service in the logic diagram; for the node control associated with the last data model included in the network service , which receives input parameters for the web service.

示例性的,步骤1的实现示例可以包括:用户可以在第一设备的显示界面上点击“添加输入参数”,第一设备接收该点击操作,响应该点击“添加输入参数”操作,进入添加输入参数的等待状态。然后用户在网络服务的逻辑图中选择出与网络服务包括的第一个数据模型关联的节点控件,点击逻辑图中该与网络服务包括的第一个数据模型关联的节点控件。第一设备接收该点击操作,并根据该点击的位置识别出与网络服务包括的第一个数据模型关联的节点控件,然后弹出输入参数的添加界面。用户在该输入参数的添加界面输入与该节点控件对应的输入参数。第一设备响应该输入参数,针对与网络服务包括的第一个数据模型关联的节点控件接收并保存该网络服务的输入参数。Exemplarily, the implementation example ofstep 1 may include: the user can click "add input parameter" on the display interface of the first device, the first device receives the click operation, responds to the click "add input parameter" operation, and enters the add input The wait state for the parameter. Then the user selects the node control associated with the first data model included in the network service in the logic diagram of the network service, and clicks the node control associated with the first data model included in the network service in the logic diagram. The first device receives the click operation, identifies the node control associated with the first data model included in the network service according to the click position, and then pops up an interface for adding input parameters. The user inputs the input parameter corresponding to the node control on the interface for adding the input parameter. In response to the input parameter, the first device receives and saves the input parameter of the web service for the node control associated with the first data model included in the web service.

步骤2的实现示例可以参考上述步骤1的实现示例,此处不再赘述。For an implementation example of step 2, reference may be made to the implementation example ofstep 1 above, which will not be repeated here.

需要说明的是,当与网络服务包括的第一个数据模型关联的节点控件和/或与网络服务包括的最后一个数据模型关联的节点控件的数量是多个时,网络服务的输入参数和/或输出参数为多个参数,针对每个输入参数或输出参数的添加过程分别执行上述方式1中的步骤1与步骤2,此处不再一一赘述。It should be noted that when the number of node controls associated with the first data model included in the web service and/or the number of node controls associated with the last data model included in the web service is multiple, the input parameters of the web service and/or Or the output parameter is a plurality of parameters, andstep 1 and step 2 in theabove method 1 are respectively performed for each input parameter or output parameter adding process, which will not be repeated here.

方式2的实现为:第一设备分别接收用户输入的一个或多个与网络服务包括的第一个数据模型关联的节点控件(输入节点控件)的标识,以及与每个该输入节点控件对应的网络服务的输入参数;一个或多个与网络服务包括的最后一个数据模型关联的节点控件(输出节点控件)的标识,以及与每个该输出节点控件对应的网络服务的输出参数。第一设备接收用户的第六操作,响应于第六操作,第一设备通过该编排网络服务的应用程序自动给每个与网络服务包括的第一个数据模型关联的节点控件,分别添加其对应的网络服务的输入参数;通过该编排网络服务的应用程序自动给每个与网络服务包括的最后一个数据模型关联的节点控件分别添加其对应的网络服务的输出参数。Mode 2 is implemented as follows: the first device respectively receives the identifiers of one or more node controls (input node controls) associated with the first data model included in the network service input by the user, and the identifiers corresponding to each of the input node controls. Input parameters of the web service; identifiers of one or more node controls (output node controls) associated with the last data model included in the web service, and output parameters of the web service corresponding to each of the output node controls. The first device receives the sixth operation of the user. In response to the sixth operation, the first device automatically adds its corresponding The input parameters of the network service; through the application program that arranges the network service, each node control associated with the last data model included in the network service is automatically added with its corresponding output parameter of the network service.

示例性的,用户点击显示界面上的“输入/输出参数设置”,进入用户信息输入界面。第一设备接收用户输入的一个或多个输入节点控件的标识,与每个输入节点控件对应的网络服务的输入参数,一个或多个输出节点控件的标识,与每个输出节点控件对应的网络服务的输出参数。然后,用户点击“确定”,第一设备通过该编排网络服务的应用程序自动给每个输入节点控件分别添加其对应的网络服务的输入参数;通过该编排网络服务的应用程序自动给每个输出节点控件分别添加其对应的网络服务的输出参数。Exemplarily, the user clicks "input/output parameter setting" on the display interface to enter the user information input interface. The first device receives the identification of one or more input node controls input by the user, the input parameter of the network service corresponding to each input node control, the identification of one or more output node controls, and the network corresponding to each output node control The output parameters of the service. Then, the user clicks "OK", and the first device automatically adds the input parameters of the corresponding network service to each input node control through the application program for arranging network services; Node controls add output parameters of their corresponding network services respectively.

进一步的,如图5所示,本申请实施例提供辅助网络服务编排的方法还可以包括控件的移动。具体的,控件的移动可以包括但不限于下述S504-S505。Further, as shown in FIG. 5 , the method for assisting network service orchestration provided by the embodiment of the present application may also include moving controls. Specifically, the movement of the controls may include but not limited to the following S504-S505.

S504、第一设备获取待移动的控件和目标位置。S504. The first device acquires the control to be moved and the target position.

其中,目标位置可以为第一设备显示界面中的目标区域。Wherein, the target location may be a target area on the display interface of the first device.

具体的,目标位置可以为第一设备显示界面上的一个具体的坐标值或者位置编号。例如,目标位置可以为用户输入的坐标值或者位置编号等信息;或者目标位置可以为根据用户的操作识别得到的坐标值或者位置信息。Specifically, the target location may be a specific coordinate value or location number on the display interface of the first device. For example, the target position may be information such as coordinate values or position numbers input by the user; or the target position may be coordinate values or position information identified according to user operations.

一种可能的实现方式中,待移动的控件可以包括网络服务的逻辑图中的一个或多个节点控件。In a possible implementation manner, the control to be moved may include one or more node controls in the logic diagram of the network service.

另一种可能的实现方式中,待移动的控件可以包括网络服务的逻辑图中的一个或多个关系控件。In another possible implementation manner, the control to be moved may include one or more relational controls in the logic diagram of the network service.

再一种可能的实现方式中,待移动的控件可以包括一个或多个节点控件,以及一个或多个关系控件。In yet another possible implementation manner, the controls to be moved may include one or more node controls and one or more relationship controls.

一种可能的实现方式中,第一设备可以接收用户输入的待移动控件的标识和目标位置的坐标值。In a possible implementation manner, the first device may receive the identifier of the control to be moved and the coordinate value of the target position input by the user.

另一种可能的实现方式中,第一设备可以接收用户的第七操作,响应第七操作,确定待移动的控件。然后第一设备接收用户的第八操作,响应第八操作,确定目标位置。In another possible implementation manner, the first device may receive a seventh operation of the user, and determine the control to be moved in response to the seventh operation. Then the first device receives the eighth operation of the user, and determines the target location in response to the eighth operation.

示例性的,用户通过点击等操作选择待移动的控件。第一设备响应该选择待移动的控件的点击操作,根据点击的位置获取待移动的控件。然后,用户拖动选中的待移动的控件,拖至显示界面中的目标位置,第一设备响应该拖动操作,获取目标位置。Exemplarily, the user selects the control to be moved through operations such as clicking. In response to the click operation for selecting the control to be moved, the first device acquires the control to be moved according to the clicked position. Then, the user drags the selected control to be moved to a target position in the display interface, and the first device responds to the drag operation to acquire the target position.

S505、第一设备根据待移动的控件和目标位置将待移动的控件移动至第一设备的显示界面中的目标位置处。S505. The first device moves the control to be moved to the target position on the display interface of the first device according to the control to be moved and the target position.

S505可以实现为:第一设备响应用户的操作,将待移动的控件移动至第一设备的显示界面中的目标位置处。S505 may be implemented as: the first device moves the control to be moved to a target position on the display interface of the first device in response to the user's operation.

可选的,第一设备还可以对显示界面中显示的控件进行删除,主要可以实现为:第一设备确定待删除的控件,然后将待删除的控件删除。Optionally, the first device may also delete the controls displayed on the display interface, which may mainly be implemented as follows: the first device determines the controls to be deleted, and then deletes the controls to be deleted.

其中,待删除的控件可以包括网络服务的逻辑图中的一个或多个节点控件;或者,待删除的控件可以包括网络服务的逻辑图中的一个或多个关系控件;或者待删除的控件可以包括网络服务的逻辑图中的一个或多个节点控件,以及一个或多个关系控。Wherein, the control to be deleted may include one or more node controls in the logic diagram of the network service; or, the control to be deleted may include one or more relationship controls in the logic diagram of the network service; or the control to be deleted may be Including one or more node controls and one or more relationship controls in the logical graph of the web service.

示例性的,用户可以通过点击等操作选择待删除的控件。第一设备响应该选择待删除的控件的点击操作,根据点击的位置获取待删除的控件,然后第一设备删除待删除控件。Exemplarily, the user can select the control to be deleted by clicking or other operations. In response to the click operation for selecting the control to be deleted, the first device acquires the control to be deleted according to the clicked position, and then the first device deletes the control to be deleted.

进一步的,如图5所示,本申请实施例提供辅助网络服务编排的方法还可以包括S506-S507。Further, as shown in FIG. 5 , the method for assisting network service orchestration provided by the embodiment of the present application may further include S506-S507.

S506、第一设备将网络服务的结构图转换为网络服务的脚本程序。S506. The first device converts the structure diagram of the network service into a script program of the network service.

其中,网络服务的结构图可以包括:网络服务的逻辑图、网络服务的输入参数和网络服务的输出参数。Wherein, the structural diagram of the network service may include: a logic diagram of the network service, input parameters of the network service, and output parameters of the network service.

S506可以实现为:第一设备响应用户的第九操作,将网络服务的结构图转换为网络服务的脚本程序。S506 may be implemented as: the first device converts the structure diagram of the network service into a script program of the network service in response to the ninth operation of the user.

示例性的,用户点击第一设备显示界面上的“转换为脚本程序”,第一设备响应“转换为脚本程序”的点击操作,将网络服务的结构图转换为网络服务的脚本程序。Exemplarily, the user clicks "convert to script program" on the display interface of the first device, and the first device responds to the click operation of "convert to script program", and converts the structure diagram of the network service into a script program of the network service.

S507、第一设备将网络服务的脚本发布至网关设备。S507. The first device publishes the script of the network service to the gateway device.

第一设备给该网关设备发送一个可以访问该网络服务的API接口。The first device sends an API interface that can access the network service to the gateway device.

进一步的,本申请实施例提供的辅助网络服务编排的方法还可以包括用户使用该网络服务的过程。该过程可以包括但不限于下述S508至S510。Further, the method for assisting network service orchestration provided by the embodiment of the present application may also include the process of the user using the network service. This process may include but not limited to the following S508 to S510.

S508、第一设备接收网关设备发送的网络服务的输入参数值。S508. The first device receives the input parameter value of the network service sent by the gateway device.

其中,用户通过任何一个客户机的浏览器访问该网络服务,将该网络服务的输入参数值通过客户机发送给网关设备,网关设备通过对应的API接口将该网络服务的输入参数值发送给第一设备。Wherein, the user accesses the network service through the browser of any client computer, and sends the input parameter value of the network service to the gateway device through the client computer, and the gateway device sends the input parameter value of the network service to the first server through the corresponding API interface. a device.

具体的,S508可以实现为:第一设备接收网关设备通过API接口发送的该网络服务的输入参数值。Specifically, S508 may be implemented as: the first device receives the input parameter value of the network service sent by the gateway device through the API interface.

S509、第一设备运行加入了输入参数值的网络服务的脚本程序,得到网络服务的输出参数值。S509. The first device runs the script program of the network service added with the input parameter value to obtain the output parameter value of the network service.

其中,S509可以实现为:第一设备运行调用该网络服务的脚本程序,将该网络服务的输出参数值加入该脚本程序,然后第一设备运行该加入了输入参数值的网络服务的脚本程序,得到网络服务的输出参数值。Wherein, S509 can be realized as: the first device runs the script program calling the network service, adds the output parameter value of the network service to the script program, and then the first device runs the script program of the network service added with the input parameter value, Get the output parameter value of the web service.

S510、第一设备将网络服务的输出参数值发送给网关设备。S510. The first device sends the output parameter value of the network service to the gateway device.

其中,S510可以实现为:第一设备将该网络服务的输出参数值通过API接口发送给网关设备。Wherein, S510 may be implemented as: the first device sends the output parameter value of the network service to the gateway device through the API interface.

可选的,网络设备可以将该网络服务的输出参数值发送给访问给网络服务的客户机,客户机将该网络服务的参数值呈现给用户。Optionally, the network device may send the output parameter value of the network service to the client computer accessing the network service, and the client computer presents the parameter value of the network service to the user.

可选的,编排网络服务时,在获取网络服务的逻辑图之前,本申请提供的辅助网络服务编排的方法还可以包括网络服务的基本信息设置。Optionally, when arranging a network service, before obtaining a logic diagram of the network service, the method for assisting the arrangement of the network service provided by the present application may also include basic information setting of the network service.

具体的,可以根据实际需求配置基本信息的设备内容,本申请对此不予具体限定。Specifically, the device content of the basic information may be configured according to actual needs, which is not specifically limited in this application.

示例性的,网络服务的基本信息可以包括:网络服务的名称、网络服务的编码、网络服务内容的简单描述、网络服务的责任人等信息。Exemplarily, the basic information of the network service may include: the name of the network service, the code of the network service, a brief description of the content of the network service, the person in charge of the network service, and other information.

实施例2Example 2

网络服务包括一个数据模型,实施例2提供一种辅助编排网络服务的方法,用于根据网络服务包括的一个数据模型辅助网络服务的编排,如图8所示,该方法主要包括:The network service includes a data model. Embodiment 2 provides a method for assisting in the arrangement of the network service, which is used to assist in the arrangement of the network service according to a data model included in the network service. As shown in FIG. 8 , the method mainly includes:

S801、第一设备添加网络服务的节点控件。S801. The first device adds a node control of a network service.

其中,S801中第一设备添加网络服务的节点控件的实现过程与S5011的实现类似,具体实现参考S5011,不再一一赘述。Wherein, the implementation process of adding the node control of the network service by the first device in S801 is similar to the implementation of S5011, and the specific implementation refers to S5011, and will not be repeated one by one.

S802、第一设备将该节点控件与网络服务包括的数据模型关联。S802. The first device associates the node control with a data model included in the network service.

其中,S802中第一设备将该节点控件与网络服务包括的数据模型关联的实现过程与S5012的实现类似,具体实现参考S5012,不再一一赘述。Wherein, in S802, the implementation process of the first device associating the node control with the data model included in the network service is similar to the implementation of S5012. For specific implementation, refer to S5012, and will not repeat them one by one.

S803、第一设备给该节点控件添加网络服务的输入参数和输出参数。S803. The first device adds input parameters and output parameters of the network service to the node control.

其中,S803中,第一设备给该节点控件添加网络服务的输入参数和输出参数的实现过程与S503的实现类似,具体实现参考S503,不再一一赘述。Wherein, in S803, the implementation process of the first device adding the input parameters and output parameters of the network service to the node control is similar to the implementation of S503. Refer to S503 for specific implementation, and details will not be repeated one by one.

对于实施例2也可以包括控件的移动、过滤条件的设置、脚本程序的转换、网络服务的发布,用户对网络服务的访问、网络服务的基本信息设置等过程,具体实现可以参考实施例1,不再一一赘述。Embodiment 2 may also include processes such as the movement of controls, the setting of filter conditions, the conversion of script programs, the release of network services, the user's access to network services, and the basic information settings of network services. For specific implementations, refer toembodiment 1. I won't repeat them one by one.

下面以编排一个用于查询员工工资的web服务为例,对本申请提供的辅助网络服务编排的方法进行详细的介绍。其中,该web服务至少包括数据模型employees、数据模型Pay。数据模型employees包括员工姓名和员工工号,数据模型Pay包括员工工号和员工工资。现需编排一个通过员工姓名可以查询员工工资的web服务。The method for assisting network service arrangement provided by this application is described in detail below by taking the arrangement of a web service for querying employee salary as an example. Wherein, the web service includes at least a data model employees and a data model Pay. The data model employees includes employee names and employee IDs, and the data model Pay includes employee IDs and employee wages. Now it is necessary to arrange a web service that can query the employee's salary through the employee's name.

首先,服务器响应于用户指令,打开服务编排界面,以进行web服务的编排。如图9所示,web服务的编排主要包括:服务设计、服务开发、服务测试和服务发布。其中,服务设计阶段可以包括:基本信息设置、编辑逻辑图、设置输入参数、设置输出参数以及设置过滤条件。First, the server opens the service orchestration interface in response to the user's instruction, so as to orchestrate the web service. As shown in Figure 9, the orchestration of web services mainly includes: service design, service development, service testing and service publishing. Wherein, the service design phase may include: setting basic information, editing logic diagrams, setting input parameters, setting output parameters, and setting filter conditions.

然后,用户在服务编排界面中输入所需编排的web服务的基本信息。具体的,如图9所示,“服务设计”下的横线表示目前处于服务设计阶段。“基本信息”上方圆圈中的“*”,用于表示此时web服务编排正处于服务设计的基本信息设置阶段。其中,web服务的基本信息设置可以包括该web服务的编码、中英文名称、中英文描述、责任人、所示服务域等信息的填写。如图9所示,用户在web服务的编码中输入“z001”,在该web服务的中文名称处输入“获取员工的工资”,在该web服务的英文名称处输入“Get Employees’Pay”,在该web服务的英文描述处输入“xxxxxx1”,在该web服务的中文描述处输入“xxxxxx2”,在该web服务的责任人处“王老三”,在该web服务的所属服务域处输入“AAAAA”。Then, the user inputs the basic information of the web service to be orchestrated in the service orchestration interface. Specifically, as shown in FIG. 9 , the horizontal line under "Service Design" indicates that it is currently in the service design stage. The "*" in the circle above "Basic Information" is used to indicate that the web service orchestration is currently in the basic information setting stage of service design. Wherein, the basic information setting of the web service may include the code of the web service, the name in Chinese and English, the description in Chinese and English, the person in charge, the displayed service domain and other information. As shown in Figure 9, the user enters "z001" in the code of the web service, enters "Get Employees' Pay" in the Chinese name of the web service, and enters "Get Employees'Pay" in the English name of the web service, Enter "xxxxxx1" in the English description of the web service, enter "xxxxxx2" in the Chinese description of the web service, enter "Wang Laosan" in the person in charge of the web service, and enter in the service domain of the web service "AAAAA".

用户可以通过点击图9所示的“保存”,将当前所填写的web服务的基本信息保存起来。点击“下一步”,则web服务编排进入“基本信息”的下一步,即“编辑逻辑图”阶段。The user can save the basic information of the web service currently filled in by clicking "Save" as shown in FIG. 9 . Click "Next", and the web service orchestration enters the next step of "Basic Information", that is, the stage of "Edit Logic Diagram".

示例A、通过用户的点击,单独添加节点控件的方式编辑逻辑图。Example A. Edit the logic diagram by adding node controls individually through the user's click.

如图10所示,“*”,用于表示此时web服务编排正处于“编辑逻辑图”阶段。该“编辑逻辑图”阶段,可以包括“添加节点控件”、“添加关系控件”、“搜索”、“路径推荐”、“移动”和“删除”功能。用户点击“添加节点控件”,则界面中显示如1001所示的用于添加节点控件的部分,用户根据提示信息“数据模型标识”输入“SJ005”;根据提示信息“节点控件标识”输入“JD001”,根据提示信息“节点控件名称”输入“employees”;点击“完成”,创建第一个节点控件如图11所示。As shown in Figure 10, "*" is used to indicate that the web service orchestration is in the stage of "editing logic diagram" at this time. The stage of "editing logic diagram" may include the functions of "add node control", "add relationship control", "search", "route recommendation", "move" and "delete". The user clicks "Add Node Control", and the part for adding a node control shown in 1001 is displayed in the interface. The user inputs "SJ005" according to the prompt information "Data Model ID"; according to the prompt information "Node Control ID", enters "JD001 ", enter "employees" according to the prompt message "Node Control Name"; click "Finish" to create the first node control, as shown in Figure 11.

点击图12中的“搜索”,则界面中显示如1201所示的用于搜索的部分,用户根据提示信息“数据模型标识”输入“SJ005”然后点击“确定”,服务器根据数据模型的标识“SJ005”,进行搜索,查询到与数据模型SJ005相关的数据模型以及与数据模型SJ005相关的关系。其中,与数据模型SJ005相关的数据模型包括“数据模型SJ008”以及“数据模型SJ009”。如图13中1301部分所示,其中,数据模型SJ008的名称为pay,数据模型SJ009的名称为abc。与数据模型SJ005相关的关系包括“关系a”和“关系b”。其中,SJ005与SJ008之间的关系的名称为a,SJ005与SJ009之间的关系的名称为b。用户通过点击勾选SJ008前的框,确定选择SJ008及关系a作为与SJ005连接的关系与数据模型。然后点击“确定”,生成图14所示的第二个节点控件和第一关系控件。其中,第二个节点控件的名称为“pay”,第二个节点控件的标识为“JD002”;第一关系控件的名称为“a”,第一关系控件的标识为“GXK001”。其中,第一节点控件与第二节点控件通过第一关系控件连接。Click "Search" in Figure 12, and the part used for searching as shown in 1201 is displayed in the interface. The user enters "SJ005" according to the prompt message "Data Model Identification" and then clicks "OK", and the server uses the data model identification " SJ005", to search, query the data model related to the data model SJ005 and the relationship related to the data model SJ005. Wherein, the data models related to the data model SJ005 include "data model SJ008" and "data model SJ009". As shown inpart 1301 in Figure 13, the name of the data model SJ008 is pay, and the name of the data model SJ009 is abc. The relationships related to the data model SJ005 include "relation a" and "relation b". Wherein, the name of the relationship between SJ005 and SJ008 is a, and the name of the relationship between SJ005 and SJ009 is b. By clicking and checking the box before SJ008, the user confirms to select SJ008 and relation a as the relation and data model connected with SJ005. Then click "OK" to generate the second node control and the first relationship control shown in Figure 14. Wherein, the name of the second node control is "pay", and the identification of the second node control is "JD002"; the name of the first relational control is "a", and the identification of the first relational control is "GXK001". Wherein, the first node control and the second node control are connected through the first relationship control.

示例B、通过推荐路径的方式自动编辑逻辑图。Example B. Automatically edit the logic diagram by recommending paths.

如图15所示,用户点击“路径推荐”,服务器的界面中显示如图15中1501部分所示,然后根据提示信息“起始数据模型”,输入“SJ005”,根据提示信息“终点数据模型”,输入“SJ008”,点击“搜索”,得到两个候选推荐路径,分别为路径1(employees-pay)和路径2(employees-abc-pay)。如图中1501所示,用户点击路径1后的“选择”,服务器根据路径1中的数据模型employees、数据模型employees以及关系a,自动生成节点控件和关系控件,如图14所示。As shown in Figure 15, the user clicks "Route Recommendation", and the server interface displayspart 1501 in Figure 15, and then enters "SJ005" according to the prompt information "Start Data Model", and according to the prompt information "End Data Model ", enter "SJ008", click "Search", and get two candidate recommended paths, path 1 (employees-pay) and path 2 (employees-abc-pay). As shown in 1501 in the figure, the user clicks "Select" afterpath 1, and the server automatically generates node controls and relationship controls according to the data model employees, data model employees, and relationship a inpath 1, as shown in Figure 14 .

可选的,编辑逻辑图的阶段,用户还可以通过点击界面中的“删除”,选择需要删除的对象(节点控件和/或关系控件),将选择的对象删除。用户还可以通过点击界面中的“移动”,选择需要移动的对象(节点控件和/或关系控件),将选择的对象移动。例如,在通过单击“删除”,然后选中节点“employees”后,则将该“employees”节点删除。同样的,用户可以通过点击保存”,可以将当前web服务的逻辑图保存起来。用户点击界面上的“下一步”,web服务编排进入“设置输入参数”。Optionally, at the stage of editing the logic diagram, the user can also click "Delete" in the interface to select the object to be deleted (node control and/or relationship control), and delete the selected object. The user can also click "Move" in the interface, select the object (node control and/or relationship control) to be moved, and move the selected object. For example, after selecting the node "employees" by clicking "Delete", the "employees" node is deleted. Similarly, the user can save the logic diagram of the current web service by clicking "Save". The user clicks "Next" on the interface, and the web service arrangement enters "Set Input Parameters".

可选的,若用户点击“上一步”,则web服务编排返回“基本信息”,用户可以进一步对该web服务的基本信息进行修改等操作。Optionally, if the user clicks "Back", the web service orchestration returns "basic information", and the user can further modify the basic information of the web service.

进入“设置输入参数”阶段后,用户点击“employees”节点,根据提示信息输入“员工姓名”。然后点击“下一步”,进入“设置输出参数”阶段。进入“设置输入参数”阶段后,用户点击“pay”节点,根据提示信息输入“员工工资”。然后点击“下一步”,进入“设置过滤条件”阶段。用户可以点击数据模型“Pay”,根据提示输入过滤条件“date>10月1日”。即仅将10月1日之后存储到该数据模型“pay”中的员工工资确定为该web服务中可查询的数据。After entering the stage of "setting input parameters", the user clicks on the "employees" node and enters the "employee name" according to the prompt information. Then click "Next" to enter the "Set Output Parameters" stage. After entering the stage of "setting input parameters", the user clicks on the "pay" node and enters "employee salary" according to the prompt information. Then click "Next" to enter the "Set filter criteria" stage. The user can click the data model "Pay" and enter the filter condition "date>October 1" according to the prompt. That is, only the employee salaries stored in the data model "pay" after October 1 are determined as data that can be queried in the web service.

用户可以点击“下一步”,web服务的编排进入“服务开发”阶段,在“服务开发”阶段,通过用户点击“生成脚本程序”服务器将服务编排界面显示的该web服务的结构图转换生成web服务的脚本程序。然后点击“下一步”,web服务的编排进入“服务测试”阶段,“服务测试”阶段主要用于对web服务进行功能验证。在执行功能验证时,如图16所示,在输入参数值中输入“张三”后,点击“运行”,则可根据该加入了输入参数值的web服务脚本得到的输出参数值,运行结果为:11月工资8000,12月工资8000。人工验证该脚本程序运行后所得到的输出结果正确。然后,点击“发布”,跳转到“服务发布”界面,进行该web服务的发布。使得用户可以通过任何一个客户机访问该web服务,获取所需要的员工工资。The user can click "Next", and the web service arrangement enters the "service development" stage. In the "service development" stage, the server converts the structure diagram of the web service displayed on the service arrangement interface to generate a web The script program for the service. Then click "Next", and the arrangement of the web service enters the "service test" stage, which is mainly used for functional verification of the web service. When performing function verification, as shown in Figure 16, after entering "Zhang San" in the input parameter value and clicking "Run", the output parameter value obtained according to the web service script with the input parameter value, the running result For: November salary 8000, December salary 8000. Manually verify that the output obtained after running the script program is correct. Then, click "publish" to jump to the "service publishing" interface to publish the web service. The user can access the web service through any client computer to obtain the required employee salary.

上述主要从辅助网络服务编排的装置工作原理的角度对本申请实施例提供的方案进行了介绍。可以理解的是,上述辅助网络服务编排的装置为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the solution provided by the embodiment of the present application from the perspective of the working principle of the device for assisting network service orchestration. It can be understood that, in order to realize the above-mentioned functions, the above-mentioned apparatus for assisting network service orchestration includes corresponding hardware structures and/or software modules for performing various functions. Those skilled in the art should easily realize that the present application can be implemented in the form of hardware or a combination of hardware and computer software in combination with the units and algorithm steps of each example described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.

本申请实施例可以根据上述方法示例辅助网络服务编排的装置进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the embodiment of the present application, the device for assisting network service orchestration may be divided into functional modules according to the above method example. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. It should be noted that the division of modules in the embodiment of the present application is schematic, and is only a logical function division, and there may be other division methods in actual implementation.

在采用对应各个功能划分各个功能模块的情况下,图17示出了上述实施例中所涉及的辅助网络服务编排的装置170的一种可能的结构示意图。该辅助网络服务编排的装置可以为服务器,也可以为服务器中的功能模块或者芯片,也可以为与服务器匹配使用的装置。如图17所示,辅助网络服务编排的装置170可以包括:显示单元1701、处理单元1702。显示单元1701用于执行图5中的过程S502;处理单元1702用于执行图5中的过程S503。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。In the case of dividing each functional module corresponding to each function, FIG. 17 shows a possible structural diagram of an apparatus 170 for assisting network service orchestration involved in the above-mentioned embodiment. The device for assisting network service orchestration may be a server, a functional module or a chip in the server, or a device matched with the server. As shown in FIG. 17 , the apparatus 170 for assisting network service orchestration may include: a display unit 1701 and a processing unit 1702 . The display unit 1701 is configured to execute the process S502 in FIG. 5 ; the processing unit 1702 is configured to execute the process S503 in FIG. 5 . Wherein, all relevant content of each step involved in the above-mentioned method embodiment can be referred to the function description of the corresponding function module, and will not be repeated here.

进一步的,如图18所示,辅助网络服务编排的装置170还可以包括第一关联单元1703、第二关联单元1704、第三关联单元1705、搜索单元1706、推荐单元1707、第一发送单元1708、第一接收单元1709、移动单元1710、转换单元1711、发布单元1712、第二接收单元1713、运行单元1714和第二发送单元1715。其中,第一关联单元1703用于执行图5中的过程S501中的相关步骤;第二关联单元1704用于执行图5中的过程S501中的相关步骤;第三关联单元1705用于执行图5中的过程S501中的相关步骤;搜索单元1706用于执行图5中的过程S501中的相关步骤;推荐单元1707用于执行图5中的过程S501中的相关步骤;第一发送单元1708用于执行图5中的过程S501中的相关步骤;第一接收单元1709用于执行图5中的过程S501中的相关步骤;移动单元1710用于执行图5中的过程S504;转换单元1711用于执行图5中的过程S506;发布单元1712用于执行图5中的过程S507;第二接收单元1713用于执行图5中的过程S508;运行单元1714用于执行图5中的过程S509;第二发送单元1715用于执行图5中的过程S510。Further, as shown in FIG. 18 , the apparatus 170 for assisting network service orchestration may further include a first associating unit 1703 , a second associating unit 1704 , a third associating unit 1705 , a searching unit 1706 , a recommending unit 1707 , and a first sending unit 1708 , the first receiving unit 1709 , the moving unit 1710 , the converting unit 1711 , the publishing unit 1712 , the second receiving unit 1713 , the running unit 1714 and the second sending unit 1715 . Wherein, the first associating unit 1703 is used to execute the related steps in the process S501 in FIG. 5; the second associating unit 1704 is used to execute the related steps in the process S501 in FIG. Relevant steps in the process S501 in FIG. 5; the search unit 1706 is used to perform the relevant steps in the process S501 in FIG. 5; the recommendation unit 1707 is used to perform the relevant steps in the process S501 in FIG. Perform the relevant steps in the process S501 in Figure 5; the first receiving unit 1709 is used to perform the relevant steps in the process S501 in Figure 5; the mobile unit 1710 is used to perform the process S504 in Figure 5; the conversion unit 1711 is used to perform Process S506 in FIG. 5; issuing unit 1712 is used to execute process S507 in FIG. 5; second receiving unit 1713 is used to execute process S508 in FIG. The sending unit 1715 is configured to execute the process S510 in FIG. 5 .

在采用集成的单元的情况下,图19示出了上述实施例中所涉及的服务器190的一种可能的结构示意图。该服务器190用于实现本申请提供的辅助网络服务编排的方法。如图19所示,服务器190可以包括:处理模块1901、通信模块1902。处理模块1901用于对服务器190的动作进行控制管理。例如,处理模块1901用于执行图5中的S501至S510,或者,执行图8中的过程S801至S803。通信模块1902用于支持服务器190与其他单元通信。服务器190还可以包括存储模块1903,用于存储服务器190的程序代码和数据;服务器190还可以包括显示模块1904,用于显示网络服务的逻辑图。In the case of using an integrated unit, FIG. 19 shows a possible structural diagram of the server 190 involved in the above embodiment. The server 190 is used to realize the method for assisting network service arrangement provided by this application. As shown in FIG. 19 , the server 190 may include: a processing module 1901 and a communication module 1902 . The processing module 1901 is used to control and manage the actions of the server 190 . For example, the processing module 1901 is configured to execute steps S501 to S510 in FIG. 5 , or execute processes S801 to S803 in FIG. 8 . The communication module 1902 is used to support the server 190 to communicate with other units. The server 190 may also include a storage module 1903 for storing program codes and data of the server 190; the server 190 may also include a display module 1904 for displaying a logic diagram of network services.

其中,处理模块1901可以为图4所示的电子设备40的实体结构中的处理器401,可以是处理器或控制器。例如可以是CPU,通用处理器,DSP,ASIC,FPGA或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理模块1901也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信模块1902可以为图4所示的电子设备40的实体结构中的收发器403,通信模块1902可以是通信端口,或者可以是收发器、收发电路或通信接口等。或者,上述通信接口可以通过上述具有收发功能的元件,实现与其他设备的通信。上述具有收发功能的元件可以由天线和/或射频装置实现。存储模块1903可以是图4所示的电子设备40的实体结构中的存储器402;显示模块1904可以是图4所示的电子设备40的实体结构中的显示器404。Wherein, the processing module 1901 may be theprocessor 401 in the physical structure of theelectronic device 40 shown in FIG. 4 , and may be a processor or a controller. For example, it may be a CPU, a general processor, DSP, ASIC, FPGA or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processing module 1901 may also be a combination that implements computing functions, for example, a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module 1902 may be thetransceiver 403 in the physical structure of theelectronic device 40 shown in FIG. 4 , and the communication module 1902 may be a communication port, or may be a transceiver, a transceiver circuit, or a communication interface. Alternatively, the above-mentioned communication interface may realize communication with other devices through the above-mentioned components having the function of sending and receiving. The above-mentioned elements having the function of sending and receiving may be realized by an antenna and/or a radio frequency device. The storage module 1903 may be thememory 402 in the physical structure of theelectronic device 40 shown in FIG. 4 ; the display module 1904 may be thedisplay 404 in the physical structure of theelectronic device 40 shown in FIG. 4 .

当处理模块1901为处理器,通信模块1902为收发器,存储模块1903为存储器,显示模块1904为显示器时,本申请实施例图19所涉及的服务器190可以为图4所示的电子设备40。When the processing module 1901 is a processor, the communication module 1902 is a transceiver, the storage module 1903 is a memory, and the display module 1904 is a display, the server 190 involved in FIG. 19 in the embodiment of the present application may be theelectronic device 40 shown in FIG. 4 .

如前述,本申请实施例提供的辅助网络服务编排的装置170或服务器190可以用于实施上述本申请各实施例实现的方法中的功能,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请各实施例。As mentioned above, the device 170 or server 190 for assisting network service orchestration provided by the embodiment of the present application can be used to implement the functions in the methods implemented by the above-mentioned embodiments of the present application. For the part, the specific technical details are not disclosed, please refer to the various embodiments of the present application.

作为本实施例的另一种形式,提供一种计算机可读存储介质,其上存储有指令,该指令被执行时执行上述方法实施例中的辅助网络服务编排的方法。As another form of this embodiment, a computer-readable storage medium is provided, on which instructions are stored, and when the instructions are executed, the method for assisting network service orchestration in the above method embodiments is executed.

作为本实施例的另一种形式,提供一种包含指令的计算机程序产品,当该计算机程序产品在计算机上运行时,使得该计算机执行时执行上述方法实施例中的辅助网络服务编排的方法。As another form of this embodiment, a computer program product containing instructions is provided, and when the computer program product is run on a computer, the computer is executed to execute the method for assisting network service orchestration in the above method embodiments.

本申请实施例再提供一种芯片系统,该芯片系统包括处理器,用于实现本发明实施例的技术方法。在一种可能的设计中,该芯片系统还包括存储器,用于保存本发明实施例必要的程序指令和/或数据。在一种可能的设计中,该芯片系统还包括存储器,用于处理器调用存储器中存储的应用程序代码。该芯片系统,可以由一个或多个芯片构成,也可以包含芯片和其他分立器件,本申请实施例对此不作具体限定。An embodiment of the present application further provides a chip system, where the chip system includes a processor, configured to implement the technical method of the embodiment of the present invention. In a possible design, the system-on-a-chip further includes a memory for storing necessary program instructions and/or data of the embodiments of the present invention. In a possible design, the system-on-a-chip further includes a memory, which is used for the processor to call the application program code stored in the memory. The system-on-a-chip may consist of one or more chips, and may also include chips and other discrete devices, which is not specifically limited in this embodiment of the present application.

Claims (33)

CN202010648613.1A2020-07-072020-07-07Method, device and system for assisting network service arrangementActiveCN113923250B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202010648613.1ACN113923250B (en)2020-07-072020-07-07Method, device and system for assisting network service arrangement

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202010648613.1ACN113923250B (en)2020-07-072020-07-07Method, device and system for assisting network service arrangement

Publications (2)

Publication NumberPublication Date
CN113923250A CN113923250A (en)2022-01-11
CN113923250Btrue CN113923250B (en)2023-04-07

Family

ID=79231549

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010648613.1AActiveCN113923250B (en)2020-07-072020-07-07Method, device and system for assisting network service arrangement

Country Status (1)

CountryLink
CN (1)CN113923250B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114518908B (en)*2022-02-172024-03-22杭州网易云音乐科技有限公司Service orchestration method, medium, device and computing equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1636200A (en)*2002-01-112005-07-06诺基亚有限公司System and method for facilitating access to network-based services

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
AU2004264582B2 (en)*2003-06-052010-05-13Intertrust Technologies CorporationInteroperable systems and methods for peer-to-peer service orchestration
US9965263B2 (en)*2014-06-022018-05-08Gogrid, LLCCloud orchestration engine
CN107133049A (en)*2017-05-232017-09-05中国联合网络通信集团有限公司The treating method and apparatus of service based on communication
CN110618810A (en)*2019-06-272019-12-27武汉大学Metadata-driven diversified service mixed arrangement method
CN110532020B (en)*2019-09-042023-12-05中国工商银行股份有限公司Data processing method, device and system for micro-service arrangement
CN111078315B (en)*2019-12-122020-12-08拉扎斯网络科技(上海)有限公司 Microservice orchestration, execution method and system, architecture, device, storage medium
CN111142867B (en)*2019-12-312024-04-02谷云科技(广州)有限责任公司Service visual arrangement system and method under micro service architecture
CN111274000B (en)*2020-01-212023-01-10苏州浪潮智能科技有限公司 A service orchestration method, device, electronic equipment, and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1636200A (en)*2002-01-112005-07-06诺基亚有限公司System and method for facilitating access to network-based services

Also Published As

Publication numberPublication date
CN113923250A (en)2022-01-11

Similar Documents

PublicationPublication DateTitle
AU2018102167A4 (en)Building applications for configuring processes
US11288319B1 (en)Generating trending natural language request recommendations
CN108959631B (en) Method and apparatus for querying information
US20180218045A1 (en)Multi-phased data execution in a data processing system
US8589336B1 (en)Framework for automated storage processes and flexible workflow
CN106130899B (en) A method and device for generating service paths
US11003691B2 (en)Determining affinities for data set summarizations
JP5192634B2 (en) Declaration order report parameterization
US11074283B2 (en)Linking data set summarizations using affinities
US20150127688A1 (en)Facilitating discovery and re-use of information constructs
JP6582819B2 (en) Database linkage system and database linkage program
JP2006190261A (en)Prescribed navigation using topology metadata and navigation path
CN114217842B (en) A universal visual resource directory configuration method and system
CN110619002A (en)Data processing method, device and storage medium
CN106295220A (en)A kind of medical data management method, device and Medically Oriented Data System
CN117573758A (en)Data stream arrangement method based on BI platform
CN108388576B (en)Method and system for interactively generating map
CN112015696B (en)Data access method, data relationship setting method, data access device, data relationship setting device and storage medium
CN114297443B (en)Processing method, device, equipment and storage medium of graph data query statement
CN113923250B (en)Method, device and system for assisting network service arrangement
CN103617214B (en)CIM (common information model) path query method and device
CN108369590A (en)For commending system, the devices and methods therefor for instructing Self-Service to analyze
CN116108235B (en)Path acquisition method and device for tree structure and processing equipment
CN114564854B (en)Operation method and equipment of data node supporting FMEA bidirectional relationship tree
CN113706209B (en)Operation data processing method and related device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp