Package de.danet.an.workflow.api

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


     */
    public void jellyArg() throws Exception
  ProcessDirectory pd = null;
  try {
      pd = workflowService().processDirectory ();
      WfRequester cont = new DefaultRequester(workflowService());
      Process process = (Process)createProcess
    ("actParamTests", "jelly-test1", cont);
      process.start();
      assertTrue (stateReached (process, "closed.completed"));
      SAXEventBuffer res = (SAXEventBuffer)
View Full Code Here


     */
    public void e4xArg() throws Exception {  
        ProcessDirectory pd = null;
        try {
            pd = workflowService().processDirectory ();
            WfRequester cont = new DefaultRequester(workflowService());
            Process process = (Process)createProcess
                ("actParamTests", "testE4xActParam", cont);
            process.start();
            assertTrue (stateReached (process, "closed.completed"));
            SAXContentBuffer res = (SAXContentBuffer)
View Full Code Here

      procDefDir = workflowService.processDefinitionDirectory();
      procDir = workflowService.processDirectory();
      ProcessMgr pmgr = procDefDir
    .processMgr ("jellytests", "basicTest");
      WfProcess process
    = pmgr.createProcess(new DefaultRequester (workflowService));
      process.start();
      assertTrue (stateReached (process, "closed.completed"));
      procDir.removeProcess(process);
  } finally {
      workflowService.release (procDefDir);
View Full Code Here

      procDefDir = workflowService.processDefinitionDirectory();
      procDir = workflowService.processDirectory();
      ProcessMgr pmgr = procDefDir
    .processMgr ("jellytests", "insertTest");
      WfProcess process
    = pmgr.createProcess(new DefaultRequester (workflowService));
      process.start();
      assertTrue (stateReached (process, "closed.completed"));
      procDir.removeProcess(process);
  } finally {
      workflowService.release (procDefDir);
View Full Code Here

      procDefDir = workflowService.processDefinitionDirectory();
      procDir = workflowService.processDirectory();
      ProcessMgr pmgr = procDefDir
    .processMgr ("jellytests", "resultsTest");
      WfProcess process
    = pmgr.createProcess(new DefaultRequester (workflowService));
      process.start();
      assertTrue (stateReached (process, "closed.completed"));
      procDir.removeProcess(process);
  } finally {
      workflowService.release (procDefDir);
View Full Code Here

      procDefDir = workflowService.processDefinitionDirectory();
      procDir = workflowService.processDirectory();
      ProcessMgr pmgr = procDefDir
    .processMgr ("jellytests", "dbTest");
      WfProcess process
    = pmgr.createProcess(new DefaultRequester (workflowService));
      process.start();
      assertTrue (stateReached (process, "closed.completed"));
      procDir.removeProcess(process);
  } finally {
      workflowService.release (procDefDir);
View Full Code Here

     */
    public void test1() throws Exception
  ProcessDirectory pd = null;
  try {
      pd = workflowService().processDirectory ();
      WfRequester cont = new DefaultRequester(workflowService());
      Process process = (Process)createProcess
    ("jelly-test", "jelly-test1", cont);
      process.start();
      assertTrue (stateReached (process, "closed.completed"));
      SAXEventBuffer res = (SAXEventBuffer)
View Full Code Here

  }
  pdd.importProcessDefinitions(sb.toString());
  mgr1To5par = pdd.processMgr("loadUnitTests", "1plus5actsPar");
  mgr1To10par = pdd.processMgr("loadUnitTests", "1plus10actsPar");
  mgr1To20par = pdd.processMgr("loadUnitTests", "1plus20actsPar");
  defReq = new DefaultRequester (ws);
    }
View Full Code Here

                    // Not found, create new process
                    MethodInvocationBatch mib = new MethodInvocationBatch();
                    mib.addInvocation
                        (mgr, "createProcess", new String[]
                         {"de.danet.an.workflow.omgcore.WfRequester"},
                         new Object[]{new DefaultRequester(wfs)});
                    mib.addInvocation
                        (-1, "setProcessContext", new String[]
                         {"de.danet.an.workflow.omgcore.ProcessData"},
                         new Object[]{initData}, false);
                    mib.addInvocation(-2, "key", null, null, false);
View Full Code Here

     * Create a new process and then remove its process definition.
     */
    public void createProcessAndRemoveProcessDef() throws Exception
  ProcessDefinitionDirectory pdd = null;
  try {
      WfRequester cont = new DefaultRequester(workflowService());
      Process process = (Process)createProcess("N1", "N2", cont);
      process.start();
      Thread.sleep(5000);

      // get processdata
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.