WO2023142075A1 - 工作流创建方法、装置、平台和计算机可读介质 - Google Patents

工作流创建方法、装置、平台和计算机可读介质 Download PDF

Info

Publication number
WO2023142075A1
WO2023142075A1 PCT/CN2022/075082 CN2022075082W WO2023142075A1 WO 2023142075 A1 WO2023142075 A1 WO 2023142075A1 CN 2022075082 W CN2022075082 W CN 2022075082W WO 2023142075 A1 WO2023142075 A1 WO 2023142075A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
workflow
behavior tree
function block
nodes
Prior art date
Application number
PCT/CN2022/075082
Other languages
English (en)
French (fr)
Inventor
周振华
汪艇
朱骁洵
Original Assignee
西门子股份公司
西门子(中国)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 西门子股份公司, 西门子(中国)有限公司 filed Critical 西门子股份公司
Priority to PCT/CN2022/075082 priority Critical patent/WO2023142075A1/zh
Priority to CN202280089258.6A priority patent/CN118541683A/zh
Publication of WO2023142075A1 publication Critical patent/WO2023142075A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Definitions

  • the embodiments of the present application mainly relate to the field of industrial technology, and in particular to a method, device, platform and computer-readable medium for creating a workflow.
  • Workflow can be simply defined as a description of a series of operations. Workflow is widely used in automation systems, artificial intelligence, robotics and other fields. For example, the workflow of a product sorting line in an automated system can be simply described as starting, taking pictures, sorting and moving the products to the target location.
  • the model deployment workflow in the field of artificial intelligence can be described as data collection, data labeling, model training, and model deployment.
  • Embodiments of the present application provide a workflow creation method, device, platform, and computer-readable medium, so as to realize workflow creation quickly and conveniently.
  • a method for creating a workflow including: storing preset behavior tree nodes in a node library; the behavior tree nodes include: a main control node and a function block node; wherein, the main control node uses is used to control the running state of the workflow; the main control node includes: a start node, an end node and a cycle node; a function block node is used to realize the operation of a resource in the work unit; the node library displays On the graphical user interface; receiving the construction and instantiation configuration operation of the behavior tree based on the node library performed by the user on the graphical user interface; wherein, a behavior tree is used to represent a workflow; the workflow is used to define The operation to be performed by a work unit; the construction of the behavior tree based on the node library includes: sequentially connecting the start node, the function block node and the end node; or, connecting the start node , the function block node and the loop node are sequentially connected; in response to
  • a second aspect provides a workflow creation device, including components for executing each step in the method provided by the first aspect.
  • a workflow creation platform including: at least one memory configured to store computer-readable codes; at least one processor configured to invoke the computer-readable codes to execute the method provided in the first aspect each step.
  • a computer-readable medium where computer-readable instructions are stored on the computer-readable medium, and when the computer-readable instructions are executed by a processor, the processor executes the method provided in the first aspect. steps in the method.
  • a computer program product tangibly stored on a computer-readable medium and comprising computer-readable instructions that, when executed, cause at least one processor to perform a first
  • various steps in the method are provided.
  • FIG. 1 is a flow chart of a method for creating a workflow according to an embodiment of the present application
  • Fig. 2 is a schematic diagram 1 of a behavior tree instance created according to an embodiment of the present application
  • Fig. 3 is a schematic diagram 2 of a behavior tree instance created in an embodiment of the present application.
  • FIG. 4 is an application scenario of the OT domain low-code development platform 40 in the field of industrial automation according to an embodiment of the present application;
  • Fig. 5 is a schematic diagram of a workflow creation device according to an embodiment of the present application.
  • Fig. 6 is a schematic diagram of a workflow creation platform according to an embodiment of the present application.
  • the term “comprising” and its variants represent open terms meaning “including but not limited to”.
  • the term “based on” means “based at least in part on”.
  • the terms “one embodiment” and “an embodiment” mean “at least one embodiment.”
  • the term “another embodiment” means “at least one other embodiment.”
  • the terms “first”, “second”, etc. may refer to different or the same object. The following may include other definitions, either express or implied. Unless the context clearly indicates otherwise, the definition of a term is consistent throughout the specification.
  • OT equipment may include but not limited to: Internet of Things (IoT) equipment, Programmable Logic Controller (PLC), Robotics, Manual Process, Industrial Personal Computer , IPC) etc.
  • IoT Internet of Things
  • PLC Programmable Logic Controller
  • Robotics Manual Process, Industrial Personal Computer , IPC
  • the applicable fields of the embodiments of the present application include but are not limited to: Industrial Automation, Logistics, Laboratory, Maritime, Smart Grid, Electric Vehicle Infrastructure Vehicle Infrastructure), Electric Vehicle, Building Automation, Smart City, Water Treatment, Garbage Recycling and Smart Farm, etc.
  • IT equipment may include but not limited to: Manufacturing Operation Management (MOM) system, Manufacturing Execution System (MES), Enterprise Resource Planning (ERP) system, Enterprise Service Bus (Enterprise Service Bus) , ERP), Product Lifecycle Management (Product Lifecycle Management, PLM) system, etc.
  • MOM Manufacturing Operation Management
  • MES Manufacturing Execution System
  • ERP Enterprise Resource Planning
  • PLM Product Lifecycle Management
  • Low code is essentially computer software, which can be deployed on an IPC industrial computer or an SBC single-board computer, corresponding to the computer next to the operator in the lower left corner in Figure 4 (the implementation method is not limited to this, and can be extended to processors, computers, processor, etc.). Also extendable to processors, computers, processors, and the like. Low Code provides a graphical user interface for users to perform low-code development in the OT domain and/or IT domain.
  • a work cell can be a system or a combination of devices that can realize a relatively complete and independent control process and operation.
  • the workflow is created with the work unit as the basic unit, which is more in line with the characteristics of industrial control, can improve the integration of development, and reduce the complexity of development.
  • the work unit can be defined according to the actual industrial scene, for example: you can define a process corresponding to a work unit, or you can define a work station in the process as a work unit, or you can also define A station in the workstation corresponds to a work unit, etc. Different work units have different technological processes.
  • Fig. 1 is a flowchart of a method for creating a workflow according to an embodiment of the present application. As shown in Fig. 1, the method for creating a workflow includes:
  • Step 101 storing preset behavior tree nodes in a node library.
  • the behavior tree nodes include: a main control node and a function block node, wherein the main control node is used to control the running state of the workflow.
  • the main control nodes include: start node, end node and cycle node.
  • a function block node is used to implement the operation of a resource in a unit of work.
  • Step 102 displaying the node library on the graphical user interface.
  • Step 103 receiving the behavior tree construction and instantiation configuration operation performed by the user on the graphical user interface based on the node library.
  • a behavior tree is used to represent a workflow, and the workflow is used to define operations to be performed by a work unit, for example, it may represent a distributed process within a work unit.
  • the construction of the behavior tree based on the node library includes: sequentially connecting the start node, the function block node and the end node; or sequentially connecting the start node, the function block node and the loop node. Alternatively, sequential connections can be made manually by the user.
  • the relevant semantic description can be analyzed based on the rule engine, and each function block node can be obtained relationship between. According to the association relationship between the nodes of each function block, the relevant nodes are connected in order according to the process of the workflow.
  • instantiation refers to the process of converting an abstract concept class to a specific object of this class.
  • Instantiating a configuration operation may include inputting parameters for a function block to execute into the function block.
  • Step 104 in response to the construction of the behavior tree, generate a behavior tree instance corresponding to a workflow.
  • an instance of the master control node is generated.
  • instantiate the function block node as an operation performed by a corresponding resource.
  • the behavior tree instance is parsed, and the workflow corresponding to the behavior tree instance is deployed to the runtime of the main controller of the corresponding work unit to Each resource in the work unit connected to the main controller is made to perform operations according to the workflow.
  • Figure 2 is a schematic diagram of a behavior tree instance created according to an embodiment of the present application.
  • the start node scans between the start node and the end node
  • the function block nodes between them initialize the resources corresponding to the function block nodes.
  • initialization operations are required to ensure the normal operation of related resources.
  • the start node is the entry point of the whole process.
  • the start node can be displayed on the GUI by default. Initializing the resources corresponding to all functional block nodes between the start node and the end node through the start node can avoid the current operation that the user can only realize the initialization of related resources one by one through programming. It can be seen that the embodiment of the present application greatly reduces Programmatic operations.
  • the function block nodes between the start node and the end node are scanned by the end node, and the resources corresponding to the function block nodes are reset. Before the resources in the work unit are powered off, reset the resources corresponding to all function block nodes through the end node, such as controlling the robot to move to the default position, so as to ensure the safety of the work unit in management and operation.
  • the start node/end node may traverse all function block nodes connected between the start node and the end node through a directed graph with a ring.
  • Fig. 3 is a schematic diagram 2 of a behavior tree instance created according to an embodiment of the present application. As shown in Fig. 3, after the start node, the function block node and the loop node are sequentially connected, the execution of the start node is skipped through the loop node; Start the workflow of the first function block node connected to the start node, so that the behavior tree instance executes the workflow cyclically.
  • the function block node can be stored in the node library in the form of an operation template, as shown in the operation template on the left side of Figure 2, a function block node corresponds to an operation template, and an operation template predefines a class of resources Operations that can be performed, including actions, methods or skills.
  • a unique label in the behavior tree instance is added to all behavior tree nodes selected by the user; the label includes: numbers, letters or Chinese characters .
  • the labels on the behavior tree nodes can help users quickly locate the target node in the behavior tree instance; secondly, if it is necessary to export the operation process corresponding to the behavior tree instance generated on the graphical user interface as the content in the SOP, then the label will be is the chapter number in this SOP.
  • FIG. 4 An application scenario of the OT domain low-code development platform 40 provided in the embodiment of the present application in the field of industrial automation is shown in FIG. 4 .
  • the code development tool 41 of the OT domain generates a behavior tree instance corresponding to the workflow of the OT domain under the operation of the user.
  • the workflow of the OT domain defines the operations to be performed by the production line as a work unit shown on the right side of FIG. 4 .
  • the corresponding workflow is generated and published to the runtime 30, so that the runtime 30 controls the completion of the production line operation of the work unit; at the same time, the corresponding microservice can be generated by the microservice generator 33 based on the behavior tree instance and Register to the knowledge center 31, so that the code development tool 32 in the IT domain can call the corresponding microservice through the knowledge center 31.
  • the user can edit each node including the function block node by dragging and dropping to edit the OT domain behavior tree instance, for example: first obtain the required The data (such as: workpiece processing parameters), control the operation of the entire work unit.
  • the working unit here is a production line, which includes machines, conveyor belts, robotic arms, people, PLC, AGB, etc., and these are the various resources in a production line.
  • FIG. 5 is a schematic diagram of a workflow creation device 50 according to an embodiment of the present application. As shown in FIG. 5, the workflow creation device 50 includes:
  • the preset module 51 is configured to: store preset behavior tree nodes in a node library.
  • Behavior tree nodes include: a main control node and a function block node, wherein the main control node is used to control the running state of the workflow.
  • the main control nodes include: start node, end node and cycle node.
  • a function block node is used to implement the operation of a resource in a unit of work.
  • the graphical interface module 52 is configured to: provide a graphical user interface for user-based behavior tree construction and instantiation configuration operations based on the node library; wherein, a behavior tree is used to represent a workflow; the workflow is used to define a work unit to be The operation to be performed; the construction of the behavior tree based on the node library includes: sequentially connecting the start node, function block node and end node; or sequentially connecting the start node, function block node and cycle node.
  • the graphical interface module 52 is further configured to: display the node library on the graphical user interface.
  • the editing processing module 53 is configured to: generate a behavior tree instance corresponding to a workflow in response to the construction of the behavior tree.
  • Fig. 6 is a schematic diagram of a device control platform 600 according to an embodiment of the present application.
  • the device control platform 600 includes a processor 602 and a memory 601 , where instructions are stored in the memory 601 , where the instructions are executed by the processor 602 to implement the method 100 as described above.
  • At least one processor 602 may include a microprocessor, an application specific integrated circuit (ASIC), a digital signal processor (DSP), a central processing unit (CPU), a graphics processing unit (GPU), a state machine, and the like.
  • Examples of computer readable media include, but are not limited to, floppy disks, CD-ROMs, magnetic disks, memory chips, ROM, RAM, ASICs, configured processors, all-optical media, magnetic tape, or other magnetic media from which a computer processor can Any other medium that reads instructions.
  • various other forms of computer-readable media can transmit or carry instructions to the computer, including routers, private or public networks, or other wired and wireless transmission devices or channels. Instructions may include code in any computer programming language, including C, C++, C++, Visual Basic, java, and JavaScript.
  • the embodiments of the present application also provide a computer-readable medium, where computer-readable instructions are stored on the computer-readable medium.
  • the processor executes the aforementioned OT domain low code development method.
  • Examples of computer readable media include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), magnetic tape, non- Volatile memory card and ROM.
  • the computer readable instructions may be downloaded from a server computer or cloud by a communication network.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

