A brief introduction to the programming of Dragonfly Safety Workbench

How to create a new workflow by yourself?

Create a new workflow in the workbench, click the orchestration process, and enter the workflow editing page, as shown in the figure below

Introduction to canvas area

The workflow page is divided into 4 areas:

  1. Canvas layout area: connect nodes to form a top-down program
  2. Basic component area: Provide some basic functions of the program, which is convenient for users to quickly build programs
  3. Market component area: The user fills in the parameters in the basic component and actively shares the extended component
  4. Node configuration area: When the user clicks a node in the canvas, this area will automatically pop up for configuring node parameters

Classification of basic components

The base components are divided into two categories:

  • Data input components: read files, text input, read database, send HTTP packets
  • Data processing components: execute scripts, run containers, filters

The parameter input component mainly imports external data into the workflow, and the data processing component processes the input data and outputs the result to the platform.

What is the difference between base components and market components?

Basic components are the most basic functions of the platform provided by the platform. For example, running script components can run python code, but the code still needs to be written by the user.

The market component is that the user fills in the parameters on the basic component, such as filling in the Python code for network scanning in the running script component

Therefore, it can be understood that the basic component = the basic component itself, and the market component = the basic component + parameter configuration.

What is the lifetime of a program?

The platform provides basic components and connections. After the user drags the components to the canvas, there will be nodes. Nodes and nodes form a logical relationship through connections;

The platform will read the number of nodes in the canvas, and then use the program to execute from top to bottom. The Adata of the upstream node will be 文件共享passed to the downstream node through the method B, and Bthe data of the node will be passed to the file through the file sharing method C;

The platform itself provides the code to obtain the data of the upstream node and the method of transferring the data to the downstream node, and the user only needs to pay attention to the intermediate data processing process.

How to debug node?

You only need to deal with the relationship between the current node and the upstream node. Usually, the running script component is used to process data. Dragonfly provides the data of the upstream node. After clicking the node and the configuration panel appears, you can copy the data of the upstream node with one click, and then in Debug code locally.

Guess you like

Origin blog.csdn.net/u013431141/article/details/128617376