[go: up one dir, main page]

CN114706610A - Business flow chart generation method, device, equipment and storage medium - Google Patents

Business flow chart generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN114706610A
CN114706610A CN202210331265.4A CN202210331265A CN114706610A CN 114706610 A CN114706610 A CN 114706610A CN 202210331265 A CN202210331265 A CN 202210331265A CN 114706610 A CN114706610 A CN 114706610A
Authority
CN
China
Prior art keywords
tool
target
node
nodes
business
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210331265.4A
Other languages
Chinese (zh)
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.)
Suzhou Fengzhiding Information Technology Co ltd
Original Assignee
Suzhou Fengzhiding Information Technology 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 Suzhou Fengzhiding Information Technology Co ltd filed Critical Suzhou Fengzhiding Information Technology Co ltd
Priority to CN202210331265.4A priority Critical patent/CN114706610A/en
Publication of CN114706610A publication Critical patent/CN114706610A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明公开了一种业务流程图生成方法、装置、设备及存储介质。该方法包括:获取至少两个工具节点、每个工具节点对应的配置信息以及每个工具节点的位置信息;根据所述每个工具节点的位置信息确定间距小于距离阈值的两个工具节点之间的关联关系;根据所述至少两个工具节点、每个工具节点对应的配置信息以及间距小于距离阈值的两个工具节点之间的关联关系生成业务流程图,通过本发明的技术方案,以解决编写代码对用户要求较高,需要学习编程语言,学习成本高,不同人员编写代码的方式各异,不利于业务逻辑的阅读和维护的问题,能够以可视化图形流的方式编排后端业务服务,降低实现后端业务逻辑的难度,提高业务服务效率,并且便于维护。

Figure 202210331265

The invention discloses a method, device, equipment and storage medium for generating a business flow chart. The method includes: acquiring at least two tool nodes, configuration information corresponding to each tool node, and position information of each tool node; The association relationship; according to the at least two tool nodes, the corresponding configuration information of each tool node and the association relationship between the two tool nodes whose spacing is less than the distance threshold, generate a business flow chart, through the technical scheme of the present invention, to solve Writing code has high requirements for users, needs to learn programming languages, and the learning cost is high. Different people write code in different ways, which is not conducive to the reading and maintenance of business logic. Back-end business services can be arranged in the form of visual graphics flow, Reduce the difficulty of implementing back-end business logic, improve business service efficiency, and facilitate maintenance.

Figure 202210331265

Description

一种业务流程图生成方法、装置、设备及存储介质A method, apparatus, device and storage medium for generating a business flowchart

技术领域technical field

本发明实施例涉及计算机技术领域,尤其涉及一种业务流程图生成方法、装置、设备及存储介质。Embodiments of the present invention relate to the field of computer technologies, and in particular, to a method, apparatus, device, and storage medium for generating a business flowchart.

背景技术Background technique

低代码平台需要后台服务的业务支撑,实现业务数据的存取,业务逻辑的实现。目标市面上的产品以编写代码的方式实现业务服务。The low-code platform needs the business support of the background service to realize the access of business data and the realization of business logic. Products on the target market implement business services by writing code.

编写代码对用户要求较高,需要学习编程语言,学习成本高,不同人员编写代码的方式各异,不利于业务逻辑的阅读和维护。Writing code has high requirements for users, needs to learn programming languages, and the learning cost is high. Different people write code in different ways, which is not conducive to the reading and maintenance of business logic.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种业务流程图生成方法、装置、设备及存储介质,以解决编写代码对用户要求较高,需要学习编程语言,学习成本高,不同人员编写代码的方式各异,不利于业务逻辑的阅读和维护的问题,能够以可视化图形流的方式编排后端业务服务,降低实现后端业务逻辑的难度,提高业务服务效率,并且便于维护。Embodiments of the present invention provide a method, device, device, and storage medium for generating a business flow chart, so as to solve the problem that writing codes has high requirements on users, needs to learn programming languages, and the learning cost is high. Different people write codes in different ways, which is not conducive to The problem of reading and maintaining business logic can arrange back-end business services in the form of visual graphic flow, reduce the difficulty of implementing back-end business logic, improve business service efficiency, and facilitate maintenance.

根据本发明的一方面,提供了一种业务流程图生成方法,包括:According to an aspect of the present invention, a method for generating a business flowchart is provided, comprising:

获取至少两个工具节点、每个工具节点对应的配置信息以及每个工具节点的位置信息;Obtain at least two tool nodes, configuration information corresponding to each tool node, and location information of each tool node;

根据所述每个工具节点的位置信息确定间距小于距离阈值的两个工具节点之间的关联关系;Determine the association relationship between two tool nodes whose distance is less than the distance threshold according to the position information of each tool node;

根据所述至少两个工具节点、每个工具节点对应的配置信息以及间距小于距离阈值的两个工具节点之间的关联关系生成业务流程图。A business flowchart is generated according to the at least two tool nodes, configuration information corresponding to each tool node, and an association relationship between two tool nodes whose distance is smaller than a distance threshold.

根据本发明的另一方面,提供了一种业务流程图生成装置,该业务流程图生成装置包括:According to another aspect of the present invention, an apparatus for generating a business flow diagram is provided, and the apparatus for generating a business flow diagram includes:

获取模块,用于获取至少两个工具节点、每个工具节点对应的配置信息以及每个工具节点的位置信息;an acquisition module for acquiring at least two tool nodes, configuration information corresponding to each tool node, and location information of each tool node;

确定模块,用于根据所述每个工具节点的位置信息确定间距小于距离阈值的两个工具节点之间的关联关系;A determination module, used for determining the association relationship between two tool nodes whose spacing is less than the distance threshold according to the position information of each tool node;

生成模块,用于根据所述至少两个工具节点、每个工具节点对应的配置信息以及间距小于距离阈值的两个工具节点之间的关联关系生成业务流程图。A generating module is configured to generate a business flow chart according to the at least two tool nodes, configuration information corresponding to each tool node, and an association relationship between two tool nodes whose distance is smaller than a distance threshold.

根据本发明的另一方面,提供了一种电子设备,所述电子设备包括:According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

至少一个处理器;以及at least one processor; and

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行本发明任一实施例所述的业务流程图生成方法。The memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform any of the embodiments of the present invention. How to generate business flow chart.

根据本发明的另一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行时实现本发明任一实施例所述的业务流程图生成方法。According to another aspect of the present invention, a computer-readable storage medium is provided, where computer instructions are stored in the computer-readable storage medium, and the computer instructions are used to cause a processor to implement any of the embodiments of the present invention when executed. The method of generating business flow diagrams.

