package com.ningdatech.pmapi.todocenter.bean.entity;

import com.ningdatech.pmapi.todocenter.bean.vo.ProgressNodeAuditInfoVo;
import com.wflow.workflow.bean.process.OrgUser;
import com.wflow.workflow.bean.process.enums.ApprovalModeEnum;
import com.wflow.workflow.bean.process.enums.NodeTypeEnum;
import com.wflow.workflow.enums.ProcessHandlerEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * 流程节点实体
 *
 * @author CMM
 * @since 2023/01/31 12:24
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ProgressNode {
    /**
     * 节点ID
     */
    private String nodeId;
    /**
     * 任务ID
     */
    private String taskId;
    /**
     * 审批类型
     */
    private ApprovalModeEnum approvalMode;
    /**
     * 节点类型
     */
    private NodeTypeEnum nodeType;
    /**
     * 节点名称
     */
    private String name;
    /**
     * 节点相关人员
     */
    private OrgUser user;
    /**
     * 该节点动作操作类型
     */
    private ProcessHandlerEnum action;
    /**
     * 审核信息
     */
    private ProgressNodeAuditInfoVo auditInfo;
    /**
     * 处理结果
     */
    private ProcessHandlerEnum result;
    /**
     * 开始时间
     */
    private Date startTime;
    /**
     * 结束时间
     */
    private Date finishTime;
}
