package com.zt.plat.module.qms.api.task.dto;

import com.alibaba.fastjson.JSONObject;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Schema(description = "RPC 服务 - 流程回调 Request DTO")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class QmsBpmDTO {
    @Schema(description = "流程实例ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "流程实例ID不能为空")
    private String processInstanceId;

    @Schema(description = "业务的唯一标识")
    private String businessKey;

    @Schema(description = "传入数据", requiredMode = Schema.RequiredMode.REQUIRED)
    private JSONObject variables;

    @Schema(description = "状态")
    private String state;

    /* variables，传入业务类型
    {
     "beanName": "dataFormService"

    }
    * */

}