本发明实施例通过获取至少两个工具节点、每个工具节点对应的配置信息以及每个工具节点的位置信息;根据所述每个工具节点的位置信息确定间距小于距离阈值的两个工具节点之间的关联关系;根据所述至少两个工具节点、每个工具节点对应的配置信息以及间距小于距离阈值的两个工具节点之间的关联关系生成业务流程图,以解决编写代码对用户要求较高,需要学习编程语言,学习成本高,不同人员编写代码的方式各异,不利于业务逻辑的阅读和维护的问题,能够以可视化图形流的方式编排后端业务服务,降低实现后端业务逻辑的难度,提高业务服务效率,并且便于维护。In the embodiment of the present invention, at least two tool nodes, configuration information corresponding to each tool node, and position information of each tool node are obtained; according to the position information of each tool node, it is determined whether the distance between two tool nodes whose distance is smaller than the distance threshold is determined. The associated relationship between the two tool nodes; according to the at least two tool nodes, the configuration information corresponding to each tool node, and the relationship between the two tool nodes whose spacing is less than the distance threshold, generate a business flow chart, so as to solve the problem that writing code is more demanding on users. High, need to learn programming language, high learning cost, different people write code in different ways, which is not conducive to the reading and maintenance of business logic, can arrange back-end business services in the form of visual graphic flow, reduce the realization of back-end business logic difficult, improve business service efficiency, and facilitate maintenance.

应当理解,本部分所描述的内容并非旨在标识本发明的实施例的关键或重要特征,也不用于限制本发明的范围。本发明的其它特征将通过以下的说明书而变得容易理解。It should be understood that the content described in this section is not intended to identify key or critical features of the embodiments of the invention, nor is it intended to limit the scope of the invention. Other features of the present invention will become readily understood from the following description.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the embodiments. It should be understood that the following drawings only show some embodiments of the present invention, and therefore do not It should be regarded as a limitation of the scope, and for those of ordinary skill in the art, other related drawings can also be obtained according to these drawings without any creative effort.

图1是本发明实施例中的一种业务流程图生成方法的流程图;1 is a flowchart of a method for generating a business flowchart in an embodiment of the present invention;

图2是本发明实施例中的一种业务流程图的示意图;2 is a schematic diagram of a service flow diagram in an embodiment of the present invention;

图3是本发明实施例中的一种业务流程图生成装置的结构示意图;3 is a schematic structural diagram of an apparatus for generating a business flow diagram in an embodiment of the present invention;

图4是本发明实施例中的一种电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device in an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only Embodiments are part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.

实施例一Example 1

图1为本发明实施例提供的一种业务流程图生成方法的流程图,本实施例可适用于业务流程图生成的情况,该方法可以由本发明实施例中的业务流程图生成装置来执行,该业务流程图生成装置可采用软件和/或硬件的方式实现,如图1所示,该方法具体包括如下步骤:FIG. 1 is a flowchart of a method for generating a business flowchart provided by an embodiment of the present invention. This embodiment is applicable to the case of generating a business flowchart, and the method can be executed by the apparatus for generating a business flowchart in the embodiment of the present invention. The device for generating a business flowchart can be implemented in software and/or hardware. As shown in FIG. 1 , the method specifically includes the following steps:

S110,获取至少两个工具节点、每个工具节点对应的配置信息以及每个工具节点的位置信息。S110: Acquire at least two tool nodes, configuration information corresponding to each tool node, and location information of each tool node.

其中,所述工具节点可以为:基础工具对应的工具节点;所述工具节点还可以为:内部工具对应的工具节点;所述工具节点还可以为:外部工具对应的工具节点。基础工具包括:输入工具、判断工具、成功返回工具、失败返回工具以及修改数据流工具中的至少一种;所述内部工具包括:查询模型数据工具、执行模型方法类工具、调用服务工具以及调用连接器接口工具中的至少一种;所述外接工具包括:HTTP工具、JS脚本工具、Python脚本工具、Email通知工具、短信通知工具以及工作流工具中的至少一种。The tool node may be a tool node corresponding to a basic tool; the tool node may also be a tool node corresponding to an internal tool; the tool node may also be a tool node corresponding to an external tool. The basic tools include at least one of an input tool, a judgment tool, a successful return tool, a failure return tool, and a data flow modification tool; the internal tools include: a query model data tool, a model method execution tool, a service call tool, and a call At least one of connector interface tools; the external tools include: at least one of HTTP tools, JS script tools, Python script tools, Email notification tools, SMS notification tools, and workflow tools.

其中,所述至少两个工具节点可以为:一个基础工具对应的工具节点和至少一个内部工具对应的工具节点;所述至少两个工具节点还可以为:一个基础工具对应的工具节点和至少一个外接工具对应的工具节点;所述至少两个工具节点还可以为:一个基础工具对应的工具节点、至少一个内部工具对应的工具节点以及至少一个外接工具对应的工具节点。Wherein, the at least two tool nodes may be: a tool node corresponding to a basic tool and a tool node corresponding to at least one internal tool; the at least two tool nodes may also be: a tool node corresponding to a basic tool and at least one tool node A tool node corresponding to an external tool; the at least two tool nodes may also be: a tool node corresponding to a basic tool, a tool node corresponding to at least one internal tool, and a tool node corresponding to at least one external tool.

其中,所述每个工具节点对应的配置信息不同,例如可以是,若工具节点为查询模型数据工具,则所述配置信息包括:基础信息和属性信息,基础信息包括:标题、描述信息、超时时间以及异常处理方式等,属性信息包括:关键词、页数、每页显示数量以及查询条件信息等。Wherein, the configuration information corresponding to each tool node is different, for example, if the tool node is a query model data tool, the configuration information includes: basic information and attribute information, and the basic information includes: title, description information, timeout Time and exception handling methods, etc. The attribute information includes: keywords, number of pages, number of pages displayed, and query condition information.

其中,所述每个工具节点对应的配置信息的获取方式可以为:响应于检测到用户针对所述画布区域的所述目标工具对应的工具节点的触控操作,则在所述工具区域显示所述目标工具对应的配置界面;响应于检测到用户针对所述配置界面的编辑操作,则获取所述目标工具对应的工具节点的配置信息。例如可以是,若用户点击画布区域的查询模型数据工具对应的工具节点,在工具显示区域显示查询模型数据工具对应的配置界面,配置界面包括:基础配置区域和属性配置区域,用户可以在基础配置区域填写标题、描述以及超时时间,还可以在基础配置区域选择异常处理方式(继续执行或者停止)。用户可以在属性配置区域选择关键词、填写页数、每页显示数量以及查询条件信息。The configuration information corresponding to each tool node may be obtained in the following manner: in response to detecting a user's touch operation on the tool node corresponding to the target tool in the canvas area, displaying the configuration information in the tool area. The configuration interface corresponding to the target tool is obtained; in response to detecting the user's editing operation on the configuration interface, the configuration information of the tool node corresponding to the target tool is acquired. For example, if the user clicks the tool node corresponding to the query model data tool in the canvas area, the configuration interface corresponding to the query model data tool is displayed in the tool display area. The configuration interface includes: the basic configuration area and the attribute configuration area. Fill in the title, description and timeout in the area, and you can also select the exception handling method (continue execution or stop) in the basic configuration area. In the property configuration area, users can select keywords, fill in the number of pages, display quantity per page, and query condition information.

其中,所述每个工具节点的位置信息的获取方式可以为:响应于检测到用户将所述工具区域的目标工具拖拽至所述画布区域的操作,根据所述拖拽操作确定工具节点的位置信息。例如可以是,若用户将工具区域的目标工具A拖拽至画布区域的位置B,则确定目标工具A的位置信息为位置B。Wherein, the acquisition method of the location information of each tool node may be: in response to detecting that the user drags the target tool in the tool area to the canvas area, determining the location of the tool node according to the drag operation. location information. For example, if the user drags the target tool A in the tool area to the position B in the canvas area, the position information of the target tool A is determined to be the position B.

