* @param tableId
* @param queryLocation
* @return
*/
public static String getTableSelect(String tableId,QueryLocation queryLocation){
ProcessEngineConfigurationImpl processEngineConfigurationImpl = ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration();
DataBaseTable dataBaseTable = processEngineConfigurationImpl.getDataBaseTable(tableId);
if(dataBaseTable == null){
throw new FixFlowException("未找到id为"+tableId+"的table配置");
}
if(!StringUtil.getBoolean(processEngineConfigurationImpl.getPigeonholeConfig().getIsEnable())){
return dataBaseTable.getTableValue();
}
String tableName = "";
if(QueryLocation.HIS.equals(queryLocation)){
tableName = dataBaseTable.getArchiveTable();