[go: up one dir, main page]

CN112487163B - Method and device for executing automated process and obtaining interface data thereof - Google Patents

Method and device for executing automated process and obtaining interface data thereof Download PDF

Info

Publication number
CN112487163B
CN112487163B CN202011376629.8A CN202011376629A CN112487163B CN 112487163 B CN112487163 B CN 112487163B CN 202011376629 A CN202011376629 A CN 202011376629A CN 112487163 B CN112487163 B CN 112487163B
Authority
CN
China
Prior art keywords
data
interface
configuration information
parameter
input parameter
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
CN202011376629.8A
Other languages
Chinese (zh)
Other versions
CN112487163A (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.)
Guangzhou Pinwei Software Co Ltd
Original Assignee
Guangzhou Pinwei Software 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 Guangzhou Pinwei Software Co Ltd filed Critical Guangzhou Pinwei Software Co Ltd
Priority to CN202011376629.8A priority Critical patent/CN112487163B/en
Publication of CN112487163A publication Critical patent/CN112487163A/en
Application granted granted Critical
Publication of CN112487163B publication Critical patent/CN112487163B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Artificial Intelligence (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to an execution method of an automatic process, and an acquisition method, a device, a computer device and a storage medium of interface data thereof, wherein the acquisition method of the interface data comprises the following steps: identifying a node to be configured in an automatic process and a target interface corresponding to the node to be configured; acquiring interface configuration information of a node to be configured, wherein the interface configuration information comprises parameter entering configuration information and parameter returning configuration information of a target interface, the parameter entering configuration information is used for configuring parameter entering data of the target interface, and the parameter returning configuration information is used for configuring parameter returning data of the target interface according to preset rule information; when the automatic flow flows to the node to be configured, determining the parameter entering data of the target interface according to the parameter entering configuration information, and reading the parameter returning data from the target interface according to the parameter entering data; and configuring the return parameter data according to the return parameter configuration information to obtain interface data of the node to be configured. The method can reduce the development workload of the automatic process so as to improve the development efficiency of the automatic process.

Description

自动化流程的执行方法及其接口数据的获取方法、装置Method and device for executing automated process and obtaining interface data thereof

技术领域Technical Field

本申请涉及自动化流程的信息处理技术领域,特别是涉及一种自动化流程的执行方法及其接口数据的获取方法、装置、计算机设备和存储介质。The present application relates to the technical field of information processing of automated processes, and in particular to a method for executing automated processes and a method, device, computer equipment and storage medium for acquiring interface data thereof.

背景技术Background technique

目前智能客服机器人的任务引擎的配置,通常都是基于对话流。通过用户咨询的一些问题的关键字匹配用户的问题,然后根据不同的用户的问题走向不同的自动化流程。此时,在自动化流程中,若流程节点需要获取用户数据,都是需要临时开发代码,创建接口任务以获取用户数据。即便是可以从一些已有的接口中读取数据,但流程节点需要到多个字段组合时,都需要临时开发代码对接对应的逻辑。因此,导致自动化流程的开发工作量大,开发效率低。At present, the configuration of the task engine of intelligent customer service robots is usually based on dialogue flow. The user's questions are matched by keywords of some questions asked by the user, and then different automation processes are carried out according to different user questions. At this time, in the automation process, if the process node needs to obtain user data, it is necessary to temporarily develop code and create an interface task to obtain user data. Even if data can be read from some existing interfaces, when the process node needs to combine multiple fields, it is necessary to temporarily develop code to connect to the corresponding logic. Therefore, the development workload of the automation process is large and the development efficiency is low.

发明内容Summary of the invention

基于此,有必要针对上述技术问题,提供一种能够减少自动化流程的开发工作量以提高自动化流程的开发效率的自动化流程的执行方法及其接口数据的获取方法、装置、计算机设备和存储介质。Based on this, it is necessary to provide an automated process execution method and an interface data acquisition method, device, computer equipment and storage medium that can reduce the development workload of the automated process to improve the development efficiency of the automated process in order to address the above technical problems.

一种接口数据的获取方法,该方法包括:识别自动化流程中的待配置节点以及待配置节点对应的目标接口;获取待配置节点的接口配置信息,接口配置信息包括目标接口的入参配置信息和返参配置信息,入参配置信息用于配置目标接口的入参数据,返参配置信息用于根据预设规则信息对目标接口的返参数据进行配置;当自动化流程流转到待配置节点时,根据入参配置信息确定目标接口的入参数据,根据入参数据从目标接口读取返参数据;根据返参配置信息对返参数据进行配置,得到待配置节点的接口数据。A method for acquiring interface data, the method comprising: identifying a node to be configured in an automated process and a target interface corresponding to the node to be configured; acquiring interface configuration information of the node to be configured, the interface configuration information comprising input parameter configuration information and return parameter configuration information of the target interface, the input parameter configuration information being used to configure the input parameter data of the target interface, and the return parameter configuration information being used to configure the return parameter data of the target interface according to preset rule information; when the automated process flows to the node to be configured, determining the input parameter data of the target interface according to the input parameter configuration information, and reading return parameter data from the target interface according to the input parameter data; configuring the return parameter data according to the return parameter configuration information, and obtaining the interface data of the node to be configured.

在其中一个实施例中,目标接口为多个,多个目标接口中包括第一接口和第二接口,第一接口与第二接口串行,入参配置信息用于配置第一接口的入参子数据并配置第一接口的第一返参子数据作为第二接口的入参子数据;根据入参配置信息确定目标接口的入参数据,根据入参数据从目标接口读取返参数据,包括:根据入参配置信息确定第一接口的入参子数据,根据第一接口的入参子数据从第一接口中读取第一接口的第一返参子数据,将第一接口的第一返参子数据作为第二接口的入参子数据,根据第二接口的入参子数据从第二接口中读取第二接口的返参子数据,返参数据包括第二接口的返参子数据。In one embodiment, there are multiple target interfaces, including a first interface and a second interface, the first interface and the second interface are serially connected, and the input parameter configuration information is used to configure the input parameter sub-data of the first interface and configure the first return parameter sub-data of the first interface as the input parameter sub-data of the second interface; the input parameter data of the target interface is determined according to the input parameter configuration information, and the return parameter data is read from the target interface according to the input parameter data, including: determining the input parameter sub-data of the first interface according to the input parameter configuration information, reading the first return parameter sub-data of the first interface from the first interface according to the input parameter sub-data of the first interface, using the first return parameter sub-data of the first interface as the input parameter sub-data of the second interface, reading the return parameter sub-data of the second interface from the second interface according to the input parameter sub-data of the second interface, and the return parameter data includes the return parameter sub-data of the second interface.

优选地,一种接口数据的获取方法还包括:根据第一接口的入参子数据从第一接口中读取第一接口的第二返参子数据,返参数据包括第一接口的第二返参子数据。Preferably, a method for acquiring interface data also includes: reading second return parameter sub-data of the first interface from the first interface according to the input parameter sub-data of the first interface, and the return parameter data includes the second return parameter sub-data of the first interface.

在其中一个实施例中,目标接口为多个,多个目标接口中包括第三接口和第四接口,第三接口与第四接口并行,入参配置信息用于配置第三接口的入参子数据以及配置第四接口的入参子数据;根据入参配置信息确定目标接口的入参数据,根据入参数据从目标接口读取返参数据,包括:根据入参配置信息确定第三接口的入参子数据以及第四接口的入参子数据,根据第三接口的入参子数据从第三接口读取第三接口的返参子数据,根据第四接口的入参子数据从第四接口读取第四接口的返参子数据,返参数据包括第三接口的返参子数据和第四接口的返参子数据。In one embodiment, there are multiple target interfaces, including a third interface and a fourth interface, the third interface is parallel to the fourth interface, and the input parameter configuration information is used to configure the input parameter sub-data of the third interface and the input parameter sub-data of the fourth interface; the input parameter data of the target interface is determined according to the input parameter configuration information, and return parameter data is read from the target interface according to the input parameter data, including: determining the input parameter sub-data of the third interface and the input parameter sub-data of the fourth interface according to the input parameter configuration information, reading the return parameter sub-data of the third interface from the third interface according to the input parameter sub-data of the third interface, and reading the return parameter sub-data of the fourth interface from the fourth interface according to the input parameter sub-data of the fourth interface, and the return parameter data includes the return parameter sub-data of the third interface and the return parameter sub-data of the fourth interface.

在其中一个实施例中,一种接口数据的获取方法还包括:采用FreeMarker模板引擎配置返参配置信息中的预设规则信息,预设规则信息包括逻辑运算规则;根据返参配置信息对返参数据进行配置,得到待配置节点的接口数据,包括:采用逻辑运算规则并通过FreeMarker模板引擎对返参数据进行逻辑运算,逻辑运算后得到结果数据,接口数据包括结果数据。In one of the embodiments, a method for obtaining interface data also includes: using a FreeMarker template engine to configure preset rule information in the return parameter configuration information, the preset rule information includes logical operation rules; configuring the return parameter data according to the return parameter configuration information to obtain interface data of the node to be configured, including: using logical operation rules and performing logical operations on the return parameter data through the FreeMarker template engine, and obtaining result data after the logical operation, and the interface data includes the result data.

优选地,预设规则信息还包括动态解析规则和动态赋值规则,采用逻辑运算规则并通过FreeMarker模板引擎对返参数据进行逻辑运算,逻辑运算后得到结果数据,包括:采用动态解析规则并通过FreeMarker模板引擎对返参数据进行动态解析,得到解析数据;采用动态赋值规则并通过FreeMarker模板引擎将解析数据赋值到指定变量,得到指定变量的变量值;采用逻辑运算规则并通过FreeMarker模板引擎对变量值进行逻辑运算,逻辑运算后得到结果数据。Preferably, the preset rule information also includes dynamic parsing rules and dynamic assignment rules, adopts logical operation rules and performs logical operation on the returned parameter data through the FreeMarker template engine, and obtains result data after the logical operation, including: adopting dynamic parsing rules and dynamically parsing the returned parameter data through the FreeMarker template engine to obtain parsed data; adopting dynamic assignment rules and assigning the parsed data to the specified variable through the FreeMarker template engine to obtain the variable value of the specified variable; adopting logical operation rules and performing logical operation on the variable value through the FreeMarker template engine to obtain the result data after the logical operation.

在其中一个实施例中,根据返参配置信息对返参数据进行配置,得到待配置节点的接口数据,包括:获取返参配置信息的预设规则信息;根据预设规则信息对目标接口的返参数据进行配置,配置后的返参数据作为待处理数据;获取待配置节点的组件模板;根据待处理数据以及组件模板生成组件数据,接口数据包括组件数据。In one of the embodiments, the return parameter data is configured according to the return parameter configuration information to obtain the interface data of the node to be configured, including: obtaining the preset rule information of the return parameter configuration information; configuring the return parameter data of the target interface according to the preset rule information, and using the configured return parameter data as the data to be processed; obtaining the component template of the node to be configured; generating component data according to the data to be processed and the component template, and the interface data includes the component data.

优选地,组件模板包括选项卡组件模板和/或回复组件模板,根据待处理数据以及组件模板生成组件数据,包括:从待处理数据中筛选选项卡组件模板的第一数据,根据第一数据和选项卡组件模板生成选项卡组件数据,组件数据包括选项卡组件数据;和/或,从待处理数据中筛选回复组件模板的第二数据,根据第二数据和回复组件模板生成回复组件数据,组件数据包括回复组件数据。Preferably, the component template includes a tab component template and/or a reply component template, and generating component data based on the data to be processed and the component template includes: filtering first data of the tab component template from the data to be processed, generating tab component data based on the first data and the tab component template, wherein the component data includes the tab component data; and/or filtering second data of the reply component template from the data to be processed, generating reply component data based on the second data and the reply component template, wherein the component data includes the reply component data.

在其中一个实施例中,一种接口数据的获取方法还包括:当组件数据包括选项卡组件数据时,获取待配置节点的选项卡模板;从组件数据中获取选项卡组件数据,根据选项卡组件数据与选项卡模板生成选项卡数据,接口数据包含选项卡数据。In one of the embodiments, a method for obtaining interface data also includes: when the component data includes tab component data, obtaining a tab template of the node to be configured; obtaining the tab component data from the component data, generating tab data based on the tab component data and the tab template, and the interface data includes the tab data.

一种自动化流程的执行方法,该方法包括:接收任务流程的触发信息,根据触发信息启动自动化流程;当自动化流程流转到待配置节点时,识别待配置节点对应的目标接口;获取待配置节点的接口配置信息,接口配置信息包括目标接口的入参配置信息和返参配置信息,入参配置信息用于配置目标接口的入参数据,返参配置信息用于根据预设规则信息对目标接口的返参数据进行配置;根据入参配置信息确定目标接口的入参数据,根据入参数据从目标接口读取返参数据;根据返参配置信息对返参数据进行配置,得到待配置节点的接口数据;根据接口数据执行自动化流程中待配置节点的任务。A method for executing an automated process, the method comprising: receiving trigger information of a task process, and starting the automated process according to the trigger information; when the automated process flows to a node to be configured, identifying a target interface corresponding to the node to be configured; obtaining interface configuration information of the node to be configured, the interface configuration information comprising input parameter configuration information and return parameter configuration information of the target interface, the input parameter configuration information being used to configure input parameter data of the target interface, and the return parameter configuration information being used to configure return parameter data of the target interface according to preset rule information; determining input parameter data of the target interface according to the input parameter configuration information, and reading return parameter data from the target interface according to the input parameter data; configuring the return parameter data according to the return parameter configuration information, and obtaining interface data of the node to be configured; and executing the task of the node to be configured in the automated process according to the interface data.

一种接口数据的获取装置,该装置包括:识别模块,用于识别自动化流程中的待配置节点以及待配置节点对应的目标接口;获取模块,用于获取待配置节点的接口配置信息,接口配置信息包括目标接口的入参配置信息和返参配置信息,入参配置信息用于配置目标接口的入参数据,返参配置信息用于根据预设规则信息对目标接口的返参数据进行配置;读取模块,用于当自动化流程流转到待配置节点时,根据入参配置信息确定目标接口的入参数据,根据入参数据从目标接口读取返参数据;配置模块,用于根据返参配置信息对返参数据进行配置,得到待配置节点的接口数据。A device for acquiring interface data, the device comprising: an identification module, used for identifying a node to be configured in an automated process and a target interface corresponding to the node to be configured; an acquisition module, used for acquiring interface configuration information of the node to be configured, the interface configuration information comprising input parameter configuration information and return parameter configuration information of the target interface, the input parameter configuration information being used for configuring the input parameter data of the target interface, and the return parameter configuration information being used for configuring the return parameter data of the target interface according to preset rule information; a reading module, used for determining the input parameter data of the target interface according to the input parameter configuration information when the automated process flows to the node to be configured, and reading return parameter data from the target interface according to the input parameter data; and a configuration module, used for configuring the return parameter data according to the return parameter configuration information, and obtaining the interface data of the node to be configured.

一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述任一实施例方法的步骤。A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of any of the above-mentioned embodiments are implemented.

一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述任一实施例方法的步骤。A computer-readable storage medium stores a computer program, which implements the steps of any of the above-mentioned method embodiments when the computer program is executed by a processor.

上述自动化流程的执行方法及其接口数据的获取方法、装置、计算机设备和存储介质,流程引擎识别自动化流程中的待配置节点以及待配置节点对应的目标接口,获取待配置节点的接口配置信息,接口配置信息包括目标接口的入参配置信息和返参配置信息,入参配置信息用于配置目标接口的入参数据,返参配置信息用于根据预设规则信息对目标接口的返参数据进行配置;当自动化流程流转到待配置节点时,根据入参配置信息确定目标接口的入参数据,根据入参数据从目标接口读取返参数据,进而根据返参配置信息对返参数据进行配置,得到待配置节点的接口数据。因此,流程引擎在执行自动化流程且自动化流程流转到待配置节点时,直接根据接口配置信息中目标接口的入参配置信息和返参配置信息来获取目标接口的接口数据,从而待配置节点能够根据获取到的接口数据执行本节点的任务。通过信息配置的方式控制目标接口的入参和返参,无需针对待配置节点的数据获取开发对应的代码,节省了自动化流程的开发工作量,提高自动化流程的开发效率。The execution method of the above-mentioned automated process and the method, device, computer equipment and storage medium for obtaining interface data thereof, the process engine identifies the node to be configured in the automated process and the target interface corresponding to the node to be configured, obtains the interface configuration information of the node to be configured, the interface configuration information includes the input parameter configuration information and the return parameter configuration information of the target interface, the input parameter configuration information is used to configure the input parameter data of the target interface, and the return parameter configuration information is used to configure the return parameter data of the target interface according to the preset rule information; when the automated process flows to the node to be configured, the input parameter data of the target interface is determined according to the input parameter configuration information, the return parameter data is read from the target interface according to the input parameter data, and then the return parameter data is configured according to the return parameter configuration information to obtain the interface data of the node to be configured. Therefore, when the process engine executes the automated process and the automated process flows to the node to be configured, the interface data of the target interface is directly obtained according to the input parameter configuration information and the return parameter configuration information of the target interface in the interface configuration information, so that the node to be configured can perform the task of this node according to the acquired interface data. By controlling the input and return parameters of the target interface through information configuration, there is no need to develop corresponding code for data acquisition of the node to be configured, which saves the development workload of the automation process and improves the development efficiency of the automation process.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为一个实施例中一种接口数据的获取方法的应用环境图;FIG1 is an application environment diagram of a method for acquiring interface data in one embodiment;

图2为一个实施例中一种接口数据的获取方法的流程示意图;FIG2 is a schematic diagram of a flow chart of a method for acquiring interface data in one embodiment;

图3为一个实施例中一种自动化流程的执行方法的流程示意图;FIG3 is a schematic diagram of a flow chart of a method for executing an automated process in one embodiment;

图4为一个实施例中对话流模块设计六大流程节点的界面显示图;FIG4 is an interface display diagram of the six major process nodes designed by the dialog flow module in one embodiment;

图5为一个实施例中流程引擎获取接口数据的流程示意图;FIG5 is a schematic diagram of a process flow of a process engine acquiring interface data in one embodiment;

图6为一个实施例中选项卡数据的界面显示图;FIG6 is an interface display diagram of tab data in one embodiment;

图7为一个实施例中回复组件的组件数据的界面显示图;FIG7 is an interface display diagram of component data of a reply component in one embodiment;

图8为一个实施例中流程引擎执行各个流程节点的任务的流程示意图;FIG8 is a schematic diagram of a process flow of a process engine executing tasks of each process node in one embodiment;

图9为一个实施例中一种接口数据的获取装置的结构框图;FIG9 is a structural block diagram of a device for acquiring interface data in one embodiment;

图10为一个实施例中计算机设备的内部结构图。FIG. 10 is a diagram showing the internal structure of a computer device in one embodiment.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

本申请提供的一种接口数据的获取方法,应用于如图1所示的应用环境中。如图1所示,流程引擎用于执行自动化流程,自动化流程中包括多个流程节点,各流程节点用于执行本节点的任务。具体地,在执行自动化流程过程中,流程引擎识别自动化流程中的待配置节点以及待配置节点对应的目标接口。其中,待配置节点为自动化流程中的任一流程节点,流程引擎通过目标接口从第三方数据平台读取数据,以根据读取到的数据执行待配置节点的任务。进一步地,流程引擎从数据库中获取待配置节点的接口配置信息,接口配置信息包括目标接口的入参配置信息和返参配置信息,入参配置信息用于配置目标接口的入参数据,返参配置信息用于根据预设规则信息对目标接口的返参数据进行配置。当流程引擎中的自动化流程流转到待配置节点时,根据入参配置信息确定目标接口的入参数据,根据入参数据从目标接口读取返参数据。返参数据为流程引擎从第三方数据平台中读取到的数据。进而,流程引擎根据返参配置信息对返参数据进行配置,得到待配置节点的接口数据。流程引擎可以根据待配置节点的接口数据执行待配置节点的任务。因此,通过信息配置的方式控制目标接口的入参和返参,无需针对待配置节点的数据获取开发对应的代码,节省了自动化流程的开发工作量,提高自动化流程的开发效率。The present application provides a method for obtaining interface data, which is applied in an application environment as shown in Figure 1. As shown in Figure 1, the process engine is used to execute an automated process, and the automated process includes multiple process nodes, and each process node is used to execute the task of this node. Specifically, in the process of executing the automated process, the process engine identifies the node to be configured in the automated process and the target interface corresponding to the node to be configured. Among them, the node to be configured is any process node in the automated process, and the process engine reads data from a third-party data platform through a target interface to execute the task of the node to be configured according to the read data. Further, the process engine obtains the interface configuration information of the node to be configured from the database, and the interface configuration information includes the input parameter configuration information and the return parameter configuration information of the target interface, the input parameter configuration information is used to configure the input parameter data of the target interface, and the return parameter configuration information is used to configure the return parameter data of the target interface according to the preset rule information. When the automated process in the process engine flows to the node to be configured, the input parameter data of the target interface is determined according to the input parameter configuration information, and the return parameter data is read from the target interface according to the input parameter data. The return parameter data is the data read by the process engine from the third-party data platform. Then, the process engine configures the return parameter data according to the return parameter configuration information to obtain the interface data of the node to be configured. The process engine can execute the tasks of the nodes to be configured according to the interface data of the nodes to be configured. Therefore, by controlling the input and return parameters of the target interface through information configuration, there is no need to develop corresponding code for data acquisition of the nodes to be configured, which saves the development workload of the automation process and improves the development efficiency of the automation process.

在一个实施例中,如图2所示,提供了一种接口数据的获取方法,以该方法应用于图1中的流程引擎为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 2 , a method for obtaining interface data is provided, and the method is applied to the process engine in FIG. 1 as an example for explanation, including the following steps:

S102,识别自动化流程中的待配置节点以及待配置节点对应的目标接口。S102, identifying a node to be configured in an automation process and a target interface corresponding to the node to be configured.

一般地,设置流程引擎中各流程节点。流程引擎按照各流程节点执行自动化流程。流程引擎在执行自动化流程时,根据任一流程节点的任务需求,可以调用对外接口以读取对应平台的接口数据,从而根据读取到的接口数据执行本流程节点的任务。Generally, each process node in the process engine is set. The process engine executes the automated process according to each process node. When executing the automated process, the process engine can call the external interface to read the interface data of the corresponding platform according to the task requirements of any process node, so as to execute the task of this process node according to the read interface data.

在本实施例中,根据自动化流程中各流程节点的任务处理需求确定出需要对外获取接口数据的流程节点,将该流程节点设置为待配置节点。此外,将待配置节点对外调用的接口设置为待配置节点对应的目标接口。将待配置节点与目标接口关联,并存储关联信息。当流程引擎执行自动化流程时,流程引擎识别出待配置节点以及该待配置节点对应的目标接口。可以是,流程引擎识别出待配置节点后,根据待配置节点与目标接口的关联信息识别出待配置节点的目标接口。In this embodiment, the process node that needs to obtain interface data externally is determined according to the task processing requirements of each process node in the automation process, and the process node is set as the node to be configured. In addition, the interface called externally by the node to be configured is set to the target interface corresponding to the node to be configured. The node to be configured is associated with the target interface, and the associated information is stored. When the process engine executes the automation process, the process engine identifies the node to be configured and the target interface corresponding to the node to be configured. It can be that after the process engine identifies the node to be configured, it identifies the target interface of the node to be configured based on the association information between the node to be configured and the target interface.

S104,获取待配置节点的接口配置信息,接口配置信息包括目标接口的入参配置信息和返参配置信息,入参配置信息用于配置目标接口的入参数据,返参配置信息用于根据预设规则信息对目标接口的返参数据进行配置。S104, obtaining the interface configuration information of the node to be configured, the interface configuration information including the input parameter configuration information and the return parameter configuration information of the target interface, the input parameter configuration information is used to configure the input parameter data of the target interface, and the return parameter configuration information is used to configure the return parameter data of the target interface according to the preset rule information.

在本实施例中,待配置节点的接口配置信息可以是存储在流程引擎中,或者存储在数据库中以由流程引擎进行读取。待配置节点的接口配置信息可以是根据人工输入的配置信息生成用于配置待配置节点的目标接口的接口配置信息。接口配置信息包括目标接口的入参配置信息和返参配置信息。入参配置信息用于配置目标接口的入参数据,目标接口对应的数据平台通过目标接口接收入参数据后向流程引擎返回对应的返参数据。其中,返参配置信息用于根据预设规则信息对目标接口的返参数据进行配置。预设规则信息可以为基于人工输入配置的规则生成的规则信息。预设规则信息可以是用于将返参数据转换为预设类型的数据的转换规则。如,将返参数据转换为字符类型的数据,或将返参数据转换为整型类型的数据,或将返参数据转换为list(列表)类型或map(容器)类型的数据。预设规则信息还可以是用于按照预设逻辑运算规则对返参数据进行逻辑运算的信息。如,逻辑判断规则信息。通过逻辑判断规则信息判断返参数据是否满足预设条件。若是,则对返参数据进行配置后得到逻辑true。若否,则对返参数据进行配置后得到逻辑false。In this embodiment, the interface configuration information of the node to be configured may be stored in the process engine, or stored in a database to be read by the process engine. The interface configuration information of the node to be configured may be the interface configuration information of the target interface for configuring the node to be configured generated according to the configuration information input manually. The interface configuration information includes the input parameter configuration information and the return parameter configuration information of the target interface. The input parameter configuration information is used to configure the input parameter data of the target interface, and the data platform corresponding to the target interface returns the corresponding return parameter data to the process engine after receiving the input parameter data through the target interface. Among them, the return parameter configuration information is used to configure the return parameter data of the target interface according to the preset rule information. The preset rule information can be the rule information generated based on the rule of manual input configuration. The preset rule information can be a conversion rule for converting the return parameter data into a preset type of data. For example, converting the return parameter data into character type data, or converting the return parameter data into integer type data, or converting the return parameter data into list (list) type or map (container) type data. The preset rule information can also be information for performing logical operations on the return parameter data according to preset logical operation rules. For example, logical judgment rule information. It is judged whether the return parameter data meets the preset conditions through the logical judgment rule information. If yes, the returned parameter data is configured to obtain a logical true. If no, the returned parameter data is configured to obtain a logical false.

其中,目标接口的入参配置信息和返参配置信息可以通过人工输入进行信息配置,流程引擎可直接读取待配置节点的接口配置信息对目标接口的入参数据和返参数据进行控制,无需针对目标接口的入参数据和返参数据进行对应逻辑的代码的开发,能够节省自动化流程的开发的工作量,提高开发的效率。Among them, the input parameter configuration information and return parameter configuration information of the target interface can be configured through manual input, and the process engine can directly read the interface configuration information of the node to be configured to control the input parameter data and return parameter data of the target interface. There is no need to develop corresponding logic code for the input parameter data and return parameter data of the target interface, which can save the workload of developing automated processes and improve development efficiency.

S106,当自动化流程流转到待配置节点时,根据入参配置信息确定目标接口的入参数据,根据入参数据从目标接口读取返参数据。S106, when the automated process flows to the node to be configured, the input parameter data of the target interface is determined according to the input parameter configuration information, and the return parameter data is read from the target interface according to the input parameter data.

在本实施例中,流程引擎实时监测自动化流程的节点流转。当自动化流程流转到待配置节点时,根据目标接口的入参配置信息确定目标接口的入参数据。可以是,入参配置信息中包含入参数据,流程引擎从入参配置信息中提取入参数据。也可以是,入参配置信息中包含有入参数据的关联信息,流程引擎根据关联信息读取入参数据。进一步地,流程引擎根据入参数据从目标接口读取返参数据。具体地,流程引擎将入参数据输入目标接口,通过目标接口与目标接口对应的数据平台进行数据通信。目标接口对应的数据平台根据入参数据获取反馈的数据,将反馈的数据通过目标接口返回到流程引擎。反馈的数据也即是目标接口的返参数据。In this embodiment, the process engine monitors the node flow of the automated process in real time. When the automated process flows to the node to be configured, the input parameter data of the target interface is determined according to the input parameter configuration information of the target interface. It can be that the input parameter configuration information contains the input parameter data, and the process engine extracts the input parameter data from the input parameter configuration information. It can also be that the input parameter configuration information contains associated information of the input parameter data, and the process engine reads the input parameter data according to the associated information. Further, the process engine reads the return parameter data from the target interface according to the input parameter data. Specifically, the process engine inputs the input parameter data into the target interface, and communicates data with the data platform corresponding to the target interface through the target interface. The data platform corresponding to the target interface obtains the feedback data based on the input parameter data, and returns the feedback data to the process engine through the target interface. The feedback data is also the return parameter data of the target interface.

S108,根据返参配置信息对返参数据进行配置,得到待配置节点的接口数据。S108, configure the returned parameter data according to the returned parameter configuration information to obtain the interface data of the node to be configured.

在本实施例中,流程引擎根据返参配置信息对目标接口的返参数据进行配置。具体地,返参配置信息根据预设规则信息对返参数据进行配置。预设规则信息可以是人工配置的规则信息。例如,逻辑运算规则,数据转换规则等。当目标接口返回返参数据时,流程引擎通过预设规则信息对返参数据进行处理,得到满足待配置节点的数据处理要求的接口数据。因此,通过配置的方式对目标接口的返参数据进行配置处理,无需另外开发对应逻辑的代码,可以节省自动化流程的开发的工作量,提高开发的效率。In this embodiment, the process engine configures the return parameter data of the target interface according to the return parameter configuration information. Specifically, the return parameter configuration information configures the return parameter data according to the preset rule information. The preset rule information can be manually configured rule information. For example, logical operation rules, data conversion rules, etc. When the target interface returns the return parameter data, the process engine processes the return parameter data through the preset rule information to obtain interface data that meets the data processing requirements of the node to be configured. Therefore, by configuring the return parameter data of the target interface in a configuration manner, there is no need to develop the corresponding logic code separately, which can save the workload of developing the automated process and improve the efficiency of development.

上述接口数据的获取方法,流程引擎识别自动化流程中的待配置节点以及待配置节点对应的目标接口,获取待配置节点的接口配置信息,接口配置信息包括目标接口的入参配置信息和返参配置信息,入参配置信息用于配置目标接口的入参数据,返参配置信息用于根据预设规则信息对目标接口的返参数据进行配置;当自动化流程流转到待配置节点时,根据入参配置信息确定目标接口的入参数据,根据入参数据从目标接口读取返参数据,进而根据返参配置信息对返参数据进行配置,得到待配置节点的接口数据。因此,流程引擎在执行自动化任务且自动化流程流转到待配置节点时,直接根据接口配置信息中目标接口的入参配置信息和返参配置信息来获取目标接口的接口数据,从而待配置节点能够根据获取到的接口数据执行本节点的任务。通过信息配置的方式控制目标接口的入参和返参,无需针对待配置节点的数据获取开发对应的代码,节省了自动化流程的开发工作量,提高自动化流程的开发效率。The method for obtaining the above-mentioned interface data is that the process engine identifies the node to be configured in the automation process and the target interface corresponding to the node to be configured, obtains the interface configuration information of the node to be configured, and the interface configuration information includes the input parameter configuration information and the return parameter configuration information of the target interface. The input parameter configuration information is used to configure the input parameter data of the target interface, and the return parameter configuration information is used to configure the return parameter data of the target interface according to the preset rule information; when the automation process flows to the node to be configured, the input parameter data of the target interface is determined according to the input parameter configuration information, and the return parameter data is read from the target interface according to the input parameter data, and then the return parameter data is configured according to the return parameter configuration information to obtain the interface data of the node to be configured. Therefore, when the process engine executes the automation task and the automation process flows to the node to be configured, the interface data of the target interface is directly obtained according to the input parameter configuration information and the return parameter configuration information of the target interface in the interface configuration information, so that the node to be configured can perform the task of this node according to the acquired interface data. By controlling the input and return parameters of the target interface in the form of information configuration, there is no need to develop the corresponding code for the data acquisition of the node to be configured, which saves the development workload of the automation process and improves the development efficiency of the automation process.

在一实施例中,目标接口为多个,多个目标接口中包括第一接口和第二接口,第一接口与第二接口串行,入参配置信息用于配置第一接口的入参子数据并配置第一接口的返参子数据作为第二接口的入参子数据。S106包括:根据入参配置信息确定第一接口的入参子数据,根据第一接口的入参子数据从第一接口中读取第一接口的返参子数据,将第一接口的返参子数据作为第二接口的入参子数据,根据第二接口的入参子数据从第二接口中读取第二接口的返参子数据,返参数据包括第二接口的返参子数据。In one embodiment, there are multiple target interfaces, including a first interface and a second interface, the first interface and the second interface are serially connected, and the input parameter configuration information is used to configure the input parameter sub-data of the first interface and configure the return parameter sub-data of the first interface as the input parameter sub-data of the second interface. S106 includes: determining the input parameter sub-data of the first interface according to the input parameter configuration information, reading the return parameter sub-data of the first interface from the first interface according to the input parameter sub-data of the first interface, using the return parameter sub-data of the first interface as the input parameter sub-data of the second interface, reading the return parameter sub-data of the second interface from the second interface according to the input parameter sub-data of the second interface, and the return parameter data includes the return parameter sub-data of the second interface.

在该实施例中,设置通用接口模块。通用接口模块中包含已有的接口或者新增的HTTP接口。目标接口可以是通用接口模块中的任一接口或多个接口。同时,后台设置通用接口管理模块,用于管理通用接口模块中的接口。具体地,可以在通用接口管理模块中配置各个接口的相关信息。例如,配置各个接口的入参、请求url、反参参数等。因此,可以通过在通用接口管理模块中配置一个或多个接口的配置信息,以得到各接口的入参配置信息和返参配置信息。In this embodiment, a general interface module is set. The general interface module contains existing interfaces or newly added HTTP interfaces. The target interface can be any interface or multiple interfaces in the general interface module. At the same time, a general interface management module is set in the background to manage the interfaces in the general interface module. Specifically, the relevant information of each interface can be configured in the general interface management module. For example, configure the input parameters, request URL, and return parameter parameters of each interface. Therefore, the configuration information of one or more interfaces can be configured in the general interface management module to obtain the input parameter configuration information and return parameter configuration information of each interface.

当目标接口为多个且目标接口包括第一接口和第二接口时,可配置第一接口和第二接口串行。也即是在待配置节点的接口配置信息中,配置第一接口的入参子数据并且配置第一接口的第一返参子数据作为第二接口的入参子数据。具体地,通用接口模块包含组合接口,组合接口由多个单一接口进行串行,由单一接口的入参数据输入,可自定义输出返参数据。串行的接口在串行调用时,可以设置单一接口1的返参数据作为单一接口2的入参数据,以此类推。When there are multiple target interfaces and the target interfaces include a first interface and a second interface, the first interface and the second interface can be configured serially. That is, in the interface configuration information of the node to be configured, the input parameter sub-data of the first interface is configured and the first return parameter sub-data of the first interface is configured as the input parameter sub-data of the second interface. Specifically, the universal interface module includes a combination interface, which is serialized by multiple single interfaces, and the input parameter data of the single interface is input, and the output return parameter data can be customized. When the serial interface is called serially, the return parameter data of the single interface 1 can be set as the input parameter data of the single interface 2, and so on.

由此,在获取接口数据时,根据第一接口的入参子数据从第一接口中读取第一接口的第一返参子数据,将第一接口的第一返参子数据作为第二接口的入参子数据,根据第二接口的入参子数据从第二接口中读取第二接口的返参子数据。此时第二接口的返参数据可作为目标接口的接口数据。因此,进一步减少了自动化流程的开发代码的工作量,提高开发的效率。Thus, when acquiring interface data, the first return parameter sub-data of the first interface is read from the first interface according to the input parameter sub-data of the first interface, the first return parameter sub-data of the first interface is used as the input parameter sub-data of the second interface, and the return parameter sub-data of the second interface is read from the second interface according to the input parameter sub-data of the second interface. At this time, the return parameter data of the second interface can be used as the interface data of the target interface. Therefore, the workload of the development code of the automation process is further reduced, and the efficiency of development is improved.

优选地,根据入参配置信息确定第一接口的入参子数据之后,还包括:根据第一接口的入参子数据从第一接口中读取第一接口的第二返参子数据,返参数据包括第一接口的第二返参子数据。Preferably, after determining the input parameter sub-data of the first interface according to the input parameter configuration information, it also includes: reading the second return parameter sub-data of the first interface from the first interface according to the input parameter sub-data of the first interface, and the return parameter data includes the second return parameter sub-data of the first interface.

具体地,从第一接口输入第一接口的入参子数据之后,得到第一接口的第一返参子数据和第一接口的第二返参子数据两大类型的返参数据。其中,第一返参子数据作为第二接口的入参子数据,进而调用得到第二接口的返参子数据,以第二接口的返参子数据作为最终返参数据中的一部分数据。另外,在对第一接口进行调用时,第一接口的第二返参子数据也可以作为最终返参数据中的一部分数据。因此,最终得到返参数据既包含第一接口的返参和第二接口的返参,从而可以满足了对应接口数据调用的需求。Specifically, after the input parameter sub-data of the first interface is input from the first interface, two types of return parameter data, namely, the first return parameter sub-data of the first interface and the second return parameter sub-data of the first interface, are obtained. Among them, the first return parameter sub-data is used as the input parameter sub-data of the second interface, and then the return parameter sub-data of the second interface is obtained by calling, and the return parameter sub-data of the second interface is used as part of the final return parameter data. In addition, when the first interface is called, the second return parameter sub-data of the first interface can also be used as part of the final return parameter data. Therefore, the return parameter data finally obtained includes both the return parameter of the first interface and the return parameter of the second interface, thereby meeting the needs of the corresponding interface data call.

在一实施例中,目标接口为多个,多个目标接口中包括第三接口和第四接口,第三接口与第四接口并行,入参配置信息用于配置第三接口的入参子数据以及配置第四接口的入参子数据。S106包括:根据入参配置信息确定第三接口的入参子数据以及第四接口的入参子数据,根据第三接口的入参子数据从第三接口读取第三接口的返参子数据,根据第四接口的入参子数据从第四接口读取第四接口的返参子数据,返参数据包括第三接口的返参子数据和第四接口的返参子数据。In one embodiment, there are multiple target interfaces, including a third interface and a fourth interface, the third interface is in parallel with the fourth interface, and the input parameter configuration information is used to configure the input parameter sub-data of the third interface and the input parameter sub-data of the fourth interface. S106 includes: determining the input parameter sub-data of the third interface and the input parameter sub-data of the fourth interface according to the input parameter configuration information, reading the return parameter sub-data of the third interface from the third interface according to the input parameter sub-data of the third interface, reading the return parameter sub-data of the fourth interface from the fourth interface according to the input parameter sub-data of the fourth interface, and the return parameter data includes the return parameter sub-data of the third interface and the return parameter sub-data of the fourth interface.

在该实施例中,设置通用接口模块。通用接口模块中包含已有的接口或者新增的HTTP接口。目标接口可以是通用接口模块中的任一接口或多个接口。同时,后台设置通用接口管理模块,用于管理通用接口模块中的接口。具体地,可以在通用接口管理模块中配置各个接口的相关信息。例如,配置各个接口的入参、请求url、反参参数等。因此,可以通过在通用接口管理模块中配置一个或多个接口的配置信息,以得到各接口的入参配置信息和返参配置信息。In this embodiment, a general interface module is set. The general interface module contains existing interfaces or newly added HTTP interfaces. The target interface can be any interface or multiple interfaces in the general interface module. At the same time, a general interface management module is set in the background to manage the interfaces in the general interface module. Specifically, the relevant information of each interface can be configured in the general interface management module. For example, configure the input parameters, request URL, and return parameter parameters of each interface. Therefore, the configuration information of one or more interfaces can be configured in the general interface management module to obtain the input parameter configuration information and return parameter configuration information of each interface.

当目标接口为多个且目标接口包括第三接口和第四接口时,可配置第三接口和第四接口并行。具体地,通用接口模块包含组合接口,组合接口由多个单一接口进行并行,由单一接口的入参数据并集输入,可自定义输出返参数据。并行的接口在调用时,统一设置入参数据,各个接口的返参数据自定义,以此类推。When there are multiple target interfaces and the target interfaces include the third interface and the fourth interface, the third interface and the fourth interface can be configured in parallel. Specifically, the universal interface module includes a combined interface, which is parallelized by multiple single interfaces, and is input by the input parameter data of the single interface, and the output return parameter data can be customized. When the parallel interface is called, the input parameter data is uniformly set, and the return parameter data of each interface is customized, and so on.

由此,在获取接口数据时,根据第三接口的入参子数据从第三接口读取第三接口的返参子数据,根据第四接口的入参子数据从第四接口读取第四接口的返参子数据,返参数据包括第三接口的返参子数据和第四接口的返参子数据。因此,进一步减少了自动化流程的开发代码的工作量,提高开发的效率。Thus, when acquiring interface data, the return parameter sub-data of the third interface is read from the third interface according to the input parameter sub-data of the third interface, and the return parameter sub-data of the fourth interface is read from the fourth interface according to the input parameter sub-data of the fourth interface, and the return parameter data includes the return parameter sub-data of the third interface and the return parameter sub-data of the fourth interface. Therefore, the workload of the development code of the automation process is further reduced, and the efficiency of development is improved.

在一实施例中,S108之前,还包括:采用FreeMarker模板引擎配置返参配置信息中的预设规则信息,预设规则信息包括逻辑运算规则。S108包括:采用逻辑运算规则并通过FreeMarker模板引擎对返参数据进行逻辑运算,逻辑运算后得到结果数据,接口数据包括结果数据。In one embodiment, before S108, it also includes: using the FreeMarker template engine to configure the preset rule information in the return parameter configuration information, and the preset rule information includes a logic operation rule. S108 includes: using the logic operation rule and performing a logic operation on the return parameter data through the FreeMarker template engine, and obtaining the result data after the logic operation, and the interface data includes the result data.

在该实施例中,使用FreeMarker模板引擎设置返参配置信息中的预设规则信息,同时使用FreeMarker模板引擎根据预设规则信息中的逻辑运算规则对返参数据进行逻辑运算。FreeMarker模板引擎执行完逻辑运算后,得到结果数据,将该结果数据输出。目标接口的接口数据包括该输出的结果数据。其中,逻辑运算规则包括逻辑判断规则,逻辑判断规则用于判断返参数据中的接口字段是否为空。还可以包括逻辑比较规则,逻辑比较规则用于将返参数据中的日期数据与预设日期数据进行比较,或用于将返参数据中的字段值与预设字段值进行比较。通过在FreeMarker模板引擎设置预设规则信息中的逻辑运算规则,并采用FreeMarker模板引擎对目标接口的返参数据进行进一步处理,将处理结果作为该目标接口的接口数据,因此无需针对目标接口的返参数据的进一步处理流程开发代码,节省了自动化流程的开发的工作量。需要说明的是,FreeMarker模板引擎一般用于生成前端文本的内容,如HTML网页以及源代码等。此处引用FreeMarker模板引擎对目标接口的返参数据进行配置和处理,为自动化流程做接口数据支撑,突破了传统的习惯性用法。In this embodiment, the preset rule information in the return parameter configuration information is set using the FreeMarker template engine, and the FreeMarker template engine is used to perform logical operations on the return parameter data according to the logical operation rules in the preset rule information. After the FreeMarker template engine performs the logical operation, the result data is obtained and the result data is output. The interface data of the target interface includes the output result data. Among them, the logical operation rules include logical judgment rules, and the logical judgment rules are used to judge whether the interface field in the return parameter data is empty. It can also include logical comparison rules, and the logical comparison rules are used to compare the date data in the return parameter data with the preset date data, or to compare the field value in the return parameter data with the preset field value. By setting the logical operation rules in the preset rule information in the FreeMarker template engine, and using the FreeMarker template engine to further process the return parameter data of the target interface, the processing result is used as the interface data of the target interface, so there is no need to develop code for the further processing process of the return parameter data of the target interface, saving the workload of the development of the automation process. It should be noted that the FreeMarker template engine is generally used to generate the content of the front-end text, such as HTML web pages and source code. The FreeMarker template engine is used here to configure and process the return parameter data of the target interface, providing interface data support for the automated process, breaking through the traditional customary usage.

优选地,预设规则信息还包括动态解析规则和动态赋值规则,采用逻辑运算规则并通过FreeMarker模板引擎对返参数据进行逻辑运算,逻辑运算后得到结果数据,包括:采用动态解析规则并通过FreeMarker模板引擎对返参数据进行动态解析,得到解析数据;采用动态赋值规则并通过FreeMarker模板引擎将解析数据赋值到指定变量,得到指定变量的变量值;采用逻辑运算规则并通过FreeMarker模板引擎对变量值进行逻辑运算,逻辑运算后得到结果数据。Preferably, the preset rule information also includes dynamic parsing rules and dynamic assignment rules, adopts logical operation rules and performs logical operation on the returned parameter data through the FreeMarker template engine, and obtains result data after the logical operation, including: adopting dynamic parsing rules and dynamically parsing the returned parameter data through the FreeMarker template engine to obtain parsed data; adopting dynamic assignment rules and assigning the parsed data to the specified variable through the FreeMarker template engine to obtain the variable value of the specified variable; adopting logical operation rules and performing logical operation on the variable value through the FreeMarker template engine to obtain the result data after the logical operation.

具体地,FreeMarker模板引擎配置有逻辑运算规则、动态解析规则和动态赋值规则。此外,还可配置数据提取规则。数据提取规则用于指示从返参数据中提取目标数据。FreeMarker模板引擎可在返参数据中提取list类型数据、map类型数据、字符类型数据、整型类型数据、日期类型数据等。同时,使用FreeMarker模板引擎采用动态解析规则对返参数据进行动态解析,得到解析数据。采用动态赋值规则并通过FreeMarker模板引擎将解析数据赋值到指定变量,得到指定变量的变量值。最后,采用逻辑运算规则并通过FreeMarker模板引擎对变量值进行逻辑运算,逻辑运算后得到结果数据。例如,使用FreeMarker模板引擎采用动态解析规则对返参数据进行动态解析,得到解析数据a、解析数据b和解析数据c。指定变量包括x1、x2和x3。采用动态赋值规则将解析数据a赋值给指定变量x1、将解析数据b赋值给指定变量x2、将解析数据c赋值给指定变量x3。逻辑运算规则包括y=x1+x2+x3,输出结果为逻辑运算后y的值。此时,采用逻辑运算规则并通过FreeMarker模板引擎对变量值进行逻辑运算时,执行a+b+c的逻辑运算,将运算结果作为结果数据。因此,无需针对目标接口的逻辑运算开发对应代码,节省了自动化流程的开发的工作量,缩短了自动化流程的开发周期。Specifically, the FreeMarker template engine is configured with logical operation rules, dynamic parsing rules and dynamic assignment rules. In addition, data extraction rules can also be configured. The data extraction rules are used to indicate the extraction of target data from the returned parameter data. The FreeMarker template engine can extract list type data, map type data, character type data, integer type data, date type data, etc. from the returned parameter data. At the same time, the FreeMarker template engine is used to dynamically parse the returned parameter data using dynamic parsing rules to obtain parsed data. The dynamic assignment rules are adopted and the parsed data is assigned to the specified variable through the FreeMarker template engine to obtain the variable value of the specified variable. Finally, the logical operation rules are adopted and the variable value is logically operated through the FreeMarker template engine, and the result data is obtained after the logical operation. For example, the FreeMarker template engine is used to dynamically parse the returned parameter data using dynamic parsing rules to obtain parsed data a, parsed data b and parsed data c. The specified variables include x1, x2 and x3. The dynamic assignment rules are adopted to assign the parsed data a to the specified variable x1, the parsed data b to the specified variable x2, and the parsed data c to the specified variable x3. The logic operation rule includes y=x1+x2+x3, and the output result is the value of y after the logic operation. At this time, when the logic operation rule is adopted and the variable value is logically operated through the FreeMarker template engine, the logic operation of a+b+c is performed, and the operation result is used as the result data. Therefore, there is no need to develop corresponding code for the logic operation of the target interface, which saves the workload of developing the automation process and shortens the development cycle of the automation process.

在一实施例中,S108包括:获取返参配置信息的预设规则信息;根据预设规则信息对目标接口的返参数据进行配置,配置后的返参数据作为待处理数据;获取待配置节点的组件模板;根据待处理数据以及组件模板生成组件数据,接口数据包括组件数据。In one embodiment, S108 includes: obtaining preset rule information of return parameter configuration information; configuring the return parameter data of the target interface according to the preset rule information, and using the configured return parameter data as data to be processed; obtaining the component template of the node to be configured; generating component data according to the data to be processed and the component template, and the interface data includes the component data.

优选地,组件模板包括选项卡组件模板和/或回复组件模板,根据待处理数据以及组件模板生成组件数据,包括:从待处理数据中筛选选项卡组件模板的第一数据,根据第一数据和选项卡组件模板生成选项卡组件数据,组件数据包括选项卡组件数据;和/或,从待处理数据中筛选回复组件模板的第二数据,根据第二数据和回复组件模板生成回复组件数据,组件数据包括回复组件数据。Preferably, the component template includes a tab component template and/or a reply component template, and generating component data based on the data to be processed and the component template includes: filtering first data of the tab component template from the data to be processed, generating tab component data based on the first data and the tab component template, wherein the component data includes the tab component data; and/or filtering second data of the reply component template from the data to be processed, generating reply component data based on the second data and the reply component template, wherein the component data includes the reply component data.

在该实施例中,设置组件管理模块。通过后台管理页面对组件管理模块进行设置和管理。具体地,根据前端的一些组件协议格式生成组件管理模块中的各个组件模板。其中,前端包括APP端和H5端。组件协议格式可以动态设置,此时根据动态设置的组件协议格式生成动态的组件模板。进一步地,根据待处理数据以及组件模板生成组件数据,包括:从待处理数据中筛选出组件模板的数据,将组件模板的数据填充到组件模板中,生成组件数据。流程引擎通过组件管理模块调用目标接口的返参数据,将调用的返参数据作为组件模板中协议组装的一部分数据,以生成对应的组件数据,因此在生成对应的组件数据时无需开发对应逻辑的代码,通过配置的方式即可生成对应的组件数据,减少了自动化流程中的开发的工作量,缩短了自动化流程的开发周期,提高了自动化流程的开发效率。In this embodiment, a component management module is set. The component management module is set and managed through the background management page. Specifically, each component template in the component management module is generated according to some component protocol formats of the front end. Among them, the front end includes an APP end and an H5 end. The component protocol format can be set dynamically, and a dynamic component template is generated according to the dynamically set component protocol format. Further, component data is generated according to the data to be processed and the component template, including: filtering out the data of the component template from the data to be processed, filling the data of the component template into the component template, and generating component data. The process engine calls the return parameter data of the target interface through the component management module, and uses the returned parameter data of the call as part of the data of the protocol assembly in the component template to generate the corresponding component data. Therefore, when generating the corresponding component data, there is no need to develop the corresponding logic code, and the corresponding component data can be generated by configuration, which reduces the development workload in the automation process, shortens the development cycle of the automation process, and improves the development efficiency of the automation process.

此外,在组件管理模块中,还包含选项卡组件模板和回复组件模板,根据选项卡组件模板可生成选项卡组件,根据回复组件组件模板可生成回复组件。选项卡组件包括选项卡组件数据,回复组件包括回复组件数据。流程引擎从待处理数据中筛选选项卡组件模板的第一数据,根据第一数据和选项卡组件模板生成选项卡组件数据,从待处理数据中筛选回复组件模板的第二数据,根据第二数据和回复组件模板生成回复组件数据。具体地,当自动化流程为智能机器人与用户的自动化交互流程时,选项卡组件用于提供用于提供与前端用户交互时的按钮组件等。如,与用户交互时的一些选择订单或者商品的按钮。回复组件为在智能机器人与用户交互时需要回复用户问题时,多个回复内容按照特定的结构组成的组件。如,回复组件的回复内容中包含字体样式、按钮、超链接以及图片等。选项卡组件和回复组件中均包含对应的组件数据,组件数据用于显示到前端以与用户进行信息交互。因此,可以通过组件模板的配置实现自动化流程中自动化生成组件数据,无需针对相关组件数据的生成开发对应逻辑的代码,减少了自动化流程的开发的工作量,提高了自动化流程的开发效率。In addition, the component management module also includes a tab component template and a reply component template. A tab component can be generated according to the tab component template, and a reply component can be generated according to the reply component template. The tab component includes tab component data, and the reply component includes reply component data. The process engine filters the first data of the tab component template from the data to be processed, generates the tab component data according to the first data and the tab component template, filters the second data of the reply component template from the data to be processed, and generates the reply component data according to the second data and the reply component template. Specifically, when the automated process is an automated interaction process between an intelligent robot and a user, the tab component is used to provide a button component for interacting with a front-end user, etc. For example, some buttons for selecting orders or commodities when interacting with a user. The reply component is a component composed of multiple reply contents according to a specific structure when the intelligent robot needs to reply to a user's question when interacting with the user. For example, the reply content of the reply component includes font style, buttons, hyperlinks, and pictures. Both the tab component and the reply component contain corresponding component data, and the component data is used to display to the front end for information interaction with the user. Therefore, the automatic generation of component data in the automation process can be achieved through the configuration of component templates, without the need to develop corresponding logic code for the generation of relevant component data, thereby reducing the workload of developing the automation process and improving the development efficiency of the automation process.

在一实施例中,根据第一数据和选项卡组件模板生成选项卡组件数据之后,还包括:当组件数据包括选项卡组件数据时,获取待配置节点的选项卡模板;从组件数据中获取选项卡组件数据,根据选项卡组件数据与选项卡模板生成选项卡数据,接口数据包含选项卡数据。In one embodiment, after generating tab component data according to the first data and the tab component template, it also includes: when the component data includes tab component data, obtaining the tab template of the node to be configured; obtaining the tab component data from the component data, generating tab data according to the tab component data and the tab template, and the interface data includes the tab data.

在该实施例中,设置选项卡管理模块。选项卡管理模块中包含一个或多个选项卡模板。流程引擎从组件数据中提取选项卡组件数据,将选项卡组件数据填充到选项卡模板中,以生成选项卡数据。进而,流程引擎将选项卡数据发到任务引擎中,以由任务引擎根据选项卡数据执行待配置节点的任务。当自动化流程为智能客服机器人与用户之间的自动化交互流程时,只需在自动化流程中,对选项卡管理模块中的选项卡模板进行配置,进而从组件数据中提取选项卡模板的选项卡组件数据以填充到选项卡模板中,生成选项卡数据以供自动化流程的待配置节点使用。采用配置的方式即可实现自动化流程中对应接口数据的提取,无需独立开发对应逻辑的代码,减少了自动化流程开发的工作量,提高自动化开发的效率。In this embodiment, a tab management module is set. The tab management module includes one or more tab templates. The process engine extracts the tab component data from the component data, and fills the tab component data into the tab template to generate tab data. Then, the process engine sends the tab data to the task engine, so that the task engine executes the task of the node to be configured according to the tab data. When the automation process is an automated interaction process between an intelligent customer service robot and a user, it is only necessary to configure the tab template in the tab management module in the automation process, and then extract the tab component data of the tab template from the component data to fill it into the tab template, and generate tab data for use by the node to be configured in the automation process. The extraction of corresponding interface data in the automation process can be realized by configuration, without the need to independently develop the corresponding logic code, thereby reducing the workload of automation process development and improving the efficiency of automation development.

具体地,后台对选项卡管理模块进行配置,以通过选项卡管理模块对选项卡模板进行管控。同时后台通过选项卡管理模块调用选项卡数据,以将选项卡数据发送到前端,与用户进行交互。后台还需要向选项卡管理模块提供组件接口的入参数据。选项卡管理模块通过组件接口的入参数据从组件管理模块中提取选项卡组件数据。选项卡组件数据作为组件接口的返参数据,返回到选项卡管理模块。选项卡管理模块将选项卡组件数据填充到选项卡模板中,以生成选项卡数据,进而将选项卡数据返回到前端,作为与用户交互时的界面显示数据。后台设置选项卡管理模块的入参数据,选项卡管理模块的入参数据可以是设置外部入参。如待配置节点输出的数据可作为选项卡管理模块的外部入参。由此,可以动态设置选项卡管理模块的入参数据,满足自动化流程的灵活设置需求。此外,选项卡管理模块的入参数据还可以是设置为固定参数值或者枚举值。Specifically, the background configures the tab management module to manage and control the tab template through the tab management module. At the same time, the background calls the tab data through the tab management module to send the tab data to the front end to interact with the user. The background also needs to provide the input parameter data of the component interface to the tab management module. The tab management module extracts the tab component data from the component management module through the input parameter data of the component interface. The tab component data is returned to the tab management module as the return parameter data of the component interface. The tab management module fills the tab component data into the tab template to generate the tab data, and then returns the tab data to the front end as the interface display data when interacting with the user. The background sets the input parameter data of the tab management module, and the input parameter data of the tab management module can be set as an external input parameter. For example, the data output by the node to be configured can be used as an external input parameter of the tab management module. Thus, the input parameter data of the tab management module can be dynamically set to meet the flexible setting requirements of the automation process. In addition, the input parameter data of the tab management module can also be set as a fixed parameter value or an enumeration value.

本申请还提供一种自动化流程的执行方法。本申请的一种自动化流程的执行方法通过采用上述一种接口数据的获取方法以获取自动化流程中待配置节点的接口数据。如图3所示,一种自动化流程的执行方法包括如下步骤:The present application also provides a method for executing an automated process. The method for executing an automated process of the present application adopts the above-mentioned method for acquiring interface data to acquire the interface data of the node to be configured in the automated process. As shown in FIG3 , the method for executing an automated process includes the following steps:

S202,接收任务流程的触发信息,根据触发信息启动自动化流程。S202, receiving trigger information of the task process, and starting the automation process according to the trigger information.

在本实施例中,后台的任务流程触发启动流程引擎的自动化流程。流程引擎接收到任务流程的触发信息时,根据触发信息启动自动化流程。例如,触发信息中包括自动化流程的启动指示,流程引擎从触发信息中提取自动化流程的启动指示,启动自动化流程。In this embodiment, the task flow in the background triggers the automation flow of the process engine. When the process engine receives the trigger information of the task flow, it starts the automation flow according to the trigger information. For example, the trigger information includes the start instruction of the automation flow, and the process engine extracts the start instruction of the automation flow from the trigger information and starts the automation flow.

S204,当自动化流程流转到待配置节点时,识别待配置节点对应的目标接口。S204, when the automation process flows to the node to be configured, identifying the target interface corresponding to the node to be configured.

在本实施例中,自动化流程包括一个或多个流程节点,各流程节点执行对应的流程任务。一个或多个流程节点在执行流程任务时,需调用对外接口以读取对应数据平台中的数据,从而执行本流程节点的任务。例如,自动化流程包括自动化交互流程,自动化交互流程为智能机器人与用户进行信息交互时启动的交互流程。此时,自动化流程的多个流程节点包括开始节点、参数节点、判断节点、函数节点、回复节点以及跳转节点。In this embodiment, the automated process includes one or more process nodes, and each process node executes a corresponding process task. When executing a process task, one or more process nodes need to call an external interface to read data in the corresponding data platform, thereby executing the task of this process node. For example, the automated process includes an automated interactive process, which is an interactive process started when an intelligent robot interacts with a user. At this time, the multiple process nodes of the automated process include a start node, a parameter node, a judgment node, a function node, a reply node, and a jump node.

具体地,设计任务引擎中自动化流程的各个流程节点。流程引擎通过任务引擎执行自动化流程。如图4所示,在后台创建对话流模块,在对话流模块设计六大流程节点。通过六大流程节点的组合,可以实现各种流程的组合配置。六大流程节点分别为:开始节点、参数节点、判断节点、函数节点、回复节点、跳转节点。各流程节点设计主要功能详解如下:Specifically, design each process node of the automated process in the task engine. The process engine executes the automated process through the task engine. As shown in Figure 4, create a dialogue flow module in the background, and design six process nodes in the dialogue flow module. Through the combination of the six process nodes, the combination configuration of various processes can be realized. The six process nodes are: start node, parameter node, judgment node, function node, reply node, and jump node. The main functions of each process node design are explained in detail as follows:

开始节点:即用户咨询问题的触发入口,如“如何办理换货”的触发入口。可以通过关键字匹配得到“换货”,了解用户需要换货,通过开始节点进入到已配置的“换货业务流程”中。开始节点的入口包含关键字模糊匹配、完全匹配,调用智能客服AI意图算法模块,获取用户意图以进入“换货业务流程”。Start node: the trigger entry for user consultation questions, such as the trigger entry for "how to handle exchange". "Exchange" can be obtained through keyword matching, and the user needs to exchange goods, and enter the configured "Exchange business process" through the start node. The entry of the start node includes keyword fuzzy matching and complete matching, calling the intelligent customer service AI intention algorithm module to obtain the user's intention to enter the "Exchange business process".

参数节点:参数节点与用户交互,确认用户说话的意图,进而收集到需要往后传递的用户参数,后面流程接收到用户确切的交互内容。例如:包含需要咨询的订单、商品、文本内容等。后面流程根据这些内容进行一系列逻辑判断及信息获取,以回答前端的用户问题。Parameter node: The parameter node interacts with the user, confirms the user's speaking intention, and then collects the user parameters that need to be passed on. The subsequent process receives the user's exact interaction content. For example, it contains the order, product, text content, etc. that need to be consulted. The subsequent process performs a series of logical judgments and information acquisition based on these contents to answer the user's questions at the front end.

判断节点:根据前一流程节点获取到的参数以及从对外接口获取的参数进行值判断,选择不同的回复话术节点。其中,对外接口获取到的参数包括函数节点调用对外接口获取到的返参。判断节点的值判断包括文本比较、数值比较、逻辑true和false的比较、非空比较、日期比较,字段值比较等。Judgment node: Perform value judgment based on the parameters obtained from the previous process node and the parameters obtained from the external interface, and select different reply nodes. Among them, the parameters obtained from the external interface include the return parameters obtained by the function node calling the external interface. The value judgment of the judgment node includes text comparison, numerical comparison, logical true and false comparison, non-empty comparison, date comparison, field value comparison, etc.

回复节点:回复用户话术。其中包含回复文本、回复组件。回复组件包括按钮、超链接等。可以划分普通回复和协议回复。协议回复为手动编写Json报文,组件回复通过调用对外接口获取返参以利用返参组装Json报文体得到。Reply node: Reply to user's words. It includes reply text and reply components. Reply components include buttons, hyperlinks, etc. It can be divided into ordinary replies and protocol replies. Protocol replies are manually written Json messages, and component replies are obtained by calling external interfaces to obtain return parameters and assemble Json message bodies using return parameters.

跳转节点:控制业务场景从一个场景节点跳转到另外一个场景节点。比如用户咨询订单的换货,最后发现没有该订单商品不支持换货。用户继续咨询如何退货,就可以从换货的这个场景,把需要换货的这些订单及商品传递给退货的场景。因此,可以跳过与用户的交互,如跳过用户选择需要退货的订单商品这一步骤,直接回答用户是否可以退货,前端界面显示按钮给用户点击申请退货等。Jump node: Controls the business scenario to jump from one scenario node to another. For example, a user inquires about the exchange of an order, and finally finds that the order item does not support exchange. The user continues to inquire about how to return the goods, and the orders and goods that need to be exchanged can be passed to the return scenario from the exchange scenario. Therefore, the interaction with the user can be skipped, such as skipping the step of the user selecting the order item to be returned, directly answering the user whether the return can be made, and displaying a button on the front-end interface for the user to click to apply for a return.

自动化流程中,有些流程节点在执行本流程节点的任务时,需调用对外接口以读取数据。此时,可将自动化流程中需要调用对外接口以读取对外接口数据的流程节点设置为待配置节点。例如,可将上述的判断节点设置为待配置节点。判断节点需要从对外接口获取返参以进行值判断,从而根据判断结果选择不同的回复话术节点。此时,可设置判断节点为自动化流程的待配置节点。又如,可将上述的回复节点设置为待配置节点。回复节点需要回复前端用户的内容,调用对外接口获取对外接口的返参,根据返参组装回复报文,将回复报文返回前端进行展示。此时,可设置回复节点为自动化流程的待配置节点。In the automated process, some process nodes need to call external interfaces to read data when executing the tasks of this process node. At this time, the process nodes in the automated process that need to call external interfaces to read external interface data can be set as nodes to be configured. For example, the above-mentioned judgment node can be set as a node to be configured. The judgment node needs to obtain the return parameter from the external interface to make a value judgment, so as to select different reply speech nodes according to the judgment result. At this time, the judgment node can be set as a node to be configured in the automated process. For another example, the above-mentioned reply node can be set as a node to be configured. The reply node needs to reply to the content of the front-end user, call the external interface to obtain the return parameter of the external interface, assemble the reply message according to the return parameter, and return the reply message to the front-end for display. At this time, the reply node can be set as a node to be configured in the automated process.

进一步地,配置各待配置节点对应的目标接口。其中,各待配置节点对应的目标接口可以相同或者不相同。当自动化流程流转到待配置节点时,识别待配置节点对应的目标接口。其中,当各待配置节点对应的目标接口相同时,可设置目标接口为对外的通用接口。任务引擎根据不同待配置节点设置不同的接口配置信息,各接口配置信息均对应通用接口。也即是,任务引擎根据不同的接口配置信息对通用接口进行接口信息调用。Furthermore, the target interface corresponding to each node to be configured is configured. The target interface corresponding to each node to be configured may be the same or different. When the automated process flows to the node to be configured, the target interface corresponding to the node to be configured is identified. When the target interfaces corresponding to each node to be configured are the same, the target interface may be set as a common interface to the outside. The task engine sets different interface configuration information according to different nodes to be configured, and each interface configuration information corresponds to a common interface. That is, the task engine calls the common interface for interface information according to different interface configuration information.

S206,获取待配置节点的接口配置信息,接口配置信息包括目标接口的入参配置信息和返参配置信息,入参配置信息用于配置目标接口的入参数据,返参配置信息用于根据预设规则信息对目标接口的返参数据进行配置。S206, obtaining the interface configuration information of the node to be configured, the interface configuration information including the input parameter configuration information and the return parameter configuration information of the target interface, the input parameter configuration information is used to configure the input parameter data of the target interface, and the return parameter configuration information is used to configure the return parameter data of the target interface according to the preset rule information.

在本实施例中,待配置节点的接口配置信息可以是存储在流程引擎中,或者存储在数据库中以由流程引擎进行读取。待配置节点的接口配置信息可以是根据人工输入的配置信息生成用于配置待配置节点的目标接口的接口配置信息。接口配置信息包括目标接口的入参配置信息和返参配置信息。入参配置信息用于配置目标接口的入参数据,目标接口对应的数据平台通过目标接口接收入参数据后向流程引擎返回对应的返参数据。其中,返参配置信息用于根据预设规则信息对目标接口的返参数据进行配置。预设规则信息可以为基于人工输入配置的规则生成的规则信息。预设规则信息可以是用于将返参数据转换为预设类型的数据的转换规则。如,将返参数据转换为字符类型的数据,或将返参数据转换为整型类型的数据,或将返参数据转换为list(列表)类型或map(容器)类型的数据。预设规则信息还可以是用于按照预设逻辑运算规则对返参数据进行逻辑运算的信息。如,逻辑判断规则信息。通过逻辑判断规则信息判断返参数据是否满足预设条件。若是,则对返参数据进行配置后得到逻辑true。若否,则对返参数据进行配置后得到逻辑false。In this embodiment, the interface configuration information of the node to be configured may be stored in the process engine, or stored in a database to be read by the process engine. The interface configuration information of the node to be configured may be the interface configuration information of the target interface for configuring the node to be configured generated according to the configuration information input manually. The interface configuration information includes the input parameter configuration information and the return parameter configuration information of the target interface. The input parameter configuration information is used to configure the input parameter data of the target interface, and the data platform corresponding to the target interface returns the corresponding return parameter data to the process engine after receiving the input parameter data through the target interface. Among them, the return parameter configuration information is used to configure the return parameter data of the target interface according to the preset rule information. The preset rule information can be the rule information generated based on the rule of manual input configuration. The preset rule information can be a conversion rule for converting the return parameter data into a preset type of data. For example, converting the return parameter data into character type data, or converting the return parameter data into integer type data, or converting the return parameter data into list (list) type or map (container) type data. The preset rule information can also be information for performing logical operations on the return parameter data according to preset logical operation rules. For example, logical judgment rule information. It is judged whether the return parameter data meets the preset conditions through the logical judgment rule information. If yes, the returned parameter data is configured to obtain a logical true. If no, the returned parameter data is configured to obtain a logical false.

其中,目标接口的入参配置信息和返参配置信息可以通过人工输入进行信息配置,流程引擎可直接读取待配置节点的接口配置信息对目标接口的入参数据和返参数据进行控制,无需针对目标接口的入参数据和返参数据进行代码的开发,能够节省自动化流程的开发的工作量,提高开发的效率。Among them, the input parameter configuration information and return parameter configuration information of the target interface can be configured through manual input, and the process engine can directly read the interface configuration information of the node to be configured to control the input parameter data and return parameter data of the target interface. There is no need to develop code for the input parameter data and return parameter data of the target interface, which can save the workload of developing automated processes and improve development efficiency.

S208,根据入参配置信息确定目标接口的入参数据,根据入参数据从目标接口读取返参数据。S208, determining the input parameter data of the target interface according to the input parameter configuration information, and reading the return parameter data from the target interface according to the input parameter data.

在本实施例中,流程引擎实时监测自动化流程的节点流转。当自动化流程流转到待配置节点时,根据目标接口的入参配置信息确定目标接口的入参数据。可以是,入参配置信息中包含入参数据,流程引擎从入参配置信息中提取入参数据。也可以是,入参配置信息中包含有入参数据的关联信息,流程引擎根据关联信息读取入参数据。进一步地,流程引擎根据入参数据从目标接口读取返参数据。具体地,流程引擎将入参数据输入目标接口,通过目标接口与目标接口对应的数据平台进行数据通信。目标接口对应的数据平台根据入参数据获取反馈的数据,将反馈的数据通过目标接口返回到流程引擎。反馈的数据也即是目标接口的返参数据。In this embodiment, the process engine monitors the node flow of the automated process in real time. When the automated process flows to the node to be configured, the input parameter data of the target interface is determined according to the input parameter configuration information of the target interface. It can be that the input parameter configuration information contains the input parameter data, and the process engine extracts the input parameter data from the input parameter configuration information. It can also be that the input parameter configuration information contains associated information of the input parameter data, and the process engine reads the input parameter data according to the associated information. Further, the process engine reads the return parameter data from the target interface according to the input parameter data. Specifically, the process engine inputs the input parameter data into the target interface, and communicates data with the data platform corresponding to the target interface through the target interface. The data platform corresponding to the target interface obtains the feedback data based on the input parameter data, and returns the feedback data to the process engine through the target interface. The feedback data is also the return parameter data of the target interface.

S212,根据返参配置信息对返参数据进行配置,得到待配置节点的接口数据。S212, configure the returned parameter data according to the returned parameter configuration information to obtain the interface data of the node to be configured.

在本实施例中,流程引擎根据返参配置信息对目标接口的返参数据进行配置。具体地,返参配置信息根据预设规则信息对返参数据进行配置。预设规则信息可以是人工配置的规则信息。例如,逻辑运算规则,数据转换规则等。当目标接口返回返参数据时,流程引擎通过预设规则信息对返参数据进行处理,得到满足待配置节点的数据处理要求的接口数据。因此,通过配置的方式对目标接口的返参数据进行配置处理,无需另外开发代码,可以节省自动化流程的开发的工作量,提高开发的效率。In this embodiment, the process engine configures the return parameter data of the target interface according to the return parameter configuration information. Specifically, the return parameter configuration information configures the return parameter data according to the preset rule information. The preset rule information can be manually configured rule information. For example, logical operation rules, data conversion rules, etc. When the target interface returns the return parameter data, the process engine processes the return parameter data through the preset rule information to obtain interface data that meets the data processing requirements of the node to be configured. Therefore, by configuring the return parameter data of the target interface in a configuration manner, there is no need to develop additional code, which can save the workload of developing automated processes and improve development efficiency.

其中,接口数据的获取方式还包括上述一种接口数据的获取方法中任一实施例所述的获取方式。在一具体实施例中,流程引擎对接口数据的获取方式参见图5所示。流程引擎接收到任务流程触发后,启动自动化流程。自动化流程的任一待配置节点需要调用对外的通用接口以读取接口数据时,可以先确定配置节点中的选项卡,进一步确定选项卡中的组件,进而从通用接口中获取返参数据填入选项卡的组件中,最后得到选项卡数据,向待配置节点反馈选项卡数据。此处的通用接口为待配置节点的目标接口。其中,选项卡数据可参见图6所示。此外,自动化流程的任一待配置节点需要调用对外的通用接口以读取接口数据时,还可以是从调用回复组件的组件数据,直接将回复组件的组件数据反馈到前端,以与用户进行信息交互。回复组件的组件数据可参见图7所示。Among them, the method for obtaining interface data also includes the method for obtaining interface data described in any embodiment of the method for obtaining interface data described above. In a specific embodiment, the method for obtaining interface data by the process engine is shown in Figure 5. After the process engine receives the task flow trigger, the automation process is started. When any node to be configured in the automation process needs to call the external universal interface to read the interface data, the tab in the configuration node can be determined first, and the component in the tab can be further determined, and then the return parameter data is obtained from the universal interface to fill in the component of the tab, and finally the tab data is obtained, and the tab data is fed back to the node to be configured. The universal interface here is the target interface of the node to be configured. Among them, the tab data can be shown in Figure 6. In addition, when any node to be configured in the automation process needs to call the external universal interface to read the interface data, it can also be from calling the component data of the reply component, and the component data of the reply component can be directly fed back to the front end to interact with the user. The component data of the reply component can be shown in Figure 7.

S214,根据接口数据执行自动化流程中待配置节点的任务。S214, executing the task of the node to be configured in the automation process according to the interface data.

在本实施例中,当流程引擎接收到待配置节点的接口数据时,根据该接口数据执行待配置节点的任务。具体地,如图8所示,流程引擎通过自动化流程中各个流程节点执行对应的自动化任务。各个流程节点包括上述开始节点、参数节点、判断节点、函数节点、回复节点以及跳转节点。各流程节点根据本流程节点的任务需求调用对外接口的接口数据执行对应的任务。其中,任一流程节点采用上述一种接口数据的获取方法调用对外接口的接口数据。In this embodiment, when the process engine receives the interface data of the node to be configured, the task of the node to be configured is executed according to the interface data. Specifically, as shown in Figure 8, the process engine executes the corresponding automation task through each process node in the automation process. Each process node includes the above-mentioned start node, parameter node, judgment node, function node, reply node and jump node. Each process node calls the interface data of the external interface according to the task requirements of the process node to perform the corresponding task. Among them, any process node uses one of the above-mentioned interface data acquisition methods to call the interface data of the external interface.

因此,当自动化流程为机器人与用户交互的自动化交互流程时,无需针对前端与用户交互的交互信息开发对应逻辑的代码,直接通过接口配置的方式即可实现自动化流程中接口数据的获取,缩短了自动化流程的开发时间,解决了机器人与用户交互流程上线的迭代周期长的问题。Therefore, when the automated process is an automated interactive process between a robot and a user, there is no need to develop corresponding logic code for the interactive information between the front-end and the user. The acquisition of interface data in the automated process can be achieved directly through interface configuration, which shortens the development time of the automated process and solves the problem of long iteration cycle for the online interactive process between the robot and the user.

上述一种自动化流程的执行方法,能够将冗余繁重的迭代开发、测试任务成简单的配置,通过对自动化流程的待配置节点进行接口配置信息,能够直接获取到待配置节点的接口数据,无需开发对应逻辑的代码,释放开发和测试的人力资源,同时让运营更快,更精准的线上运营调整。The above-mentioned method for executing an automated process can transform redundant and heavy iterative development and testing tasks into simple configurations. By configuring the interface information of the nodes to be configured in the automated process, the interface data of the nodes to be configured can be directly obtained without developing corresponding logic code, thus freeing up development and testing human resources and allowing operations to be faster and more accurate in online operation adjustments.

应该理解的是,虽然流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,附图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the steps in the flowchart are shown in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

本申请还提供一种接口数据的获取装置,如图9所示,该装置包括识别模块10、获取模块20、读取模块30以及配置模块40。识别模块10,用于识别自动化流程中的待配置节点以及待配置节点对应的目标接口;获取模块20,用于获取待配置节点的接口配置信息,接口配置信息包括目标接口的入参配置信息和返参配置信息,入参配置信息用于配置目标接口的入参数据,返参配置信息用于根据预设规则信息对目标接口的返参数据进行配置;读取模块30,用于当自动化流程流转到所述待配置节点时,根据入参配置信息确定目标接口的入参数据,根据入参数据从目标接口读取返参数据;配置模块40,用于根据返参配置信息对返参数据进行配置,得到待配置节点的接口数据。The present application also provides an interface data acquisition device, as shown in FIG9 , the device includes an identification module 10, an acquisition module 20, a reading module 30 and a configuration module 40. The identification module 10 is used to identify the node to be configured in the automation process and the target interface corresponding to the node to be configured; the acquisition module 20 is used to obtain the interface configuration information of the node to be configured, the interface configuration information includes the input parameter configuration information and the return parameter configuration information of the target interface, the input parameter configuration information is used to configure the input parameter data of the target interface, and the return parameter configuration information is used to configure the return parameter data of the target interface according to the preset rule information; the reading module 30 is used to determine the input parameter data of the target interface according to the input parameter configuration information when the automation process flows to the node to be configured, and read the return parameter data from the target interface according to the input parameter data; the configuration module 40 is used to configure the return parameter data according to the return parameter configuration information to obtain the interface data of the node to be configured.

在其中一个实施例中,目标接口为多个,多个目标接口中包括第一接口和第二接口,第一接口与第二接口串行,入参配置信息用于配置第一接口的入参子数据并配置第一接口的第一返参子数据作为第二接口的入参子数据;读取模块30具体用于根据入参配置信息确定第一接口的入参子数据,根据第一接口的入参子数据从第一接口中读取第一接口的第一返参子数据,将第一接口的第一返参子数据作为第二接口的入参子数据,根据第二接口的入参子数据从第二接口中读取第二接口的返参子数据,返参数据包括第二接口的返参子数据。优选地,根据入参配置信息确定第一接口的入参子数据之后,还包括:根据第一接口的入参子数据从第一接口中读取第一接口的第二返参子数据,返参数据包括第一接口的第二返参子数据。In one embodiment, there are multiple target interfaces, and the multiple target interfaces include a first interface and a second interface, the first interface is serially connected with the second interface, and the input parameter configuration information is used to configure the input parameter sub-data of the first interface and configure the first return parameter sub-data of the first interface as the input parameter sub-data of the second interface; the reading module 30 is specifically used to determine the input parameter sub-data of the first interface according to the input parameter configuration information, read the first return parameter sub-data of the first interface from the first interface according to the input parameter sub-data of the first interface, use the first return parameter sub-data of the first interface as the input parameter sub-data of the second interface, read the return parameter sub-data of the second interface from the second interface according to the input parameter sub-data of the second interface, and the return parameter data includes the return parameter sub-data of the second interface. Preferably, after determining the input parameter sub-data of the first interface according to the input parameter configuration information, it also includes: reading the second return parameter sub-data of the first interface from the first interface according to the input parameter sub-data of the first interface, and the return parameter data includes the second return parameter sub-data of the first interface.

在其中一个实施例中,目标接口为多个,多个目标接口中包括第三接口和第四接口,第三接口与第四接口并行,入参配置信息用于配置第三接口的入参子数据以及配置第四接口的入参子数据;读取模块30具体用于根据入参配置信息确定第三接口的入参子数据以及第四接口的入参子数据,根据第三接口的入参子数据从第三接口读取第三接口的返参子数据,根据第四接口的入参子数据从第四接口读取第四接口的返参子数据,返参数据包括第三接口的返参子数据和第四接口的返参子数据。In one embodiment, there are multiple target interfaces, including a third interface and a fourth interface, the third interface is parallel to the fourth interface, and the input parameter configuration information is used to configure the input parameter sub-data of the third interface and the input parameter sub-data of the fourth interface; the reading module 30 is specifically used to determine the input parameter sub-data of the third interface and the input parameter sub-data of the fourth interface according to the input parameter configuration information, read the return parameter sub-data of the third interface from the third interface according to the input parameter sub-data of the third interface, and read the return parameter sub-data of the fourth interface from the fourth interface according to the input parameter sub-data of the fourth interface, and the return parameter data includes the return parameter sub-data of the third interface and the return parameter sub-data of the fourth interface.

在其中一个实施例中,该装置还包括设置模块,用于采用FreeMarker模板引擎配置返参配置信息中的预设规则信息,预设规则信息包括逻辑运算规则;配置模块40具体还用于采用所述逻辑运算规则并通过FreeMarker模板引擎对返参数据进行逻辑运算,逻辑运算后得到结果数据,接口数据包括结果数据。In one embodiment, the device also includes a setting module, which is used to use the FreeMarker template engine to configure the preset rule information in the return parameter configuration information, and the preset rule information includes logical operation rules; the configuration module 40 is also specifically used to use the said logical operation rules and perform logical operations on the return parameter data through the FreeMarker template engine, and obtain result data after the logical operation, and the interface data includes the result data.

优选地,预设规则信息还包括动态解析规则和动态赋值规则,采用逻辑运算规则并通过FreeMarker模板引擎对返参数据进行逻辑运算,逻辑运算后得到结果数据,包括:采用动态解析规则并通过FreeMarker模板引擎对返参数据进行动态解析,得到解析数据;采用动态赋值规则并通过FreeMarker模板引擎将解析数据赋值到指定变量,得到指定变量的变量值;采用逻辑运算规则并通过FreeMarker模板引擎对变量值进行逻辑运算,逻辑运算后得到结果数据。Preferably, the preset rule information also includes dynamic parsing rules and dynamic assignment rules, adopts logical operation rules and performs logical operation on the returned parameter data through the FreeMarker template engine, and obtains result data after the logical operation, including: adopting dynamic parsing rules and dynamically parsing the returned parameter data through the FreeMarker template engine to obtain parsed data; adopting dynamic assignment rules and assigning the parsed data to the specified variable through the FreeMarker template engine to obtain the variable value of the specified variable; adopting logical operation rules and performing logical operation on the variable value through the FreeMarker template engine to obtain the result data after the logical operation.

在其中一个实施例中,配置模块40具体还用于获取返参配置信息的预设规则信息;根据预设规则信息对目标接口的返参数据进行配置,配置后的返参数据作为待处理数据;获取待配置节点的组件模板;根据待处理数据以及组件模板生成组件数据,接口数据包括组件数据。In one of the embodiments, the configuration module 40 is also specifically used to obtain preset rule information of the return parameter configuration information; configure the return parameter data of the target interface according to the preset rule information, and use the configured return parameter data as the data to be processed; obtain the component template of the node to be configured; generate component data according to the data to be processed and the component template, and the interface data includes the component data.

优选地,组件模板包括选项卡组件模板和/或回复组件模板,根据待处理数据以及组件模板生成组件数据,包括:从待处理数据中筛选选项卡组件模板的第一数据,根据第一数据和选项卡组件模板生成选项卡组件数据,组件数据包括选项卡组件数据;和/或,从待处理数据中筛选回复组件模板的第二数据,根据第二数据和回复组件模板生成回复组件数据,组件数据包括回复组件数据。Preferably, the component template includes a tab component template and/or a reply component template, and generating component data based on the data to be processed and the component template includes: filtering first data of the tab component template from the data to be processed, generating tab component data based on the first data and the tab component template, wherein the component data includes the tab component data; and/or filtering second data of the reply component template from the data to be processed, generating reply component data based on the second data and the reply component template, wherein the component data includes the reply component data.

在其中一个实施例中,配置模块40具体还用于当组件数据包括选项卡组件数据时,获取待配置节点的选项卡模板;从组件数据中获取选项卡组件数据,根据选项卡组件数据与选项卡模板生成选项卡数据,接口数据包含选项卡数据。In one embodiment, the configuration module 40 is specifically used to obtain the tab template of the node to be configured when the component data includes tab component data; obtain the tab component data from the component data, generate the tab data according to the tab component data and the tab template, and the interface data includes the tab data.

关于接口数据的获取装置的具体限定可以参见上文中对于接口数据的获取方法的限定,在此不再赘述。上述接口数据的获取装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。The specific definition of the interface data acquisition device can refer to the definition of the interface data acquisition method above, which will not be repeated here. Each module in the above-mentioned interface data acquisition device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

在一个实施例中,提供了一种计算机设备,该计算机设备可以是支持流程引擎运行的服务器,其内部结构图可以如图10所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部的终端连接,以读取终端上的界面元素信息。该计算机程序被处理器执行时以实现一种接口数据的获取方法。In one embodiment, a computer device is provided, which may be a server supporting the operation of a process engine, and its internal structure diagram may be shown in FIG10. The computer device includes a processor, a memory, a network interface, and a database connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to connect to an external terminal to read the interface element information on the terminal. When the computer program is executed by the processor, a method for obtaining interface data is implemented.

本领域技术人员可以理解,图10中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art will understand that the structure shown in FIG. 10 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

在一个实施例中,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现以下步骤:识别自动化流程中的待配置节点以及待配置节点对应的目标接口;获取待配置节点的接口配置信息,接口配置信息包括目标接口的入参配置信息和返参配置信息,入参配置信息用于配置目标接口的入参数据,返参配置信息用于根据预设规则信息对目标接口的返参数据进行配置;当自动化流程流转到待配置节点时,根据入参配置信息确定目标接口的入参数据,根据入参数据从目标接口读取返参数据;根据返参配置信息对返参数据进行配置,得到待配置节点的接口数据。In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: identifying a node to be configured in an automated process and a target interface corresponding to the node to be configured; obtaining interface configuration information of the node to be configured, wherein the interface configuration information comprises input parameter configuration information and return parameter configuration information of the target interface, wherein the input parameter configuration information is used to configure input parameter data of the target interface, and the return parameter configuration information is used to configure return parameter data of the target interface according to preset rule information; when the automated process flows to the node to be configured, determining input parameter data of the target interface according to the input parameter configuration information, and reading return parameter data from the target interface according to the input parameter data; configuring the return parameter data according to the return parameter configuration information, and obtaining interface data of the node to be configured.

在其中一个实施例中,目标接口为多个,多个目标接口中包括第一接口和第二接口,第一接口与第二接口串行,入参配置信息用于配置第一接口的入参子数据并配置第一接口的第一返参子数据作为第二接口的入参子数据;处理器执行计算机程序实现上述的根据入参配置信息确定目标接口的入参数据,根据入参数据从目标接口读取返参数据步骤时,具体实现以下步骤:根据入参配置信息确定第一接口的入参子数据,根据第一接口的入参子数据从第一接口中读取第一接口的第一返参子数据,将第一接口的第一返参子数据作为第二接口的入参子数据,根据第二接口的入参子数据从第二接口中读取第二接口的返参子数据,返参数据包括第二接口的返参子数据。In one embodiment, there are multiple target interfaces, including a first interface and a second interface, the first interface and the second interface are serially connected, and the input parameter configuration information is used to configure the input parameter sub-data of the first interface and configure the first return parameter sub-data of the first interface as the input parameter sub-data of the second interface; when the processor executes a computer program to implement the above-mentioned steps of determining the input parameter data of the target interface according to the input parameter configuration information and reading the return parameter data from the target interface according to the input parameter data, the following steps are specifically implemented: determining the input parameter sub-data of the first interface according to the input parameter configuration information, reading the first return parameter sub-data of the first interface from the first interface according to the input parameter sub-data of the first interface, using the first return parameter sub-data of the first interface as the input parameter sub-data of the second interface, reading the return parameter sub-data of the second interface from the second interface according to the input parameter sub-data of the second interface, and the return parameter data including the return parameter sub-data of the second interface.

优选地,处理器执行计算机程序时还实现以下步骤:根据第一接口的入参子数据从第一接口中读取第一接口的第二返参子数据,返参数据包括第一接口的第二返参子数据。Preferably, when the processor executes the computer program, the following steps are also implemented: the second return parameter sub-data of the first interface is read from the first interface according to the input parameter sub-data of the first interface, and the return parameter data includes the second return parameter sub-data of the first interface.

在其中一个实施例中,目标接口为多个,多个目标接口中包括第三接口和第四接口,第三接口与第四接口并行,入参配置信息用于配置第三接口的入参子数据以及配置第四接口的入参子数据;处理器执行计算机程序实现上述的根据入参配置信息确定目标接口的入参数据,根据入参数据从目标接口读取返参数据步骤时,具体实现以下步骤:根据入参配置信息确定第三接口的入参子数据以及第四接口的入参子数据,根据第三接口的入参子数据从第三接口读取第三接口的返参子数据,根据第四接口的入参子数据从第四接口读取第四接口的返参子数据,返参数据包括第三接口的返参子数据和第四接口的返参子数据。In one embodiment, there are multiple target interfaces, including a third interface and a fourth interface, the third interface is parallel to the fourth interface, and the input parameter configuration information is used to configure the input parameter sub-data of the third interface and the input parameter sub-data of the fourth interface; when the processor executes a computer program to implement the above-mentioned steps of determining the input parameter data of the target interface according to the input parameter configuration information and reading the return parameter data from the target interface according to the input parameter data, the following steps are specifically implemented: determining the input parameter sub-data of the third interface and the input parameter sub-data of the fourth interface according to the input parameter configuration information, reading the return parameter sub-data of the third interface from the third interface according to the input parameter sub-data of the third interface, and reading the return parameter sub-data of the fourth interface from the fourth interface according to the input parameter sub-data of the fourth interface, and the return parameter data includes the return parameter sub-data of the third interface and the return parameter sub-data of the fourth interface.

在其中一个实施例中,处理器执行计算机程序时实现以下步骤:采用FreeMarker模板引擎配置返参配置信息中的预设规则信息,预设规则信息包括逻辑运算规则;处理器执行计算机程序实现上述的根据返参配置信息对返参数据进行配置,得到待配置节点的接口数据步骤时,具体实现以下步骤:采用逻辑运算规则并通过FreeMarker模板引擎对返参数据进行逻辑运算,逻辑运算后得到结果数据,接口数据包括结果数据。In one of the embodiments, when the processor executes a computer program, the following steps are implemented: the preset rule information in the return parameter configuration information is configured using the FreeMarker template engine, and the preset rule information includes logical operation rules; when the processor executes the computer program to implement the above-mentioned step of configuring the return parameter data according to the return parameter configuration information to obtain the interface data of the node to be configured, the following steps are specifically implemented: the logical operation rules are used and the FreeMarker template engine is used to perform logical operations on the return parameter data, and the result data is obtained after the logical operation, and the interface data includes the result data.

优选地,预设规则信息还包括动态解析规则和动态赋值规则,采用逻辑运算规则并通过FreeMarker模板引擎对返参数据进行逻辑运算,逻辑运算后得到结果数据,包括:采用动态解析规则并通过FreeMarker模板引擎对返参数据进行动态解析,得到解析数据;采用动态赋值规则并通过FreeMarker模板引擎将解析数据赋值到指定变量,得到指定变量的变量值;采用逻辑运算规则并通过FreeMarker模板引擎对变量值进行逻辑运算,逻辑运算后得到结果数据。Preferably, the preset rule information also includes dynamic parsing rules and dynamic assignment rules, adopts logical operation rules and performs logical operation on the returned parameter data through the FreeMarker template engine, and obtains result data after the logical operation, including: adopting dynamic parsing rules and dynamically parsing the returned parameter data through the FreeMarker template engine to obtain parsed data; adopting dynamic assignment rules and assigning the parsed data to the specified variable through the FreeMarker template engine to obtain the variable value of the specified variable; adopting logical operation rules and performing logical operation on the variable value through the FreeMarker template engine to obtain the result data after the logical operation.

在其中一个实施例中,处理器执行计算机程序实现上述的根据返参配置信息对返参数据进行配置,得到待配置节点的接口数据步骤时,具体实现以下步骤:获取返参配置信息的预设规则信息;根据预设规则信息对目标接口的返参数据进行配置,配置后的返参数据作为待处理数据;获取待配置节点的组件模板;根据待处理数据以及组件模板生成组件数据,接口数据包括组件数据。In one of the embodiments, when the processor executes a computer program to implement the above-mentioned step of configuring the return parameter data according to the return parameter configuration information to obtain the interface data of the node to be configured, the following steps are specifically implemented: obtaining the preset rule information of the return parameter configuration information; configuring the return parameter data of the target interface according to the preset rule information, and using the configured return parameter data as the data to be processed; obtaining the component template of the node to be configured; generating component data according to the data to be processed and the component template, and the interface data includes the component data.

优选地,组件模板包括选项卡组件模板和/或回复组件模板,根据待处理数据以及组件模板生成组件数据,包括:从待处理数据中筛选选项卡组件模板的第一数据,根据第一数据和选项卡组件模板生成选项卡组件数据,组件数据包括选项卡组件数据;和/或,从待处理数据中筛选回复组件模板的第二数据,根据第二数据和回复组件模板生成回复组件数据,组件数据包括回复组件数据。Preferably, the component template includes a tab component template and/or a reply component template, and generating component data based on the data to be processed and the component template includes: filtering first data of the tab component template from the data to be processed, generating tab component data based on the first data and the tab component template, wherein the component data includes the tab component data; and/or filtering second data of the reply component template from the data to be processed, generating reply component data based on the second data and the reply component template, wherein the component data includes the reply component data.

在其中一个实施例中,处理器执行计算机程序时实现以下步骤:当组件数据包括选项卡组件数据时,获取待配置节点的选项卡模板;从组件数据中获取选项卡组件数据,根据选项卡组件数据与选项卡模板生成选项卡数据,接口数据包含选项卡数据。In one of the embodiments, the processor implements the following steps when executing the computer program: when the component data includes tab component data, obtaining the tab template of the node to be configured; obtaining the tab component data from the component data, generating the tab data according to the tab component data and the tab template, and the interface data includes the tab data.

在一个实施例中,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现以下步骤:接收任务流程的触发信息,根据触发信息启动自动化流程;当自动化流程流转到待配置节点时,识别待配置节点对应的目标接口;获取待配置节点的接口配置信息,接口配置信息包括目标接口的入参配置信息和返参配置信息,入参配置信息用于配置目标接口的入参数据,返参配置信息用于根据预设规则信息对目标接口的返参数据进行配置;根据入参配置信息确定目标接口的入参数据,根据入参数据从目标接口读取返参数据;根据返参配置信息对返参数据进行配置,得到待配置节点的接口数据;根据接口数据执行自动化流程中待配置节点的任务。In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: receiving trigger information of a task flow, and starting an automation flow according to the trigger information; when the automation flow flows to a node to be configured, identifying a target interface corresponding to the node to be configured; obtaining interface configuration information of the node to be configured, the interface configuration information including input parameter configuration information and return parameter configuration information of the target interface, the input parameter configuration information being used to configure input parameter data of the target interface, and the return parameter configuration information being used to configure return parameter data of the target interface according to preset rule information; determining input parameter data of the target interface according to the input parameter configuration information, and reading return parameter data from the target interface according to the input parameter data; configuring the return parameter data according to the return parameter configuration information to obtain interface data of the node to be configured; and executing the task of the node to be configured in the automation flow according to the interface data.

在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:识别自动化流程中的待配置节点以及待配置节点对应的目标接口;获取待配置节点的接口配置信息,接口配置信息包括目标接口的入参配置信息和返参配置信息,入参配置信息用于配置目标接口的入参数据,返参配置信息用于根据预设规则信息对目标接口的返参数据进行配置;当自动化流程流转到待配置节点时,根据入参配置信息确定目标接口的入参数据,根据入参数据从目标接口读取返参数据;根据返参配置信息对返参数据进行配置,得到待配置节点的接口数据。In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: identifying a node to be configured in an automated process and a target interface corresponding to the node to be configured; obtaining interface configuration information of the node to be configured, the interface configuration information including input parameter configuration information and return parameter configuration information of the target interface, the input parameter configuration information being used to configure the input parameter data of the target interface, and the return parameter configuration information being used to configure the return parameter data of the target interface according to preset rule information; when the automated process flows to the node to be configured, determining the input parameter data of the target interface according to the input parameter configuration information, and reading the return parameter data from the target interface according to the input parameter data; configuring the return parameter data according to the return parameter configuration information, and obtaining the interface data of the node to be configured.

在其中一个实施例中,目标接口为多个,多个目标接口中包括第一接口和第二接口,第一接口与第二接口串行,入参配置信息用于配置第一接口的入参子数据并配置第一接口的第一返参子数据作为第二接口的入参子数据;计算机程序被处理器执行实现上述的根据入参配置信息确定目标接口的入参数据,根据入参数据从目标接口读取返参数据步骤时,具体实现以下步骤:根据入参配置信息确定第一接口的入参子数据,根据第一接口的入参子数据从第一接口中读取第一接口的第一返参子数据,将第一接口的第一返参子数据作为第二接口的入参子数据,根据第二接口的入参子数据从第二接口中读取第二接口的返参子数据,返参数据包括第二接口的返参子数据。In one embodiment, there are multiple target interfaces, including a first interface and a second interface, the first interface and the second interface are serially connected, and the input parameter configuration information is used to configure the input parameter sub-data of the first interface and configure the first return parameter sub-data of the first interface as the input parameter sub-data of the second interface; when the computer program is executed by the processor to implement the above-mentioned steps of determining the input parameter data of the target interface according to the input parameter configuration information and reading the return parameter data from the target interface according to the input parameter data, the following steps are specifically implemented: determining the input parameter sub-data of the first interface according to the input parameter configuration information, reading the first return parameter sub-data of the first interface from the first interface according to the input parameter sub-data of the first interface, using the first return parameter sub-data of the first interface as the input parameter sub-data of the second interface, reading the return parameter sub-data of the second interface from the second interface according to the input parameter sub-data of the second interface, and the return parameter data including the return parameter sub-data of the second interface.

优选地,计算机程序被处理器执行时还实现以下步骤:根据第一接口的入参子数据从第一接口中读取第一接口的第二返参子数据,返参数据包括第一接口的第二返参子数据。Preferably, when the computer program is executed by the processor, the following steps are also implemented: the second return parameter sub-data of the first interface is read from the first interface according to the input parameter sub-data of the first interface, and the return parameter data includes the second return parameter sub-data of the first interface.

在其中一个实施例中,目标接口为多个,多个目标接口中包括第三接口和第四接口,第三接口与第四接口并行,入参配置信息用于配置第三接口的入参子数据以及配置第四接口的入参子数据;计算机程序被处理器执行实现上述的根据入参配置信息确定目标接口的入参数据,根据入参数据从目标接口读取返参数据步骤时,具体实现以下步骤:根据入参配置信息确定第三接口的入参子数据以及第四接口的入参子数据,根据第三接口的入参子数据从第三接口读取第三接口的返参子数据,根据第四接口的入参子数据从第四接口读取第四接口的返参子数据,返参数据包括第三接口的返参子数据和第四接口的返参子数据。In one embodiment, there are multiple target interfaces, including a third interface and a fourth interface, the third interface is parallel to the fourth interface, and the input parameter configuration information is used to configure the input parameter sub-data of the third interface and the input parameter sub-data of the fourth interface; when the computer program is executed by the processor to implement the above-mentioned steps of determining the input parameter data of the target interface according to the input parameter configuration information and reading the return parameter data from the target interface according to the input parameter data, the following steps are specifically implemented: determining the input parameter sub-data of the third interface and the input parameter sub-data of the fourth interface according to the input parameter configuration information, reading the return parameter sub-data of the third interface from the third interface according to the input parameter sub-data of the third interface, and reading the return parameter sub-data of the fourth interface from the fourth interface according to the input parameter sub-data of the fourth interface, and the return parameter data includes the return parameter sub-data of the third interface and the return parameter sub-data of the fourth interface.

在其中一个实施例中,计算机程序被处理器执行时实现以下步骤:采用FreeMarker模板引擎配置返参配置信息中的预设规则信息,预设规则信息包括逻辑运算规则;处理器执行计算机程序实现上述的根据返参配置信息对返参数据进行配置,得到待配置节点的接口数据步骤时,具体实现以下步骤:采用逻辑运算规则并通过FreeMarker模板引擎对返参数据进行逻辑运算,逻辑运算后得到结果数据,接口数据包括结果数据。In one of the embodiments, when the computer program is executed by the processor, the following steps are implemented: the preset rule information in the return parameter configuration information is configured using the FreeMarker template engine, and the preset rule information includes logical operation rules; when the processor executes the computer program to implement the above-mentioned step of configuring the return parameter data according to the return parameter configuration information to obtain the interface data of the node to be configured, the following steps are specifically implemented: the logical operation rules are used and the FreeMarker template engine is used to perform logical operations on the return parameter data, and the result data is obtained after the logical operation, and the interface data includes the result data.

优选地,预设规则信息还包括动态解析规则和动态赋值规则,采用逻辑运算规则并通过FreeMarker模板引擎对返参数据进行逻辑运算,逻辑运算后得到结果数据,包括:采用动态解析规则并通过FreeMarker模板引擎对返参数据进行动态解析,得到解析数据;采用动态赋值规则并通过FreeMarker模板引擎将解析数据赋值到指定变量,得到指定变量的变量值;采用逻辑运算规则并通过FreeMarker模板引擎对变量值进行逻辑运算,逻辑运算后得到结果数据。Preferably, the preset rule information also includes dynamic parsing rules and dynamic assignment rules, adopts logical operation rules and performs logical operation on the returned parameter data through the FreeMarker template engine, and obtains result data after the logical operation, including: adopting dynamic parsing rules and dynamically parsing the returned parameter data through the FreeMarker template engine to obtain parsed data; adopting dynamic assignment rules and assigning the parsed data to the specified variable through the FreeMarker template engine to obtain the variable value of the specified variable; adopting logical operation rules and performing logical operation on the variable value through the FreeMarker template engine to obtain the result data after the logical operation.

在其中一个实施例中,计算机程序被处理器执行实现上述的根据返参配置信息对返参数据进行配置,得到待配置节点的接口数据步骤时,具体实现以下步骤:获取返参配置信息的预设规则信息;根据预设规则信息对目标接口的返参数据进行配置,配置后的返参数据作为待处理数据;获取待配置节点的组件模板;根据待处理数据以及组件模板生成组件数据,接口数据包括组件数据。In one of the embodiments, when a computer program is executed by a processor to implement the above-mentioned step of configuring the return parameter data according to the return parameter configuration information to obtain the interface data of the node to be configured, the following steps are specifically implemented: obtaining the preset rule information of the return parameter configuration information; configuring the return parameter data of the target interface according to the preset rule information, and using the configured return parameter data as the data to be processed; obtaining the component template of the node to be configured; generating component data according to the data to be processed and the component template, and the interface data includes the component data.

优选地,组件模板包括选项卡组件模板和/或回复组件模板,根据待处理数据以及组件模板生成组件数据,包括:从待处理数据中筛选选项卡组件模板的第一数据,根据第一数据和选项卡组件模板生成选项卡组件数据,组件数据包括选项卡组件数据;和/或,从待处理数据中筛选回复组件模板的第二数据,根据第二数据和回复组件模板生成回复组件数据,组件数据包括回复组件数据。Preferably, the component template includes a tab component template and/or a reply component template, and generating component data based on the data to be processed and the component template includes: filtering first data of the tab component template from the data to be processed, generating tab component data based on the first data and the tab component template, wherein the component data includes the tab component data; and/or filtering second data of the reply component template from the data to be processed, generating reply component data based on the second data and the reply component template, wherein the component data includes the reply component data.

在其中一个实施例中,计算机程序被处理器执行时实现以下步骤:当组件数据包括选项卡组件数据时,获取待配置节点的选项卡模板;从组件数据中获取选项卡组件数据,根据选项卡组件数据与选项卡模板生成选项卡数据,接口数据包含选项卡数据。In one of the embodiments, the computer program implements the following steps when executed by a processor: when the component data includes tab component data, obtaining a tab template of the node to be configured; obtaining the tab component data from the component data, generating tab data based on the tab component data and the tab template, and the interface data includes the tab data.

在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:接收任务流程的触发信息,根据触发信息启动自动化流程;当自动化流程流转到待配置节点时,识别待配置节点对应的目标接口;获取待配置节点的接口配置信息,接口配置信息包括目标接口的入参配置信息和返参配置信息,入参配置信息用于配置目标接口的入参数据,返参配置信息用于根据预设规则信息对目标接口的返参数据进行配置;根据入参配置信息确定目标接口的入参数据,根据入参数据从目标接口读取返参数据;根据返参配置信息对返参数据进行配置,得到待配置节点的接口数据;根据接口数据执行自动化流程中待配置节点的任务。In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: receiving trigger information of a task process, and starting an automation process according to the trigger information; when the automation process flows to a node to be configured, identifying a target interface corresponding to the node to be configured; obtaining interface configuration information of the node to be configured, the interface configuration information including input parameter configuration information and return parameter configuration information of the target interface, the input parameter configuration information being used to configure input parameter data of the target interface, and the return parameter configuration information being used to configure return parameter data of the target interface according to preset rule information; determining input parameter data of the target interface according to the input parameter configuration information, and reading return parameter data from the target interface according to the input parameter data; configuring the return parameter data according to the return parameter configuration information, and obtaining interface data of the node to be configured; and executing the task of the node to be configured in the automation process according to the interface data.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims (9)

1.一种接口数据的获取方法,所述方法包括:1. A method for acquiring interface data, the method comprising: 识别自动化流程中的待配置节点以及所述待配置节点对应的目标接口;Identify a node to be configured in an automation process and a target interface corresponding to the node to be configured; 获取所述待配置节点的接口配置信息,所述接口配置信息包括所述目标接口的入参配置信息和返参配置信息,所述入参配置信息用于配置所述目标接口的入参数据,所述返参配置信息用于根据预设规则信息对所述目标接口的返参数据进行配置,所述预设规则信息采用FreeMarker模板引擎配置,且所述预设规则信息包括逻辑运算规则、动态解析规则和动态赋值规则;Obtaining interface configuration information of the node to be configured, the interface configuration information including input parameter configuration information and return parameter configuration information of the target interface, the input parameter configuration information is used to configure the input parameter data of the target interface, the return parameter configuration information is used to configure the return parameter data of the target interface according to preset rule information, the preset rule information is configured using a FreeMarker template engine, and the preset rule information includes logical operation rules, dynamic parsing rules, and dynamic assignment rules; 当所述自动化流程流转到所述待配置节点时,根据所述入参配置信息确定所述目标接口的所述入参数据,根据所述入参数据从所述目标接口读取所述返参数据;When the automated process flows to the node to be configured, the input parameter data of the target interface is determined according to the input parameter configuration information, and the return parameter data is read from the target interface according to the input parameter data; 根据返参配置信息对所述返参数据进行配置,得到所述待配置节点的接口数据;The returned parameter data is configured according to the returned parameter configuration information to obtain the interface data of the node to be configured; 所述根据返参配置信息对所述返参数据进行配置,得到所述待配置节点的接口数据,包括:The configuring the returned parameter data according to the returned parameter configuration information to obtain the interface data of the node to be configured includes: 采用所述动态解析规则并通过所述FreeMarker模板引擎对所述返参数据进行动态解析,得到解析数据;The dynamic parsing rule is adopted and the returned parameter data is dynamically parsed through the FreeMarker template engine to obtain parsed data; 采用所述动态赋值规则并通过所述FreeMarker模板引擎将所述解析数据赋值到指定变量,得到所述指定变量的变量值;The dynamic assignment rule is adopted and the parsed data is assigned to a specified variable through the FreeMarker template engine to obtain a variable value of the specified variable; 采用所述逻辑运算规则并通过所述FreeMarker模板引擎对所述变量值进行逻辑运算,逻辑运算后得到结果数据,所述接口数据包括所述结果数据。The logic operation rule is adopted and the FreeMarker template engine is used to perform a logic operation on the variable value, and result data is obtained after the logic operation, and the interface data includes the result data. 2.根据权利要求1所述的方法,其特征在于,所述目标接口为多个,多个所述目标接口中包括第一接口和第二接口,所述第一接口与所述第二接口串行,所述入参配置信息用于配置所述第一接口的入参子数据并配置所述第一接口的第一返参子数据作为所述第二接口的入参子数据;2. The method according to claim 1 is characterized in that there are multiple target interfaces, the multiple target interfaces include a first interface and a second interface, the first interface is serially connected to the second interface, and the input parameter configuration information is used to configure the input parameter sub-data of the first interface and configure the first return parameter sub-data of the first interface as the input parameter sub-data of the second interface; 所述根据所述入参配置信息确定所述目标接口的所述入参数据,根据所述入参数据从所述目标接口读取所述返参数据,包括:The determining the input parameter data of the target interface according to the input parameter configuration information, and reading the return parameter data from the target interface according to the input parameter data, comprises: 根据所述入参配置信息确定所述第一接口的入参子数据,根据所述第一接口的入参子数据从所述第一接口中读取所述第一接口的第一返参子数据,将所述第一接口的第一返参子数据作为所述第二接口的入参子数据,根据所述第二接口的入参子数据从所述第二接口中读取所述第二接口的返参子数据,所述返参数据包括所述第二接口的返参子数据;Determine the input parameter sub-data of the first interface according to the input parameter configuration information, read the first return parameter sub-data of the first interface from the first interface according to the input parameter sub-data of the first interface, use the first return parameter sub-data of the first interface as the input parameter sub-data of the second interface, read the return parameter sub-data of the second interface from the second interface according to the input parameter sub-data of the second interface, and the return parameter data includes the return parameter sub-data of the second interface; 所述方法还包括:The method further comprises: 根据所述第一接口的入参子数据从所述第一接口中读取所述第一接口的第二返参子数据,所述返参数据包括所述第一接口的第二返参子数据。The second return parameter sub-data of the first interface is read from the first interface according to the input parameter sub-data of the first interface, and the return parameter data includes the second return parameter sub-data of the first interface. 3.根据权利要求1所述的方法,其特征在于,所述目标接口为多个,多个所述目标接口中包括第三接口和第四接口,所述第三接口与所述第四接口并行,所述入参配置信息用于配置所述第三接口的入参子数据以及配置所述第四接口的入参子数据;3. The method according to claim 1, characterized in that there are multiple target interfaces, the multiple target interfaces include a third interface and a fourth interface, the third interface is parallel to the fourth interface, and the input parameter configuration information is used to configure the input parameter sub-data of the third interface and the input parameter sub-data of the fourth interface; 所述根据所述入参配置信息确定所述目标接口的所述入参数据,根据所述入参数据从所述目标接口读取所述返参数据,包括:The determining the input parameter data of the target interface according to the input parameter configuration information, and reading the return parameter data from the target interface according to the input parameter data, comprises: 根据所述入参配置信息确定所述第三接口的入参子数据以及所述第四接口的入参子数据,根据所述第三接口的入参子数据从所述第三接口读取所述第三接口的返参子数据,根据所述第四接口的入参子数据从所述第四接口读取所述第四接口的返参子数据,所述返参数据包括所述第三接口的返参子数据和所述第四接口的返参子数据。The input parameter sub-data of the third interface and the input parameter sub-data of the fourth interface are determined according to the input parameter configuration information, the return parameter sub-data of the third interface is read from the third interface according to the input parameter sub-data of the third interface, and the return parameter sub-data of the fourth interface is read from the fourth interface according to the input parameter sub-data of the fourth interface, and the return parameter sub-data includes the return parameter sub-data of the third interface and the return parameter sub-data of the fourth interface. 4.根据权利要求1所述的方法,其特征在于,所述根据返参配置信息对所述返参数据进行配置,得到所述待配置节点的接口数据,包括:4. The method according to claim 1, characterized in that the step of configuring the returned parameter data according to the returned parameter configuration information to obtain the interface data of the node to be configured comprises: 获取所述返参配置信息的所述预设规则信息;Obtain the preset rule information of the return parameter configuration information; 根据所述预设规则信息对所述目标接口的返参数据进行配置,配置后的返参数据作为待处理数据;The returned parameter data of the target interface is configured according to the preset rule information, and the configured returned parameter data is used as the data to be processed; 获取所述待配置节点的组件模板;Obtaining a component template of the node to be configured; 根据所述待处理数据以及所述组件模板生成组件数据,所述接口数据包括所述组件数据;Generate component data according to the data to be processed and the component template, wherein the interface data includes the component data; 所述组件模板包括选项卡组件模板和/或回复组件模板,所述根据所述待处理数据以及所述组件模板生成组件数据,包括:The component template includes a tab component template and/or a reply component template, and the generating component data according to the data to be processed and the component template includes: 从所述待处理数据中筛选所述选项卡组件模板的第一数据,根据所述第一数据和所述选项卡组件模板生成选项卡组件数据,所述组件数据包括所述选项卡组件数据;Filter the first data of the tab component template from the data to be processed, and generate tab component data according to the first data and the tab component template, wherein the component data includes the tab component data; 和/或,and / or, 从所述待处理数据中筛选所述回复组件模板的第二数据,根据所述第二数据和所述回复组件模板生成回复组件数据,所述组件数据包括所述回复组件数据。The second data of the reply component template is filtered from the data to be processed, and reply component data is generated according to the second data and the reply component template, wherein the component data includes the reply component data. 5.根据权利要求4所述的方法,其特征在于,所述方法还包括:5. The method according to claim 4, characterized in that the method further comprises: 当所述组件数据包括所述选项卡组件数据时,获取所述待配置节点的选项卡模板;When the component data includes the tab component data, obtaining the tab template of the node to be configured; 从所述组件数据中获取所述选项卡组件数据,根据所述选项卡组件数据与所述选项卡模板生成选项卡数据,所述接口数据包含所述选项卡数据。The tab component data is acquired from the component data, and tab data is generated according to the tab component data and the tab template, wherein the interface data includes the tab data. 6.一种自动化流程的执行方法,其特征在于,所述方法包括:6. A method for executing an automated process, characterized in that the method comprises: 接收任务流程的触发信息,根据所述触发信息启动自动化流程;Receive trigger information of the task process, and start the automation process according to the trigger information; 当所述自动化流程流转到待配置节点时,识别所述待配置节点对应的目标接口;When the automated process flows to the node to be configured, identifying the target interface corresponding to the node to be configured; 获取所述待配置节点的接口配置信息,所述接口配置信息包括所述目标接口的入参配置信息和返参配置信息,所述入参配置信息用于配置所述目标接口的入参数据,所述返参配置信息用于根据预设规则信息对所述目标接口的返参数据进行配置,所述预设规则信息采用FreeMarker模板引擎配置,且所述预设规则信息包括逻辑运算规则、动态解析规则和动态赋值规则;Obtaining interface configuration information of the node to be configured, the interface configuration information including input parameter configuration information and return parameter configuration information of the target interface, the input parameter configuration information is used to configure the input parameter data of the target interface, the return parameter configuration information is used to configure the return parameter data of the target interface according to preset rule information, the preset rule information is configured using a FreeMarker template engine, and the preset rule information includes logical operation rules, dynamic parsing rules, and dynamic assignment rules; 根据所述入参配置信息确定所述目标接口的所述入参数据,根据所述入参数据从所述目标接口读取所述返参数据;Determine the input parameter data of the target interface according to the input parameter configuration information, and read the return parameter data from the target interface according to the input parameter data; 根据返参配置信息对所述返参数据进行配置,得到所述待配置节点的接口数据;The returned parameter data is configured according to the returned parameter configuration information to obtain the interface data of the node to be configured; 根据所述接口数据执行所述自动化流程中所述待配置节点的任务;Execute the task of the node to be configured in the automation process according to the interface data; 所述根据返参配置信息对所述返参数据进行配置,得到所述待配置节点的接口数据,包括:The configuring the returned parameter data according to the returned parameter configuration information to obtain the interface data of the node to be configured includes: 采用所述动态解析规则并通过所述FreeMarker模板引擎对所述返参数据进行动态解析,得到解析数据;The dynamic parsing rule is adopted and the returned parameter data is dynamically parsed through the FreeMarker template engine to obtain parsed data; 采用所述动态赋值规则并通过所述FreeMarker模板引擎将所述解析数据赋值到指定变量,得到所述指定变量的变量值;The dynamic assignment rule is adopted and the parsed data is assigned to a specified variable through the FreeMarker template engine to obtain a variable value of the specified variable; 采用所述逻辑运算规则并通过所述FreeMarker模板引擎对所述变量值进行逻辑运算,逻辑运算后得到结果数据,所述接口数据包括所述结果数据。The logic operation rule is adopted and the FreeMarker template engine is used to perform a logic operation on the variable value, and result data is obtained after the logic operation, and the interface data includes the result data. 7.一种接口数据的获取装置,其特征在于,所述装置包括:7. A device for acquiring interface data, characterized in that the device comprises: 识别模块,用于识别自动化流程中的待配置节点以及所述待配置节点对应的目标接口;An identification module, used to identify the node to be configured in the automation process and the target interface corresponding to the node to be configured; 获取模块,用于获取所述待配置节点的接口配置信息,所述接口配置信息包括所述目标接口的入参配置信息和返参配置信息,所述入参配置信息用于配置所述目标接口的入参数据,所述返参配置信息用于根据预设规则信息对所述目标接口的返参数据进行配置,所述预设规则信息采用FreeMarker模板引擎配置,且所述预设规则信息包括逻辑运算规则、动态解析规则和动态赋值规则;An acquisition module, used to acquire the interface configuration information of the node to be configured, wherein the interface configuration information includes input parameter configuration information and return parameter configuration information of the target interface, wherein the input parameter configuration information is used to configure the input parameter data of the target interface, and the return parameter configuration information is used to configure the return parameter data of the target interface according to preset rule information, wherein the preset rule information is configured using a FreeMarker template engine, and the preset rule information includes logical operation rules, dynamic parsing rules, and dynamic assignment rules; 读取模块,用于当所述自动化流程流转到所述待配置节点时,根据所述入参配置信息确定所述目标接口的所述入参数据,根据所述入参数据从所述目标接口读取所述返参数据;A reading module, used for determining the input parameter data of the target interface according to the input parameter configuration information when the automated process flows to the node to be configured, and reading the return parameter data from the target interface according to the input parameter data; 配置模块,用于根据返参配置信息对所述返参数据进行配置,得到所述待配置节点的接口数据;A configuration module, used to configure the returned parameter data according to the returned parameter configuration information to obtain the interface data of the node to be configured; 所述根据返参配置信息对所述返参数据进行配置,得到所述待配置节点的接口数据,包括:The configuring the returned parameter data according to the returned parameter configuration information to obtain the interface data of the node to be configured includes: 采用所述动态解析规则并通过所述FreeMarker模板引擎对所述返参数据进行动态解析,得到解析数据;The dynamic parsing rule is adopted and the returned parameter data is dynamically parsed through the FreeMarker template engine to obtain parsed data; 采用所述动态赋值规则并通过所述FreeMarker模板引擎将所述解析数据赋值到指定变量,得到所述指定变量的变量值;The dynamic assignment rule is adopted and the parsed data is assigned to a specified variable through the FreeMarker template engine to obtain a variable value of the specified variable; 采用所述逻辑运算规则并通过所述FreeMarker模板引擎对所述变量值进行逻辑运算,逻辑运算后得到结果数据,所述接口数据包括所述结果数据。The logic operation rule is adopted and the FreeMarker template engine is used to perform a logic operation on the variable value, and result data is obtained after the logic operation, and the interface data includes the result data. 8.一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至5或者权利要求6中任一项所述方法的步骤。8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any one of claims 1 to 5 or claim 6 when executing the computer program. 9.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至5或者权利要求6中任一项所述的方法的步骤。9. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 or claim 6 are implemented.
CN202011376629.8A 2020-11-30 2020-11-30 Method and device for executing automated process and obtaining interface data thereof Active CN112487163B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011376629.8A CN112487163B (en) 2020-11-30 2020-11-30 Method and device for executing automated process and obtaining interface data thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011376629.8A CN112487163B (en) 2020-11-30 2020-11-30 Method and device for executing automated process and obtaining interface data thereof

Publications (2)

Publication Number Publication Date
CN112487163A CN112487163A (en) 2021-03-12
CN112487163B true CN112487163B (en) 2024-04-12

Family

ID=74937720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011376629.8A Active CN112487163B (en) 2020-11-30 2020-11-30 Method and device for executing automated process and obtaining interface data thereof

Country Status (1)

Country Link
CN (1) CN112487163B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114035860B (en) * 2021-11-04 2023-06-13 四川启睿克科技有限公司 Flow parameter configuration system based on RPA global variable module
CN115292010A (en) * 2022-09-28 2022-11-04 中邮消费金融有限公司 Method and system for automatically generating service through process configuration

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6411974B1 (en) * 1998-02-04 2002-06-25 Novell, Inc. Method to collate and extract desired contents from heterogeneous text-data streams
WO2017007466A1 (en) * 2015-07-08 2017-01-12 Hewlett Packard Enterprise Development Lp Orchestration template generation
CN106844643A (en) * 2017-01-13 2017-06-13 王洋 A kind of Database Dynamic generation method based on template engine
CN107678852A (en) * 2017-10-26 2018-02-09 携程旅游网络技术(上海)有限公司 Method, system, equipment and the storage medium calculated in real time based on flow data
CN107861870A (en) * 2017-11-02 2018-03-30 平安科技(深圳)有限公司 Interface testing and test data generating method, device, terminal and storage medium
CN108345482A (en) * 2017-12-29 2018-07-31 广州品唯软件有限公司 The self-defined edit methods of dynamic page, device, electronic equipment and storage medium
CN108460002A (en) * 2017-12-29 2018-08-28 中国平安财产保险股份有限公司 Affiliate's automatic butt method, apparatus, equipment and storage medium
CN108809998A (en) * 2018-06-19 2018-11-13 北京易途客信息技术有限公司 A kind of interface access method and device
CN109597754A (en) * 2018-10-22 2019-04-09 中国平安财产保险股份有限公司 Operation flow interface test method, device, computer equipment and storage medium
CN109614310A (en) * 2018-10-22 2019-04-12 中国平安财产保险股份有限公司 Test interface management method, device, computer equipment and storage medium
CN109636306A (en) * 2018-10-29 2019-04-16 平安医疗健康管理股份有限公司 Node-flow shifting method, device, terminal and storage medium
CN110162524A (en) * 2019-04-15 2019-08-23 中国平安财产保险股份有限公司 Management method, device, computer equipment and the storage medium of configuration data
CN110555178A (en) * 2019-08-28 2019-12-10 贝壳技术有限公司 Data proxy method and device
WO2019233293A1 (en) * 2018-06-07 2019-12-12 阿里巴巴集团控股有限公司 Method and apparatus for developing application program
CN110969001A (en) * 2018-09-27 2020-04-07 阿里巴巴集团控股有限公司 Feedback information generation method and device, storage medium, processor and terminal
CN111090457A (en) * 2019-12-17 2020-05-01 广州品唯软件有限公司 Interface analysis method, terminal device and computer-readable storage medium
WO2020119430A1 (en) * 2018-12-14 2020-06-18 深圳壹账通智能科技有限公司 Protocol interface test method, device, computer device and storage medium
CN111611784A (en) * 2020-04-29 2020-09-01 平安科技(深圳)有限公司 Report generation method, device, terminal device and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140310590A1 (en) * 2013-03-13 2014-10-16 Bby Solutions, Inc. Presentation layer software development kit for creation of dynamic webpages
US9910651B2 (en) * 2015-08-31 2018-03-06 Verizon Patent And Licensing Inc. System for developing, testing, deploying, and managing applications in real-time
US10853266B2 (en) * 2015-09-30 2020-12-01 Pure Storage, Inc. Hardware assisted data lookup methods

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6411974B1 (en) * 1998-02-04 2002-06-25 Novell, Inc. Method to collate and extract desired contents from heterogeneous text-data streams
WO2017007466A1 (en) * 2015-07-08 2017-01-12 Hewlett Packard Enterprise Development Lp Orchestration template generation
CN106844643A (en) * 2017-01-13 2017-06-13 王洋 A kind of Database Dynamic generation method based on template engine
CN107678852A (en) * 2017-10-26 2018-02-09 携程旅游网络技术(上海)有限公司 Method, system, equipment and the storage medium calculated in real time based on flow data
CN107861870A (en) * 2017-11-02 2018-03-30 平安科技(深圳)有限公司 Interface testing and test data generating method, device, terminal and storage medium
CN108345482A (en) * 2017-12-29 2018-07-31 广州品唯软件有限公司 The self-defined edit methods of dynamic page, device, electronic equipment and storage medium
CN108460002A (en) * 2017-12-29 2018-08-28 中国平安财产保险股份有限公司 Affiliate's automatic butt method, apparatus, equipment and storage medium
WO2019233293A1 (en) * 2018-06-07 2019-12-12 阿里巴巴集团控股有限公司 Method and apparatus for developing application program
CN108809998A (en) * 2018-06-19 2018-11-13 北京易途客信息技术有限公司 A kind of interface access method and device
CN110969001A (en) * 2018-09-27 2020-04-07 阿里巴巴集团控股有限公司 Feedback information generation method and device, storage medium, processor and terminal
CN109597754A (en) * 2018-10-22 2019-04-09 中国平安财产保险股份有限公司 Operation flow interface test method, device, computer equipment and storage medium
CN109614310A (en) * 2018-10-22 2019-04-12 中国平安财产保险股份有限公司 Test interface management method, device, computer equipment and storage medium
CN109636306A (en) * 2018-10-29 2019-04-16 平安医疗健康管理股份有限公司 Node-flow shifting method, device, terminal and storage medium
WO2020119430A1 (en) * 2018-12-14 2020-06-18 深圳壹账通智能科技有限公司 Protocol interface test method, device, computer device and storage medium
CN110162524A (en) * 2019-04-15 2019-08-23 中国平安财产保险股份有限公司 Management method, device, computer equipment and the storage medium of configuration data
CN110555178A (en) * 2019-08-28 2019-12-10 贝壳技术有限公司 Data proxy method and device
CN111090457A (en) * 2019-12-17 2020-05-01 广州品唯软件有限公司 Interface analysis method, terminal device and computer-readable storage medium
CN111611784A (en) * 2020-04-29 2020-09-01 平安科技(深圳)有限公司 Report generation method, device, terminal device and storage medium

Also Published As

Publication number Publication date
CN112487163A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN111142933B (en) Workflow generation method and device, computer equipment and storage medium
CN110333940A (en) Condition-based task scheduling method, device, equipment and storage medium
CN112487163B (en) Method and device for executing automated process and obtaining interface data thereof
CN113961332A (en) Method and device for realizing workflow engine, electronic equipment and storage medium
CN110019207B (en) Data processing method and device and script display method and device
CN111506314A (en) Project development method, device, server and medium
CN111597143A (en) Method for converting DAG graph data into workflow engine scheduling file
CN118626550B (en) Metadata acquisition method, device and storage medium
CN117573758A (en) Data stream arrangement method based on BI platform
CN110717739A (en) Workflow publishing method, apparatus, device and computer-readable storage medium
US20030018627A1 (en) Apparatus and method for workflow
CN115629743A (en) Service component arranging method, service scheduling method and device, electronic equipment and storage medium
CN112131022B (en) Open API management method, device, system and computer readable storage medium
Nguyen et al. A feature-oriented approach for web service customization
CN117234512B (en) Method, system, electronic equipment and storage medium for rapidly developing business
Ter Hofstede et al. Meta‐CASE: Is the game worth the candle?
CN118466907A (en) Logic arrangement system, method, electronic device and storage medium
US20030018698A1 (en) Apparatus and method for workflow
CN118134410A (en) Flexible workflow management method based on ESR meta-model
CN117289946A (en) Application system based on cloud protogenesis method and storage medium
CN117216135A (en) ETL execution template generation method
WO2020150009A1 (en) Profile data store automation via bots
CN110321111A (en) System flow control method, device, equipment and computer storage medium
CN112540813B (en) Application generation method based on workflow engine
CN115964072A (en) Workflow management system based on Flowable process engine development

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant