package cn.stylefeng.workflow.design.modular.pojo.request;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class NodeConditionRequest extends BaseRequest {

    @ChineseDescription("表达式字符串（带括号，条件id，&amp;和||条件的）")
    @NotBlank(message = "表达式字符串不能为空", groups = {validateExpression.class})
    private String expressionString;

    public @interface validateExpression {
    }

}
