Package org.huihoo.workflow

Examples of org.huihoo.workflow.WorkflowException


          WorkflowProcessListener listener = (WorkflowProcessListener) implClass.newInstance();
          workflowProcess.addWorkflowProcessListener(listener);
        }
        catch (Throwable ex)
        {
          errorList.add(new WorkflowException("Can not load class :" + className, ex));
          System.err.println("Can not load class :" + className);
          System.err.println(loader);
        }
      }
    }
    //---------------------------------------------------------
    // 2. format WorkflowActivity LISTENER_QUALIFIED_CLASS_NAME
    //---------------------------------------------------------    
    for (int i = 0; i < processList.size(); ++i)
    {
      WorkflowProcess workflowProcess = (WorkflowProcess) processList.get(i);
      List activies = workflowProcess.getWorkflowActivities();
      int activitySize = activies.size();
      for (int j = 0; j < activitySize; ++j)
      {
        WorkflowActivity activity = (WorkflowActivity) activies.get(j);

        String className = activity.getListenerClassName();
        if (className != null && className.length() > 0)
        {
          try
          {
            Class implClass = loader.loadClass(className);
            WorkflowActivityListener listener = (WorkflowActivityListener) implClass.newInstance();

            activity.addWorkflowActivityListener(listener);
          }
          catch (Throwable ex)
          {
            errorList.add(new WorkflowException("Can not load class :" + className, ex));
            System.err.println("Can not load class :" + className);
            System.err.println(loader);
          }
        }
      }
View Full Code Here


    {
      System.err.println("--------------------------XPDLParserTools Error Dump  BEGIN--------------------------");
      int errSize = errorList.size();
      if (errSize > 0)
      {
        WorkflowException except;
        for (int i = 0; i < errSize; ++i)
        {
          except = (WorkflowException) errorList.get(i);
          except.printStackTrace();
        }
      }
      System.err.println("--------------------------XPDLParserTools Error Dump  END--------------------------");
    }
  }
View Full Code Here

      implClass = Class.forName(implClassName);
      selector = (PerformerSelector) implClass.newInstance();
    }
    catch (Exception e)
    {
      throw new WorkflowException(e);
    }

    users = selector.select(workflowWork, workflowTransition);

    return users;
View Full Code Here

      if (context != null && (context instanceof WorkflowService))
      {
        WorkflowService workflowService = (WorkflowService) context;
        if (!authenticate(workflowService, userid, password))
        {
          throw new WorkflowException("login org.huihoo.workflow service unsuccessfully.userid=" + userid + ",password=" + password);
        }
       
        return new ObjectService(this,workflowService);
      }
    }
View Full Code Here

      SessionManager manager = willow_engine.getSessionManager();
      RealmDatabase realmDatabase = willow_engine.getRealmDatabase();
      WorkflowParticipant participant = realmDatabase.authenticate(username, password);
      if (participant == null)
      {
        throw new WorkflowException("login workflow  engine unsuccessfully.username=" + username + ",password=" + password);
      }
      this.session = manager.createSession();
      this.session.setParticipant(participant);
    }
  }
View Full Code Here

      gudb_clone.setStore(store);     
      return new UserDatabaseImpl(gudb_clone);
    }
    catch (CloneNotSupportedException e)
    {
      throw new WorkflowException(e);
    }
  }
View Full Code Here

      gcdb_clone.setCaseIdGenerator(new SpiCaseIdGeneratorImpl())
      return new CaseDatabaseImpl(gcdb_clone);
    }
    catch (CloneNotSupportedException e)
    {
      throw new WorkflowException(e);
    }
  }
View Full Code Here

    {
      workflowPackage = xpdlParser.parse(new File(xpdlFileBase));
    }
    catch (IOException e)
    {
      throw new WorkflowException(e);
    }

    //------------------------------------------------------------
    //  VERY IMPORTANT CODE SECTION  BY ZOSATAPO 2004-10-30
    //
View Full Code Here

      return eventResult;
    }

    MonitorEventResult eventResult = new MonitorEventResult();
    eventResult.setException(
      new WorkflowException("JoinType " + joinType + " not supported by current realse"));
    return eventResult;
  }
View Full Code Here

        workflowWork,
        workflowTransition,
        pathDispBatch);
    }

    throw new WorkflowException("JoinType " + joinType + " not supported by current realse");
  }
View Full Code Here

TOP

Related Classes of org.huihoo.workflow.WorkflowException

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.