diff --git a/org.adempiere.ui/src/org/compiere/apps/AbstractProcessCtl.java b/org.adempiere.ui/src/org/compiere/apps/AbstractProcessCtl.java index 8ee2141695..b094c5d6fb 100644 --- a/org.adempiere.ui/src/org/compiere/apps/AbstractProcessCtl.java +++ b/org.adempiere.ui/src/org/compiere/apps/AbstractProcessCtl.java @@ -208,6 +208,11 @@ public abstract class AbstractProcessCtl implements Runnable if (AD_Workflow_ID > 0) { startWorkflow (AD_Workflow_ID); + MPInstance pinstance = new MPInstance(Env.getCtx(), m_pi.getAD_PInstance_ID(), null); + String errmsg = m_pi.getSummary(); + pinstance.setResult(m_pi.isError()); + pinstance.setErrorMsg(errmsg); + pinstance.saveEx(); unlock(); return; }