package com.vci.client.workflow.task; import com.vci.common.resource.CommonProperties; public class FlowControl { private static FlowControl flowControl; private boolean enable = false; private FlowControl() { String stringProperty = CommonProperties.getStringProperty("flow_enable"); if ("Y".equals(stringProperty.toUpperCase())) { enable = true; } else { enable = false; } } public static FlowControl getInstance() { if (flowControl == null) { flowControl = new FlowControl(); } return flowControl; } public boolean isEnable() { return enable; } }