1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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;
    }
}