package com.qqchen.deploy.backend.workflow.dto;

import com.qqchen.deploy.backend.framework.dto.BaseDTO;
import com.qqchen.deploy.backend.workflow.enums.WorkflowInstanceStatusEnums;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
@Schema(description = "工作流实例信息")
public class WorkflowInstanceDTO extends BaseDTO {

    /**
     * 流程实例ID
     */
    private String processInstanceId;

    /**
     * 流程定义ID
     */
    private String processDefinitionId;

    /**
     * 业务标识
     */
    private String businessKey;

    /**
     * 启动表单数据ID
     */
    private Long formDataId;

    /**
     * 启动表单数据（用于展示）
     */
    private FormDataDTO formData;

    /**
     * 实例状态
     */
    private WorkflowInstanceStatusEnums status;

    /**
     * 流程变量(JSON)
     */
    private String variables;

    /**
     * 开始时间
     */
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    private LocalDateTime endTime;

}