实施例涉及工业技术领域,尤其涉及一种工作流创建方法、装置、平台和计算机可读介质。其中,将预先设置的行为树节点存储于节点库中;行为树节点包括:主控制节点和功能块节点;其中,主控制节点用于控制工作流的运行状态;主控制节点包括:开始节点、结束节点和循环节点;一个功能块节点用于实现工作单元中的一个资源的操作;将节点库显示在图形用户界面上;接收用户在图形用户界面上基于节点库进行的行为树的构建和实例化配置操作;其中,一个行为树用于表征一个工作流;工作流用于定义一个工作单元要执行的操作;响应于行为树的构建,生成对应一工作流的行为树实例。

Description

工作流创建方法、装置、平台和计算机可读介质 技术领域
本申请实施例主要涉及工业技术领域,尤其涉及一种工作流创建方法、装置、平台和计算机可读介质。
背景技术
工作流可以简单地定义为对一系列操作过程的描述。工作流广泛应用于自动化系统、人工智能、机器人等领域。例如,自动化系统中的一条产品分拣线的工作流可以简单地描述为启动、拍照、分类并将产品移动到目标位置。在人工智能领域的模型部署工作流可以描述为数据收集、数据标注、模型训练和模型部署。
但目前这些工作流只有文本描述,如果用户想要执行这样的工作流,需要遵循文本描述,并且可能使用多种工程工具,然这些工具几乎互不相关,提供了完全不同的用户操作行为,这既是对用户的挑战,也会由于开发周期长而大大增加成本,降低效率,限制灵活性。例如,在人工智能领域,用户需要使用一个工具进行数据采集,手动或使用其他工具进行数据标注,编写python脚本进行模型训练,还需要部署工具进行部署。
为此,本领域内技术人员还在致力于寻找其他的工作流解决方案。
发明内容
本申请实施例提供一种工作流创建方法、装置、平台和计算机可读介质,用以快速、方便地实现工作流创建。
第一方面,提供一种工作流创建方法,包括:将预先设置的行为树节点存储于节点库中;所述行为树节点包括:主控制节点和功能块节点;其中,所述主控制节点用于控制所述工作流的运行状态;所述主控制节点包括:开始节点、结束节点和循环节点;一个功能块节点用于实现所述工作单元中的一个资源的操作;将所述节点库显示在图形用户界面上;接收用户在所述图形用户界面上基于所述节点库进行的行为树的构建和实例化配置操作;其中,一个行为树用于表征一个工作流;所述工作流用于定义一个工作单元要执行的操作;所述基于所述节点库进行的行为树的构建包括:将所述开始节点、所述功能块节点和所述结束节点进行顺序连接;或者,将所述开始节点、所述功能块节点和所述循环节点进行顺序连接;响应于所述行为树的构建,生成对应一工作流的行为树实例。
第二方面,提供一种工作流创建装置,包括用于执行第一方面提供的方法中各步骤的组成部分。
第三方面,提供一种工作流创建平台,包括:至少一个存储器,被配置为存储计算机可读代码;至少一个处理器,被配置为调用所述计算机可读代码,执行第一方面提供的方法中各步骤。
第四方面,提供一种计算机可读介质,所述计算机可读介质上存储有计算机可读指令,所述计算机可读指令在被处理器执行时,使所述处理器执行第一方面提供的方法中各步骤。
第五方面,提供一种计算机程序产品,所述计算机程序产品被有形地存储在计算机可读介质上并且包括计算机可读指令,所述计算机可读指令在被执行时使至少一个处理器执行第一方面提供的方法中各步骤。
附图说明
以下附图仅旨在于对本申请实施例做示意性说明和解释,并不限定本申请实施例的范围。其中:
图1是根据本申请一实施例的一种工作流创建方法的流程图;
图2是根据本申请一实施例中创建的行为树实例的示意图一;
图3是根据本申请一实施例中创建的行为树实例的示意图二;
图4是根据本申请一实施例的OT域低代码开发平台40在工业自动化领域的一个应用场景;
图5是根据本申请一实施例的一种工作流创建装置的示意图;
图6是根据本申请一实施例的一种工作流创建平台的示意图。
附图标记说明
100:工作流创建方法      101-104:方法步骤
30:工作单元的主控制器上的运行时                  31:知识中台
32:IT域的代码开发工具   33:微服务               40:OT域低代码开发平台
41:OT域的代码开发工具   50:工作流创建装置       51:预设模块
52:图形界面模块         53:编辑处理模块
600:信息处理平台        601:存储器              602:处理器
具体实施方式
现在将参考示例实施方式讨论本文描述的主题。应该理解,讨论这些实施方式只是为了使得本领域技术人员能够更好地理解从而实现本文描述的主题,并非是对权利要求书中所阐述的保护范围、适用性或者示例的限制。可以在不脱离本申请实施例内容的保护范围的情况下,对所讨论的元素的功能和排列进行改变。各个示例可以根据需要,省略、替代或者添加各种过程或组件。例如,所描述的方法可以按照与所描述的顺序不同的顺序来执行,以及各个步骤可以被添加、省略或者组合。另外,相对一些示例所描述的特征在其它例子中也可以进行组合。
如本文中使用的,术语“包括”及其变型表示开放的术语,含义是“包括但不限于”。术语“基于”表示“至少部分地基于”。术语“一个实施例”和“一实施例”表示“至少一个实施例”。术语“另一个实施例”表示“至少一个其他实施例”。术语“第一”、“第二”等可以指代不同的或相同的对象。下面可以包括其他的定义,无论是明确的还是隐含的。除非上下文中明确地指明,否则一个术语的定义在整个说明书中是一致的。
下面结合附图对本申请实施例进行详细说明。
OT设备可包括但不限于:物联网(Internet of Things,IoT)设备、可编程逻辑控制器(Programmable Logic Controller,PLC)、机器人(Robotics)、人工过程(Manual Process)、工控机(Industrial Personal Computer,IPC)等。
本申请实施例可适用的领域包括但不限于:工业自动化(Industrial Automation),物流(Logistics),实验室(Laboratory),船舶电气(Maritime),智能电网(Smart Grid),电动汽车基础设施(Electric Vehicle Infrastructure),电动汽车(Electric Vehicle),楼宇自动化(Building Automation),智慧城市(Smart City),污水处理(Water Treatment),垃圾回收(Garbage Recycling)和智慧农业(Smart Farm)等。
IT设备可包括但不限于:制造运营管理(Manufacturing Operation Management,MOM)系统、制造执行系统(manufacturing execution system,MES)、企业资源计划(Enterprise Resource Planning,ERP)系统、企业服务总线(Enterprise Service Bus,ERP)、产品生命周期管理(Product Lifecycle Management,PLM)系统等。
低代码(Low Code)本质为计算机软件,可部署在IPC工控机上,或SBC单板机上,对应图4中左下角操作员旁边的计算机(实现方式不限于此,可以扩大到处理器、计算机、处理器等)。还可扩大到处理器、计算机、处理器等。Low Code提供图形用户界面,以供用户进行OT域和/或IT域低代码开发。
工作单元(Workcell)可以为能够实现一个相对完整和独立的控制流程和操作的系统或设备组合。本申请实施例中,以工作单元为基本单位进行工作流创建,更符合工业控制的 特点,可提高开发的集成度,并降低开发的复杂度。例如,以工业技术领域为例,工作单元可以根据实际的工业场景定义,比如:可以定义一个工序对应一个工作单元,或者也可以定义工序中的一个工站为一个工作单元,又或者也可以定义工站中的一个工位对应一个工作单元等,不同的工作单元的工艺流程不同。
图1是根据本申请的一实施例的一种工作流创建方法的流程图,如图1所示,工作流创建方法包括:
步骤101,将预先设置的行为树节点存储于节点库中。
在本申请实施例中,行为树节点包括:主控制节点和功能块节点,其中,主控制节点用于控制工作流的运行状态。主控制节点包括:开始节点、结束节点和循环节点。一个功能块节点用于实现工作单元中的一个资源的操作。
步骤102,将节点库显示在图形用户界面上。
步骤103,接收用户在图形用户界面上基于节点库进行的行为树的构建和实例化配置操作。
在本申请实施例中,一个行为树用于表征一个工作流,工作流用于定义一个工作单元要执行的操作,例如,它可以表示工作单元内的分布式进程。基于节点库进行的行为树的构建包括:将开始节点、功能块节点和结束节点进行顺序连接;或者,将开始节点、功能块节点和循环节点进行顺序连接。可选地,可以通过用户手动进行顺序连接。可选地,可以通过接收用户在图形用户界面中输入的自然语言的语义描述或者根据标准作业指导书(SOP)中的语义描述,可以基于规则引擎针对相关语义描述进行解析,得到各个功能块节点之间的关联关系。根据各个功能块节点之间的关联关系,按照工作流的进程,将相关的节点进行顺序连接。
通常来说,实例化是指将一个抽象的概念类,具体到该类实物的过程。实例化配置操作可以包括将一功能块要执行的参数输入到该功能块当中。
步骤104,响应于行为树的构建,生成对应一工作流的行为树实例。
具体而言,生成主控制节点的实例。根据用户的实例化配置操作,将所述功能块节点实例化为对应的资源所执行的操作。
在本申请实施例中,在生成对应一工作流的行为树实例之后,对行为树实例进行解析,将行为树实例对应的工作流部署到对应的工作单元的主控制器的运行时上,以使得连接到该主控制器上的工作单元中的各个资源按照所述工作流执行操作。
在本申请实施例中,通过将对应各类资源能够执行的操作封装为对应的功能块节点,并存储于节点库当中,再将主控制节点和功能块节点进行顺序连接后生成表示一工作流的 操作流程的行为树实例。由于节点具有可重用性,因此实现了特定业务和工程平台的解耦。此外,通过行为树的形式组织节点,可生成直观的从开发到实施的工作流操作流程,从而大大降低了工作流构建的复杂度,同时实现了方便、快捷地创建工作流。
图2是根据本申请一实施例中创建的行为树实例的示意图一,如图2所示,当开始节点、功能块节点和结束节点进行顺序连接之后,通过开始节点扫描开始节点和结束节点之间的功能块节点,对功能块节点对应的资源进行初始化。当工作单元中的资源上电后,需要进行初始化操作以保证相关资源的正常运行。开始节点是整个流程的入口,可选地,可以将开始节点默认地显示在图形用户界面上。通过开始节点对开始节点和结束节点之间的所有功能块节点对应的资源进行初始化,可以避免目前用户只能通过编程的方式逐一去实现相关资源的初始化的操作,可见本申请实施例大大降低了编程上的操作。
通过结束节点扫描开始节点和结束节点之间的功能块节点,对功能块节点对应的资源进行复位。在工作单元中的资源下电之前,通过结束节点对所有功能块节点对应的资源进行复位,例如控制机器人移动到默认的位置,从而确保工作单元在管理和运行上的安全性。
可选地,开始节点/结束节点可以通过带环有向图遍历连接在开始节点和结束节点之间的所有功能块节点。
图3是根据本申请一实施例中创建的行为树实例的示意图二,如图3所示,当开始节点、功能块节点和循环节点进行顺序连接之后,通过循环节点跳过开始节点的执行;启动开始节点连接的第一功能块节点的工作流,以使行为树实例循环执行工作流。
在一些实施例中,可以将功能块节点以操作模板的形式存储于节点库中,如图2左侧的操作模板所示,一个功能块节点对应一个操作模板,一个操作模板预先定义一类资源能够执行的操作,所述操作包括:动作、方法或技能。
在一些实施例中,在生成对应一工作流的行为树实例的同时,在用户选择的所有行为树节点上增加在所述行为树实例中唯一的标签;所述标签包括:数字、字母或汉字。行为树节点上的标签可以帮助用户在行为树实例中快速定位到目标节点的位置;其次,倘若需要将图形用户界面上生成的行为树实例对应的操作流程导出为SOP中的内容,那么标签便是该SOP中的章节号。
本申请实施例提供的OT域低代码开发平台40在工业自动化领域的一个应用场景如图4所示。OT域的代码开发工具41在用户的操作下生成对应OT域工作流的行为树实例,该OT域工作流定义了图4右侧所示的作为一个工作单元的生产线要执行的操作。基于该行为树实例生成对应的工作流发布到运行时30,以便由运行时30控制完成所述工作单元 的生产线操作;同时可基于该行为树实例由微服务生成器33生成对应的微服务并注册到知识中台31,这样IT域的代码开发工具32便可通过知识中台31调用对应的微服务。用户可如图4左下角GUI中所示通过拖拽编辑包括功能块节点在内的各个节点实现对OT域行为树实例的编辑,比如:首先通过知识中台31从数据库&服务器处获取所需的数据(比如:工件加工参数),控制整个工作单元的运行。这里的工作单元为一个生产线,生产线上包括机器、传送带、机械臂、人、PLC、AGB等,而上述这些就是一个生产线中的各种资源。
图5是根据本申请的一实施例的一种工作流创建装置50的示意图,如图5所示,工作流创建装置50包括:
预设模块51,被配置为:将预先设置的行为树节点存储于节点库中。行为树节点包括:主控制节点和功能块节点,其中,主控制节点用于控制工作流的运行状态。主控制节点包括:开始节点、结束节点和循环节点。一个功能块节点用于实现工作单元中的一个资源的操作。
图形界面模块52,被配置为:提供用户基于节点库进行的行为树的构建和实例化配置操作的图形用户界面;其中,一个行为树用于表征一个工作流;工作流用于定义一个工作单元要执行的操作;基于节点库进行的行为树的构建包括:将开始节点、功能块节点和结束节点进行顺序连接;或者,将开始节点、功能块节点和循环节点进行顺序连接。图形界面模块52,还被配置为:将节点库显示在图形用户界面上。
编辑处理模块53,被配置为:响应于行为树的构建,生成对应一工作流的行为树实例。
本申请实施例还提出一种设备控制平台600。图6是根据本申请的一实施例的一种设备控制平台600的示意图。如图6所示,设备控制平台600包括处理器602和存储器601,存储器601中存储有指令,其中指令被处理器602执行时实现如上文所述的方法100。
其中,至少一个处理器602可以包括微处理器、专用集成电路(ASIC)、数字信号处理器(DSP)、中央处理单元(CPU)、图形处理单元(GPU)、状态机等。计算机可读介质的实施例包括但不限于软盘、CD-ROM、磁盘,存储器芯片、ROM、RAM、ASIC、配置的处理器、全光介质、所有磁带或其他磁性介质,或计算机处理器可以从中读取指令的任何其他介质。此外,各种其它形式的计算机可读介质可以向计算机发送或携带指令,包括路由器、专用或公用网络、或其它有线和无线传输设备或信道。指令可以包括任何计算机编程语言的代码,包括C、C++、C语言、Visual Basic、java和JavaScript。
此外,本申请实施例实施例还提供一种计算机可读介质,该计算机可读介质上存储有计算机可读指令,计算机可读指令在被处理器执行时,使处理器执行前述的OT域低代码 开发方法。计算机可读介质的实施例包括软盘、硬盘、磁光盘、光盘(如CD-ROM、CD-R、CD-RW、DVD-ROM、DVD-RAM、DVD-RW、DVD+RW)、磁带、非易失性存储卡和ROM。可选地,可以由通信网络从服务器计算机上或云上下载计算机可读指令。
需要说明的是,上述各流程和各系统结构图中不是所有的步骤和模块都是必须的,可以根据实际的需要忽略某些步骤或模块。各步骤的执行顺序不是固定的,可以根据需要进行调整。上述各实施例中描述的系统结构可以是物理结构,也可以是逻辑结构,即,有些模块可能由同一物理实体实现,或者,有些模块可能分由多个物理实体实现,或者,可以由多个独立设备中的某些部件共同实现。

