BF [ 1983118 ] Not all doc processing exceptions are displayed to user

This commit is contained in:
teo_sarca 2008-06-03 07:24:09 +00:00
parent 89092ef2ed
commit 65a3041424
1 changed files with 11 additions and 4 deletions

View File

@ -889,10 +889,17 @@ public class MWFActivity extends X_AD_WF_Activity implements Runnable
{
doc = (DocAction)m_po;
//
success = doc.processIt (m_node.getDocAction()); // ** Do the work
setTextMsg(doc.getSummary());
processMsg = doc.getProcessMsg();
m_docStatus = doc.getDocStatus();
try {
success = doc.processIt (m_node.getDocAction()); // ** Do the work
setTextMsg(doc.getSummary());
processMsg = doc.getProcessMsg();
m_docStatus = doc.getDocStatus();
}
catch (Exception e) {
if (m_process != null)
m_process.setProcessMsg(e.getLocalizedMessage());
throw e;
}
// Post Immediate
if (success && DocAction.ACTION_Complete.equals(m_node.getDocAction()))
{