package com.artfess.bpm.util;

import com.artfess.base.feign.SystemConfigFeignService;
import com.artfess.base.util.AppUtil;
import org.apache.http.client.ClientProtocolException;

import java.io.IOException;

public class PortalDataUtil {
	/**
	 * 根据别名获取系统属性。
	 * @param bpmProcessDefExt
	 * @param jsonObj
	 * void
	 * @throws IOException
	 * @throws ClientProtocolException
	 */
	public static String  getPropertyByAlias(String alias){

		try {
			SystemConfigFeignService service = AppUtil.getBean(SystemConfigFeignService.class);
			return service.getPropertyByAlias(alias);
		}  catch (Exception e) {
			throw new RuntimeException(e);
		}
	}

}