具体的,获取至少两个工具节点、每个工具节点对应的配置信息以及每个工具节点的位置信息,例如可以是,响应于检测到用户将所述工具区域的目标工具A拖拽至所述画布区域的操作,根据所述拖拽操作确定工具节点的位置信息X;响应于检测到用户将所述工具区域的目标工具B拖拽至所述画布区域的操作,根据所述拖拽操作确定工具节点的位置信息Y;响应于检测到用户将所述工具区域的目标工具C拖拽至所述画布区域的操作,根据所述拖拽操作确定工具节点的位置信息Z;响应于检测到用户针对所述画布区域的所述目标工具A对应的工具节点的触控操作,则在所述工具区域显示所述目标工具A对应的配置界面;响应于检测到用户针对所述配置界面的编辑操作,则获取所述目标工具A对应的工具节点的配置信息;响应于检测到用户针对所述画布区域的所述目标工具B对应的工具节点的触控操作,则在所述工具区域显示所述目标工具对应的配置界面;响应于检测到用户针对所述配置界面的编辑操作,则获取所述目标工具B对应的工具节点的配置信息;响应于检测到用户针对所述画布区域的所述目标工具C对应的工具节点的触控操作,则在所述工具区域显示所述目标工具对应的配置界面;响应于检测到用户针对所述配置界面的编辑操作,则获取所述目标工具C对应的工具节点的配置信息。Specifically, acquiring at least two tool nodes, configuration information corresponding to each tool node, and location information of each tool node may be, for example, in response to detecting that the user drags the target tool A in the tool area to the For the operation in the canvas area, the position information X of the tool node is determined according to the drag operation; in response to detecting that the user drags the target tool B in the tool area to the canvas area, the position information X is determined according to the drag operation The position information Y of the tool node; in response to detecting that the user drags the target tool C of the tool area to the canvas area, the position information Z of the tool node is determined according to the dragging operation; For the touch operation of the tool node corresponding to the target tool A in the canvas area, the configuration interface corresponding to the target tool A is displayed in the tool area; in response to detecting the user's editing operation on the configuration interface , then obtain the configuration information of the tool node corresponding to the target tool A; in response to detecting the user's touch operation on the tool node corresponding to the target tool B in the canvas area, display the tool node in the tool area The configuration interface corresponding to the target tool; in response to detecting the user's editing operation on the configuration interface, obtain the configuration information of the tool node corresponding to the target tool B; in response to detecting the user's target on the canvas area The touch operation of the tool node corresponding to tool C, the configuration interface corresponding to the target tool is displayed in the tool area; in response to detecting the user's editing operation on the configuration interface, the corresponding configuration interface of the target tool C is obtained. Tool node configuration information.

S120,根据所述每个工具节点的位置信息确定间距小于距离阈值的两个工具节点之间的关联关系。S120: Determine, according to the position information of each tool node, an association relationship between two tool nodes whose distance is smaller than a distance threshold.

具体的,根据所述每个工具节点的位置信息确定间距小于距离阈值的两个工具节点之间的关联关系的方式可以为:获取任意两个相邻的工具节点之间的距离,建立间距小于距离阈值的两个工具节点之间的关联关系。例如可以是,若根据目标工具A对应的工具节点的位置信息和目标工具B对应的工具节点的位置信息确定目标工具A对应的工具节点和目标工具B对应的工具节点之间的距离小于距离阈值,则在目标工具A对应的工具节点和目标工具B对应的工具节点之间画一条线,将目标工具A对应的工具节点和目标工具B对应的工具节点连接起来。Specifically, the method of determining the association relationship between two tool nodes with a distance smaller than a distance threshold according to the position information of each tool node may be: obtaining the distance between any two adjacent tool nodes, establishing a distance less than The relationship between the two tool nodes for the distance threshold. For example, if the distance between the tool node corresponding to target tool A and the tool node corresponding to target tool B is determined according to the position information of the tool node corresponding to target tool A and the position information of the tool node corresponding to target tool B is less than the distance threshold , then draw a line between the tool node corresponding to target tool A and the tool node corresponding to target tool B to connect the tool node corresponding to target tool A and the tool node corresponding to target tool B.

具体的,根据所述每个工具节点的位置信息确定间距小于距离阈值的两个工具节点之间的关联关系的方式还可以为:获取任意两个相邻的工具节点之间的距离,建立间距小于距离阈值的两个工具节点之间的关联关系,根据每个工具节点的生成时间确定箭头方向。例如可以是,若根据目标工具A对应的工具节点的位置信息和目标工具B对应的工具节点的位置信息确定目标工具A对应的工具节点和目标工具B对应的工具节点之间的距离小于距离阈值,则在目标工具A对应的工具节点和目标工具B对应的工具节点之间画一条线Q,将目标工具A对应的工具节点和目标工具B对应的工具节点连接起来,若目标工具B对应的工具节点的生成时间晚于目标工具A对应的工具节点的生成时间,则确定线Q的箭头方向为从目标工具A对应的工具节点指向目标工具B对应的工具节点。Specifically, the method of determining the association relationship between two tool nodes whose distance is smaller than the distance threshold according to the position information of each tool node may also be: obtaining the distance between any two adjacent tool nodes, and establishing the distance between the two tool nodes. The association relationship between two tool nodes that are less than the distance threshold, and the arrow direction is determined according to the generation time of each tool node. For example, if the distance between the tool node corresponding to target tool A and the tool node corresponding to target tool B is determined according to the position information of the tool node corresponding to target tool A and the position information of the tool node corresponding to target tool B is less than the distance threshold , then draw a line Q between the tool node corresponding to the target tool A and the tool node corresponding to the target tool B, and connect the tool node corresponding to the target tool A and the tool node corresponding to the target tool B. If the corresponding tool node of the target tool B If the generation time of the tool node is later than the generation time of the tool node corresponding to the target tool A, the direction of the arrow of the line Q is determined to be from the tool node corresponding to the target tool A to the tool node corresponding to the target tool B.

S130,根据所述至少两个工具节点、每个工具节点对应的配置信息以及间距小于距离阈值的两个工具节点之间的关联关系生成业务流程图。S130: Generate a business flowchart according to the at least two tool nodes, configuration information corresponding to each tool node, and an association relationship between two tool nodes with a distance smaller than a distance threshold.

