MonitorJobStatusConts.java

package com.mycim.valueobject.automonitor.util;

public class MonitorJobStatusConts {

    public static final String ACTIVE_KEY = "ACTIVE";

    public static final String WAIT_PROCESS_KEY = "WAITPROCESS";

    public static final String PROCESSED_KEY = "PROCESSED";

    public static final String FINISH_KEY = "FINISH";

    public static final String CLOSE_KEY = "CLOSED";

    public static final String CANCEL_KEY = "CANCEL";

    /**
     * ACTIVE,WAITPROCESS
     *
     * @return
     */
    public static String[] getCanCancelJobStatus() {
        return new String[]{ACTIVE_KEY, WAIT_PROCESS_KEY};
    }

    public static String[] getFixedJobStatus() {
        return new String[]{PROCESSED_KEY, FINISH_KEY, CLOSE_KEY, CANCEL_KEY};
    }

    public static String[] getActiveJobStatus() {
        return new String[]{ACTIVE_KEY, WAIT_PROCESS_KEY, PROCESSED_KEY};
    }

    public static String[] getCloseJobStatus() {
        return new String[]{CLOSE_KEY, CANCEL_KEY};
    }

}