package cn.axzo.workflow.common.model.request.bpmn.definition;

import cn.axzo.workflow.common.model.request.bpmn.BpmnJsonNode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * 用于更新流程定义的入参模型
 *
 * @author wangli
 * @since 2023/7/26 10:07
 */
@ApiModel("用于更新流程定义的入参模型")
@Data
public class BpmnProcessDefinitionUpdateDTO {
    @ApiModelProperty(value = "流程模型 ID")
    private String processModelId;

    @ApiModelProperty(value = "JSON 转义的流程定义内容", notes = "枢智业务线在用")
    @Valid
    @NotNull(message = "模型定义内容不能为空")
    private BpmnJsonNode bpmJson;
}
