diff --git a/org.adempiere.base/src/org/compiere/wf/MWFActivity.java b/org.adempiere.base/src/org/compiere/wf/MWFActivity.java index d3c1b0eb2c..2d95c9370b 100644 --- a/org.adempiere.base/src/org/compiere/wf/MWFActivity.java +++ b/org.adempiere.base/src/org/compiere/wf/MWFActivity.java @@ -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; diff --git a/org.adempiere.base/src/org/compiere/wf/MWFProcess.java b/org.adempiere.base/src/org/compiere/wf/MWFProcess.java index 646b6e2d82..035c6fc7af 100644 --- a/org.adempiere.base/src/org/compiere/wf/MWFProcess.java +++ b/org.adempiere.base/src/org/compiere/wf/MWFProcess.java @@ -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();