@Override
		public void run() {
			Calendar cal = Calendar.getInstance();
			if(currentPallet == null) {
				currentPallet = model.getNextPalletToProduce();
				if(currentPallet == null) {
					view.insertToProductionBox(sdf.format(cal.getTime()) + " - No orders to produce");
					return;
				}
			}
			String message = sdf.format(cal.getTime()) + " - Order number " + Long.toString(currentPallet.orderId) + ", " ;
			switch (currentStageInProduction) {
			case PRODUCTION :
				//updateRawMaterialQuantities(currentPallet.recipeName);
				message += currentPallet.recipeName + " in production";
				currentStageInProduction++;
				break;
			case FREEZING :
				message += currentPallet.recipeName + " in freezing";
				currentStageInProduction++;
				break;
			case PACKAGING_IN_BAGS :
				message += currentPallet.recipeName + " in packaging in bags";
				currentStageInProduction++;
				break;
			case PACKAGING_IN_CARTONS :
				message += currentPallet.recipeName + " in packaging in cartons";
				currentStageInProduction++;
				break;
			case LOADING_ON_PALLETS :
				message += currentPallet.recipeName + " in loading on pallets";
				currentStageInProduction = PRODUCTION;
				model.createPallet(currentPallet);
				currentPallet = null;
				break;
			}
			view.insertToProductionBox(message);			
		}