Package org.huihoo.workflow.store.spi

Examples of org.huihoo.workflow.store.spi.SpiUserDatabase


  }
 
  public  UserDatabase  newUserDatabase(Hashtable env)throws WorkflowException
  {
    Store store=(Store)env.get(Constants.WORKFLOW_STORE_USER)
    SpiUserDatabase gudb=DatabaseRegistry.getUserDatabase(store.getDriverClass());
    try
    {
      SpiUserDatabase gudb_clone=(SpiUserDatabase)gudb.clone();
      gudb_clone.setStore(store);     
      return new UserDatabaseImpl(gudb_clone);
    }
    catch (CloneNotSupportedException e)
    {
      throw new WorkflowException(e);
View Full Code Here


    if (userdatabaseClass != null)
    {
      try
      {
        Class clazz = clazzLoader.loadClass(userdatabaseClass);
        SpiUserDatabase spiUserDatabase = (SpiUserDatabase) clazz.newInstance();
        DatabaseRegistry.registerUserDB(driver, spiUserDatabase);
      }
      catch (Throwable e)
      {
        ;
View Full Code Here

    try
    {
      SchemaContext schemaContext=new SchemaContext("D:\\project\\org.huihoo.workflow\\conf\\org.huihoo.workflow-schema.properties");
      Store storeConfig=new Store("DriverManager","dbc:oracle:thin:@zosatapo:1521:org.huihoo.workflow","org.huihoo.workflow","org.huihoo.workflow","oracle.jdbc.driver.OracleDriver");
      //SpiUserDatabaseImpl userDatabase=new SpiUserDatabaseImpl(schemaContext,storeConfig);
      SpiUserDatabase userDatabase=DatabaseRegistry.getUserDatabase(storeConfig.getDriverClass());
      userDatabase.setSchemaContext(schemaContext);
      userDatabase.setStore(storeConfig);
     
      userDatabase.start();
     
      //System.err.println(userDatabase);
     
      System.err.println(userDatabase.findParticipant("zosatapo"));
    }
    catch(WorkflowException ex)
    {
      ex.printStackTrace();    
    }
View Full Code Here

      return;
    }
    lifecycle.fireLifecycleEvent(START_EVENT, null);
    started = true;
    Throwable throwable = null;
    SpiUserDatabase gudb = DatabaseRegistry.getUserDatabase(DatabaseRegistry.WILLOW_DRIVER_CLASS);
    if (gudb != null)
    {
      try
      {
        userDatabase = (SpiUserDatabase) gudb.clone();
       
        SchemaContext schemaContext = new SchemaContext(WorkflowProperties.getSchemaContextFile());
        userDatabase.setSchemaContext(schemaContext);
       
        Store tmpStore=(this.store==null?WorkflowProperties.getUserStore():this.store);
View Full Code Here

    return caseDatabase;   
  }
 
  public final static SpiUserDatabase lookupUserDB(String vendorDriverClazz)
  {
    SpiUserDatabase userDatabase=(SpiUserDatabase) userDBS.get(vendorDriverClazz);
   
    if(userDatabase==null)
    {
      userDatabase=(SpiUserDatabase) userDBS.get(WILLOW_DRIVER_CLASS);
    }
View Full Code Here

 
  public static void deregisterUserDB()
  {
    userDBS.clear();
   
    SpiUserDatabase userDatabase=new org.huihoo.workflow.impl.store.spi.SpiUserDatabaseImpl_RT();       
    userDBS.put(WILLOW_DRIVER_CLASS, userDatabase);
  }
View Full Code Here

TOP

Related Classes of org.huihoo.workflow.store.spi.SpiUserDatabase

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.