具体的,根据所述至少两个工具节点、每个工具节点对应的配置信息以及间距小于距离阈值的两个工具节点之间的关联关系生成业务流程图的方式可以为:根据所述至少两个工具节点和每个工具节点对应的配置信息绘制至少两个工具节点,根据绘制的至少两个工具节点和间距小于距离阈值的两个工具节点之间的关联关系绘制业务流程图。根据所述至少两个工具节点、每个工具节点对应的配置信息以及间距小于距离阈值的两个工具节点之间的关联关系生成业务流程图的方式还可以为:响应于检测到用户针对所述流程配置界面的确定控件的触控操作,基于所述编辑区域的至少两个目标工具对应的工具节点、所述至少两个目标工具对应的工具节点的配置信息以及间距小于距离阈值的两个工具节点之间的关联关系生成业务流程图,并在所述画布区域显示所述业务流程图。Specifically, the method of generating the business flow chart according to the at least two tool nodes, the configuration information corresponding to each tool node, and the relationship between the two tool nodes whose distance is smaller than the distance threshold may be: according to the at least two tool nodes The tool node and the configuration information corresponding to each tool node are drawn at least two tool nodes, and a business flow chart is drawn according to the drawn at least two tool nodes and the association relationship between the two tool nodes whose distance is smaller than the distance threshold. The manner of generating the business flowchart according to the at least two tool nodes, the configuration information corresponding to each tool node, and the relationship between the two tool nodes whose distance is smaller than the distance threshold may also be: The touch operation of the determination control of the process configuration interface is based on the tool nodes corresponding to at least two target tools in the editing area, the configuration information of the tool nodes corresponding to the at least two target tools, and the two tools whose distance is smaller than the distance threshold The association relationship between the nodes generates a business flow chart, and the business flow chart is displayed in the canvas area.

可选的,获取至少两个工具节点,包括:Optionally, obtain at least two tool nodes, including:

响应于检测到用户针对目标控件的触控操作,显示流程配置界面,其中,所述流程配置界面包括:工具区域和画布区域,所述工具区域包括:基础工具、内部工具和外接工具;In response to detecting a user's touch operation on the target control, a process configuration interface is displayed, wherein the process configuration interface includes: a tool area and a canvas area, and the tool area includes: basic tools, internal tools, and external tools;

响应于检测到用户将所述工具区域的目标工具拖拽至所述画布区域的操作,在所述画布区域显示所述目标工具对应的工具节点。In response to detecting that the user drags the target tool in the tool area to the canvas area, a tool node corresponding to the target tool is displayed in the canvas area.

其中,所述画布区域可以为空白区域,所述工具区域用于显示基础工具、内部工具和外接工具。Wherein, the canvas area may be a blank area, and the tool area is used to display basic tools, internal tools and external tools.

其中,在响应于检测到用户将所述工具区域的目标工具拖拽至所述画布区域的操作,在所述画布区域显示所述目标工具对应的工具节点之前还包括:Wherein, in response to detecting that the user drags the target tool in the tool area to the canvas area, before displaying the tool node corresponding to the target tool in the canvas area, the method further includes:

响应于检测到用户对基础工具控件的触控操作,则显示属于基础工具类别的基础工具,例如可以是,输入工具、判断工具、成功返回工具、失败返回工具以及修改数据流工具。In response to detecting the user's touch operation on the basic tool control, basic tools belonging to the basic tool category are displayed, such as input tools, judgment tools, successful return tools, failure return tools, and modify data flow tools.

响应于检测到用户对内部工具控件的触控操作,则显示属于内部工具类别的基础工具,例如可以是,查询模型数据工具、执行模型方法类工具、调用服务工具以及调用连接器接口工具。In response to detecting the user's touch operation on the internal tool control, basic tools belonging to the internal tool category are displayed, for example, a tool for querying model data, a tool for executing a model method, a tool for calling a service, and a tool for calling a connector interface.

响应于检测到用户对外接工具控件的触控操作,则显示属于外接工具类别的基础工具,例如可以是,HTTP工具、脚本工具、通知工具以及工作流工具。In response to detecting a user's touch operation on an add-in tool control, basic tools belonging to the add-in tool category are displayed, for example, HTTP tools, script tools, notification tools, and workflow tools.

可选的,获取每个工具节点对应的配置信息,包括:Optionally, obtain configuration information corresponding to each tool node, including:

响应于检测到用户针对所述画布区域的所述目标工具对应的工具节点的触控操作,则在所述工具区域显示所述目标工具对应的配置界面;In response to detecting a user's touch operation on a tool node corresponding to the target tool in the canvas area, displaying a configuration interface corresponding to the target tool in the tool area;

响应于检测到用户针对所述配置界面的编辑操作,则获取所述目标工具对应的工具节点的配置信息。In response to detecting the user's editing operation on the configuration interface, the configuration information of the tool node corresponding to the target tool is acquired.

其中,在所述工具区域显示所述目标工具对应的配置界面的方式可以为:在用户点击工具区域的控件后在所述工具区域显示目标工具,在用户点击画布区域的目标工具后,在所述工具区域显示所述目标工具对应的配置界面。The manner of displaying the configuration interface corresponding to the target tool in the tool area may be: after the user clicks the control in the tool area, the target tool is displayed in the tool area, and after the user clicks the target tool in the canvas area, the target tool is displayed in the tool area. The tool area displays the configuration interface corresponding to the target tool.

具体的,响应于检测到用户针对所述配置界面的编辑操作,则获取所述目标工具对应的工具节点的配置信息。例如可以是,配置界面包括:基础配置区域和属性配置区域,用户可以在基础配置区域填写标题、描述以及超时时间,还可以在基础配置区域选择异常处理方式(继续执行或者停止)。用户可以在属性配置区域选择关键词、填写页数、填写每页显示数量以及填写查询条件信息。填写查询条件的方式可以为:在用户点击属性配置区域查询控件后,显示查询条件界面,点击查询条件界面的添加控件,则显示查询条件对应的查询编辑界面,查询编辑界面包括:关键字填写区域、比较符选择区域以及目标值选择区域,用户可以在关键字填写区域填写查询关键字,可以在比较符选择区域选择比较符,在目标值选择区域选择目标值,在用户点击查询编辑界面的添加控件之后,生成查询条件,本发明实施例对此不进行限制。Specifically, in response to detecting the user's editing operation on the configuration interface, the configuration information of the tool node corresponding to the target tool is acquired. For example, the configuration interface may include: a basic configuration area and an attribute configuration area. The user can fill in the title, description and timeout time in the basic configuration area, and can also select an exception handling method (continue execution or stop) in the basic configuration area. In the attribute configuration area, users can select keywords, fill in the number of pages, fill in the display quantity per page, and fill in the query condition information. The way to fill in the query conditions can be: after the user clicks the property configuration area query control, the query conditions interface is displayed, and when the user clicks the add control on the query condition interface, the query editing interface corresponding to the query conditions is displayed. The query editing interface includes: keyword filling area , comparator selection area and target value selection area, the user can fill in the query keyword in the keyword filling area, select the comparator in the comparator selection area, select the target value in the target value selection area, and click Add in the query editing interface. After the control, a query condition is generated, which is not limited in this embodiment of the present invention.

可选的,根据所述至少两个工具节点、每个工具节点对应的配置信息以及间距小于距离阈值的两个工具节点之间的关联关系生成业务流程图,包括:Optionally, generate a business flow diagram according to the at least two tool nodes, the configuration information corresponding to each tool node, and the relationship between the two tool nodes whose spacing is less than the distance threshold, including:

响应于检测到用户针对所述流程配置界面的确定控件的触控操作,基于所述编辑区域的至少两个目标工具对应的工具节点、所述至少两个目标工具对应的工具节点的配置信息以及间距小于距离阈值的两个工具节点之间的关联关系生成业务流程图,并在所述画布区域显示所述业务流程图。In response to detecting the user's touch operation on the determination control of the process configuration interface, based on the tool nodes corresponding to at least two target tools in the editing area, the configuration information of the tool nodes corresponding to the at least two target tools, and The association relationship between two tool nodes whose distance is smaller than the distance threshold generates a business flow chart, and displays the business flow chart in the canvas area.

