.getOrderStatus());
String status = statusMap.get(veggChecker.getArticleName());
if (status == null) {
Order order = orderManager
.findByOrderNr(((FrontProductionV) front).getOrderNr());
if (order != null) {
orderManager.lazyLoadTree(order);
status = veggChecker.getArticleStatus(order);
statusMap.put(veggChecker.getArticleName(), status);
order.setStatus(Util.statusMapToString(statusMap));
try {
orderManager.saveOrder(order);
} catch (ProTransException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
}
List<Produceable> vegger = veggProductionVManager.findAllApplyable();
StatusCheckerInterface<Transportable> frontChecker = Util
.getFrontChecker();
for (Produceable vegg : vegger) {
Map<String, String> statusMap = Util
.createStatusMap(((VeggProductionV) vegg).getOrderStatus());
String status = statusMap.get(frontChecker.getArticleName());
if (status == null) {
Order order = orderManager
.findByOrderNr(((VeggProductionV) vegg).getOrderNr());
if (order != null) {
orderManager.lazyLoadTree(order);
status = frontChecker.getArticleStatus(order);
statusMap.put(frontChecker.getArticleName(), status);
order.setStatus(Util.statusMapToString(statusMap));
try {
orderManager.saveOrder(order);
} catch (ProTransException e) {
// TODO Auto-generated catch block
e.printStackTrace();