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

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.nest.springwrap.core.mp.base.BaseEntity;

import java.util.Date;

/**
 * <p>
 * 流程节点记录
 * </p>
 *
 * @author zhouhanwei
 * @since 2024-02-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("saas_flow_process_instance_node_record")
@ApiModel(value="SaasFlowProcessInstanceNodeRecord对象", description="流程节点记录")
public class SaasFlowProcessInstanceNodeRecord extends BaseEntity {

    /**
     * 流程id
     */
    @ApiModelProperty(name = "flowId", value = "流程id")
    private String flowId;
    /**
     * 流程实例id
     */
    @ApiModelProperty(name = "processInstanceId", value = "流程实例id")
    private String processInstanceId;
    /**
     * 表单数据
     */
    @ApiModelProperty(name = "data", value = "表单数据")
    private String data;
    private String nodeId;
    /**
     * 节点类型
     */
    @ApiModelProperty(name = "nodeType", value = "节点类型")
    private String nodeType;
    /**
     * 节点名字
     */
    @ApiModelProperty(name = "nodeName", value = "节点名字")
    private String nodeName;
    /**
     * 节点状态
     */
    /*WKS(0,"未开始"),
    JXZ(1,"进行中"),
    YJS(2,"已完成"),
    YCH(3,"已撤回"),
    YSB(4,"已失败"),*/
    @ApiModelProperty(name = "nodeStatus", value = "节点状态:0未开始,1进行中,2已通过,3已测回,4已拒绝")
    private Integer nodeStatus;
    /**
     * 开始时间
     */
    @ApiModelProperty(name = "startTime", value = "开始时间")
    private Date startTime;
    /**
     * 结束时间
     */
    @ApiModelProperty(name = "endTime", value = "结束时间")
    private Date endTime;
    /**
     * 执行id
     */
    @ApiModelProperty(name = "executionId", value = "执行id")
    private String executionId;



}
