IDEMPIERE-4231

This commit is contained in:
HideakiHagiwara 2020-04-05 14:54:35 +09:00 committed by Carlos Ruiz
parent 61098bdf3c
commit 154d8fb0de
1 changed files with 4 additions and 2 deletions

View File

@ -345,8 +345,10 @@ public class Process {
try try
{ {
processOK = process.processIt(pi, trx, false); processOK = process.processIt(pi, trx, false);
if (trxName == null) if (trxName == null && processOK)
trx.commit(); trx.commit();
else if (trxName == null && !processOK)
trx.rollback();
} }
catch (Throwable t) catch (Throwable t)
{ {