Examples of lookupProcessDefinition()


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

      sb.append(st + "\n");
  }
  pdd.importProcessDefinitions(sb.toString());

  // Lookup for the duplicate process definition
  pd = pdd.lookupProcessDefinition("ut-procdef", "jut2");
  assertTrue (pd!=null);
  String secondDate = pd.processHeader().packageHeader().created();

  // check for different creation dates
  //System.err.println(firstDate);
View Full Code Here

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

      }

      // remove its process definition
      pdd = workflowService().processDefinitionDirectory ();
      ProcessDefinition pd
    = pdd.lookupProcessDefinition("N1", "N2");
      assertTrue(pd!=null);
      pdd.removeProcessDefinition("N1", "N2");
      boolean gotEx = false;
      try {
    pd = pdd.lookupProcessDefinition("N1", "N2");
View Full Code Here

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

    = pdd.lookupProcessDefinition("N1", "N2");
      assertTrue(pd!=null);
      pdd.removeProcessDefinition("N1", "N2");
      boolean gotEx = false;
      try {
    pd = pdd.lookupProcessDefinition("N1", "N2");
      } catch (Exception ex) {
    gotEx = true;
      }
      assertTrue(gotEx);
      // check the process definition of the process
View Full Code Here

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

      ProcessDefinition procDef = process.processDefinition();
      assertTrue(procDef.packageId().equals("N1"));
      assertTrue(procDef.processId().equals("N2"));
      // import the process definition again.
      importProcessDefinitions();
      pd = pdd.lookupProcessDefinition("N1", "N2");
      assertTrue(pd!=null);
  } finally {
      workflowService().release (pdd);
  }
    }
View Full Code Here

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

        ProcessDefinitionDirectory pdd
            = WorkflowServiceFactory.newInstance()
            .newWorkflowService().processDefinitionDirectory();

  ProcessDefinition pd
      = pdd.lookupProcessDefinition("ut-procdef", "jut1");
  assertTrue(pd!=null);
  pdd.removeProcessDefinition("ut-procdef", "jut1");
  boolean gotEx = false;
  try {
      pd = pdd.lookupProcessDefinition("ut-procdef", "jut1");
View Full Code Here

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

      = pdd.lookupProcessDefinition("ut-procdef", "jut1");
  assertTrue(pd!=null);
  pdd.removeProcessDefinition("ut-procdef", "jut1");
  boolean gotEx = false;
  try {
      pd = pdd.lookupProcessDefinition("ut-procdef", "jut1");
  } catch (Exception ex) {
      gotEx = true;
  }
  assertTrue(gotEx);
    }
View Full Code Here

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

        ProcessDefinitionDirectory pdd
            = WorkflowServiceFactory.newInstance()
            .newWorkflowService().processDefinitionDirectory();
 
  ProcessDefinition pd
      = pdd.lookupProcessDefinition("ut-procdef", "jut2");
  assertTrue (pd!=null);
  boolean gotEx = false;
  try {
      pd = pdd.lookupProcessDefinition("ut-procdef", "doesn't exist");
  } catch (Exception ex) {
View Full Code Here

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

  ProcessDefinition pd
      = pdd.lookupProcessDefinition("ut-procdef", "jut2");
  assertTrue (pd!=null);
  boolean gotEx = false;
  try {
      pd = pdd.lookupProcessDefinition("ut-procdef", "doesn't exist");
  } catch (Exception ex) {
      gotEx = true;
  }
  assertTrue(gotEx);
  return pd;
View Full Code Here

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

        ProcessDefinitionDirectory pdd
            = WorkflowServiceFactory.newInstance()
            .newWorkflowService().processDefinitionDirectory();
 
  ProcessDefinition pd
      = pdd.lookupProcessDefinition("ut-procdef", "called1");
  assertTrue (pd != null);
  assertTrue (pd.processHeader().created().equals ("07.04.2003"));
  assertTrue (pd.processHeader().description().equals ("Was tun"));
  ProcessDataInfo pdi = pd.resultSignature();
  assertTrue (pdi.keySet().size () == 1);
View Full Code Here

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

    public void redefinableHeader() throws Exception {
  importProcessDefinitions("/procdef/testRedefinableHeader.xml");
        ProcessDefinitionDirectory pdd
            = WorkflowServiceFactory.newInstance()
            .newWorkflowService().processDefinitionDirectory();
  ProcessDefinition pd = pdd.lookupProcessDefinition
      ("ut-procdef", "testRedefinableHeader");
  assertTrue(pd.processHeader().author().equals("tester"));
  // Redefinable header of version in process overrides the version
  // defined in the package redefinable header.
  assertTrue(pd.processHeader().version().equals("1.2"));
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.