Workflow creation method and system, medium and program product
Patent Information
- Application Number
- CN202280089262.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-29
- Publication Date
- 2024-09-17
AI Technical Summary
Textual descriptions of existing workflows are difficult to execute, resulting in users needing to use multiple unrelated engineering tools, which increases development cycles, costs, reduces efficiency, and limits flexibility.
Provide a workflow creation method and system that uses a graphical user interface based on the construction of behavior tree nodes to generate corresponding workflows, including flow control nodes and function block nodes, to achieve logical control and business operations, and reduce the complexity of workflow construction. , and realizes the integration of IT domain and OT domain.
It realizes fast and convenient workflow creation, reduces complexity, improves development integration, realizes the integration of IT domain and OT domain, and simplifies low-code development in OT domain.
Smart Images

Figure CN118661184A
Abstract
Description
Workflow creation method, system, medium and program product Technical Field
[0001] The embodiments of the present application relate to the field of industrial technology, and in particular to a workflow creation method, system, computer-readable storage medium, and computer program product. Background Art
[0002] A workflow can be simply defined as a description of a series of operational processes. Workflows are 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 photos, classifying, and moving products to their destinations. In the field of artificial intelligence, the model deployment workflow can be described as data collection, data labeling, model training, and model deployment.
[0003] However, these workflows currently only have text descriptions. To execute such workflows, users must follow these text descriptions and potentially use multiple engineering tools. However, these tools are largely unrelated and provide completely different user operations. This not only presents a challenge for users but also significantly increases costs, reduces efficiency, and limits flexibility due to long development cycles. For example, in the field of artificial intelligence, users need to use one tool for data collection, manually or with other tools for data annotation, write Python scripts for model training, and then deploy tools for deployment.
[0004] To this end, those skilled in the art are still working on finding other workflow solutions.
[0005] Summary of the Invention
[0006] Embodiments of the present application provide a workflow creation method, system, computer-readable storage medium, and computer program product for quickly and conveniently implementing workflow creation.
[0007] In a first aspect, a workflow creation method is provided, comprising: receiving a user's operation of constructing a behavior tree based on pre-set behavior tree nodes on a graphical user interface; wherein a behavior tree is used to represent a workflow, and the workflow is used to define operations to be performed by a work unit; the behavior tree nodes include flow control nodes and function block nodes; wherein the flow control nodes are used to implement logical control in the workflow; the function block nodes are used to implement business operations in the workflow, and include logic nodes, each corresponding to an operation template, each operation template pre-defining operations that can be performed by at least one type of device; in response to the behavior tree construction operation, generating a behavior tree corresponding to the workflow, wherein the logic nodes in the behavior tree are instantiated as operations of the corresponding device.
[0008] In a second aspect, a workflow creation system is provided, comprising a node library containing behavior tree nodes for constructing behavior trees; the behavior tree nodes include flow control nodes and function block nodes; wherein a behavior tree is used to represent a workflow, wherein the workflow is used to define the operations to be performed by a work unit; the flow control nodes are used to implement logical control in the workflow; and the function block nodes are used to implement business operations in the workflow, and the system includes logic nodes, each logic node corresponding to an operation template, each operation template pre-defining an operation that can be performed by at least one type of device; a graphical interface module configured to provide a user with a graphical user interface for constructing a behavior tree based on the behavior tree nodes in the node library; and an editing processing module configured to generate a behavior tree corresponding to a workflow in response to the behavior tree construction operation, wherein the logic nodes in the behavior tree are instantiated as operations of the corresponding device.
[0009] In a third aspect, another workflow creation system is provided, comprising: at least one memory configured to store computer-readable code; and at least one processor configured to call the computer-readable code and execute each step of the method provided in the first aspect.
[0010] In a fourth aspect, an IT domain and OT domain fusion system is provided, comprising IT equipment and a workflow creation system as described in any of the above embodiments.
[0011] In a fifth aspect, a computer-readable medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor, the processor executes each step in the method provided in the first aspect.
[0012] In a sixth aspect, a computer program product is provided, which is tangibly stored on a computer-readable medium and includes computer-readable instructions, which, when executed, cause at least one processor to perform the steps in the method provided in the first aspect.
[0013] In this embodiment, by encapsulating the operation templates corresponding to the operations that can be performed by various types of devices into corresponding logical nodes and setting other nodes required to construct the behavior tree, a behavior tree can be used to represent the workflow operation process. Due to the reusability of the nodes, specific business operations are decoupled from the engineering platform. Furthermore, organizing the nodes in the form of a behavior tree can generate an intuitive workflow operation process from development to implementation, thereby reducing the complexity of workflow construction and enabling fast and convenient workflow creation.
[0014] For any of the above aspects, optionally, the behavior tree is parsed, and the OT domain workflow corresponding to the behavior tree is deployed to the runtime of the main controller of the work unit, so that each device in the work unit connected to the main controller executes operations according to the workflow. In this way, the purpose of controlling the operation of the work unit based on the workflow is achieved.
[0015] For any of the above aspects, optionally, the workflow is an OT domain workflow; the work unit is a work unit within the OT domain; and the device is an OT device. In this way, workflow creation within the OT domain is achieved.
[0016] For any of the above aspects, optionally, a microservice is generated based on the OT domain workflow, so that IT devices in the IT domain, by calling the microservice, trigger the runtime of the main controller of the work unit to execute the OT domain workflow. In this way, IT devices can call the microservice generated based on the OT domain workflow, thereby triggering the execution of the OT workflow, achieving the integration of the IT and OT domains. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] FIG1A is an exemplary flowchart of a workflow creation method provided in various embodiments of the present application.
[0018] FIG1B is an example diagram of a resource knowledge graph in an example of this application.
[0019] FIG1C is an example diagram showing an example of associating a function block node with each resource node in an example of the present application.
[0020] FIG1D is an exemplary flowchart of another workflow creation method provided in various embodiments of the present application.
[0021] FIG2A is a schematic diagram of a behavior tree created in an example of this application.
[0022] FIG2B to FIG2S are schematic diagrams of a portion of a behavior tree created in an example of this application.
[0023] FIG2T is an example of constructing a behavior tree based on function block nodes of a function block type diagram in an example of this application.
[0024] 2U to 2X are schematic diagrams respectively showing hiding or displaying a data input port or a data output port in an example of the present application.
[0025] FIG2Y is a schematic diagram showing an example of adding data blocks to four function block nodes in a behavior tree and displaying corresponding data in each data block in the present application.
[0026] FIG3 is an exemplary structural diagram of a workflow creation system provided by one embodiment of the present application.
[0027] 4A to 4E are schematic diagrams of workflow creation systems provided in various embodiments of the present application.
[0028] FIG5 is a schematic diagram of a hardware implementation of a workflow creation system provided in an embodiment of the present application.
[0029] List of reference numerals:
[0030] S11 to S13: Steps in the workflow creation method
[0031] 201: Function block name
[0032] 202: Function block header
[0033] 203: Link input port
[0034] 204: Link output port
[0035] 205: Link connected
[0036] 206: Sensitive Area
[0037] 207: Instruction tag
[0038] 208: Input data chunk
[0039] 209: Output data chunk
[0040] 210: Data input port
[0041] 211: Data output port
[0042] 212: Data connection
[0043] 213: Function block icon
[0044] 214: Function block body
[0045] 215: Data block tag
[0046] 216: Data block
[0047] 217: Monitoring link
[0048] 110: Node Library
[0049] 120: Graphical interface module
[0050] 130: Editing processing module
[0051] 140: Parsing deployment module
[0052] 150: Resource Library
[0053] 100: Low-code development platform for OT domain
[0054] 10: Low-code development tools for OT domains
[0055] 20: OT Domain Microservice Generator
[0056] 30: Runtime on the worker's primary controller
[0057] 40: Microservices
[0058] 50: Third-party devices
[0059] 200: Data Platform
[0060] 300: Code development platform for IT domain
[0061] 301: Code development tools in IT domain
[0062] 51: At least one memory
[0063] 52: At least one processor
[0064] 53: At least one display
[0065] 54: Bus DETAILED DESCRIPTION
[0066] The subject matter described herein will now be discussed with reference to example embodiments. It should be understood that discussing these embodiments is merely to enable those skilled in the art to better understand and implement the subject matter described herein, and is not intended to limit the scope of protection, applicability, or examples set forth in the claims. The functions and arrangements of the elements discussed may be changed without departing from the scope of protection of the embodiments of the present application. Various examples may omit, replace, or add various processes or components as needed. For example, the described method may be performed in an order different from the described order, and various steps may be added, omitted, or combined. In addition, the features described relative to some examples may also be combined in other examples.
[0067] As used herein, the term "including" and its variations are 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 objects. Other definitions may be included below, whether explicit or implicit. Unless the context clearly indicates otherwise, the definition of a term is consistent throughout the specification.
[0068] The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0069] FIG1A shows an exemplary flow chart of a workflow creation method provided in an embodiment of the present application. As shown in FIG1A , the method may include the following steps:
[0070] Step S11A: receiving a behavior tree construction operation performed by a user on a graphical user interface based on pre-set behavior tree nodes.
[0071] In this embodiment, a behavior tree is used to represent a workflow, which defines the operations to be performed by a work unit. For example, it can represent a distributed process within a work unit. In specific implementations, the workflow here can be further divided into a main workflow and sub-workflows. The main workflow is used to define the start, end, and other flow controls that trigger the entire work unit process. The main workflow is the entry point to the entire process and is linked to at least one sub-workflow. Sub-workflows are usually the main workflow, and each sub-workflow corresponds to a sub-process, which is used to implement specific business operations.
[0072] Among them, the work unit (Workcell) can be a combination of resources such as systems or equipment that can realize a relatively complete and independent control process and operation. In this embodiment, 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. For example, taking the field of industrial technology as an example, the work unit can be defined according to the actual industrial scenario, such as: one process can be defined as one work unit, or one workstation in the process can be defined as one work unit, or one workstation in the workstation can be defined as one work unit, etc. The process flow of different work units is different.
[0073] In this embodiment, the behavior tree nodes may include: flow control nodes and function block nodes, which are described in detail below.
[0074] 1. Flow Control Node
[0075] Flow control nodes are used to implement logical control in workflows, which are usually independent of the specific business operations in the work unit. Through flow control nodes, users can create various workflows according to their needs.
[0076] In a specific implementation, the flow control node may include: a main control node, a logical control node, and a conditional node. Alternatively, the flow control node may include: one or any combination of the main control node, the logical control node, and the conditional node. Each of these is briefly described below.
[0077] 1. Master control node
[0078] The main control node may include: a part or all of a start node, an end node, a goto node, an anchor node, a stop node, and an abort node.
[0079] The main control nodes in this example are not standard behavior tree elements, but they can be used to control the main flow of the workflow and link to the workflow's state machine. The start node is mandatory, and either the end node or the goto node can also be mandatory. The main control node is primarily used to define the start and end of the workflow. Additionally, other element nodes can control the state machine (e.g., pause and stop) or mark key process steps (e.g., key nodes) that can be skipped.
[0080] 2. Logical control node
[0081] Logical control nodes may include: sequence (Se) node, reactive sequence (RSe) node, parallel (Pa) node, in-process quality control (IPQ) node, priority (Fallback) (Pr) node, reactive priority (Fallback) (RPr) node, conditional judgment (ITE) node, and part or all of the multi-branch selection (Sw) node.
[0082] Logic control nodes define how branches are executed in a behavior tree, and are used to implement branch logic control in workflows. The following is a brief description of each node:
[0083] 1) Sequential node: This node can have one or more child nodes, and will trigger routing to each child node in sequence according to the order of the workflow.
[0084] 2) Reactive Sequential Node: It has the same function as Sequential Node, but it will continuously check the trigger condition.
[0085] 3) Parallel nodes, which can have one or more child nodes, are started sequentially from top to bottom, and all child nodes are executed simultaneously in multiple processes or multiple threads.
[0086] 4) In-process quality control nodes are where quality engineers conduct quality inspections on a portion of the process steps. If the inspection fails, the exception handling process is executed; if successful, the process continues.
[0087] 5) Priority node: Execute each sub-branch in order of priority. If the previous execution fails, execute the next one. If any branch is successfully executed, it passes.
[0088] 6) Reactive Priority Node: Functions similar to Priority Node, but continuously checks for trigger conditions.
[0089] 7) Whether conditional judgment node: Check the trigger expression, if it is true, execute the true branch, if it is false, execute the false branch.
[0090] 8) Multi-branch selection node: Checks the trigger expression and executes different branches according to different conditions. If none of them are satisfied, the default branch is executed.
[0091] Typically, Sequential and Parallel nodes drive most of the logic in a workflow.
[0092] 3. Condition (C) node
[0093] Condition nodes are typically the basic logic elements in behavior trees that check expressions. They are used to perform conditional checks and return a result. They return a success or failure status based on whether the condition is met. Condition nodes never return a running status.
[0094] In addition, in other implementations, the conditional node may also be included in the function block node, or the conditional node may also be a separate type of node.
[0095] 2. Function Block (FB) Node
[0096] Function block nodes are used to execute commands and implement business operations in workflows. Typically, they return success if the operation completes successfully, and failure if the operation fails. If the operation is in progress, they return running.
[0097] In this embodiment, the function block node includes a logical node, and may also include some specific types of function block nodes, for example, it may include some or all of the manual (Manual) nodes, dynamic (Dynamic) nodes, delay (Delay) nodes, and idle (Empty (idle)) nodes. Among them, the dynamic node is used to dynamically inject node instances at runtime. The manual node represents a manual step, which stops at the current node before obtaining the confirmation signal and exits after obtaining the confirmation signal. The delay node indicates exiting the current node after a specified delay time. The idle node indicates that no operation is performed, and it is a placeholder that can be replaced by any function block node. Among them, each logical node may correspond to an operation template, and each operation template predefines at least one type of resource (such as a collaborative robot class or a PLC class or other equipment class) that can perform operations. For example, the operation may include: actions, methods or skills.
[0098] In specific implementations, each action template can consist of an interface portion and an implementation portion. The implementation portion can be an application (for example, a containerized application) that contains functional code and runtime dependencies. This application can run independently and be exposed to the outside world through a specific network communication interface. The interface portion can be a logical node presented as a graphical element. That is, like other behavior tree nodes, it can be dragged and dropped, connected, and configured in a graphical user interface. In specific implementations, each logical node can have a parameter panel for configuring the logical node's parameters, such as input and output parameters. Of course, these input and output parameters can also be pre-set with default values.
[0099] Each logic node can be configured and executed individually. When executing a logic node in a behavior tree, the user-configured inputs for the logic node are read and transferred to the implementation portion of the action template, i.e., the corresponding application. After completing a specific action, such as a model conversion, the result of the operation, such as the converted model, is converted back into the output of the logic node.
[0100] In this embodiment, the interface and implementation components of each operation template can be stored separately. For example, the node library can store only the interface component, i.e., the logical node, while the implementation component can be stored in a node service module, which in this embodiment is referred to as the runtime. The node service module can be located on a server or locally.
[0101] Optionally, the above logical nodes follow the information model for runtime interaction with the main controller, thus achieving standardization of communication between OT domain workflows and the main controllers of various OT devices.
[0102] In addition, considering that the business operations corresponding to a functional block node may be performed by different subjects, such as a specific physical device, a certain person, or other virtualized noun resources, for the convenience of description, these physical devices, personnel, virtualized noun resources, etc. are collectively referred to as resources in this article. These resources usually refer to resources that can execute workflows on site as various operating subjects.
[0103] In specific implementations, the resource that serves as the subject of the operation execution can be included as a common configuration parameter of the function block node, and the corresponding resource configuration can be performed on the required function block node when creating the behavior tree. Alternatively, the resource that serves as the subject of the operation execution can be configured for the function block node when creating the function block node, so that the resource configuration of the required function block node is not required when creating the behavior tree.
[0104] Alternatively, to facilitate resource management, these resources can also be represented in the form of resource nodes, and these resource nodes can be stored in the form of a resource knowledge graph. The resource knowledge graph includes: various resource nodes, and connections representing the relationships between resource nodes. For example, FIG1B shows an example diagram of a resource knowledge graph in an example. As shown in FIG1B , the resource knowledge graph is a factory resource knowledge graph, that is, it describes the real system configuration of a factory. The factory (F, Factory) node has an industrial computer (IPC) node, and the industrial computer (IPC) node has a cooperative robot (CR, Cooperative Robot) node, a PLC node, and a bar code scanner (BCS, Bar Code Scanner) node. Among them, the cooperative robot (CR, Cooperative Robot) node has a clamping jaw (CJ, Clamping Jaw) node, a torque wrench (TW, Torque Wrench) node, and a camera (CA, Camera) node; the PLC node has a button (B, Button) node and an LED alarm light node. Of course, in some applications, there may be more than one device of a certain type, such as a collaborative robot. In this case, the devices of this type can be distinguished by numbers or models, etc., which will not be discussed here one by one.
[0105] Each function block node can be instantiated as an operation for the corresponding resource by associating it with a resource node. For example, a logical node can be instantiated as an operation for the corresponding device by associating it with a device resource node. In practice, a resource header can be set for the function block node, and the resources associated with the function block node will be displayed in this resource header.
[0106] The specific association process can be implemented in a variety of different ways. For example, each resource node can be pre-associated with a corresponding function block node. This way, when creating a behavior tree, the function block node associated with the corresponding resource can be directly pulled, eliminating the need for temporary configuration. For example, Figure 1C shows an example diagram of an example in which each resource node is associated with a function block node. As shown in Figure 1C, the resources shown in the resource knowledge graph shown in Figure 1B are each associated with a corresponding function block node. Among them, the industrial computer (IPC) node is associated with the Press Button (PB) node and the Display Dialog Box on Screen (DDB) node; the collaborative robot (CR) node is associated with the Linear Move (LM) node and the Shutdown Mobile (SM) node; the PLC node is associated with the Read I / O (RIO) node and the Write I / O (WIO) node; the barcode scanner (BCS) node is associated with the Scan Bar Code (SBC) node; the clamping jaw (CJ) node is associated with the Open (O) node and the Grab (Gr) node; the torque wrench (TW) node is associated with the Twist (T) node; the camera (CA) node is associated with the Register (R) node, the Calibration (Cb) node, and the Take (TP) node. The node is associated with a Photo node and an Object Recognition (OR) node; the Button (B) node is associated with a Press Button (PB) node; the LED Alarm Light node is associated with a Switch On (SO) node and a Switch Off (SF) node.
[0107] Alternatively, you can avoid pre-associating resource nodes with function block nodes and instead associate the corresponding resource nodes with the required function block nodes when creating the behavior tree.
[0108] Alternatively, there can be both function block nodes pre-associated with resource nodes (referred to as dedicated function block nodes) and function block nodes not associated with resource nodes (referred to as general function block nodes). While general function block nodes lack associated field resources, they do not affect the simulation of the workflow corresponding to the behavior tree containing them. For example, if a collaborative robot has not yet been purchased, a simulation using the corresponding general function block node can be performed in advance to verify feasibility. Once feasibility is confirmed, purchase can be initiated.
[0109] In addition, this embodiment may further include the following decorator nodes:
[0110] 3. Decorator Node
[0111] Decorator nodes are primarily used to decorate function block nodes driven by logic control nodes. For example, they can be used to determine whether a branch or even a single node in a behavior tree can be executed. These can include some or all of the following: Repeat (Rp) nodes, Retry (Rt) nodes, One-Shot (OS) nodes, Timeout (TO) nodes, Timer (Tm) nodes, Inverter (Iv) nodes, Force Run (FR) nodes, Force OK (FO) nodes, Force Failed (FF) nodes, and Guard (G) nodes. The following is a brief description of each decorator node:
[0112] 1) A negation node can have a child node, which is used to negate the child node. If the child node fails, it returns success; if the child node succeeds, it returns failure.
[0113] 2) A mandatory success node, which can have a child node (such as a function block node). Regardless of whether its child node succeeds or not, this node will always return success.
[0114] 3) Forced failure node, which can have a child node (such as a function block node). Regardless of whether its child node succeeds or not, this node will always return failure.
[0115] 4) Repeating nodes, which can have a child node (such as a function block node) and can repeatedly execute its child node a fixed number of times.
[0116] 5) A retry node can have a child node (such as a function block node) that can trigger its child node up to N times. If its child node returns a failure, it will retry and reduce the number of retries by one. When the number of retries reaches zero, it returns a success. If the child node returns a success, it will terminate the loop and also return a success. Where N is a positive integer.
[0117] 6) A one-time node, which can have one child node, indicating that its child node is only executed once in the workflow and will not be executed again before the workflow is restarted.
[0118] 7) A timeout node may have a child node for timing the execution time of its child nodes (such as function block nodes), and exit execution (even if it is not completed) when the specified time is exceeded.
[0119] 8) A timer node may have a child node, which executes its child node (such as a function block node) after the specified time is reached.
[0120] 9) A forced running node may have a child node. Regardless of whether its child node (such as a function block node) has been executed, it will be forced to return to the running state.
[0121] 10) A monitoring node, which can have at least one child node, is used to monitor the status of all its child nodes. If any child node fails to execute correctly, an error message is generated. The status returns to normal only when all child nodes are normal.
[0122] In other implementations, the decorator node may also be included in the flow control node, that is, the flow control node may include all or part of the main control node, the logic control node, and the decorator node.
[0123] In this embodiment, each behavior tree node can be listed as an icon on the graphical user interface. Users can select and drag icons onto the canvas to determine the nodes required for workflow creation. Furthermore, they can configure necessary parameters for the nodes, such as resource configuration and / or input and output parameter configuration. If a work unit is to perform more than one operation (i.e., more than one operation defined in the desired workflow), the behavior tree corresponding to that workflow can include multiple function block nodes. Corresponding flow control nodes can be set according to the order and interrelationships of the operations. By arranging and connecting the dragged nodes accordingly, the behavior tree for the corresponding workflow is ultimately generated. In other words, the behavior tree construction operation includes adding and connecting behavior tree nodes. Furthermore, it can also include associating resources with the added function block nodes. Furthermore, it can also include configuring the input and output parameters of the behavior tree nodes.
[0124] Step S12A: In response to the behavior tree construction operation, a behavior tree corresponding to a workflow is generated, and logic nodes in the behavior tree are instantiated as operations of corresponding devices.
[0125] In this embodiment, in response to the behavior tree construction operation, each behavior tree node can be instantiated, and connections between the instantiated behavior tree nodes can be established. For example, by executing this step, the added logic nodes can be instantiated as operations for corresponding devices. Then, based on the connections between the instantiated behavior tree nodes, a behavior tree corresponding to a workflow is generated.
[0126] In specific implementations, the aforementioned behavior tree nodes can be stored in a node library. Furthermore, for similar application scenarios, to avoid wasting manpower and time on repeatedly building behavior trees, the behavior tree (or uninstantiated behavior tree framework) for a corresponding workflow or sub-workflow that the user has already built, preferably debugged or successfully run, can be stored as a workflow node or sub-workflow node. Accordingly, the node library can further include workflow (WF, WorkFlow) nodes and sub-workflow (SWF, SubWorkFlow) nodes. When a user needs to build a similar behavior tree, or a behavior tree that includes the workflow or sub-workflow, they can select the corresponding workflow node or sub-workflow node and perform the necessary configuration to obtain the behavior tree that implements the desired workflow.
[0127] Figure 2A shows a schematic diagram of a behavior tree for constructing a work unit on a quality inspection production line in an example. Figures 2B through 2S show schematic diagrams of portions of the behavior tree constructed in an example. Arrows indicate the order in which the corresponding nodes are executed.
[0128] In the process of constructing the above-mentioned behavior tree representing the workflow, the function block nodes can be understood as being presented in the form of a label graph, and the construction of this behavior tree based on the function block label graph requires the participation of flow control nodes and even decorator nodes. In addition, an embodiment of the present invention also provides a behavior tree construction method based on a function block type graph, in which the function block nodes are presented in the form of a type graph. In actual applications, these two behavior tree construction methods can coexist, and when one of them is used to construct the behavior tree, the other method is also constructed synchronously. For example, when two function block nodes are connected sequentially based on the function block type graph, when the behavior tree based on the function block label graph is synchronously constructed, a sequence node will be automatically added, and the two function block nodes will be added to the sequence node from top to bottom.
[0129] FIG1D shows an exemplary flow chart of another workflow creation method provided in an embodiment of the present application. As shown in FIG1D , the method may include the following steps:
[0130] Step S11B: receiving the user's adding and connecting operations of function block nodes based on the function block type diagram on the graphical user interface. In this application, the type diagram and the label diagram can be understood as two presentation modes of the same function block node, and their functions are both used to implement a corresponding business operation.
[0131] FIG2T shows an example of constructing a behavior tree based on the function block nodes of a function block type diagram. In this example, two function block nodes F1 and F2 are shown. As shown in FIG2T , the function block type diagram may include:
[0132] 1) Function block name 201, used to indicate the type of business operation. Examples include screw tightening, image acquisition, video recording, and visual wizards. In practice, when dragging a function block node from the node library onto the canvas, a default function block name is generated by adding the default name of the function block definition to the instance number. In Figure 2U , the logical nodes within the function block node are represented by "Logical Node 1" and "Logical Node 2." Function block names are editable but should be unique within the current global workflow.
[0133] 2) Function block header 202 used to indicate the resource performing the business operation. For example, the resource for tightening screws is a torque wrench, the resource for image acquisition is a monitor, the resource for recording video is a monitor, and the resource for visual guidance is a camera. Typically, the function block header 202 of a logical node is a physical resource, such as "Physical Node 1" and "Physical Node 2" shown in Figure 2U. As previously mentioned, the resources indicated by the function block header 202 can be pre-associated, or the corresponding resource association can be completed through resource configuration after the function block node is added.
[0134] 3) Link input port 203 and link output port 204 for triggering a link connection. In this embodiment, the wiring operation of the function block nodes may include: a wiring operation between the link output port 204 and the link input port 203 between two function block nodes F1 and F2. Through this wiring operation, a link connection 205 is established between the two function block nodes F1 and F2. Link connection 205 in this example is a unidirectional connection used to indicate the workflow execution process. For example, it can indicate the execution order of the two function block nodes, that is, executing the function block node F1 on the left first and then the function block node F2 on the right.
[0135] In a specific implementation, to avoid selection errors and improve the sensitivity of function block node connections, a sensitive area 206 is provided within the set range of the link input port 203, referred to herein as the first sensitive area. This area is used to locate the connection endpoint on the link input port 203 when a user's selection and connection operation is received within the first sensitive area. Similarly, a sensitive area (not shown in the figure) may also be provided within the set range of the link output port 204, referred to herein as the second sensitive area. This area is used to locate the connection endpoint on the link output port 204 when a user's selection and connection operation is received within the second sensitive area.
[0136] Furthermore, in this embodiment, in response to the connection operation between the link output port 204 and the link input port 203 between two function block nodes F1 and F2, an instruction label 207 indicating the execution order of each function block node can be generated for the interconnected function block nodes F1 and F2. The instruction label 207 is then marked on the function block type diagram of the function block nodes F1 and F2, as shown in the figure as 1 and 2. Furthermore, the instruction label 205 can also be used as an index for jump instructions and as a section index in a document.
[0137] 4) An input data block 208 representing the set of all data input ports and an output data block 209 representing the set of all data output ports. In this embodiment, the number of the data input ports of a function block node can be indicated on the input data block 208, such as 5 on the input data block 208 of function block node F1 and 2 on the input data block 208 of function block node F2. If the number of data input ports is zero, the input data block 208 can be hidden. Similarly, the number of data output ports of a function block node can be indicated on the output data block 209, such as 3 on the output data block 209 of function block node F1 and 1 on the output data block 209 of function block node F2. If the number of data output ports is zero, the output data block 209 can be hidden.
[0138] In this embodiment, as shown in Figures 2U to 2X, clicking on the input data block 208 can expand or hide the various data input ports of the function block node. Clicking on the output data block 209 can expand or hide the various data output ports of the function block node. Figure 2U shows a schematic diagram of hiding the data input ports of logical node 2 by clicking on them, Figure 2V shows a schematic diagram of hiding the data output ports of logical node 1 by clicking on them, Figure 2W shows a schematic diagram of simultaneously displaying the various data input ports and various data output ports, and Figure 2X shows a schematic diagram of simultaneously hiding the various data input ports and various data output ports.
[0139] 5) A data input port 210 and a data output port 211 for triggering data transmission. In this embodiment, the wiring operation of the function block node may also include: a wiring operation between the data output port 211 and the data input port 210 between the corresponding data of the two function block nodes F1 and F2. Through this wiring operation, a data connection 212 is established between the two function block nodes F1 and F2. The data connection 212 in this example is used to indicate the data transmission between the two function block nodes F1 and F2. As shown in Figure 2U, a data connection 212 is established between the data output port 211 of the output data 1 of the function block node F1 and the data input port 210 of the input data 2 of the function block node F2, indicating that the output data 1 of the function block node F1 serves as the input data 2 of the function block node F2.
[0140] In specific implementations, similar to the link input / output ports, to avoid click errors and improve the sensitivity of the function block node connections, a sensitive area (not shown in the figure) may be provided within the set range of the data input port 210, referred to herein as the third sensitive area. This area is used to locate the connection endpoint on the data input port 210 when a user click and connection operation is received within the third sensitive area. Similarly, a sensitive area (not shown in the figure) may be provided within the set range of the data output port 211, referred to herein as the fourth sensitive area. This area is used to locate the connection endpoint on the data output port 211 when a user click and connection operation is received within the fourth sensitive area.
[0141] 6) Function block icon 213. Specifically, the function block icon 213 may be a vector icon 213, which is used to visually represent the business operation of the function block node. Of course, in other implementations, the function block icon 213 may also be omitted.
[0142] 7) A function block body 214 for carrying the above components. In this embodiment, the operation of adding a function block node may include: a dragging operation on the function block body 214 .
[0143] Step S12B: constructing a behavior tree corresponding to a workflow in response to the adding and connecting operations of the function block nodes.
[0144] In this step, in response to the addition and wiring of the function block nodes, a behavior tree comprising flow control nodes and function block nodes based on the function block label graph (S12A) can be simultaneously constructed. Similarly, while constructing the behavior tree comprising flow control nodes and function block nodes based on the function block label graph (S12A), a behavior tree based on the function block type graph (S12B) can also be simultaneously constructed. Furthermore, these two behavior tree construction interfaces can be switched based on user selection. For example, the user can select either the behavior tree based on the function block type graph or the behavior tree based on the function block label graph to switch between the two.
[0145] Furthermore, in other implementations, whether creating a behavior tree based on function block nodes in the form of a tag graph or a type graph, at least one data block can be added and connected to each of at least one function block node in the behavior tree. Each data block is used to present data corresponding to the business operations of the connected function block node. Data block types can include some or all of data pairs, data tables, images, videos, and charts.
[0146] Figure 2Y shows a schematic diagram of adding data blocks to four function block nodes in a behavior tree and displaying corresponding data in each data block in an example of this application. In this example, taking the behavior tree creation interface based on the function block type diagram as an example, as shown in Figure 2Y, in this example, the function block node associated with the monitor's recording production video has a data block of type Live Data-Video added; the function block node associated with the torque wrench's screw tightening has a data block of type Live Data-Text and a data block of type Live Data-Chart added; the function block node associated with the monitor's robot image acquisition has a data block of type Live Data-Image added; and the function block node associated with the camera's machine vision wizard has a data block of type Live Data-Video added.
[0147] As shown in Figure 2Y, each data block may include a data block label 215 for indicating the type of data block and a data block body 216 having a display area for presenting specific data. The data block label 215 can be a draggable label, for example, it can be moved to any position in the canvas. The size of the display area of the data block body 216 is adjustable and is used to display different types of data from the data layer in real time. A monitoring link 217 is established between each data block and the corresponding function block node, and a function block can be mapped to multiple data blocks. When the workflow is executed, for example, when it is executed at runtime, the monitoring and output data corresponding to the function block node will be transmitted to the corresponding data block for real-time display.
[0148] The data block in this embodiment is a low-code data block. The difference between it and other SCADA and dashboard systems is that the low-code data block in this embodiment is also a low-code element. It can be part of the behavior tree, and all its properties can be managed in the low-code logic.
[0149] The data source in the low-code data block comes from the data layer, which can obtain data through the interface provided by the data layer at runtime or in the cloud execution engine. The data source can be a time series database, RDBMS, or NoSQL. The low-code data block is a flexible, scalable, and adaptable system that can be applied to any functional block node that can be associated with a physical device. In short, the data block used to implement data monitoring can be considered a visual interface for the data layer.
[0150] Furthermore, in other implementations, whether creating a behavior tree based on function block nodes in the form of a tag graph or a type graph, at least one data block can be added and connected to each of at least one function block node in the behavior tree. Each data block is used to present data corresponding to the business operations of the connected function block node. Data block types can include some or all of data pairs, data tables, images, videos, and charts.
[0151] Figure 2Y shows a schematic diagram of adding data blocks to four function block nodes in a behavior tree and displaying corresponding data in each data block in an example of this application. In this example, taking the behavior tree creation interface based on the function block type diagram as an example, as shown in Figure 2Y, in this example, the function block node associated with the monitor's recording production video has a data block of type Live Data-Video added; the function block node associated with the torque wrench's screw tightening has a data block of type Live Data-Text and a data block of type Live Data-Chart added; the function block node associated with the monitor's robot image acquisition has a data block of type Live Data-Image added; and the function block node associated with the camera's machine vision wizard has a data block of type Live Data-Video added.
[0152] As shown in Figure 2Y, each data block may include a data block label 215 for indicating the type of data block and a data block body 216 having a display area for presenting specific data. The data block label 215 may be a draggable label, for example, that can be moved to any location within the canvas. The display area of the data block body 216 is resizable and is used to display different types of data from the data layer in real time. A monitoring link 217 is established between each data block and the corresponding function block node. A function block can be mapped to multiple data blocks. When the workflow is executed, for example, during runtime, the monitoring and output data corresponding to the function block node will be transmitted to the corresponding data block for real-time display.
[0153] The data block in this embodiment is a low-code data block. The difference between it and other SCADA and dashboard systems is that the low-code data block in this embodiment is also a low-code element. It can be part of the behavior tree, and all its properties can be managed in the low-code logic.
[0154] The data source in the low-code data block comes from the data layer, which can obtain data through the interface provided by the data layer at runtime or in the cloud execution engine. The data source can be a time series database, RDBMS, or NoSQL. The low-code data block is a flexible, scalable, and adaptable system that can be applied to any functional block node that can be associated with a physical device. In short, the data block used to implement data monitoring can be considered a visual interface for the data layer.
[0155] In addition, in other implementations, the embodiment may further include the following step S13 as shown by the dotted line portion in FIG. 1A and FIG. 1B .
[0156] Step S13 parses the behavior tree and deploys the corresponding workflow to the runtime of the corresponding work unit, enabling the runtime to execute the workflow and control the various resources in the work unit to perform business operations according to the workflow. For behavior trees connected to data blocks, the runtime can further provide the corresponding data obtained during the business operation to the corresponding data block for display. In specific implementations, the runtime can provide the corresponding data obtained during the business operation directly to the corresponding data block for display, or provide the data to the corresponding data block for display via a third-party device.
[0157] In a specific implementation, the work unit may have a main controller, in which case the runtime can reside. Accordingly, the device resources in the resource pool can be connected to the main controller, which then controls the connected device resources to execute corresponding operations based on the runtime workflow. Human resources and other resources can also directly execute corresponding operations based on the runtime workflow prompts.
[0158] In this embodiment, the behavior tree can be stored in a markup language such as XML (Extensible Markup Language) and validated against an XML Schema (XSD) prototype to verify that the behavior tree's XML format is correct. Parsing the behavior tree yields a workflow represented as a "node-link assembly." This workflow can then be compiled and downloaded to the runtime of the corresponding work unit's main controller.
[0159] In addition, according to Gartner's definition, the OT domain generally refers to operational technology (OT), which is a collection of hardware and software that detects or triggers changes in processes or events in the enterprise by directly monitoring and / or controlling physical devices (called OT devices). OT uses computers to monitor or change the physical state of things such as industrial control systems (ICS). Among them, industrial control systems are computer-based facilities, systems, and equipment used to remotely monitor and / or control critical industrial processes and realize physical functions. The term "OT" is used to distinguish industrial control systems from traditional information technology (IT) systems in terms of technical implementation and functions.
[0160] Currently, there are numerous IT low-code development tools and platforms on the market. Some are tailored to IoT use cases and are targeted at experienced IT engineers, but OT engineers and junior IT engineers struggle to understand their paradigms. Other tools are more suitable for IT low-code development scenarios and are less well-suited for OT.
[0161] The above-mentioned workflow creation method in this embodiment can be used in this OT domain as a low-code development method for the OT domain. Specifically, the workflow creation method shown in Figure 1A can be implemented in the OT domain, such as an OT domain low-code development platform. Accordingly, the workflow can be an OT domain workflow; the work unit can be a work unit within the OT domain; and the device can be an OT device. Here, OT devices may include but are not limited to: Internet of Things (IoT) devices, Programmable Logic Controllers (PLCs), Robots (Robotics), Manual Processes (Manual Processes), Industrial Personal Computers (IPCs), etc.
[0162] Furthermore, in the embodiments of the present application, considering that the integration of IT and OT domains is becoming increasingly important in the digital transformation of enterprises, in order to integrate IT and OT domains into an ITOT system, a pressing issue is how enterprises can collect OT domain data and control OT domain processes in an easily understandable manner, rather than through IT domain programming.
[0163] The workflow creation method described in this embodiment can be used in this ITOT system as a low-code development method for the OT domain that can be integrated with the IT domain. Similarly, the workflow creation method shown in Figure 1A can be implemented in the OT domain, such as an OT domain low-code development platform. Accordingly, the workflow can be an OT domain workflow, and the work unit can be a work unit within the OT domain.
[0164] In addition, in order to achieve the integration of IT domain and OT domain, the workflow creation method shown in Figure 1A can be further included: generating a microservice based on the behavior tree, so that an IT device triggers the runtime of the main controller of the work unit to execute the OT domain workflow by calling the microservice. In specific implementation, the IT device can directly call or call the microservice through a data platform. Accordingly, in this embodiment, the runtime can provide the corresponding data obtained in the process of executing business operations to the corresponding data block for display through the microservice. Alternatively, the runtime can provide the corresponding data obtained in the process of executing business operations to the data platform, and the data platform processes the data including filtering, and then provides it directly or through the microservice to the corresponding data block for display.
[0165] When a microservice is generated based on the behavior tree, an API for the microservice can be generated based on the behavior tree. The processing in the API includes each operation in the OT domain workflow. The input parameters of the API are the parameters obtained by the input port of the OT domain workflow, and the output parameters of the API are the parameters output by the output port of the OT domain workflow.
[0166] To enable the IT domain to call microservices, the IT domain must be able to obtain microservice information. Specific implementation methods include but are not limited to the following two:
[0167] Method 1:
[0168] In Method 1, code developers in the OT domain can inform code developers in the IT domain of the generated microservice names and IP addresses. These developers can then directly incorporate the microservice information into their code during development, enabling IT devices to call microservices. Method 1 is more suitable for scenarios with a small number of microservices.
[0169] Method 2:
[0170] In the second approach, a registration and discovery mechanism can be employed. Specifically, each microservice is registered on the data platform, allowing an IT-domain code development tool to enable IT devices to discover connected microservices through the data platform. Specifically, an IT-domain code development tool can be used to develop code that enables IT-domain devices to discover connected microservices through the data platform. The device that completes microservice registration can be an OT-domain microservice generator or a third-party device. This third-party device can be considered part of the OT-domain low-code development platform or implemented within the data platform. The second approach is more suitable for scenarios with a large number of microservices.
[0171] In this embodiment, IT equipment may include but is not limited to: Manufacturing Operation Management (MOM) system, Manufacturing Execution System (MES), Enterprise Resource Planning (ERP) system, Enterprise Service Bus (ERP), Product Lifecycle Management (PLM) system, etc.
[0172] In this embodiment, the IT-domain code development tool can programmatically enable IT devices to call microservices through a data platform, triggering the runtime execution of OT-domain workflows by the main controller of the work unit. This enables the IT-domain code development platform to control OT-domain processes, thus achieving the integration of the IT and OT domains. Here, the microservices are automatically generated by the OT-domain microservice generator based on the OT-domain behavior tree. The IT-domain code development tool does not need to understand the details of the OT-domain workflow; it only needs to obtain the microservice's identifier (e.g., name) and IP address. This eliminates the need for IT-domain developers to understand OT-domain devices and control processes, making it easy to implement and understand.
[0173] 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, electric vehicle, building automation, smart city, sewage treatment, garbage recycling and smart agriculture, etc.
[0174] The workflow creation method in the embodiment of the present application has been described in detail above. The workflow creation system in the embodiment of the present application is described in detail below. The workflow creation system in the embodiment of the present application can be used to implement the workflow creation method in the embodiment of the present application. For details not disclosed in detail in the system embodiment of the present invention, please refer to the corresponding description in the method embodiment of the present invention, and will not be repeated here.
[0175] FIG3 shows a schematic diagram of the structure of a workflow creation system according to an embodiment of the present application. As shown in FIG3 , the system may include: a node library 110 , a graphical interface module 120 , and an editing processing module 130 .
[0176] The node library 110 is provided with behavior tree nodes for constructing behavior trees; the behavior tree nodes may include flow control nodes and function block nodes. A behavior tree is used to represent a workflow, and the workflow is used to define the operations to be performed by a work unit. The flow control node is used to implement logical control in the workflow; the function block node is used to implement business operations in the workflow. The function block node may include logic nodes, each of which corresponds to an operation template. Each operation template predefines at least one type of operation that a resource, such as a device, can perform. The operation includes an action, a method, or a skill. In addition, the node library 110 may further include data blocks of various types, each of which is used to present corresponding data in the business operations of the function block node connected to it. The types of data blocks include some or all of the data types such as data pairs, data tables, images, videos, and charts.
[0177] In one embodiment, the resources are represented as resource nodes, and all resource nodes are stored in a relational manner in a resource knowledge graph. The resource knowledge graph includes each resource node and links representing the relationships between resource nodes. Accordingly, this embodiment may further include a resource library 150 for storing each resource in the form of a resource knowledge graph, with each resource capable of performing at least one business operation.
[0178] In one embodiment, the flow control nodes may include: some or all of the main control nodes, logic control nodes, and conditional nodes; the main control nodes may include: some or all of the start nodes, end nodes, goto nodes, key nodes, stop nodes, and abort nodes. The logic control nodes may include: some or all of the sequence nodes, reactive sequence nodes, parallel nodes, in-process quality control nodes, priority nodes, reactive priority nodes, conditional judgment nodes, and multi-branch selection nodes.
[0179] In one embodiment, the function block nodes may further include: some or all of manual nodes, dynamic nodes, delay nodes, and idle nodes.
[0180] In one embodiment, the behavior tree node further includes a decorator node, which may include some or all of a repeat node, a retry node, a one-time node, a timeout node, a timer node, a negation node, a forced run node, a forced success node, a forced failure node, and a monitor node.
[0181] In one embodiment, some or all of the function block nodes in the node library 110 are respectively bound with resources for executing business operations corresponding to the function block nodes.
[0182] Furthermore, in another embodiment, the function block nodes in the node library 110 may be presented in either the form of a label diagram as shown in Figures 2A to 2T or in the form of a type diagram as shown in Figures 2T to 2X. Of course, in other embodiments, the function block nodes in the node library 110 may also be presented solely in the form of a type diagram. The specific structure of the function block nodes in the form of a function block type diagram may be as shown in Figure 2T. This will not be further described here.
[0183] The graphical interface module 120 is configured to provide a graphical user interface (GUI) for users to construct behavior trees based on the behavior tree nodes in the node library. In addition, the GUI can also be used to add and connect data blocks.
[0184] In a specific implementation, the graphical user interface may include a first graphical user interface for constructing a behavior tree based on flow control nodes and function block nodes in the form of a function block label diagram, and a second graphical user interface for constructing a behavior tree based on function block nodes in the form of a function block type diagram. The two graphical user interfaces can be switched based on user selection. The behavior tree construction operation may include adding and connecting function block nodes. In the second graphical user interface, adding function block nodes may include dragging and dropping the function block body. Connecting function block nodes may include connecting a link output port and a link input port between two function block nodes, and connecting a data output port and a data input port between the corresponding data of two function block nodes.
[0185] Each behavior tree node may be listed in the form of an icon on the graphical user interface GUI.
[0186] The editing processing module 130 is configured to generate a behavior tree corresponding to a workflow in response to the behavior tree construction operation. The logic nodes in the behavior tree are instantiated to correspond to the operations of resources, such as devices. Furthermore, the editing processing module 130 is further configured to add and connect at least one data block to each of the at least one function block node in the behavior tree in response to the data block addition and connection operations.
[0187] In a specific implementation, in one embodiment, the editing processing module 130 can instantiate each behavior tree node in response to the behavior tree construction operation and establish connections between each instantiated behavior tree node. Based on the connections between the instantiated behavior tree nodes, a behavior tree corresponding to a workflow is generated. Some or all of the instantiated function block nodes are associated with resources that execute corresponding business operations. For example, through this operation, a logical node is instantiated to correspond to the operation of a resource, such as a device.
[0188] In this embodiment, each behavior tree node and each data block can be listed in the form of an icon on the graphical user interface. Users can determine the nodes required to create a workflow by selecting and dragging the icons onto the canvas. Furthermore, they can also configure the necessary parameters for the nodes, such as resource configuration and / or input and output parameter configuration.
[0189] If a work unit needs to perform more than one operation, that is, more than one operation defined in the required workflow, the behavior tree corresponding to the workflow may include multiple logic nodes. The execution order between the logic nodes is determined according to the order and relationship of the operations, and the behavior tree for the corresponding workflow is finally generated by placing and connecting the dragged nodes accordingly.
[0190] In one embodiment, the behavior tree construction operation may include: adding a function block node and associating resources with the added function block node.
[0191] Corresponding to the method shown in FIG1A , the workflow creation system in this embodiment may further include: a parsing and deployment module 140, which is configured to parse the behavior tree and deploy the workflow corresponding to the behavior tree to the runtime of the corresponding work unit, so that the runtime executes the workflow to control the various resources in the work unit, such as devices, to perform operations according to the workflow. Furthermore, the corresponding data obtained during the execution of the business operation can be provided to the corresponding data block for display. Specifically, the work unit may have a main controller, in which case the runtime may be located on the main controller of the work unit. Accordingly, the device resources in the resources can be connected to the main controller, and the main controller controls the device resources connected thereto to perform corresponding operations according to the workflow at runtime; the human resources in the resources, etc. can directly perform corresponding operations according to the workflow prompts at runtime.
[0192] In a specific implementation, the work unit may have a main controller, in which case the runtime can reside. Accordingly, the device resources in the resource pool can be connected to the main controller, which then controls the connected device resources to execute corresponding operations based on the runtime workflow. Human resources and other resources can also directly execute corresponding operations based on the runtime workflow prompts.
[0193] Figure 4A shows an OT domain low-code development platform 100 provided in an embodiment of the present application. The platform 100 can be used to implement the workflow creation system shown in Figure 3.
[0194] As previously mentioned, there are currently no low-code development tools and platforms suitable for the OT domain. In the platform 100 shown in Figure 4A, since the operation templates that various OT devices can perform are pre-defined (which can be regarded as providing OT domain capabilities), the corresponding logical nodes are constructed based on the operation templates, and other behavior tree nodes are set for building OT domain workflows. Therefore, the behavior tree corresponding to the OT domain workflow can be created conveniently and quickly, realizing low-code development suitable for the OT domain. Development engineers do not need to have an in-depth understanding of various OT devices to implement OT domain development.
[0195] Specifically, as shown in FIG4A , the OT domain low-code development platform 100 may include:
[0196] An OT domain low-code development tool 10 can be configured to implement the graphical interface module 120 and the editing processing module 130 in the workflow creation system shown in Figure 3. Furthermore, the parsing and deployment module 140 in the workflow creation system shown in Figure 3 can also be implemented. The node library 110 and the resource library 150 in the workflow creation system shown in Figure 3 can be stored in a memory.
[0197] Furthermore, as shown in FIG4B , the OT domain low-code development platform 100 may also include a runtime 30 of the main controller of the aforementioned work unit. The OT domain low-code development tool 10 may deploy the OT domain workflow corresponding to the generated behavior tree to the runtime 30 of the main controller of the work unit, so that the runtime 30 executes the workflow to control various OT resources, such as OT devices, in the work unit connected to the main controller to perform operations according to the OT domain workflow.
[0198] The components of the OT domain low-code development platform 100 shown in Figures 4A and 4B only concern the OT domain. However, the integration of the IT and OT domains has become increasingly important for enterprise digital transformation. What is needed is how enterprises can control OT domain processes using an easily understandable, non-IT programming approach. The OT domain low-code development platform 100 shown in Figure 4C addresses how to control OT domain processes through an IT domain code development platform 300. As shown in Figure 4C, the OT domain low-code development platform 100, building on the structure shown in Figure 4B, further includes an OT domain microservice generator 20, which generates microservices 40 based on OT domain behavior trees. In this way, the IT domain code development tool 301 can programmatically enable IT devices to call microservices 40 through a data platform 200, triggering the runtime 30 of the work unit's main controller to execute OT domain workflows. This enables the IT domain code development platform 300 to control OT domain processes, thus achieving the integration of the IT and OT domains. Here, microservice 40 is automatically generated by the OT domain microservice generator 20 based on the OT domain behavior tree. There is no need for the IT domain code development tool 301 to understand the details of the OT domain workflow. It only needs to obtain the identifier (for example, name) and IP address of the microservice 40. There is no need for IT domain developers to understand OT domain devices and control processes, and it is easy to implement and understand.
[0199] If the IT domain is to be able to call microservice 40, the IT domain needs to be able to obtain information about microservice 40. Corresponding to the method shown in FIG1A , the possible implementation methods include but are not limited to the following two:
[0200] Method 1:
[0201] In Method 1, code developers in the OT domain can inform code developers in the IT domain of the names and IP addresses of the generated microservices 40. In this way, code developers in the IT domain can directly write the information of each microservice 40 into the code during the development process, thereby enabling IT devices to call microservices 40. Method 1 is more suitable for scenarios with a small number of microservices.
[0202] Method 2:
[0203] In the second method, a registration and discovery mechanism can be used. Specifically, each microservice 40 can be registered on the data platform 200, so that the IT domain code development tool 301 can realize that IT domain devices can discover the connected microservices 40 through the data platform 200 through code development. The device that completes the registration of the microservice 40 can be the OT domain microservice generator 20 or a third-party device 50 as shown in Figure 4D. The third-party device 50 can be regarded as part of the OT domain low-code development platform 100, or implemented in the data platform 200. Method 2 is more suitable for scenarios with a large number of microservices. By registering microservices on the data platform, IT equipment can more effectively call microservices, strengthening the integration of the OT domain and the IT domain.
[0204] Optionally, the OT domain microservice generator 20 may generate an API for the microservice 40 based on the OT domain behavior tree, wherein the processing process in the API may include operations of various functional blocks in the OT domain workflow, the input parameters of the API are parameters obtained by the input port of the OT domain workflow, and the output parameters of the API are parameters output by the output port of the OT domain workflow.
[0205] FIG4E shows an application scenario of the OT domain low-code development platform 100 provided in an embodiment of the present application in the field of industrial automation. Under user control, the low-code development tool 10 generates a behavior tree corresponding to the OT domain workflow. This OT domain workflow defines the operations to be performed by the production line as a work unit, as shown on the right side of FIG4E . Based on this behavior tree, the corresponding workflow is generated and published to the runtime 30, so that the runtime 30 can control and complete the production line operations of the work unit. Simultaneously, the microservice generator 20 can generate corresponding microservices based on this behavior tree and register them with the data platform 200. In this way, the IT domain code development tool 301 can call the corresponding microservices through the data platform 200. As shown in the GUI in the lower left corner of FIG4E , users can edit the OT domain behavior tree by dragging and dropping individual nodes, including function block nodes. For example, the data platform 200 first obtains the required data (e.g., workpiece processing parameters) from the database and server to control the operation of the entire work unit. The work unit here is a production line, which includes machines, conveyor belts, robotic arms, people, PLCs, AGBs, etc. In specific implementation, the IT domain code development tool 301 and the low-code development tool 10 can also be located on the same hardware device, such as the same computer.
[0206] Figure 5 shows a structural diagram of another workflow creation system provided by an embodiment of the present application. As shown in Figure 5, the system can be used to implement the method shown in Figure 1A, or to implement the workflow creation system shown in Figure 3, or to implement the workflow creation system described in any one of Figures 4A to 4D, that is, the OT domain low-code development platform 100. Among them, the aforementioned OT domain low-code development tool 10, OT domain microservice generator 20, runtime 30, and third-party device 60 can all be implemented as separate hardware devices, such as: servers, workstations, single-chip microcomputers or processing chips. Alternatively, these devices are implemented on the same hardware device, which is stored as a software program in at least one memory, and the aforementioned OT domain low-code development method is implemented by calling at least one processor. Among them, the node library 110, the resource library 150 and the generated microservices 40 can be stored in at least one memory.
[0207] As shown in FIG5 , the system may include at least one memory 51 , at least one processor 52 , and at least one display 53 . In addition, other components may be included, such as a communication port (not shown in FIG5 ), etc. These components communicate via a bus 54 .
[0208] At least one memory 51 is used to store computer programs. The at least one memory 51 may include computer-readable media, such as random access memory (RAM). Furthermore, the at least one memory 51 may also store an operating system, etc. Operating systems include, but are not limited to, Android, Symbian, Windows, and Linux. The computer-stored programs may include the following program modules: a node library 110, a graphical interface module 120, an editing and processing module 130, and a parsing and deployment module 140. Optionally, the computer-stored programs may also include an OT domain microservice generator 20, a runtime 30, and a third-party device 50.
[0209] At least one processor 52 is configured to call a computer program stored in at least one memory 51 to execute the workflow creation method described in the embodiments of the present application. The at least one processor 52 may be 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, etc. It can receive and send data through the communication port.
[0210] At least one display 53 is used to display a graphical user interface.
[0211] Specifically, the at least one processor 52 is configured to call a computer program stored in the at least one memory 51 to enable the system to execute the operations of the workflow creation method in any of the above embodiments.
[0212] In addition, the communication interface is used to implement communication with other devices, such as communication with the data platform 200.
[0213] In an embodiment of the present application, the OT domain low-code development tool 10 for implementing the graphical interface module 120, the editing and processing module 130, and the parsing and deployment module 140 can be a lightweight web-based application that can be implemented on an industrial site (such as an edge device or a local server) or on a cloud (such as a public cloud such as AWS or a private cloud such as OpenStack). Its visual engineering paradigm is derived from the Function Block Typed Diagram (FBTD). The OT domain microservice generator 20 can use modern translation programming languages to generate standard APIs such as RESTful or RPC. The runtime 30 can simply implement OT domain workflows and provide openness based on an ecosystem of open source communities (such as Python). The runtime 30 can be deployed on embedded IoT devices such as single board computers (SBCs).
[0214] It should be noted that the embodiments of the present application may include devices having an architecture different from that shown in Figure 5. The above architecture is merely exemplary and is used to explain the workflow construction method provided in the embodiments of the present application.
[0215] In addition, embodiments of the present application further provide an IT-domain / OT-domain converged system, namely, an ITOT system, which may include IT equipment and the workflow creation system of any embodiment of the present application. Furthermore, it may further include: an IT-domain code development platform 300 as shown in Figures 4C and 4D.
[0216] In addition, an embodiment of the present application further provides a computer-readable storage medium having computer-readable code stored thereon. When the computer-readable code is executed by a processor, the processor is caused to perform the aforementioned workflow construction method. In addition, an embodiment of the present application further provides a computer program product, which is tangibly stored on a computer-readable medium and includes computer-readable instructions. When executed, the computer-readable instructions cause at least one processor to perform the steps of the workflow creation method in the embodiment of the present application.
[0217] Specifically, a system or device equipped with a storage medium can be provided, on which a computer-readable code for realizing the function of any one of the embodiments described above is stored, and the computer (or CPU or MPU) of the system or device is read out and executes the computer-readable code stored in the storage medium. In addition, the operating system etc. operated on the computer can be made to complete part or all of the actual operations by the instruction based on the computer-readable code. The computer-readable code read out from the storage medium can also be written to the memory provided in the expansion board inserted into the computer or to the memory provided in the expansion unit connected to the computer, and then the CPU etc. installed on the expansion board or expansion unit are made to perform part and all of the actual operations based on the instruction of the computer-readable code, thereby realizing the function of any one of the embodiments described above. In this embodiment, the embodiment of the computer-readable medium includes but is not limited to a floppy disk, CD-ROM, magnetic disk, optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), memory chip, ROM, RAM, ASIC, configured processor, all-optical medium, all magnetic tapes or other magnetic media, or any other medium from which a computer processor can read instructions. In addition, various other forms of computer-readable media can transmit or carry instructions to a computer, including routers, private or public networks, or other wired and wireless transmission devices or channels. For example, computer-readable instructions can be downloaded from a server computer or the cloud via a communication network. The instructions can include code in any computer programming language, including C, C++, C++, Visual Basic, Java, and JavaScript.
[0218] It should be noted that not all steps and modules in the above processes and system structure diagrams are required, and certain steps or modules can be omitted according to actual needs. The execution order of each step is not fixed and can be adjusted as needed. The system structure described in the above embodiments can be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by multiple physical entities, or may be implemented by certain components in multiple independent devices.
[0219] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A workflow creation method, characterized in that: include: Receive a user's operation of constructing a behavior tree based on pre-set behavior tree nodes on a graphical user interface; wherein a behavior tree is used to represent a workflow, and the workflow is used to define the operations to be performed by a work unit; the behavior tree nodes include: flow control nodes and function block nodes; wherein the flow control nodes are used to implement logical control in the workflow; the function block nodes are used to implement business operations in the workflow, and include: logic nodes, each logic node corresponds to an operation template, and each operation template predefines at least one type of operation that can be performed by a device, and the operation includes: actions, methods, or skills; In response to the construction operation of the behavior tree, a behavior tree corresponding to a workflow is generated, and logic nodes in the behavior tree are instantiated as operations of corresponding devices.
2. The workflow creation method according to claim 1, characterized in that: Further including: The behavior tree is parsed, and a workflow corresponding to the behavior tree is deployed to a runtime of a corresponding work unit, so that each device in the work unit performs an operation according to the workflow.
3. The workflow creation method according to claim 2, characterized in that: The workflow is an OT domain workflow; the work unit is a work unit within the OT domain; and the device is an OT device.
4. The workflow creation method according to claim 3, characterized in that: Further including: A microservice is generated based on the behavior tree, so that an IT device triggers the runtime of the main controller of the work unit to execute the OT domain workflow by calling the microservice.
5. The workflow creation method according to any one of claims 1 to 4, characterized in that: The flow control nodes include: part or all of the main control nodes, logic control nodes and conditional nodes; The main control node includes: part or all of the start node, end node, go to node, key node, stop node, and abort node. The logic control nodes include: sequence nodes, reactive sequence nodes, parallel nodes, in-process quality control nodes, priority nodes, reactive priority nodes, conditional judgment nodes, and some or all of multi-branch selection nodes.
6. The workflow creation method according to any one of claims 1 to 4, characterized in that: The function block nodes further include: manual nodes, dynamic nodes, delay nodes, and part or all of idle nodes.
7. The workflow creation method according to any one of claims 1 to 4, characterized in that: The behavior tree node further includes a decorator node, which includes some or all of a repeat node, a retry node, a one-time node, a timeout node, a timer node, a negation node, a forced run node, a forced success node, a forced failure node, and a monitoring node.
8. A workflow creation system, characterized in that: include: A node library (110) having behavior tree nodes for constructing a behavior tree; The behavior tree nodes include: flow control nodes and function block nodes; wherein a behavior tree is used to represent a workflow, and the workflow is used to define the operations to be performed by a work unit; the flow control nodes are used to implement logical control in the workflow; the function block nodes are used to implement business operations in the workflow, and include: logic nodes, each logic node corresponds to an operation template, and each operation template predefines at least one type of operation that can be performed by a device, and the operation includes: action, method or skill; A graphical interface module (120) is configured to provide a graphical user interface for a user to perform a behavior tree construction operation based on the behavior tree nodes in the node library; The editing processing module (130) is configured to generate a behavior tree corresponding to a workflow in response to the construction operation of the behavior tree, wherein the logic nodes in the behavior tree are instantiated as operations of the corresponding device.
9. The workflow creation system according to claim 8, characterized in that: Further including: The parsing and deployment module (140) is configured to parse the behavior tree and deploy the workflow corresponding to the behavior tree to the runtime (30) of the corresponding work unit, so that each device in the work unit performs operations according to the workflow.
10. The workflow creation system according to claim 9, characterized in that: The workflow is an OT domain workflow; the work unit is a work unit in the OT domain; the device is an OT device; and the system further includes: An OT domain microservice generator (20) is used to generate a microservice (40) based on the behavior tree, so that an IT device triggers the runtime (30) of the work unit to execute the OT domain workflow by calling the microservice (40).
11. A workflow creation system, characterized in that: include: at least one memory (51) configured to store computer-readable code; At least one processor (52) is configured to call the computer-readable code to execute the steps in the workflow creation method according to any one of claims 1 to 7.
12. An IT domain OT domain fusion system, characterized in that: include: IT equipment; and A workflow creation system according to any one of claims 8 to 11.
13. A computer-readable medium, characterized in that The computer-readable medium stores computer-readable instructions, which, when executed by a processor, enable the processor to execute the steps of the workflow creation method according to any one of claims 1 to 7.
14. A computer program product, characterized in that The computer program product is tangibly stored on a computer-readable medium and includes computer-readable instructions that, when executed, cause at least one processor to perform the steps of the workflow creation method according to any one of claims 1 to 7.
