Package de.danet.an.workflow.api

Examples of de.danet.an.workflow.api.ProcessDefinition.processName()


  }
  ProcessDefinition pd = new DefaultProcessDefinition (sb.toString());
  assertTrue (pd.packageId().equals ("unittests"));
  assertTrue (pd.packageName().equals ("Initial workflow processes"));
  assertTrue (pd.processId().equals ("account_neu"));
  assertTrue (pd.processName().equals ("Account anlegen"));
  assertTrue (pd.processHeader().packageHeader().xpdlVersion().equals ("0.09"));
  assertTrue (pd.processHeader().packageHeader().vendor().equals ("Danet GmbH, GS AN"));
  assertTrue (pd.processHeader().packageHeader().created().equals ("Sat Aug 24 15:12:01 CEST 2002"));
  assertTrue (pd.processHeader().created().equals ("01.09.2001"));
  assertTrue (pd.processHeader().description().equals ("Anlegen eines Accounts"));
View Full Code Here


      for (Iterator i = pdd.processDefinitions().iterator ();
     i.hasNext ();) {
    ProcessDefinition pd = (ProcessDefinition)i.next ();
    if (pd.packageId().equals ("jelly-test")) {
        pdd.removeProcessDefinition
      (pd.packageName(), pd.processName());
    }
      }
  } finally {
      workflowService().release (pdd);
  }
View Full Code Here

      for (Iterator i = pdd.processDefinitions().iterator ();
     i.hasNext ();) {
    ProcessDefinition pd = (ProcessDefinition)i.next ();
    if (pd.packageId().equals ("jelly-test")) {
        pdd.removeProcessDefinition
      (pd.packageName(), pd.processName());
    }
      }
  } finally {
      workflowService().release (pdd);
  }
View Full Code Here

      wfs = wfsf.newWorkflowService();
      pdd = wfs.processDefinitionDirectory();
      for (Iterator i = pdd.processDefinitions().iterator ();
     i.hasNext();) {
    ProcessDefinition pd = (ProcessDefinition)i.next ();
    out.println(pd.packageName() + "/" + pd.processName() + "<br>");
      }
  } finally {
      if (wfs != null) {
    wfs.release(pdd);
    wfs.release(wfs);
View Full Code Here

  Collection ids = new ArrayList();
  Collection names = new ArrayList();
  for (Iterator pdi = processDefinitions.iterator(); pdi.hasNext();) {
      ProcessDefinition pd = (ProcessDefinition)pdi.next();
      ids.add (pd.processId());
      names.add (pd.processName());
  }
  assertTrue (ids.contains ("jut1"));
  assertTrue (names.contains ("JUnit Test Process 1"));
  assertTrue (ids.contains ("jut2"));
  assertTrue (names.contains ("JUnit Test Process 2"));
View Full Code Here

            ResourceReference procDefRes = new ResourceReference
                (getResourceReference().getBaseUrl(), pd);
            defKey.addTextNode(procDefRes.getResourceKey());
            SOAPElement name = defInfo.addChildElement("Name",
                    Consts.WFXML_PREFIX);
            String val = pd.processName();
            maybeAddTextNode(name, val);
            SOAPElement descr = defInfo.addChildElement("Description",
                    Consts.WFXML_PREFIX);
            val = pd.processHeader().description();
            maybeAddTextNode(descr, val);
View Full Code Here

  assertTrue(procdef.removeClosedProcess());
        assertTrue(procdef.cleanupMode() == ProcessDefinition.REMOVE_AUTOMATIC);
  assertTrue(procdef.packageId().equals("SystemTest_full"));
  assertTrue(procdef.processId().equals("full"));
  assertTrue(procdef.packageName().equals("System Test (procdef)"));
  assertTrue(procdef.processName().equals("PROCESS_COMPLETE_ATTRIBUTES"));
  assertTrue(procdef.mgrName().equals("SystemTest_full/full"));
  ProcessDefinition.ProcessHeaderData hdr = procdef.processHeader();
  assertTrue(hdr.created().equals("Tue Jan 14 14:58:01 CEST 2003"));
  assertTrue(hdr.description().equals("Description for test of all"
              + " accessible attributes"));
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.