package org.dromara.biz.domain.bo;

import org.dromara.biz.domain.ActHiTaskinst;
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_taskinst
 *
 * @author chenle
 * @date 2025-05-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ActHiTaskinst.class, reverseConvertGenerate = false)
public class ActHiTaskinstBo 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 procDefId;

    /**
     * 任务定义ID
     */
    @NotBlank(message = "任务定义ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskDefId;

    /**
     * 任务定义KEY
     */
    @NotBlank(message = "任务定义KEY不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskDefKey;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * 
     */
    @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 deleteReason;

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

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

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

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

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


}
