package cn.stylefeng.workflow.instance.api.pojo.request;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.workflow.api.pojo.InstanceVariable;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class WorkflowSaveDraftRequest {

    @ChineseDescription("流程草稿id")
    private Long draftId;

    @NotNull(message = "流程发起方式不能为空")
    @ChineseDescription("流程发起方式：10-页面发起，20-接口发起")
    private Integer workflowStartType;

    @NotNull(message = "流程定义id不能为空")
    @ChineseDescription("流程定义id")
    private Long definitionId;

    @ChineseDescription("流程变量集合")
    private InstanceVariable instanceVariable;

}
