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

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


 
 

  public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
   
    ExternalContent externalContent=new ExternalContent();
    externalContent.setAuthenticatedUserId(Authentication.getSystemId());
    externalContent.setConnectionManagement("General");
    processEngine.setExternalContent(externalContent);
    //processEngine.getProcessEngineConfiguration().setConnectionManagement("General");

   
   
View Full Code Here


    // 获取流程当前配置的数据库
    //DataBase dataBase = processEngine.getProcessEngineConfiguration().getSelectedDatabase();

    //创建流程线程副本对象
    ExternalContent externalContent = new ExternalContent();
    //设置操作人
    externalContent.setAuthenticatedUserId(Authentication.getAdminId());
    //设置数据库连接
    externalContent.setConnection(connection);
    //将线程副本对象放置在引擎内
    processEngine.setExternalContent(externalContent);
    //获取运行时操作对象
    RuntimeService runtimeService = processEngine.getRuntimeService();
    //启动流程实例
View Full Code Here

    * @param operator
    * @param connections
    * @return
    */
  public static ProcessEngine createProcessEngine(Object operator,Map<String,Connection> connections){
    ExternalContent externalContent=new ExternalContent();
    externalContent.setAuthenticatedUserId(StringUtil.getString(operator));
    for(Entry<String,Connection> tmp:connections.entrySet()){
      if(tmp.getKey().equals("null"))
        externalContent.setConnection(tmp.getValue());
      else
        externalContent.setConnection(tmp.getKey(), tmp.getValue());
    }
   
    return createProcessEngine(externalContent);
  }
View Full Code Here

    String password = dataBase.getPassword();
    //创建Connection
    Class.forName(driver);
    connection = DriverManager.getConnection(url, user, password);
    connection.setAutoCommit(false);
    ExternalContent externalContent =new ExternalContent();
    externalContent.setAuthenticatedUserId(userId);
    externalContent.setConnection(connection);
    processEngine.setExternalContent(externalContent);
     
      return processEngine;
    }
View Full Code Here

     
      ProcessEngine processEngine=ProcessEngineManagement.getDefaultProcessEngine();
     
      connection=processEngine.getProcessEngineConfiguration().createConnection();
      connection.setAutoCommit(false);
      ExternalContent externalContent=new ExternalContent();
      externalContent.setConnection(connection);
      externalContent.setAuthenticatedUserId("1200119390");
      processEngine.setExternalContent(externalContent);
     
     
      ObjectMessage objMessage = (ObjectMessage)message;
     
View Full Code Here


  protected void initializeProcessEngine() {


    ExternalContent externalContent=new ExternalContent();
    externalContent.setAuthenticatedUserId(Authentication.getSystemId());
    externalContent.setConnectionManagement("General");
    processEngine.setExternalContent(externalContent);
    //processEngine.getProcessEngineConfiguration().setConnectionManagement("General");
  }
View Full Code Here

   
   
    ProcessEngineManagement.dbType = DbType.ORACLE;
    ProcessEngine processEngine = ProcessEngineManagement.getDefaultProcessEngine();

    ExternalContent externalContent = new ExternalContent();
    externalContent.setAuthenticatedUserId("1200119390");

    externalContent.setConnection(connection);
    processEngine.setExternalContent(externalContent);

    //RuntimeService runtimeService = processEngine.getRuntimeService();

    StartProcessInstanceCommand startProcessInstanceCommand = new StartProcessInstanceCommand();
View Full Code Here

TOP

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

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.