package cn.axzo.workflow.common.model.request.bpmn.task;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 推动业务节点继续执行
 *
 * @author wangli
 * @since 2024-09-09 13:46
 */
@ApiModel("业务节点设置审批人")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class BpmnActivityTriggerDTO implements Serializable {

    private static final long serialVersionUID = 1759998765977414031L;

    /**
     * 业务节点的触发 ID
     */
    @NotBlank(message = "触发 ID 不能为空")
    @ApiModelProperty(value = "触发 ID", notes = "数据来源于事件")
    private String triggerId;

    /**
     * 是否异步执行
     */
    @ApiModelProperty(value = "是否异步", notes = "异步时,只接收请求便返回数据")
    @Builder.Default
    private Boolean async = true;

    /**
     * 流程定义节点id
     */
    private String activityId;
}
