Logic node configuration

更新时间:
复制 MD 格式

Logic nodes allow you to define the interaction logic between widgets, between widgets and variables, or between variables. This enables interaction among all elements on a dashboard. This topic describes how to configure and use logic nodes in the blueprint editor.

Use logic nodes

  1. Log on to the DataV console.

  2. On the My Visualizations page, select a visualization application and click Edit.

  3. On the canvas editor page, click the Blueprint Editor icon in the top toolbar.

    蓝图编辑器图标

  4. On the blueprint editor page, click the Logic Node icon on the toolbar.

    逻辑节点图标

    Note
    • If the Logic Node panel is already displayed, you can skip this step.

    • Before you configure logic nodes, ensure that you have added the required import nodes. If you have not, see What is the blueprint editor?.

  5. From the Logic Node panel, drag a logic node to the canvas.

    Logic nodes include Global Node, Flow Control, Data Processing, and Input Device. For details about how to use each node and its parameters, see Global node, Flow control, Data processing, and Input device.

Configure logic nodes

Click a logic node on the canvas or drag a new one onto it. You can then configure the node's interaction logic in the configuration panel on the right. Global nodes do not require configuration. The following table describes the common parameters.

配置逻辑节点

Parameter

Description

Node Name

The name of the logic node. You can customize the name. Different types of logic nodes have different icons. After you rename a node, you can identify its type and function by its icon.

Upstream widget event description

Select an upstream widget and event, and view the parameter description.

Downstream widget action description

Select a downstream widget and action, and view the parameter description.

Processing method

Add and configure a processing method to implement the node's interaction logic. The following operations are supported:

  • New: Click + to add a processing method.

  • Rename: Click the Rename (重命名图标) icon to change the name of the processing method.

  • Create code snippet: After you save the processing method, click the Create code snippet (创建代码片段图标) icon. This saves the current processing method to the code snippet management page in the console. You can then reuse the code snippet.

  • Import code snippet: In the processing method editor, right-click a blank area. From the Import code snippet list, select a saved code snippet to import it.

Important

Nodes for input devices and WebSocket nodes do not require a processing method.