Package de.danet.an.workflow.omgcore

Examples of de.danet.an.workflow.omgcore.WfProcess


     * Test deadline execution within block activity.
     * @exception Exception if an error occurs
     */
    public void timeoutBlock() throws Exception {
  ProcessMgr mgr = defDir.processMgr("SystemTest", "timeoutBlock");
  WfProcess proc = mgr.createProcess(requester);
  String procKey = proc.key();
  proc.start();
  assertTrue(stateReached(proc, "closed.completed"));
  ProcessData data = proc.processContext();
  String path = (String)data.get("TransitionPath");
  assertTrue(path,
       path.equals("PATH:start:a1:t1:a3:a2:t0:end"));
  procDir.removeProcess(proc);
    }
View Full Code Here


     * Test deadline execution within subflows.
     * @exception Exception if an error occurs
     */
    public void timeoutSubflow() throws Exception {
  ProcessMgr mgr = defDir.processMgr("SystemTest", "timeoutSubflow");
  WfProcess proc = mgr.createProcess(requester);
  String procKey = proc.key();
  proc.start();
  assertTrue(stateReached(proc, "closed.completed"));
  ProcessData data = proc.processContext();
  String path = (String)data.get("TransitionPath");
  assertTrue(path,
       path.equals("PATH:start:a1:t1:a3:a2:t0:end"));
  procDir.removeProcess(proc);
    }
View Full Code Here

     * element.
     * @exception Exception if an error occurs
     */
    public void invokeTest1() throws Exception {
  ProcessMgr pmgr = pdd.processMgr("st-testXSLT", "testXSLT1");
  WfProcess process = pmgr.createProcess(defaultRequester());
   process.start();
  assertTrue(stateReached(process, "closed.completed"));
   Map map = (Map)process.result();
  for (Iterator it = map.keySet().iterator(); it.hasNext();) {
      String name = (String) it.next();
      if (name.equals("result")) {
    String returnResult = (String)map.get(name);
    // check testXSLT.xml for the expected result
View Full Code Here

     * element.
     * @exception Exception if an error occurs
     */
    public void invokeTest2() throws Exception {
  ProcessMgr pmgr = pdd.processMgr("st-testXSLT", "testXSLT2");
  WfProcess process = pmgr.createProcess(defaultRequester());
   process.start();
  assertTrue(stateReached(process, "closed.completed"));
   Map map = (Map)process.result();
  for (Iterator it = map.keySet().iterator(); it.hasNext();) {
      String name = (String) it.next();
      if (name.equals("result")) {
    String returnResult = (String)map.get(name);
    // check testXSLT.xml for the expected result
View Full Code Here

     * element.
     * @exception Exception if an error occurs
     */
    public void invokeTest3() throws Exception {
  ProcessMgr pmgr = pdd.processMgr("st-testXSLT", "testXSLT3");
  WfProcess process = pmgr.createProcess(defaultRequester());
   process.start();
  assertTrue(stateReached(process, "closed.completed"));
   Map map = (Map)process.result();
  for (Iterator it = map.keySet().iterator(); it.hasNext();) {
      String name = (String) it.next();
      if (name.equals("result")) {
    String returnResult = (String)map.get(name);
    // check testXSLT.xml for the expected result
View Full Code Here

     * element.
     * @exception Exception if an error occurs
     */
    public void invokeTest4() throws Exception {
  ProcessMgr pmgr = pdd.processMgr("st-testXSLT", "testXSLT4");
  WfProcess process = pmgr.createProcess(defaultRequester());
   process.start();
  assertTrue(stateReached(process, "closed.completed"));
   Map map = (Map)process.result();
  for (Iterator it = map.keySet().iterator(); it.hasNext();) {
      String name = (String) it.next();
      if (name.equals("result")) {
    String returnResult = (String)map.get(name);
    // check testXSLT.xml for the expected result
View Full Code Here

     * element.
     * @exception Exception if an error occurs
     */
    public void invokeTest5() throws Exception {
  ProcessMgr pmgr = pdd.processMgr("st-testXSLT", "testXSLT5");
  WfProcess process = pmgr.createProcess(defaultRequester());
   process.start();
  assertTrue(stateReached(process, "closed.completed"));
   Map map = (Map)process.result();
  for (Iterator it = map.keySet().iterator(); it.hasNext();) {
      String name = (String) it.next();
      if (name.equals("result")) {
    String returnResult = (String)map.get(name);
    // check testXSLT.xml for the expected result
View Full Code Here

     * element.
     * @exception Exception if an error occurs
     */
    public void invokeTest6() throws Exception {
  ProcessMgr pmgr = pdd.processMgr("st-testXSLT", "testXSLT6");
  WfProcess process = pmgr.createProcess(defaultRequester());
   process.start();
  // There should be a server error, because the result
  // of the transformation is not wellformed.
  assertTrue(stateReached(process, "closed.completed"));
    }
View Full Code Here

     * element.
     * @exception Exception if an error occurs
     */
    public void invokeTest7() throws Exception {
  ProcessMgr pmgr = pdd.processMgr("st-testXSLT", "testXSLT7");
  WfProcess process = pmgr.createProcess(defaultRequester());
   process.start();
  assertTrue(stateReached(process, "closed.completed"));
   Map map = (Map)process.result();
  for (Iterator it = map.keySet().iterator(); it.hasNext();) {
      String name = (String) it.next();
      if (name.equals("result")) {
    String returnResult = (String)map.get(name);
    // check testXSLT.xml for the expected result
View Full Code Here

     * element.
     * @exception Exception if an error occurs
     */
    public void invokeTest8() throws Exception {
  ProcessMgr pmgr = pdd.processMgr("st-testXSLT", "testXSLT8");
  WfProcess process = pmgr.createProcess(defaultRequester());
   process.start();
  // There should be a server error, because
  // the transformation produces no xml.
  assertTrue(stateReached(process, "closed.terminated"));
    }
View Full Code Here

TOP

Related Classes of de.danet.an.workflow.omgcore.WfProcess

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.