在一个具体的例子中,在画布区域显示的业务流程图如图2所示,业务流程图包括:工具节点(输入)、工具节点(获取设备列表)、工具节点(处理设备信息)、工具节点(判断分支)、工具节点(生成销售订单)、工具节点(发送邮件通知)、工具节点(返回成功值)以及工具节点(返回失败值)。In a specific example, the business flow chart displayed in the canvas area is shown in Figure 2. The business flow chart includes: tool node (input), tool node (obtain device list), tool node (process device information), tool node (judgment branch), tool node (generate sales order), tool node (send email notification), tool node (return success value) and tool node (return failure value).

可选的,在响应于检测到用户针对所述流程配置界面的确定控件的触控操作,基于所述编辑区域的至少两个目标工具对应的工具节点、所述至少两个目标工具对应的工具节点的配置信息以及间距小于距离阈值的两个工具节点之间的关联关系生成业务流程图,并在所述画布区域显示所述业务流程图之后,还包括:Optionally, in response to detecting the user's touch operation on the determination control of the process configuration interface, based on the tool nodes corresponding to at least two target tools in the editing area, the tools corresponding to the at least two target tools. The configuration information of the node and the association relationship between the two tool nodes whose distance is less than the distance threshold generate a business flow chart, and after the business flow chart is displayed in the canvas area, it also includes:

响应于检测到用户针对所述流程配置界面的调试控件的触控操作,则显示调试栏,所述调试栏包括:设置输入变量控件;In response to detecting a user's touch operation on the debugging controls of the process configuration interface, a debugging bar is displayed, and the debugging bar includes: setting an input variable control;

响应于检测到用户针对所述调试栏的设置输入变量控件的触控操作,则显示输入变量输入界面;Displaying an input variable input interface in response to detecting a user's touch operation on the setting input variable control of the debug bar;

响应于检测到用户针对所述输入变量输入界面输入的目标输入变量,则将所述目标输入变量输入所述业务流程图,得到调试结果。In response to detecting the target input variable input by the user with respect to the input variable input interface, the target input variable is input into the business flowchart to obtain a debugging result.

其中,所述调试栏还可以包括:运行控件、暂停控件、停止控件、上一步控件以及下一步控件等。Wherein, the debug bar may further include: run controls, pause controls, stop controls, previous step controls, next step controls, and the like.

在一个具体的例子中,所述调试结果可以为:将所述业务流程图中的测试合格的工具节点的颜色设置为绿色,将业务流程图中的测试不合格的工具节点的颜色设置为红色,将业务流程图中正在测试的工具节点的颜色设置为黄色。In a specific example, the debugging result may be: setting the color of the tool nodes that pass the test in the business flow chart to green, and setting the color of the tool nodes that fail the test in the business flow chart to red , set the color of the tool node under test in the business process diagram to yellow.

可选的,响应于检测到用户针对所述输入变量输入界面输入的目标输入变量,则将所述目标输入变量输入所述业务流程图,得到调试结果,包括:Optionally, in response to detecting the target input variable input by the user with respect to the input variable input interface, inputting the target input variable into the business flowchart to obtain a debugging result, including:

响应于检测到用户针对所述输入变量输入界面输入的目标输入变量,则将所述目标输入变量输入所述业务流程图;In response to detecting a target input variable input by the user with respect to the input variable input interface, inputting the target input variable into the business process flow diagram;

若目标节点中超时时间小于时间阈值,则将所述目标节点的颜色切换为第一目标颜色;If the timeout time in the target node is less than the time threshold, then the color of the target node is switched to the first target color;

若目标节点中脚本不满足第一预设条件,则将所述目标节点的颜色切换为第一目标颜色;If the script in the target node does not meet the first preset condition, then switch the color of the target node to the first target color;

若目标节点中超时时间大于或者等于时间阈值,且目标节点中脚本满足第一预设条件,则将所述目标节点的颜色切换为第二目标颜色。If the timeout time in the target node is greater than or equal to the time threshold, and the script in the target node satisfies the first preset condition, the color of the target node is switched to the second target color.

其中,若脚本不满足第一预设条件则说明脚本不规范,例如可以是,若脚本是通过非英文编辑,则说明脚本不满足第一预设条件。Wherein, if the script does not meet the first preset condition, it means that the script is not standardized. For example, if the script is edited in a non-English language, it means that the script does not meet the first preset condition.

其中,所述第一目标颜色和所述第二目标颜色不同,若所述第一目标颜色为红色,则所述第二目标颜色可以为绿色,本发明实施例对此不进行限制。The first target color and the second target color are different. If the first target color is red, the second target color may be green, which is not limited in this embodiment of the present invention.

具体的,若目标节点中超时时间设置过小,则容易导致无法获取到结果,因此,若目标节点中超时时间小于时间阈值,则确定目标节点未测试通过。Specifically, if the timeout time in the target node is set too small, the result may not be obtained easily. Therefore, if the timeout time in the target node is less than the time threshold, it is determined that the target node has not passed the test.

可选的,所述基础工具包括:输入工具、判断工具、成功返回工具、失败返回工具以及修改数据流工具中的至少一种;所述内部工具包括:查询模型数据工具、执行模型方法类工具、调用服务工具以及调用连接器接口工具中的至少一种;所述外接工具包括:HTTP工具、脚本工具、通知工具以及工作流工具中的至少一种。Optionally, the basic tool includes: at least one of an input tool, a judgment tool, a successful return tool, a failure return tool, and a data flow modification tool; the internal tools include: a query model data tool, an execution model method class tool , at least one of calling service tool and calling connector interface tool; the external tool includes: at least one of HTTP tool, script tool, notification tool and workflow tool.

所述业务流程图包括:基础工具,与内部工具和/或外接工具。The business flow chart includes basic tools, internal tools and/or external tools.

可选的,还包括:Optionally, also include:

接收目标客户端发送的待处理信息;Receive pending information sent by the target client;

将所述待处理信息输入所述业务流程图,得到目标数据,并将所述目标数据发送至所述目标客户端。Input the information to be processed into the business flow chart to obtain target data, and send the target data to the target client.

具体的,将所述待处理信息输入所述业务流程图,得到目标数据,并将所述目标数据发送至所述目标客户端。例如可以是,若业务流程图包括:工具节点A、工具节点B、工具节点C和工具节点D,工具节点的前后执行顺序依次为:工具节点A、工具节点B、工具节点C和工具节点D,将目标客户端发送的待处理信息输入工具节点A,将工具节点A的输出输入工具节点B,将工具节点B的输出输入工具节点C,将工具节点C的输出输入工具节点D,将工具节点D的输出确定为目标数据,将所述目标数据发送至所述目标客户端。Specifically, the information to be processed is input into the business flow chart to obtain target data, and the target data is sent to the target client. For example, if the business flow chart includes: tool node A, tool node B, tool node C, and tool node D, the order of execution of tool nodes is: tool node A, tool node B, tool node C, and tool node D. , input the pending information sent by the target client into tool node A, input the output of tool node A into tool node B, input the output of tool node B into tool node C, input the output of tool node C into tool node D, The output of node D is determined as target data, and the target data is sent to the target client.

