IDEMPIERE-1481 Document Action Status message is not translated

This commit is contained in:
Carlos Ruiz 2013-10-30 12:57:18 -05:00
parent e2b9f877ee
commit 530b0130ad
2 changed files with 10 additions and 16 deletions

View File

@ -121,6 +121,7 @@ public class SystemIDs
public final static int REFERENCE_POSTED = 234; public final static int REFERENCE_POSTED = 234;
public final static int REFERENCE_YESNO = 319; public final static int REFERENCE_YESNO = 319;
public final static int REFERENCE_WIZARDSTATUS = 200003; public final static int REFERENCE_WIZARDSTATUS = 200003;
public final static int REFERENCE_WFINSTANCE_STATE = 305;
public final static int TABLE_AD_TABLE = 100; public final static int TABLE_AD_TABLE = 100;
public final static int TABLE_AD_WF_PROCESS = 645; public final static int TABLE_AD_WF_PROCESS = 645;

View File

@ -16,7 +16,12 @@
*****************************************************************************/ *****************************************************************************/
package org.compiere.process; package org.compiere.process;
import static org.compiere.model.SystemIDs.REFERENCE_WFINSTANCE_STATE;
import org.compiere.model.MRefList;
import org.compiere.util.CLogger; import org.compiere.util.CLogger;
import org.compiere.util.Env;
import org.compiere.util.Util;
/** /**
@ -119,22 +124,10 @@ public class StateEngine
public String getStateInfo() public String getStateInfo()
{ {
String state = getState(); // is overwritten to update String state = getState(); // is overwritten to update
/** String stateName = MRefList.getListName(Env.getCtx(), REFERENCE_WFINSTANCE_STATE, state);
int AD_Reference_ID = 305; if (! Util.isEmpty(stateName))
MRefList.getList(AD_Reference_ID, false); return stateName;
**/
if (STATE_Running.equals(state))
return "Running";
else if (STATE_NotStarted.equals(state))
return "Not Started";
else if (STATE_Suspended.equals(state))
return "Suspended";
else if (STATE_Completed.equals(state))
return "Completed";
else if (STATE_Aborted.equals(state))
return "Aborted";
else if (STATE_Terminated.equals(state))
return "Terminated";
return state; return state;
} // getStateInfo } // getStateInfo