using OpenAuth.Repository.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenAuth.App.Response
{
    public class BPMNWFTaskDto
    {
        public string FlowContent { get; set; }
        public FlowUnit FlowViewer { get; set; }

        public WFTask Task { get; set; }
        /// <summary>
        /// 流程进程
        /// </summary>
        public WFProcess Process { get; set; }
        /// <summary>
        /// 流程模板信息
        /// </summary>
        public WFScheme Scheme { get; set; }
        /// <summary>
        /// 审核日志
        /// </summary>
        public IEnumerable<WFTaskLog> Logs { get; set; }
        /// <summary>
        /// 任务列表
        /// </summary>
        public IEnumerable<WFTask> Tasks { get; set; }
    }


    public class FlowUnit
    {
        //完成节点id集合
        public List<string> FinishedTaskSet { get; set; }
        // 完成线条节点id集合
        public List<string> FinishedSequenceFlowSet { get; set; }
        // 当前节点id集合
        public List<string> UnfinishedTaskSet { get; set; }
        // 拒绝节点id集合（暂无示例）
        public List<string> RejectedTaskSet { get; set; }
    }


}