本实施例的技术方案,通过获取至少两个工具节点、每个工具节点对应的配置信息以及每个工具节点的位置信息;根据所述每个工具节点的位置信息确定间距小于距离阈值的两个工具节点之间的关联关系;根据所述至少两个工具节点、每个工具节点对应的配置信息以及间距小于距离阈值的两个工具节点之间的关联关系生成业务流程图,以解决编写代码对用户要求较高,需要学习编程语言,学习成本高,不同人员编写代码的方式各异,不利于业务逻辑的阅读和维护的问题,能够以可视化图形流的方式编排后端业务服务,降低实现后端业务逻辑的难度,提高业务服务效率,并且便于维护。The technical solution of this embodiment is to obtain at least two tool nodes, configuration information corresponding to each tool node, and position information of each tool node; Association relationship between tool nodes; generate a business flow chart according to the at least two tool nodes, the configuration information corresponding to each tool node, and the association relationship between two tool nodes with a distance smaller than a distance threshold, so as to solve the problem of writing code Users have high requirements, need to learn programming languages, and the learning cost is high. Different people write code in different ways, which is not conducive to the reading and maintenance of business logic. The back-end business services can be arranged in the form of visual graphics flow, reducing the need for post-implementation It reduces the difficulty of end-to-end business logic, improves business service efficiency, and is easy to maintain.

实施例二Embodiment 2

图3为本发明实施例提供的一种业务流程图生成装置的结构示意图。本实施例可适用于业务流程图生成的情况,该装置可采用软件和/或硬件的方式实现,该业务流程图生成装置可集成在任何提供XX的功能的设备中,如图3所示,所述业务流程图生成装置具体包括:获取模块210、确定模块220和生成模块230。FIG. 3 is a schematic structural diagram of an apparatus for generating a business flowchart according to an embodiment of the present invention. This embodiment can be applied to the case of generating a business flow chart, the apparatus can be implemented in software and/or hardware, and the business flow chart generating apparatus can be integrated into any device that provides the function of XX, as shown in FIG. 3 , The apparatus for generating a business flow chart specifically includes: an acquiring module 210 , a determining module 220 and a generating module 230 .

其中,获取模块,用于获取至少两个工具节点、每个工具节点对应的配置信息以及每个工具节点的位置信息;Wherein, the obtaining module is used to obtain at least two tool nodes, configuration information corresponding to each tool node, and location information of each tool node;

确定模块,用于根据所述每个工具节点的位置信息确定间距小于距离阈值的两个工具节点之间的关联关系;A determination module, used for determining the association relationship between two tool nodes whose spacing is less than the distance threshold according to the position information of each tool node;

生成模块,用于根据所述至少两个工具节点、每个工具节点对应的配置信息以及间距小于距离阈值的两个工具节点之间的关联关系生成业务流程图。A generating module is configured to generate a business flow chart according to the at least two tool nodes, configuration information corresponding to each tool node, and an association relationship between two tool nodes whose distance is smaller than a distance threshold.

上述产品可执行本发明任意实施例所提供的方法,具备执行方法相应的功能模块和有益效果。The above product can execute the method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.

本实施例的技术方案,通过获取至少两个工具节点、每个工具节点对应的配置信息以及每个工具节点的位置信息;根据所述每个工具节点的位置信息确定间距小于距离阈值的两个工具节点之间的关联关系;根据所述至少两个工具节点、每个工具节点对应的配置信息以及间距小于距离阈值的两个工具节点之间的关联关系生成业务流程图,以解决编写代码对用户要求较高,需要学习编程语言,学习成本高,不同人员编写代码的方式各异,不利于业务逻辑的阅读和维护的问题,能够以可视化图形流的方式编排后端业务服务,降低实现后端业务逻辑的难度,提高业务服务效率,并且便于维护。The technical solution of this embodiment is to obtain at least two tool nodes, configuration information corresponding to each tool node, and position information of each tool node; Association relationship between tool nodes; generate a business flow chart according to the at least two tool nodes, the configuration information corresponding to each tool node, and the association relationship between two tool nodes with a distance smaller than a distance threshold, so as to solve the problem of writing code Users have high requirements, need to learn programming languages, and the learning cost is high. Different people write code in different ways, which is not conducive to the reading and maintenance of business logic. The back-end business services can be arranged in the form of visual graphics flow, reducing the need for post-implementation It reduces the difficulty of end-to-end business logic, improves business service efficiency, and is easy to maintain.

实施例三Embodiment 3

