class ThenELWrapper extends ELWrapper {
    private final List<PreELWrapper> preELWrapperList;
    private final List<FinallyELWrapper> finallyELWrapperList;

    public ThenELWrapper(ELWrapper... elWrappers) {
        preELWrapperList = new ArrayList<>();
        finallyELWrapperList = new ArrayList<>();
        this.addWrapper(elWrappers);
    }

    public ThenELWrapper then(Object ... objects){
        ELWrapper[] elWrappers = ELBus.convertToNonLogicOpt(objects);
        // 校验与或非表达式
        this.addWrapper(elWrappers);
        return this;
    }

    protected void addPreElWrapper(PreELWrapper preElWrapper){
        this.preELWrapperList.add(preElWrapper);
    }

    protected void addFinallyElWrapper(FinallyELWrapper finallyElWrapper){
        this.finallyELWrapperList.add(finallyElWrapper);
    }

    /**
     * 在当前串行组件下创建前置组件
     *
     * @param objects 前置组件的子组件
     * @return {@link ThenELWrapper}
     */
    public ThenELWrapper pre(Object ... objects){
        addPreElWrapper(new PreELWrapper(objects));
        return this;
    }

    /**
     * 在当前串行组件下创建前置组件
     *
     * @param objects 后置组件的子组件
     * @return {@link ThenELWrapper}
     */
    public ThenELWrapper finallyOpt(Object ... objects){
        addFinallyElWrapper(new FinallyELWrapper(objects));
        return this;
    }

    @Override
    public ThenELWrapper tag(String tag) {
        this.setTag(tag);
        return this;
    }

    @Override
    public ThenELWrapper id(String id) {
        this.setId(id);
        return this;
    }

    @Override
    public ThenELWrapper maxWaitSeconds(Integer maxWaitSeconds){
        setMaxWaitSeconds(maxWaitSeconds);
        return this;
    }

    @Override
    protected String toEL(Integer depth, StringBuilder paramContext) {<FILL_FUNCTION_BODY>}


}

        checkMaxWaitSeconds();

        Integer sonDepth = depth == null ? null : depth + 1;
        StringBuilder sb = new StringBuilder();

        processWrapperTabs(sb, depth);
        sb.append("THEN(");
        processWrapperNewLine(sb, depth);

        // 处理前置组件输出
        for (PreELWrapper preElWrapper : this.preELWrapperList) {
            sb.append(StrUtil.format("{},", preElWrapper.toEL(sonDepth, paramContext)));
            processWrapperNewLine(sb, depth);
        }
        // 处理子表达式输出
        for (int i = 0; i < this.getElWrapperList().size(); i++) {
            if (i > 0){
                sb.append(",");
                processWrapperNewLine(sb, depth);
            }
            sb.append(this.getElWrapperList().get(i).toEL(sonDepth, paramContext));
        }
        // 处理后置组件输出
        for (FinallyELWrapper finallyElWrapper : this.finallyELWrapperList) {
            sb.append(",");
            processWrapperNewLine(sb, depth);
            sb.append(finallyElWrapper.toEL(sonDepth, paramContext));
        }
        processWrapperNewLine(sb, depth);
        processWrapperTabs(sb, depth);
        sb.append(")");

        // 处理公共属性输出
        processWrapperProperty(sb, paramContext);
        return sb.toString();
    
<methods>public non-sealed void <init>() ,public com.yomahub.liteflow.builder.el.ELWrapper id(java.lang.String) ,public com.yomahub.liteflow.builder.el.ELWrapper tag(java.lang.String) ,public java.lang.String toEL() ,public java.lang.String toEL(boolean) <variables>private java.lang.String data,private java.lang.String dataName,private final List<com.yomahub.liteflow.builder.el.ELWrapper> elWrapperList,private java.lang.String id,private java.lang.Integer maxWaitSeconds,private java.lang.String tag