Package de.danet.an.workflow.api

Examples of de.danet.an.workflow.api.DefaultRequester


      procDefDir = workflowService.processDefinitionDirectory();
      procDir = workflowService.processDirectory();
      ProcessMgr pmgr = procDefDir
    .processMgr ("ExceptionTests", "overrideMapping");
      WfProcess process
    = pmgr.createProcess(new DefaultRequester (workflowService));
      process.start();
      assertTrue (stateReached (process, "closed.terminated"));
            boolean found = false;
            for (Iterator i = process.steps().iterator(); i.hasNext();) {
                WfActivity act = (WfActivity)i.next ();
View Full Code Here


      procDefDir = workflowService.processDefinitionDirectory();
      procDir = workflowService.processDirectory();
      ProcessMgr pmgr = procDefDir
    .processMgr ("ExceptionTests", "redefineMapping");
      WfProcess process
    = pmgr.createProcess(new DefaultRequester (workflowService));
      process.start();
      assertTrue (stateReached (process, "closed.completed"));
            boolean found = false;
            for (Iterator i = process.steps().iterator(); i.hasNext();) {
                WfActivity act = (WfActivity)i.next ();
View Full Code Here

            procDefDir = workflowService.processDefinitionDirectory();
            procDir = workflowService.processDirectory();
            ProcessMgr pmgr = procDefDir
                .processMgr ("ExceptionTests", "suspendMapping");
            WfProcess process
                = pmgr.createProcess(new DefaultRequester (workflowService));
            process.start();
            Activity toolAct = null;
            for (Iterator i = process.steps().iterator(); i.hasNext();) {
                Activity act = (Activity)i.next();
                if (act.name().equals("Get stock quote")) {
View Full Code Here

            procDefDir = workflowService.processDefinitionDirectory();
            procDir = workflowService.processDirectory();
            ProcessMgr pmgr = procDefDir
                .processMgr ("ExceptionTests", "suspendMapping");
            WfProcess process
                = pmgr.createProcess(new DefaultRequester (workflowService));
            process.start();
            Activity toolAct = null;
            for (Iterator i = process.steps().iterator(); i.hasNext();) {
                Activity act = (Activity)i.next();
                if (act.name().equals("Get stock quote")) {
View Full Code Here

  try {
      procDefDir = workflowService.processDefinitionDirectory();
      procDir = workflowService.processDirectory();
      ProcessMgr pmgr = procDefDir.processMgr ("jstests", "testAbandon");
      WfProcess process
    = pmgr.createProcess(new DefaultRequester (workflowService));
      process.start();
      assertTrue (stateReached (process, "closed.completed"));
      for (Iterator i = process.activitiesInState("closed").iterator ();
     i.hasNext ();) {
    WfActivity act = (Activity)i.next ();
View Full Code Here

        try {
            procDefDir = workflowService.processDefinitionDirectory();
            procDir = workflowService.processDirectory();
            ProcessMgr pmgr = procDefDir.processMgr ("jstests", "testReplacer");
            WfProcess process
                = pmgr.createProcess(new DefaultRequester (workflowService));
            process.start();
            assertTrue (stateReached (process, "closed.completed"));
            SAXContentBuffer xmlRes = (SAXContentBuffer)
                process.processContext().get("XMLResult");
            Node resRoot = xmlRes.toW3cDom();
View Full Code Here

        try {
            procDefDir = workflowService.processDefinitionDirectory();
            procDir = workflowService.processDirectory();
            ProcessMgr pmgr = procDefDir.processMgr ("jstests", "testAUK");
            WfProcess process
                = pmgr.createProcess(new DefaultRequester (workflowService));
            process.start();
            assertTrue (stateReached (process, "closed.completed"));
            String s = (String)process.processContext().get("Result");
            assertTrue (s.startsWith("jstests/testAUK "));
            procDir.removeProcess(process);
View Full Code Here

        try {
            procDefDir = workflowService.processDefinitionDirectory();
            procDir = workflowService.processDirectory();
            ProcessMgr pmgr = procDefDir.processMgr ("jstests", "testJavaArg1");
            WfProcess process
                = pmgr.createProcess(new DefaultRequester (workflowService));
            process.start();
            assertTrue (stateReached (process, "closed.completed"));
            List l = (List)process.processContext().get("Result");
            assertTrue (l.size() == 1);
            assertTrue (((String)l.get(0)).equals("Hallo"));
View Full Code Here

        try {
            procDefDir = workflowService.processDefinitionDirectory();
            procDir = workflowService.processDirectory();
            ProcessMgr pmgr = procDefDir.processMgr ("jstests", "testJavaArg2");
            WfProcess process
                = pmgr.createProcess(new DefaultRequester (workflowService));
            ProcessData data = new DefaultProcessData ();
            List l = new ArrayList();
            data.put("Argument", l);
            l.add ("Text:");
            process.setProcessContext(data);
View Full Code Here

  while ((st = br.readLine()) != null) {
      sb.append(st + "\n");
  }
  pdd.importProcessDefinitions(sb.toString());
  mgr1To20par = pdd.processMgr("loadUnitTests", "1plus20actsPar");
  defReq = new DefaultRequester (ws);
    }
View Full Code Here

TOP

Related Classes of de.danet.an.workflow.api.DefaultRequester

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.