Claims (11)

  1. 一种工作流创建方法,其特征在于,包括:
    -将预先设置的行为树节点存储(101)于节点库中;所述行为树节点包括:主控制节点和功能块节点;其中,所述主控制节点用于控制所述工作流的运行状态;所述主控制节点包括:开始节点、结束节点和循环节点;一个功能块节点用于实现所述工作单元中的一个资源的操作;
    -将所述节点库显示(102)在图形用户界面上;
    -接收(103)用户在所述图形用户界面上基于所述节点库进行的行为树的构建和实例化配置操作;其中,一个行为树用于表征一个工作流;所述工作流用于定义一个工作单元要执行的操作;所述基于所述节点库进行的行为树的构建包括:将所述开始节点、所述功能块节点和所述结束节点进行顺序连接;或者,将所述开始节点、所述功能块节点和所述循环节点进行顺序连接;
    -响应于所述行为树的构建,生成(104)对应一工作流的行为树实例。
  2. 根据权利要求1所述的方法,其特征在于,所述生成(104)对应一工作流的行为树实例包括:
    -生成主控制节点的实例;
    -根据用户的实例化配置操作,将所述功能块节点实例化为对应的资源所执行的操作。
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    -在生成(104)对应一工作流的行为树实例后,对所述行为树实例进行解析,将所述行为树实例对应的工作流部署到对应的工作单元的主控制器的运行时上,以使得连接到该主控制器上的所述工作单元中的各个资源按照所述工作流执行操作。
  4. 根据权利要求1所述的方法,其特征在于,所述方法还包括:将功能块节点以操作模板的形式存储于所述节点库中;其中,一个功能块节点对应一个操作模板,所述操作模板预先定义一类资源能够执行的操作,所述操作包括:动作、方法或技能。
  5. 根据权利要求1所述的方法,其特征在于,当所述开始节点、所述功能块节点和所述结束节点进行顺序连接之后,所述方法还包括:
    -通过所述开始节点扫描所述开始节点和所述结束节点之间的功能块节点;
    -对所述功能块节点对应的资源进行初始化;
    -通过所述结束节点扫描所述开始节点和所述结束节点之间的功能块节点;
    -对所述功能块节点对应的资源进行复位。
  6. 根据权利要求1所述的方法,其特征在于,当所述开始节点、所述功能块节点和所述循环节点进行顺序连接之后,所述方法还包括:
    -通过所述循环节点跳过所述开始节点的执行;
    -启动所述开始节点连接的第一功能块节点的工作流,以使所述行为树实例循环执行所述工作流。
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    -在生成(104)对应一工作流的行为树实例的同时,在用户选择的所有行为树节点上增加在所述行为树实例中唯一的标签;所述标签包括:数字、字母或汉字。
  8. 一种工作流创建装置,其特征在于:
    -预设模块(51),被配置为:
    -将预先设置的行为树节点存储于节点库中;所述行为树节点包括:主控制节点和功能块节点;其中,所述主控制节点用于控制所述工作流的运行状态;所述主控制节点包括:开始节点、结束节点和循环节点;一个功能块节点用于实现所述工作单元中的一个资源的操作;
    -图形界面模块(52),被配置为:
    -提供用户基于所述节点库进行的行为树的构建和实例化配置操作的图形用户界面;其中,一个行为树用于表征一个工作流;所述工作流用于定义一个工作单元要执行的操作;所述基于所述节点库进行的行为树的构建包括:将所述开始节点、所述功能块节点和所述结束节点进行顺序连接;或者,将所述开始节点、所述功能块节点和所述循环节点进行顺序连接;
    -将所述节点库显示在所述图形用户界面上;
    -编辑处理模块(53),被配置为:
    -响应于所述行为树的构建,生成对应一工作流的行为树实例。
  9. 一种工作流创建平台,其特征在于,包括:
    至少一个存储器(601),被配置为存储计算机可读代码;
    至少一个处理器(602),被配置为调用所述计算机可读代码,执行如权利要求1~7任一项所述的方法中的步骤。
  10. 一种计算机可读介质,其特征在于,所述计算机可读介质上存储有计算机可读指令,所述计算机可读指令在被处理器执行时,使所述处理器执行如权利要求1~7任一项所述的方法中的步骤。
  11. 一种计算机程序产品,其特征在于,所述计算机程序产品被有形地存储在计算机可读介质上并且包括计算机可读指令,所述计算机可读指令在被执行时使至少一个处理器执行根据权利要求1~7中任一项所述的方法。
