Package de.danet.an.workflow.api

Examples of de.danet.an.workflow.api.ProcessDefinitionDirectory.processMgr()


     */
    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;
    }

    public void start() throws Exception {
View Full Code Here


    public void checkWSIFToolInvocation() throws Exception {
  // 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");
View Full Code Here

  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());
   process2.start();
  checkResult(process2);
    }
View Full Code Here

  Collection processDefinitions = pdd.processDefinitions();
  assertTrue (processDefinitions.size() > 0);

  // prepare the creation of process packageID/"P0"
  try {
      processManager = pdd.processMgr(packageID, "P0");
      defReqCache = defaultRequester();
  } catch (Exception e) {
      e.printStackTrace();
  }
    }
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

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

     */
    protected void prepareCreateProcess (String pkgId, String prcId){
  try {
      ProcessDefinitionDirectory pdd
    = workflowService().processDefinitionDirectory();
      processManager = pdd.processMgr(pkgId, prcId);
      defReqCache = defaultRequester();
  } catch (Exception e) {
      e.printStackTrace();
  }
    }
View Full Code Here

            logger.debug("getting process manager for " + packageId + "/"
                    + processId);
        }
        ProcessDefinitionDirectory pdd = getWorkflowService()
                .processDefinitionDirectory();
        ProcessMgr procmgr = pdd.processMgr(packageId, processId);
        return procmgr;
    }

    /**
     * Gets the process definition that that can handle the package id and the
View Full Code Here

            workflowService = wsf.newWorkflowService();
       
            ProcessDefinitionDirectory procDefDir
                = workflowService.processDefinitionDirectory();
            ProcessDirectory procDir = workflowService.processDirectory();
            ProcessMgr pmgr = procDefDir.processMgr
                ("chabacc", "chabacc_test_sender");
            WfProcess process
                = pmgr.createProcess(new DefaultRequester (workflowService));
            chan = workflowService.getChannel(process, "test_channel");
            process.start();
View Full Code Here

            workflowService = wsf.newWorkflowService();
       
            ProcessDefinitionDirectory procDefDir
                = workflowService.processDefinitionDirectory();
            ProcessDirectory procDir = workflowService.processDirectory();
            ProcessMgr pmgr = procDefDir.processMgr
                ("chabacc", "chabacc_test_sender");
            WfProcess process
                = pmgr.createProcess(new DefaultRequester (workflowService));
            chan = workflowService.getChannel(process, "test_channel");
            process.start();
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.