BF [ 1708835 ] Document Status=Completed but Processed=N
http://sourceforge.net/tracker/?func=detail&atid=879332&aid=1708835&group_id=176962 Fixed some identation issues.
This commit is contained in:
parent
0a755dd675
commit
2c2ef34172
|
@ -709,17 +709,27 @@ public class MWFActivity extends X_AD_WF_Activity implements Runnable
|
||||||
// Do Work
|
// Do Work
|
||||||
/**** Trx Start ****/
|
/**** Trx Start ****/
|
||||||
boolean done = performWork(m_trx);
|
boolean done = performWork(m_trx);
|
||||||
//begin vpj-cd e-evolution 03/08/2005 PostgreSQL
|
//begin vpj-cd e-evolution 03/08/2005 PostgreSQL
|
||||||
// Reason: When is execute setWFState create a transaction for same table is generate a clicle Trx
|
// Reason: When is execute setWFState create a transaction for same table is generate a clicle Trx
|
||||||
// is cause that PostgreSQL wait into transaction idle
|
// is cause that PostgreSQL wait into transaction idle
|
||||||
//setWFState (done ? StateEngine.STATE_Completed : StateEngine.STATE_Suspended);
|
//setWFState (done ? StateEngine.STATE_Completed : StateEngine.STATE_Suspended);
|
||||||
//end vpj-cd e-evolution 03/08/2005 PostgreSQL
|
//end vpj-cd e-evolution 03/08/2005 PostgreSQL
|
||||||
|
|
||||||
/**** Trx End ****/
|
/**** Trx End ****/
|
||||||
m_trx.commit(true);
|
// teo_sarca [ 1708835 ]
|
||||||
m_trx.close();
|
// Reason: if the commit fails the document should be put in Invalid state
|
||||||
m_trx = null;
|
try {
|
||||||
//begin vpj-cd e-evolution 03/08/2005 PostgreSQL
|
m_trx.commit(true);
|
||||||
//Reason: setWFState moved for the first trx be finished
|
m_trx.close();
|
||||||
|
m_trx = null;
|
||||||
|
} catch (Exception e) {
|
||||||
|
// If we have a DocStatus, change it to Invalid, and throw the exception to the next level
|
||||||
|
if (m_docStatus != null)
|
||||||
|
m_docStatus = DocAction.STATUS_Invalid;
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
//begin vpj-cd e-evolution 03/08/2005 PostgreSQL
|
||||||
|
//Reason: setWFState moved for the first trx be finished
|
||||||
setWFState (done ? StateEngine.STATE_Completed : StateEngine.STATE_Suspended);
|
setWFState (done ? StateEngine.STATE_Completed : StateEngine.STATE_Suspended);
|
||||||
//end vpj-cd e-evolution 03/08/2005 PostgreSQL
|
//end vpj-cd e-evolution 03/08/2005 PostgreSQL
|
||||||
if (m_postImmediate != null)
|
if (m_postImmediate != null)
|
||||||
|
|
Loading…
Reference in New Issue