Package de.danet.an.workflow.api

Examples of de.danet.an.workflow.api.ProcessMgr.createProcess()


  // create the process
  ProcessDefinitionDirectory pdd
      = workflowService().processDefinitionDirectory();
  // dynamic invoke WSIF with WSDL definition as DOM tree.
  ProcessMgr pmgr = pdd.processMgr("st-testWSIF", "testWSIF1");
  WfProcess process = pmgr.createProcess(defaultRequester());
   process.start();
  checkResult(process);
  // dynamic invoke WSIF with WSDL definition retrieved from URL.
  ProcessMgr pmgr2 = pdd.processMgr("st-testWSIF", "testWSIF2");
  WfProcess process2 = pmgr2.createProcess(defaultRequester());
View Full Code Here


  WfProcess process = pmgr.createProcess(defaultRequester());
   process.start();
  checkResult(process);
  // dynamic invoke WSIF with WSDL definition retrieved from URL.
  ProcessMgr pmgr2 = pdd.processMgr("st-testWSIF", "testWSIF2");
  WfProcess process2 = pmgr2.createProcess(defaultRequester());
   process2.start();
  checkResult(process2);
    }

    /**
 
View Full Code Here

     * element.
     * @exception Exception if an error occurs
     */
    public void googleSearch() throws Exception {
  ProcessMgr pmgr3 = pdd.processMgr("st-testWSIF", "testWSIF3");
  WfProcess process3 = pmgr3.createProcess(defaultRequester());
   process3.start();
  Thread.sleep(30000);
   Map map = (Map)process3.result();
  for (Iterator it2 = map.keySet().iterator(); it2.hasNext();) {
      String name = (String) it2.next();
View Full Code Here

    protected Process createProcess (String pkgId, String prcId)
        throws Exception {
  ProcessDefinitionDirectory pdd
      = workflowService().processDefinitionDirectory();
  ProcessMgr pmgr = pdd.processMgr(pkgId, prcId);
  Process process = (Process) pmgr.createProcess (defaultRequester());
  return process;
    }
}
View Full Code Here

  // Make sure that default is "disabled"
  assertTrue(mgr.processMgrState() == WfProcessMgr.DISABLED);
  // Test that process creation is not possible
  try {
      //proc = mgr.createProcess(requester);
      proc = new WrappedProcess(mgr.createProcess(requester));
  } catch (NotEnabledException exc) {
      gotException = true;
  }
  assertTrue(gotException);
  // Enable now and make sure that process can be created
View Full Code Here

  }
  assertTrue(gotException);
  // Enable now and make sure that process can be created
  mgr.setProcessMgrState(WfProcessMgr.ENABLED);
  assertTrue(mgr.processes().size() == noprocs);
  proc = new WrappedProcess(mgr.createProcess(requester));
  createdProcs.add (proc);
  assertTrue(mgr.processes().size() == noprocs+1);
    }

    /**
 
View Full Code Here

     * @exception Exception if an error occurs
     */
    public void testRun() throws Exception {
  List msgList = importProcessDefinition("/process/minimal.xml");
  ProcessMgr mgr = defDir.processMgr("SystemTest", "stopOnStart");
  WfProcess proc = mgr.createProcess(requester);
  String procKey = proc.key();
  proc.start();
  assertTrue(stateReached(proc, "open.running.running",
        "open.not_running.suspended.suspended"));
  Activity act = (Activity)proc.steps().toArray()[0];
View Full Code Here

      processRemoved = true;
  }
  assertTrue(processRemoved);
 
  mgr = defDir.processMgr("SystemTest", "stopOnFinish");
  proc = mgr.createProcess(requester);
  procKey = proc.key();
  proc.start();
  assertTrue(stateReached(proc, "open.running.running",
        "open.not_running.suspended.suspended"));
  act = (Activity)proc.steps().toArray()[0];
View Full Code Here

      processRemoved = true;
  }
  assertTrue(processRemoved);

  mgr = defDir.processMgr("SystemTest", "completeNoRemoval");
  proc = mgr.createProcess(requester);
  procKey = proc.key();
  proc.start();
  assertTrue(stateReached(proc, "closed.completed",
        "closed.completed"));
  // Assure that process has to be removed manually
View Full Code Here

  assertTrue(gotException);   
  // Try correct identifier
  ProcessMgr mgr = defDir.processMgr("SystemTest_minimal", "minimal");
  int noprocs = mgr.processes().size();
  //WfProcess proc = mgr.createProcess(requester);
  WrappedProcess proc = new WrappedProcess(mgr.createProcess(requester));
  assertTrue(mgr.processes().size() == noprocs+1);
  createdProcs.add (proc);
    }

    /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.