package cn.stylefeng.workflow.design.modular.pojo.request;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class NodeRequest extends BaseRequest {

    @NotNull(message = "主键id不能为空", groups = {edit.class, delete.class})
    @ChineseDescription("主键id")
    private Long nodeId;

    @ChineseDescription("流程模型id")
    private Long modelId;

    @ChineseDescription("流程定义id")
    private Long definitionId;

    @ChineseDescription("节点名称")
    private String nodeName;

    @ChineseDescription("节点类型：10-开始节点，11-结束节点，12-子流程，20-消息监听，30-审批，31-抄送，40,-自定义活动，50-条件网关，51-并行网关，52-事件网关")
    private Integer nodeType;

    @ChineseDescription("摘要性显示内容")
    private String shortContent;

}
