IDEMPIERE-2771 Improve 2pack tracing for errors / Found a failing 2Pack that is marked as successful because the foreign key validation is done at commit time and that is out of the check of PackInProcess - fix adding specific commit (1006169)

This commit is contained in:
Carlos Ruiz 2016-07-08 17:50:48 +02:00
parent a952e89522
commit fa8aa2345d
1 changed files with 1 additions and 0 deletions

View File

@ -143,6 +143,7 @@ public class PackInProcess extends SvrProcess {
adPackageImp.setDateProcessed(new Timestamp(System.currentTimeMillis())); adPackageImp.setDateProcessed(new Timestamp(System.currentTimeMillis()));
adPackageImp.setP_Msg(msg); adPackageImp.setP_Msg(msg);
adPackageImp.saveEx(); adPackageImp.saveEx();
commitEx(); // we need to commit to capture HERE when the deferred validation of foreign keys can fail
} catch (Exception e) { } catch (Exception e) {
adPackageImp.setP_Msg(e.getLocalizedMessage()); adPackageImp.setP_Msg(e.getLocalizedMessage());
packIn.getNotifier().addStatusLine(e.getLocalizedMessage()); packIn.getNotifier().addStatusLine(e.getLocalizedMessage());