图4示出了可以用来实施本发明的实施例的电子设备10的结构示意图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备(如头盔、眼镜、手表等)和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本发明的实现。FIG. 4 shows a schematic structural diagram of an electronic device 10 that can be used to implement embodiments of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices (eg, helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are by way of example only, and are not intended to limit implementations of the inventions described and/or claimed herein.

如图4所示,电子设备10包括至少一个处理器11,以及与至少一个处理器11通信连接的存储器,如只读存储器(ROM)12、随机访问存储器(RAM)13等,其中,存储器存储有可被至少一个处理器执行的计算机程序,处理器11可以根据存储在只读存储器(ROM)12中的计算机程序或者从存储单元18加载到随机访问存储器(RAM)13中的计算机程序,来执行各种适当的动作和处理。在RAM 13中,还可存储电子设备10操作所需的各种程序和数据。处理器11、ROM 12以及RAM 13通过总线14彼此相连。输入/输出(I/O)接口15也连接至总线14。As shown in FIG. 4 , the electronic device 10 includes at least one processor 11, and a memory, such as a read only memory (ROM) 12, a random access memory (RAM) 13, etc., connected in communication with the at least one processor 11, wherein the memory stores There is a computer program executable by at least one processor, and the processor 11 can be executed according to a computer program stored in a read only memory (ROM) 12 or loaded from a storage unit 18 into a random access memory (RAM) 13. Various appropriate actions and processes are performed. In the RAM 13, various programs and data necessary for the operation of the electronic device 10 can also be stored. The processor 11 , the ROM 12 and the RAM 13 are connected to each other through a bus 14 . An input/output (I/O) interface 15 is also connected to the bus 14 .

电子设备10中的多个部件连接至I/O接口15,包括:输入单元16,例如键盘、鼠标等;输出单元17,例如各种类型的显示器、扬声器等;存储单元18,例如磁盘、光盘等;以及通信单元19,例如网卡、调制解调器、无线通信收发机等。通信单元19允许电子设备10通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc. etc.; and a communication unit 19, such as a network card, modem, wireless communication transceiver, and the like. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks.

处理器11可以是各种具有处理和计算能力的通用和/或专用处理组件。处理器11的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的处理器、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。处理器11执行上文所描述的各个方法和处理,例如业务流程图生成方法:The processor 11 may be various general and/or special purpose processing components having processing and computing capabilities. Some examples of processors 11 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various specialized artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the business flowchart generation method:

获取至少两个工具节点、每个工具节点对应的配置信息以及每个工具节点的位置信息;Obtain at least two tool nodes, configuration information corresponding to each tool node, and location information of each tool node;

根据所述每个工具节点的位置信息确定间距小于距离阈值的两个工具节点之间的关联关系;Determine the association relationship between two tool nodes whose distance is less than the distance threshold according to the position information of each tool node;

根据所述至少两个工具节点、每个工具节点对应的配置信息以及间距小于距离阈值的两个工具节点之间的关联关系生成业务流程图。A business flowchart is generated according to the at least two tool nodes, configuration information corresponding to each tool node, and an association relationship between two tool nodes whose distance is smaller than a distance threshold.

在一些实施例中,业务流程图生成方法可被实现为计算机程序,其被有形地包含于计算机可读存储介质,例如存储单元18。在一些实施例中,计算机程序的部分或者全部可以经由ROM 12和/或通信单元19而被载入和/或安装到电子设备10上。当计算机程序加载到RAM 13并由处理器11执行时,可以执行上文描述的业务流程图生成方法的一个或多个步骤。备选地,在其他实施例中,处理器11可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行业务流程图生成方法:In some embodiments, the business flowchart generation method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18 . In some embodiments, part or all of the computer program may be loaded and/or installed on the electronic device 10 via the ROM 12 and/or the communication unit 19 . When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the business flow diagram generation method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured by any other suitable means (eg, by means of firmware) to perform the business flow diagram generation method:

获取至少两个工具节点、每个工具节点对应的配置信息以及每个工具节点的位置信息;Obtain at least two tool nodes, configuration information corresponding to each tool node, and location information of each tool node;

根据所述每个工具节点的位置信息确定间距小于距离阈值的两个工具节点之间的关联关系;Determine the association relationship between two tool nodes whose distance is less than the distance threshold according to the position information of each tool node;

根据所述至少两个工具节点、每个工具节点对应的配置信息以及间距小于距离阈值的两个工具节点之间的关联关系生成业务流程图。A business flowchart is generated according to the at least two tool nodes, configuration information corresponding to each tool node, and an association relationship between two tool nodes whose distance is smaller than a distance threshold.

本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein above may be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips system (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor that The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.

用于实施本发明的方法的计算机程序可以采用一个或多个编程语言的任何组合来编写。这些计算机程序可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器,使得计算机程序当由处理器执行时使流程图和/或框图中所规定的功能/操作被实施。计算机程序可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/operations specified in the flowcharts and/or block diagrams to be carried out. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.

在本发明的上下文中,计算机可读存储介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的计算机程序。计算机可读存储介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。备选地,计算机可读存储介质可以是机器可读信号介质。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in connection with the instruction execution system, apparatus or device. Computer-readable storage media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.

为了提供与用户的交互,可以在电子设备上实施此处描述的系统和技术,该电子设备具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给电子设备。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having a display device (eg, a CRT (cathode ray tube) or an LCD (liquid crystal display)) for displaying information to the user monitor); and a keyboard and pointing device (eg, a mouse or trackball) through which a user can provide input to the electronic device. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including acoustic input, voice input, or tactile input) to receive input from the user.

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)、区块链网络和互联网。The systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user's computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the Internet.

计算系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与VPS服务中,存在的管理难度大,业务扩展性弱的缺陷。A computing system can include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or a cloud host. It is a host product in the cloud computing service system to solve the traditional physical host and VPS services, which are difficult to manage and weak in business scalability. defect.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发明中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本发明的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, the steps described in the present invention can be performed in parallel, sequentially or in different orders, and as long as the desired results of the technical solutions of the present invention can be achieved, no limitation is imposed herein.

上述具体实施方式,并不构成对本发明保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims (11)

1. A method for generating a business flow chart is characterized by comprising the following steps:
acquiring at least two tool nodes, configuration information corresponding to each tool node and position information of each tool node;
determining an incidence relation between two tool nodes with a distance smaller than a distance threshold according to the position information of each tool node;
and generating a business flow chart according to the at least two tool nodes, the configuration information corresponding to each tool node and the incidence relation between the two tool nodes with the distance smaller than the distance threshold value.
2. The method of claim 1, wherein obtaining at least two tool nodes comprises:
in response to detecting a touch operation of a user on a target control, displaying a process configuration interface, wherein the process configuration interface comprises: a tool area and a canvas area, the tool area comprising: a base tool, an inner tool and an outer tool;
and in response to detecting that the user drags a target tool of the tool area to the canvas area, displaying a tool node corresponding to the target tool in the canvas area.
3. The method of claim 2, wherein obtaining configuration information corresponding to each tool node comprises:
in response to detecting that a user performs touch operation on a tool node corresponding to the target tool in the canvas area, displaying a configuration interface corresponding to the target tool in the tool area;
and in response to the fact that the editing operation of the user on the configuration interface is detected, acquiring configuration information of a tool node corresponding to the target tool.
4. The method of claim 3, wherein generating the business process graph according to the at least two tool nodes, the configuration information corresponding to each tool node, and the association relationship between two tool nodes with a distance smaller than a distance threshold comprises:
and responding to the touch operation of a user for a determination control of the process configuration interface, generating a business process diagram based on the tool nodes corresponding to at least two target tools in the editing area, the configuration information of the tool nodes corresponding to the at least two target tools and the association relation between the two tool nodes with the distance smaller than a distance threshold value, and displaying the business process diagram in the canvas area.
5. The method of claim 4, wherein in response to detecting a touch operation of a user on a determination control of the process configuration interface, generating a business flow graph based on tool nodes corresponding to at least two target tools of the editing area, configuration information of the tool nodes corresponding to the at least two target tools, and an association relationship between two tool nodes having a distance smaller than a distance threshold, and displaying the business flow graph in the canvas area, the method further comprises:
in response to detecting a touch operation of a user on a debugging control of the process configuration interface, displaying a debugging bar, wherein the debugging bar comprises: setting an input variable control;
displaying an input variable input interface in response to detecting a touch operation of a user for setting an input variable control of the debugging bar;
and in response to detecting a target input variable input by a user aiming at the input variable input interface, inputting the target input variable into the business flow chart to obtain a debugging result.
6. The method of claim 5, wherein in response to detecting a target input variable input by a user for the input variable input interface, inputting the target input variable into the business process diagram to obtain a debugging result, the method comprises:
in response to detecting a target input variable input by a user for the input variable input interface, inputting the target input variable into the business flow chart;
if the overtime time in the target node is less than the time threshold, switching the color of the target node into a first target color;
if the script in the target node does not meet the first preset condition, switching the color of the target node into a first target color;
and if the overtime time in the target node is greater than or equal to the time threshold and the script in the target node meets a first preset condition, switching the color of the target node into a second target color.
7. The method of claim 2, wherein the base tool comprises: at least one of an input tool, a judgment tool, a success return tool, a failure return tool, and a modify data flow tool; the inner tool includes: at least one of a query model data tool, an execute model method class tool, a call service tool, and a call connector interface tool; the external tool includes: at least one of an HTTP tool, a scripting tool, a notification tool, and a workflow tool; the business flow chart comprises the following steps: a base tool, with an internal tool and/or an external tool.
8. The method of claim 1, further comprising:
receiving target information sent by a target client;
and inputting the target information into the business flow chart to obtain target data, and sending the target data to the target client.
9. A business process diagram generation apparatus, comprising:
the acquisition module is used for acquiring at least two tool nodes, configuration information corresponding to each tool node and position information of each tool node;
the determining module is used for determining the incidence relation between two tool nodes with the distance smaller than a distance threshold value according to the position information of each tool node;
and the generating module is used for generating a business flow chart according to the at least two tool nodes, the configuration information corresponding to each tool node and the incidence relation between the two tool nodes with the distance smaller than the distance threshold.
10. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the business process diagram generation method of any one of claims 1-8.
11. A computer-readable storage medium storing computer instructions for causing a processor to implement the business flow graph generating method of any one of claims 1-8 when executed.
CN202210331265.4A 2022-03-30 2022-03-30 Business flow chart generation method, device, equipment and storage medium Pending CN114706610A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210331265.4A CN114706610A (en) 2022-03-30 2022-03-30 Business flow chart generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210331265.4A CN114706610A (en) 2022-03-30 2022-03-30 Business flow chart generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114706610A true CN114706610A (en) 2022-07-05

