IDEMPIERE-4326 Processes related to workflow are not updating that column when finished (#123)

This commit is contained in:
Carlos Ruiz 2020-06-24 17:06:54 +02:00 committed by GitHub
parent f50425334f
commit 426476149d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}