package com.yomahub.liteflow.test.parallelLoop.cmp;

import com.yomahub.liteflow.core.NodeComponent;
import com.yomahub.liteflow.test.exception.CustomStatefulException;
import org.noear.solon.annotation.Component;

@Component("g")
public class GCmp extends NodeComponent{

    @Override
    public void process() {
        if(this.getLoopIndex()==1){
            throw new CustomStatefulException("300", "chain execute custom stateful execption");
        }
        System.out.println("GCmp executed!");
    }

}
