IDEMPIERE-4326 Processes related to workflow are not updating that column when finished (#123)
This commit is contained in:
parent
f50425334f
commit
426476149d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue