package com.yuchen.saas.flow.api.dto;

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

import javax.validation.constraints.NotBlank;
import java.util.HashMap;
import java.util.Map;

/**
 * 流程实例参数对象
 */
@Data
public class ProcessInstanceParamDTO {

    @NotBlank
    private String formFlowCode;


    private Long customerId;
    /**
     * 流程id
     */
    private String flowId;
    /**
     * 参数集合
     */
    private Map<String,Object> paramMap=new HashMap<>();
    /**
     * 发起人
     */
    private String startUserId;
    /**
     * 实例id
     */
    private String processInstanceId;
    /**
     * 审批结果
     */
    private Boolean result;

    @ApiModelProperty(name = "submitAssetsFlowReqJson", value = "提交数据的完整json")
    private String submitAssetsFlowReqJson;

    @ApiModelProperty(name = "formFlowMark", value = "表单流程标识区分纬度(如园区id,停车场id,社区id,如组成树形结构取设置流程时节点的id)[{key:value},{key:value}]，" +
            "创建流程自己定义进来(如用来区分相同业务时不同园区或社区的审批流程),启动流程的对应着传进来,顺序跟创建的时候一致")
    private String formFlowMark;

    @ApiModelProperty(name = "projectId", value = "项目id")
    private Long projectId;
}
