IDEMPIERE-1804 Org of WF Process is Default(login) Organization. (#195)

Workflow org

Co-authored-by: Hideaki Hagiwara <hagiwara.hideaki@gmail.com>
This commit is contained in:
Carlos Ruiz 2020-07-31 02:02:33 +02:00 committed by GitHub
parent a143e63128
commit 600d8efc70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -202,6 +202,7 @@ public class MWFActivity extends X_AD_WF_Activity implements Runnable
saveEx();
//
m_audit = new MWFEventAudit(this);
m_audit.setAD_Org_ID(getAD_Org_ID());//Add by Hideaki Hagiwara
m_audit.saveEx();
//
m_process = process;

View File

@ -131,6 +131,7 @@ public class MWFProcess extends X_AD_WF_Process
setProcessed (false);
// Lock Entity
getPO();
setAD_Org_ID(m_po.getAD_Org_ID());//Add by Hideaki Hagiwara
//hengsin: remove lock/unlock which is causing deadlock
//if (m_po != null)
//m_po.lock();