Package de.danet.an.workflow.api

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


      procDefDir = workflowService.processDefinitionDirectory();
      procDir = workflowService.processDirectory();
      ProcessMgr pmgr = procDefDir
    .processMgr ("simpleApplDirTests", "test1");
      WfProcess process
    = pmgr.createProcess(new DefaultRequester (workflowService));
      process.start();
            WfActivity act = null;
      for (Iterator i = process.steps().iterator(); i.hasNext();) {
          act = (WfActivity)i.next ();
          if (act.name().equals("invokeTool")) {
View Full Code Here


    /**
     * Check initialized data.
     */
    public void verifyInit() throws Exception {
  Basic.importProcessDefinitions("/process/testXPDL.xml");
  WfRequester req = new DefaultRequester(workflowService());
  // create the process
  WfProcess process = createProcess("ut-process", "jut1", req);
  ProcessData procData = process.processContext ();
  assertTrue (procData.containsKey("testValue"));
  assertTrue (procData.get("testValue").equals ("42"));
View Full Code Here

 
    /**
     * Check change data.
     */
    public void modifyData() throws Exception {
  WfRequester req = new DefaultRequester(workflowService());
  // create the process
  WfProcess process = createProcess("ut-process", "jut1", req);
  ProcessData pd = new DefaultProcessData ();
  pd.put ("testValue", "modifiedValue");
  process.setProcessContext (pd);
View Full Code Here

    /**
     * Lookup by data.
     */
    public void lookupByData () throws Exception {
  WfRequester req = new DefaultRequester(workflowService());

  // Remove all old processes
  ProcessDefinitionDirectory procDefDir
      = workflowService().processDefinitionDirectory ();
  ProcessDirectory procDir = workflowService().processDirectory ();
View Full Code Here

  }
  pdd.importProcessDefinitions(sb.toString());
    }

    public void runTest () throws Exception {
        WfRequester req = new DefaultRequester (workflowService());
  WfProcess process = createProcess
      ("testByAudit2", "testByAudit_emptySeq_na", req);
  assertTrue(process!=null);
  process.start ();
  assertTrue (stateReached (process, "closed"));
View Full Code Here

             + exc.getMessage());
      System.exit(-1);
  }

  procDir = wfs.processDirectory();
  requester = new DefaultRequester(wfs);
    }
View Full Code Here

             + exc.getMessage());
      System.exit(-1);
  }

  procDir = wfs.processDirectory();
  requester = new DefaultRequester(wfs);
  importProcessDefinition("/process/deadline.xml");
    }
View Full Code Here

    private static WfRequester defReqCache = null;

    protected static WfRequester defaultRequester ()
  throws RemoteException {
  if (defReqCache == null) {
      defReqCache = new DefaultRequester (workflowService());
  }
  return defReqCache;
    }
View Full Code Here

  }
  // Read process definitions
  importProcessDefinition("/procdef/full.xml");
  importProcessDefinition("/procdef/minimal.xml");
  procDir = wfs.processDirectory();
  requester = new DefaultRequester(wfs);
    }
View Full Code Here

    private static WfRequester defReqCache = null;

    protected WfRequester defaultRequester ()
  throws RemoteException {
  if (defReqCache == null) {
      defReqCache = new DefaultRequester (workflowService());
  }
  return defReqCache;
    }
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.