/*
 * Copyright (c) 2023 codvision.com All Rights Reserved.
 */

package com.codvision.workflow.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author hxl
 */
@Data
@ApiModel
@NoArgsConstructor
@AllArgsConstructor
public class WorkFlowDefinitionDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "请选择表单")
    @ApiModelProperty("表单ID")
    private Integer formId;

    @ApiModelProperty("流程名称")
    private String flowName;

    @ApiModelProperty("流程分类")
    private String category;

    @NotBlank(message = "xml数据不能为空")
    @ApiModelProperty("bpmn2.0的xml文件")
    private String xmlFile;

    @NotBlank(message = "表单权限数据不能为空")
    @ApiModelProperty("表单权限")
    private String formAuthJson;
}

