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

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 流程变量模型
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class BpmnProcessVariable {

    @ApiModelProperty(value = "流程变量名称")
    @NotBlank(message = "流程变量名称不能为空")
    private String name;

//    @ApiModelProperty(value = "流程变量类型")
//    @NotBlank(message = "流程变量类型不能为空")
//    private String type;

    @ApiModelProperty(value = "流程变量值")
    @NotNull(message = "流程变量值不能为空")
    private Object value;

    private String valueUrl;

}
