package com.aizuda.snailjob.client.model.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * @author: opensnail
 * @date : 2024-06-12 15:10
 */
@Data
public class MapTaskRequest {

    @NotNull(message = "jobId 不能为空")
    private Long jobId;

    @NotNull(message = "taskBatchId 不能为空")
    private Long taskBatchId;

    @NotNull(message = "parentId 不能为空")
    private Long parentId;

    private Long workflowTaskBatchId;

    private Long workflowNodeId;

    /**
     * 当前节点变更的工作流上下文
     */
    private String wfContext;

    @NotBlank(message = "taskName 不能为空")
    private String taskName;

    @NotEmpty(message = "subTask 不能为空")
    private List<Object> subTask;

}
