package org.dromara.biz.domain.bo;

import org.dromara.biz.domain.ActHiProcinst;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 流程实例业务对象 act_hi_procinst
 *
 * @author chenle
 * @date 2025-05-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ActHiProcinst.class, reverseConvertGenerate = false)
public class ActHiProcinstBo extends BaseEntity {

    /**
     * 主键ID
     */
    @NotBlank(message = "主键ID不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 数据版本
     */
    @NotNull(message = "数据版本不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long rev;

    /**
     * 流程实例ID
     */
    @NotBlank(message = "流程实例ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String procInstId;

    /**
     * 业务主键
     */
    @NotBlank(message = "业务主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private String businessKey;

    /**
     * 属性ID
     */
    @NotBlank(message = "属性ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String procDefId;

    /**
     * 开始时间
     */
    @NotNull(message = "开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startTime;

    /**
     * 结束时间
     */
    @NotNull(message = "结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date endTime;

    /**
     * 耗时
     */
    @NotNull(message = "耗时不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long duration;

    /**
     * 起始人
     */
    @NotBlank(message = "起始人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String startUserId;

    /**
     * 起始节点
     */
    @NotBlank(message = "起始节点不能为空", groups = { AddGroup.class, EditGroup.class })
    private String startActId;

    /**
     * 结束节点
     */
    @NotBlank(message = "结束节点不能为空", groups = { AddGroup.class, EditGroup.class })
    private String endActId;

    /**
     * 父流程实例ID
     */
    @NotBlank(message = "父流程实例ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String superProcessInstanceId;

    /**
     * 删除原因
     */
    @NotBlank(message = "删除原因不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deleteReason;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String callbackId;

    /**
     * 
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String callbackType;

    /**
     * 
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String referenceId;

    /**
     * 
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String referenceType;

    /**
     * 
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String propagatedStageInstId;

    /**
     * 
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String businessStatus;


}
