package com.yunzhupaas.flowable.model.trigger;

import com.yunzhupaas.base.UserInfo;
import com.yunzhupaas.flowable.entity.TemplateJsonEntity;
import com.yunzhupaas.flowable.entity.TemplateNodeEntity;
import com.yunzhupaas.flowable.entity.TriggerRecordEntity;
import com.yunzhupaas.flowable.entity.TriggerTaskEntity;
import com.yunzhupaas.flowable.model.templatenode.nodejson.NodeModel;
import lombok.Data;

import java.util.*;

/**
 * 类的描述
 *
 * @author YUNZHUPAASYUNZHUPAAS开发组
 * @version 5.0.x
 * @since 2024/9/10 20:44
 */
@Data
public class ExecuteModel {
    private String flowId;
    private String taskId;
    private String nodeCode;
    private String nodeId;
    private String groupId;
    private List<Map<String, Object>> dataList = new ArrayList<>();
    private UserInfo userInfo = new UserInfo();
    private String parentId = "0";
    private List<TemplateNodeEntity> nodeEntityList = new ArrayList<>();
    private String instanceId;

    private TemplateJsonEntity jsonEntity = new TemplateJsonEntity();

    private TriggerTaskEntity triggerTask = new TriggerTaskEntity();
    private List<TriggerRecordEntity> recordList = new ArrayList<>();

    private NodeModel nodeModel = new NodeModel();

    /**
     * 当前执行节点，用于获取最后的执行节点引擎id
     */
    private String currentNodeId;

    private String triggerKey;

    private Integer isAsync;
}
