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

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

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

@EqualsAndHashCode(callSuper = true)
@ApiModel("回退到指定节点入参模型")
@Data
@Validated
@AllArgsConstructor
@NoArgsConstructor
public class BpmnTaskBackAuditDTO extends BpmnTaskAuditDTO implements Serializable {

    private static final long serialVersionUID = -4160538355403179298L;

    @ApiModelProperty(value = "目标流程节点id", required = true)
    @NotBlank(message = "目标流程节点id不能为空")
    private String toActivityId;
}
