IDEMPIERE-1035 hard to find exceptions when using restrictive rights … (#21)

* IDEMPIERE-1035 hard to find exceptions when using restrictive rights - Improve not access to workflow message

* IDEMPIERE-1035 hard to find exceptions when using restrictive rights - Improve not access to workflow message
This commit is contained in:
Diego Ruiz 2020-04-30 22:07:24 +02:00 committed by GitHub
parent 94169c0af4
commit a77a991b9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -2804,7 +2804,12 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
if (adTabbox.getSelectedGridTab().getRecord_ID() <= 0)
return;
else
AEnv.startWorkflowProcess(adTabbox.getSelectedGridTab().getAD_Table_ID(), adTabbox.getSelectedGridTab().getRecord_ID());
try {
AEnv.startWorkflowProcess(adTabbox.getSelectedGridTab().getAD_Table_ID(), adTabbox.getSelectedGridTab().getRecord_ID());
} catch (Exception e) {
CLogger.get().saveError("Error", e);
throw new ApplicationException(e.getMessage(), e);
}
}
}
//