Package org.huihoo.workflow.runtime

Examples of org.huihoo.workflow.runtime.WorkflowService


    if (willow_engine != null)
    {
      Context context = willow_engine.findChild(service_name);
      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);
        }
       
View Full Code Here


      {
        Context context=contexts[i];
       
        if (context != null && (context instanceof WorkflowService))
        {
          WorkflowService workflowService = (WorkflowService) context;
          if (authenticate(workflowService, userid, password))
          {
            vector.add(new ObjectService(this,workflowService));
          }
        }
View Full Code Here

   */
  public WorkflowService[] findWorkflowServices()
  {
    synchronized (children)
    {
      WorkflowService results[] = new WorkflowService[children.size()];
      return ((WorkflowService[]) children.values().toArray(results));
    }
  }
View Full Code Here

    String userid=participant.getUUID();
    String password=participant.getPassword();
   
    SerialService liveService = null;
   
    WorkflowService workflowService=namingServer.findWorkflowService(serviceName);
   
    if (workflowService != null)
    {
      if (!authenticate(workflowService, userid, password))
      {
View Full Code Here

    Vector vector = new Vector(0);

    WorkflowService[] services=namingServer.findWorkflowServices();
    for (int i = 0; i < services.length; ++i)
    {               
      WorkflowService temp=services[i];
      if (authenticate(temp, userid, password))
      {
        vector.add(new SerialServiceImpl(temp));
      }
    }
View Full Code Here

  {
    log.debug("[accept] workitem: " + workItem);
 
    WorkflowActivity workflowActivity = workItem.getWorkflowActivity();
    WorkflowPackage workflowPackage = workflowProcess.getWorkflowPackage();
    WorkflowService workflowService=getCaseDatabase().getWorkflowService();
    CaseDatabaseImpl caseDatabase =(CaseDatabaseImpl) workflowService.getCaseDatabase();
    UserTransaction userTransaction = caseDatabase.getUserTransaction();
    boolean resultDone = false;
    try
    {
      resultDone =  DispatchController.accept_core(workflowService,workflowProcess,operator, caseDatabase.getWrappedObject(), userTransaction, workItem);
View Full Code Here

    log.info("[dispatch] workitem: " + workItem );

    WorkflowActivity workflowActivity = workItem.getWorkflowActivity();
    WorkflowPackage workflowPackage = workflowProcess.getWorkflowPackage();
    WorkflowService workflowService=getCaseDatabase().getWorkflowService();
   
    CaseDatabaseImpl caseDatabase =(CaseDatabaseImpl) workflowService.getCaseDatabase();
    UserTransaction userTransaction = caseDatabase.getUserTransaction();

    boolean resultDone = false;
    try
    {
View Full Code Here

  public boolean revert(WorkflowProcess workflowProcess,WorkflowParticipant operator, WorkflowWork workItem) throws WorkflowException
  {
    log.debug("[revert] workitem: " + workItem );
    WorkflowActivity workflowActivity = workItem.getWorkflowActivity();
    WorkflowPackage workflowPackage = workflowProcess.getWorkflowPackage();
    WorkflowService workflowService=getCaseDatabase().getWorkflowService();
    CaseDatabaseImpl caseDatabase =(CaseDatabaseImpl) workflowService.getCaseDatabase();

    UserTransaction userTransaction = caseDatabase.getUserTransaction();
    boolean resultDone = false;
    try
    {
View Full Code Here

  {
    log.debug("[fetch] workitem: " + workItem );

    WorkflowActivity workflowActivity = workItem.getWorkflowActivity();
    WorkflowPackage workflowPackage = workflowProcess.getWorkflowPackage();
    WorkflowService workflowService=getCaseDatabase().getWorkflowService();
    CaseDatabaseImpl caseDatabase =(CaseDatabaseImpl) workflowService.getCaseDatabase();
    UserTransaction userTransaction = caseDatabase.getUserTransaction();

    boolean resultDone = false;
    try
    {
View Full Code Here

TOP

Related Classes of org.huihoo.workflow.runtime.WorkflowService

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.