package com.qqchen.deploy.backend.workflow.dto.definition.workflow;

import com.fasterxml.jackson.databind.JsonNode;
import com.qqchen.deploy.backend.workflow.enums.NodeTypeEnums;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 工作流节点数据传输对象
 *
 * @author cascade
 * @date 2024-12-11
 */
@Data
public class WorkflowDefinitionGraphNode {

    /**
     * 节点ID
     */
    private String id;

    /**
     * 节点Code
     */
    private String nodeCode;

    /**
     * 节点类型
     */
    private NodeTypeEnums nodeType;

    /**
     * 节点名称
     */
    private String nodeName;

    @Schema(description = "节点UI")
    private JsonNode uiVariables;

    @Schema(description = "节点属性")
    private JsonNode panelVariables;

    @Schema(description = "节点环境变量")
    private JsonNode localVariables;

    @Schema(description = "节点表单 JSON SCHEMA")
    private JsonNode formVariablesSchema;

}
