class BaseYmlFlowParser implements FlowParser {

	private final Set<String> CHAIN_NAME_SET = new HashSet<>();

	public void parse(String content) throws Exception {
		parse(ListUtil.toList(content));
	}

	@Override
	public void parse(List<String> contentList) throws Exception {<FILL_FUNCTION_BODY>}

	protected JsonNode convertToJson(String yamlString) {
		Yaml yaml = new Yaml();
		Map<String, Object> map = yaml.load(yamlString);
		return JsonUtil.parseObject(JsonUtil.toJsonString(map));
	}

	/**
	 * 解析一个 chain 的过程
	 * @param chain chain
	 */
	public abstract void parseOneChain(JsonNode chain);

}

		if (CollectionUtil.isEmpty(contentList)) {
			return;
		}

		List<JsonNode> jsonObjectList = ListUtil.toList();
		for (String content : contentList) {
			JsonNode ruleObject = convertToJson(content);
			jsonObjectList.add(ruleObject);
		}

		Consumer<JsonNode> parseOneChainConsumer = this::parseOneChain;
		ParserHelper.parseNodeJson(jsonObjectList);
		ParserHelper.parseChainJson(jsonObjectList, CHAIN_NAME_SET, parseOneChainConsumer);
	
<no_super_class>