public boolean isValidStateToGo(int state) {
		switch (state) {
		case CREATED:
			return CREATED == getState();
		case RUNNING:
			return CREATED == getState();
		case ENDED:
			return RUNNING == getState() || CREATED == getState();
		case ENDED_CANCELLED:
		case ENDED_TIMEOUT:
			return RUNNING == getState();
		default:
			return false;
		}		
	}