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

import com.qqchen.deploy.backend.workflow.enums.WorkflowInstanceStatusEnums;
import com.qqchen.deploy.backend.workflow.enums.WorkflowNodeInstanceStatusEnums;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Builder
public class WorkflowNodeInstanceStatusChangeEvent {

    private String processInstanceId;

    private String executionId;

    private String nodeId;

    private String nodeName;

    private String nodeType;

    private WorkflowNodeInstanceStatusEnums status;

    private LocalDateTime startTime;

    private LocalDateTime endTime;

    /**
     * 节点执行变量（JSON格式）
     * 包含节点的输入、输出、上下文等信息
     */
    private String variables;

    /**
     * 错误信息（节点执行失败时）
     */
    private String errorMessage;

}