PCT/CN2022/075082 2022-01-29 2022-01-29 工作流创建方法、装置、平台和计算机可读介质 WO2023142075A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2022/075082 WO2023142075A1 (zh) 2022-01-29 2022-01-29 工作流创建方法、装置、平台和计算机可读介质
CN202280089258.6A CN118541683A (zh) 2022-01-29 2022-01-29 工作流创建方法、装置、平台和计算机可读介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/075082 WO2023142075A1 (zh) 2022-01-29 2022-01-29 工作流创建方法、装置、平台和计算机可读介质

Publications (1)

Publication Number Publication Date
WO2023142075A1 true WO2023142075A1 (zh) 2023-08-03

Family

ID=87470191

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/075082 WO2023142075A1 (zh) 2022-01-29 2022-01-29 工作流创建方法、装置、平台和计算机可读介质

Country Status (2)

Country Link
CN (1) CN118541683A (zh)
WO (1) WO2023142075A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105068929A (zh) * 2015-08-06 2015-11-18 网易(杭州)网络有限公司 测试脚本生成方法和装置、测试方法、测试装置以及测试系统
CN106250100A (zh) * 2016-08-15 2016-12-21 腾讯科技(深圳)有限公司 系统逻辑控制方法及装置
CN106959850A (zh) * 2017-03-02 2017-07-18 上海时年信息科技有限公司 自动生成行为树代码的方法及系统
US20170225076A1 (en) * 2016-02-09 2017-08-10 Disney Enterprises, Inc. System and Method of Implementing Behavior Trees When Modifying Attribute Values of Game Entities Based On Physical Token Detection
CN111079244A (zh) * 2019-06-20 2020-04-28 中国航天系统科学与工程研究院 一种基于行为树的分布式仿真平台
CN112506503A (zh) * 2020-12-18 2021-03-16 深圳市优必选科技股份有限公司 一种编程方法、装置、终端设备及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105068929A (zh) * 2015-08-06 2015-11-18 网易(杭州)网络有限公司 测试脚本生成方法和装置、测试方法、测试装置以及测试系统
US20170225076A1 (en) * 2016-02-09 2017-08-10 Disney Enterprises, Inc. System and Method of Implementing Behavior Trees When Modifying Attribute Values of Game Entities Based On Physical Token Detection
CN106250100A (zh) * 2016-08-15 2016-12-21 腾讯科技(深圳)有限公司 系统逻辑控制方法及装置
CN106959850A (zh) * 2017-03-02 2017-07-18 上海时年信息科技有限公司 自动生成行为树代码的方法及系统
CN111079244A (zh) * 2019-06-20 2020-04-28 中国航天系统科学与工程研究院 一种基于行为树的分布式仿真平台
CN112506503A (zh) * 2020-12-18 2021-03-16 深圳市优必选科技股份有限公司 一种编程方法、装置、终端设备及存储介质

