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

import com.qqchen.deploy.backend.workflow.annotation.SchemaProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
public class GatewayNodePanelVariables extends BaseNodePanelVariables {

    @SchemaProperty(
        title = "委派者",
        description = "委派者",
        defaultValue = "${gatewayNodeDelegate}",
        readOnly = true,
        order = 1
    )
    private String delegate;

    @SchemaProperty(
        title = "网关类型",
        description = "网关类型",
        required = true,
        enumValues = {
            "exclusiveGateway",
            "parallelGateway",  // 并行网关
            "inclusiveGateway"  // 包容网关
        },
        enumNames = {
            "排他网关",
            "并行网关",
            "包容网关"
        },
        defaultValue = "exclusiveGateway",
        order = 5
    )
    private String gatewayType;
}