Family

ID=82171314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210331265.4A Pending CN114706610A (en) 2022-03-30 2022-03-30 Business flow chart generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114706610A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116204687A (en) * 2023-03-28 2023-06-02 上海数禾信息科技有限公司 Method, device, calculation and storage medium for generating feature configuration flow chart
CN116860222A (en) * 2023-08-21 2023-10-10 深圳思谋信息科技有限公司 Algorithm flow editing method and related device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090769A (en) * 2014-07-18 2014-10-08 北京锐安科技有限公司 Graphic displaying method and device for service data
CN110675471A (en) * 2019-10-15 2020-01-10 深圳前海微众银行股份有限公司 Method, device and equipment for generating node connecting line and storage medium
CN111324746A (en) * 2020-02-25 2020-06-23 北京百度网讯科技有限公司 Visual positioning method, apparatus, electronic device, and computer-readable storage medium
CN111784018A (en) * 2019-04-03 2020-10-16 北京嘀嘀无限科技发展有限公司 Resource scheduling method and device, electronic equipment and storage medium
CN112181397A (en) * 2020-09-30 2021-01-05 平安科技(深圳)有限公司 Flow visualization monitoring method and device, computer equipment and storage medium
US20210042589A1 (en) * 2019-05-21 2021-02-11 Sisense Ltd. System and method for content-based data visualization using a universal knowledge graph
US20210110150A1 (en) * 2019-10-09 2021-04-15 Elsevier, Inc. Systems methods and computer program products for automatically extracting information from a flowchart image
CN113282444A (en) * 2020-02-20 2021-08-20 北京京东振世信息技术有限公司 Visualization method and device for business process debugging
CN113421316A (en) * 2021-06-30 2021-09-21 亿图软件(湖南)有限公司 Connection line path construction method and device, computer equipment and readable storage medium
CN113741965A (en) * 2021-08-30 2021-12-03 深圳壹账通智能科技有限公司 Method, device and equipment for arranging flow chart and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090769A (en) * 2014-07-18 2014-10-08 北京锐安科技有限公司 Graphic displaying method and device for service data
CN111784018A (en) * 2019-04-03 2020-10-16 北京嘀嘀无限科技发展有限公司 Resource scheduling method and device, electronic equipment and storage medium
US20210042589A1 (en) * 2019-05-21 2021-02-11 Sisense Ltd. System and method for content-based data visualization using a universal knowledge graph
US20210110150A1 (en) * 2019-10-09 2021-04-15 Elsevier, Inc. Systems methods and computer program products for automatically extracting information from a flowchart image
CN110675471A (en) * 2019-10-15 2020-01-10 深圳前海微众银行股份有限公司 Method, device and equipment for generating node connecting line and storage medium
CN113282444A (en) * 2020-02-20 2021-08-20 北京京东振世信息技术有限公司 Visualization method and device for business process debugging
CN111324746A (en) * 2020-02-25 2020-06-23 北京百度网讯科技有限公司 Visual positioning method, apparatus, electronic device, and computer-readable storage medium
CN112181397A (en) * 2020-09-30 2021-01-05 平安科技(深圳)有限公司 Flow visualization monitoring method and device, computer equipment and storage medium
CN113421316A (en) * 2021-06-30 2021-09-21 亿图软件(湖南)有限公司 Connection line path construction method and device, computer equipment and readable storage medium
CN113741965A (en) * 2021-08-30 2021-12-03 深圳壹账通智能科技有限公司 Method, device and equipment for arranging flow chart and storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
吕燕,朱慧: "《管理定量分析方法与实践》", vol. 1, 31 January 2022, 上海:上海人民出版社, pages: 228 - 233 *
王璨,章佳荣: "《LabVIEW 2011程序设计与案例解析》", vol. 1, 31 May 2013, 北京:北京航空航天大学出版社, pages: 16 - 19 *
赵轲;易丹丹;: "Markdown代码生成程序流程图技巧", 电子制作, no. 08 *
黄陇;于洪敏;陈致明;: "基于UML顺序图的测试场景自动生成研究", 计算机应用与软件, no. 04 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116204687A (en) * 2023-03-28 2023-06-02 上海数禾信息科技有限公司 Method, device, calculation and storage medium for generating feature configuration flow chart
CN116860222A (en) * 2023-08-21 2023-10-10 深圳思谋信息科技有限公司 Algorithm flow editing method and related device
CN116860222B (en) * 2023-08-21 2023-12-15 深圳思谋信息科技有限公司 Algorithm flow editing method and related device

Similar Documents

Publication Publication Date Title
CN112149741B (en) Image recognition model training method, device, electronic device and storage medium
CN112784588B (en) Method, device, equipment and storage medium for labeling text
US12266364B2 (en) Task information management
CN113821433A (en) Method, device, equipment, medium and product for testing cloud mobile phone application program
CN114389969A (en) Client test method and device, electronic equipment and storage medium
CN112631843A (en) Equipment testing method and device, electronic equipment, readable medium and product
CN114706610A (en) Business flow chart generation method, device, equipment and storage medium
EP3961433A2 (en) Data annotation method and apparatus, electronic device and storage medium
CN114330249A (en) Information editing method, apparatus, device and storage medium
CN117729168A (en) Automatic control method and device for instant messaging software, electronic equipment and medium
CN114549122A (en) Model training method, commodity recommendation device, equipment and storage medium
CN118297162A (en) Question answering method and device, electronic equipment and storage medium
CN113591972B (en) Image processing method, device, electronic device and storage medium
CN114518805B (en) Text generation method, device, electronic equipment and storage medium
CN113297492B (en) Data determination method, data determination device, electronic device and storage medium
CN114416040A (en) A page construction method, apparatus, device and storage medium
CN116541224A (en) Performance testing method, device, electronic device and readable storage medium
CN115329150A (en) Method, apparatus, electronic device and storage medium for generating search condition tree
CN114627343A (en) Deep learning model training method, image processing method, device and equipment
CN115080003A (en) Zero code platform operation method and device, electronic equipment and storage medium
CN113836291B (en) Data processing method, device, equipment and storage medium
CN112214620A (en) Information query method, device, graph processing method, and electronic device
CN116842156B (en) Data generation method, device, equipment and medium
CN112101008B (en) Text heat determining method and device, electronic equipment and storage medium
CN112527537B (en) Quality monitoring method, device, equipment and medium of online service system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20220705

RJ01 Rejection of invention patent application after publication