package com.codvision.workflow.entity.dto;

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

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @author hxl
 */
@Data
@ApiModel
public class WorkFlowTaskHandleDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "任务ID不能为空")
    @ApiModelProperty("任务ID")
    private String taskId;

    @ApiModelProperty("评审意见")
    private String comment;

    @ApiModelProperty("目标用户ID")
    private Integer toUserId;

    @ApiModelProperty("抄送用户")
    private List<Integer> toCcUserIds;

    @ApiModelProperty("目标部门OID")
    private Integer oid;

    @ApiModelProperty("目标任务节点key")
    private String targetTaskKey;

    @ApiModelProperty("流程变量")
    private Map<String, Object> variables;

    @ApiModelProperty("动态分配")
    private WorkFlowDynamicAllocationDTO allocation;
}
