Package org.huihoo.workflow.store.spi

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


  }
 
  public  CaseDatabase  newCaseDatabase(Hashtable env)throws WorkflowException
  {
    Store store=(Store)env.get(Constants.WORKFLOW_STORE_CASE);
    SpiCaseDatabase gcdb=DatabaseRegistry.getCaseDatabase(store.getDriverClass());

    try
    {
      SpiCaseDatabase gcdb_clone=(SpiCaseDatabase)gcdb.clone();
      gcdb_clone.setStore(store)
      gcdb_clone.setCaseIdGenerator(new SpiCaseIdGeneratorImpl())
      return new CaseDatabaseImpl(gcdb_clone);
    }
    catch (CloneNotSupportedException e)
    {
      throw new WorkflowException(e);
View Full Code Here


    WorkflowActivity joinActivity = workflowTransition.getToWorkflowActivity();
    JoinType joinType = joinActivity.getJoinType();
    if (joinType != null)
    {
      CaseDatabaseImpl caseDatabaseImpl = (CaseDatabaseImpl) workflowService.getCaseDatabase();
      SpiCaseDatabase caseDatabase = caseDatabaseImpl.getWrappedObject();

      UserTransaction userTransaction = null;
      MonitorEventResult eventResult = null;
      try
      {
        userTransaction = caseDatabase.getUserTransaction();

        if (JoinType.JOIN_AND.equals(joinType))
        {
          eventResult =
            dispatch_andJoin(
View Full Code Here

    if (casedatabaseClass != null)
    {
      try
      {
        Class clazz = clazzLoader.loadClass(casedatabaseClass);
        SpiCaseDatabase spiCaseDatabase = (SpiCaseDatabase) clazz.newInstance();
        DatabaseRegistry.registerCaseDB(driver, spiCaseDatabase);
      }
      catch (Throwable e)
      {
        ;
View Full Code Here

    return lookupUserDB(vendorDriverClazz);
  }
 
  public final static SpiCaseDatabase lookupCaseDB(String vendorDriverClazz)
  {
    SpiCaseDatabase caseDatabase= (SpiCaseDatabase) caseDBS.get(vendorDriverClazz);
   
    if(caseDatabase==null)
    {
      caseDatabase= (SpiCaseDatabase) caseDBS.get(WILLOW_DRIVER_CLASS);
    }
View Full Code Here

   
  public static void deregisterCaseDB()
  {
    caseDBS.clear();
   
    SpiCaseDatabase caseDatabase=new org.huihoo.workflow.impl.store.spi.SpiCaseDatabaseImpl();
    caseDBS.put(WILLOW_DRIVER_CLASS, caseDatabase);
  }
View Full Code Here

TOP

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

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.