Package com.founder.fix.fixflow.core.impl

Examples of com.founder.fix.fixflow.core.impl.ProcessEngineConfigurationImpl


 
  public ThreadPoolExecutor execute(CommandContext commandContext) {
    if(threadPoolKey==null||threadPoolKey.equals("")){
      threadPoolKey="default";
    }
    ProcessEngineConfigurationImpl processEngineConfigurationImpl=commandContext.getProcessEngineConfigurationImpl();
    FixThreadPoolExecutor fixThreadPoolExecutor= processEngineConfigurationImpl.getThreadPoolMap().get(threadPoolKey);
    return fixThreadPoolExecutor;
  }
View Full Code Here


   * @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();
View Full Code Here

   * 获取默认run表名
   * @param tableId
   * @return
   */
  public static String getDefaultTableName(String tableId){
    ProcessEngineConfigurationImpl processEngineConfigurationImpl = ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration();
    DataBaseTable dataBaseTable = processEngineConfigurationImpl.getDataBaseTable(tableId);
    if(dataBaseTable == null){
      throw new FixFlowException("未找到id为"+tableId+"的table配置");
    }
    return dataBaseTable.getTableValue();
  }
View Full Code Here

   * 获取默认run表名
   * @param tableId
   * @return
   */
  public static String getArchiveTableName(String tableId){
    ProcessEngineConfigurationImpl processEngineConfigurationImpl = ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration();
    DataBaseTable dataBaseTable = processEngineConfigurationImpl.getDataBaseTable(tableId);
    if(dataBaseTable == null){
      throw new FixFlowException("未找到id为"+tableId+"的table配置");
    }
    return dataBaseTable.getArchiveTable();
  }
View Full Code Here

   * 获取配置的列信息,有序,且逗号分开,用户select或insert的字段字符串
   * @param tableId
   * @return
   */
  public static String getColumnString(String tableId){
    ProcessEngineConfigurationImpl processEngineConfigurationImpl = ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration();
    DataBaseTable dataBaseTable = processEngineConfigurationImpl.getDataBaseTable(tableId);
    if(dataBaseTable == null){
      throw new FixFlowException("未找到id为"+tableId+"的table配置");
    }
    return getColumnString(dataBaseTable);
  }
View Full Code Here

    String columnString = sbColumn.toString().substring(0,sbColumn.toString().length()-1);
    return columnString;
  }
 
  public static String getColumnStringWithOutArchiveTime(String tableId){
    ProcessEngineConfigurationImpl processEngineConfigurationImpl = ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration();
    DataBaseTable dataBaseTable = processEngineConfigurationImpl.getDataBaseTable(tableId);
    if(dataBaseTable == null){
      throw new FixFlowException("未找到id为"+tableId+"的table配置");
    }
    StringBuilder sbColumn = new StringBuilder();
    for(Column column :dataBaseTable.getColumn()){
View Full Code Here

  public static ProcessEngineConfiguration createProcessEngineConfiguration(String processEngineName) {
   
    if(processEngineName!=null){
      if(processEngineName.equals(ProcessEngineManagement.NAME_DEFAULT)){
        return new ProcessEngineConfigurationImpl();
      }
      else{
        if(processEngineName.equals(ProcessEngineManagement.NAME_DESIGNER)){
          return new ProcessEngineConfigurationImpl();
        }
      }
    }
    else{
      return new ProcessEngineConfigurationImpl();
    }
   
    return  new ProcessEngineConfigurationImpl();

  }
View Full Code Here

   * @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();
View Full Code Here

   * 获取默认run表名
   * @param tableId
   * @return
   */
  public static String getDefaultTableName(String tableId){
    ProcessEngineConfigurationImpl processEngineConfigurationImpl = ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration();
    DataBaseTable dataBaseTable = processEngineConfigurationImpl.getDataBaseTable(tableId);
    if(dataBaseTable == null){
      throw new FixFlowException("未找到id为"+tableId+"的table配置");
    }
    return dataBaseTable.getTableValue();
  }
View Full Code Here

   * 获取默认his表名
   * @param tableId
   * @return
   */
  public static String getArchiveTableName(String tableId){
    ProcessEngineConfigurationImpl processEngineConfigurationImpl = ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration();
    DataBaseTable dataBaseTable = processEngineConfigurationImpl.getDataBaseTable(tableId);
    if(dataBaseTable == null){
      throw new FixFlowException("未找到id为"+tableId+"的table配置");
    }
    return dataBaseTable.getArchiveTable();
  }
View Full Code Here

TOP

Related Classes of com.founder.fix.fixflow.core.impl.ProcessEngineConfigurationImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.