class AppcRunTasks {

    protected void mapRollbackVariables(BuildingBlockExecution execution, Action action, String appcCode) {
        if ("0".equals(appcCode) && action != null) {
            if (action.equals(Action.Lock)) {
                execution.setVariable(ROLLBACK_VNF_LOCK, true);
            } else if (action.equals(Action.Unlock)) {
                execution.setVariable(ROLLBACK_VNF_LOCK, false);
            } else if (action.equals(Action.Start)) {
                execution.setVariable(ROLLBACK_VNF_STOP, false);
            } else if (action.equals(Action.Stop)) {
                execution.setVariable(ROLLBACK_VNF_STOP, true);
            } else if (action.equals(Action.QuiesceTraffic)) {
                execution.setVariable(ROLLBACK_QUIESCE_TRAFFIC, true);
            } else if (action.equals(Action.ResumeTraffic)) {
                execution.setVariable(ROLLBACK_QUIESCE_TRAFFIC, false);
            }
        }
    }

}