/** * Figure out the initial process state from the state in the deployment descriptor. * * @param dd deployment descriptor * @return process state */ public static ProcessState calcInitialState(final TDeployment.Process dd) { ProcessState state = ProcessState.ACTIVE; if (dd.isSetActive() && !dd.getActive()) { state = ProcessState.DISABLED; } if (dd.isSetRetired() && dd.getRetired()) { state = ProcessState.RETIRED; } return state; }
/** * Figure out the initial process state from the state in the deployment descriptor. * * @param dd * deployment descriptor * @return */ private static ProcessState calcInitialState(TDeployment.Process dd) { ProcessState state = ProcessState.ACTIVE; if (dd.isSetActive() && dd.getActive() == false) state = ProcessState.DISABLED; if (dd.isSetRetired() && dd.getRetired() == true) state = ProcessState.RETIRED; return state; }
/** * Figure out the initial process state from the state in the deployment descriptor. * * @param dd * deployment descriptor * @return */ private static ProcessState calcInitialState(TDeployment.Process dd) { ProcessState state = ProcessState.ACTIVE; if (dd.isSetActive() && dd.getActive() == false) state = ProcessState.DISABLED; if (dd.isSetRetired() && dd.getRetired() == true) state = ProcessState.RETIRED; return state; }