Also Published As

Publication number Publication date
CN118541683A (zh) 2024-08-23

Similar Documents

Publication Publication Date Title
EP3194123B1 (en) System and method for flexible human-machine collaboration
WO2023142062A1 (zh) 工作流生成方法、系统、介质及程序产品
CN102831167B (zh) 图结构的xml处理方法及装置
WO2023164841A1 (zh) 工作流执行方法、装置、存储介质及程序产品
CN105824616A (zh) 一种用于设备控制系统程序的开发方法及框架
CN111273900A (zh) 基于gitlab实时代码共享的在线拖拽编码生成方法
Ye et al. Implementation of a production-control system using integrated automation ML and OPC UA
WO2023142075A1 (zh) 工作流创建方法、装置、平台和计算机可读介质
WO2023142076A1 (zh) 工作流控制方法、装置、系统、介质及程序产品
WO2023142061A1 (zh) 工作流生成方法、装置、系统、介质及程序产品
WO2023142079A1 (zh) 工作流创建方法、系统、介质及程序产品
CN106293651A (zh) 一种通用接口的实现方法及装置
WO2023142077A1 (zh) 工作流生成方法、装置、系统、介质及程序产品
CN110750308B (zh) 任务处理方法、装置、存储介质及电子设备
WO2023142078A1 (zh) 工作流构建方法、系统、介质及程序产品
WO2023142066A1 (zh) 工作流构建及监控方法、系统、介质及程序产品
EP4455869A1 (en) Workflow construction method and system, medium, and program product
WO2023159571A1 (zh) 工作流创建方法、装置、平台和计算机可读介质
WO2023164835A1 (zh) 工作流执行方法、装置、存储介质及程序产品
EP4455956A1 (en) Workflow construction and monitoring method and system, and medium and program product
WO2023164822A1 (zh) 动态工作流实现方法、系统、介质及程序产品
EP4455814A1 (en) Workflow control method, apparatus and system, and medium and program product
CN106933563B (zh) 一种页面流编辑器
WO2023206262A1 (zh) 自然语言语句的转换方法、装置及存储介质
JP2002116911A (ja) オブジェクト指向プログラムの自動生成装置

Legal Events

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

Ref document number: 22922905

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022922905

Country of ref document: EP

Effective date: 20240729

NENP Non-entry into the national phase

Ref country code: DE