Examples of contextSignature()


Examples of de.danet.an.workflow.api.ProcessMgr.contextSignature()

    public void typeInformation() throws Exception {
  ProcessDefinitionDirectory procDir = null;
  try {
      procDir = workflowService.processDefinitionDirectory();
      ProcessMgr pmgr = procDir.processMgr("typestest", "typestest1");
      ProcessDataInfo pdi = pmgr.contextSignature();
      assertTrue (pdi.get("XMLField") instanceof SAXEventBuffer);
      assertTrue (pdi.get("XMLField2") instanceof ExternalReference);
      assertTrue (((ExternalReference)pdi.get("XMLField2"))
      .location().toString()
      .equals ("http://somwhere.unknown"));
View Full Code Here

Examples of de.danet.an.workflow.api.ProcessMgr.contextSignature()

     */
    public void contextSignature() throws Exception {
  Basic.importProcessDefinitions("/procdef/initialProcesses.xml");
  // create the process
  ProcessMgr processMgr = getProcessMgr("ut-procdef", "jut1");
  ProcessDataInfo procDataInfo = processMgr.contextSignature ();
  assertTrue (procDataInfo.containsKey("packageTestValue1"));
  assertTrue (procDataInfo.get("packageTestValue1")
        .equals (java.lang.String.class));
  assertTrue (procDataInfo.containsKey("packageTestValue2"));
  assertTrue (procDataInfo.get("packageTestValue2")
View Full Code Here

Examples of de.danet.an.workflow.api.ProcessMgr.contextSignature()

     * @exception Exception if an error occurs
     */
    public void testInfo() throws Exception {
  ProcessMgr mgr = defDir.processMgr("SystemTest_full", "full");
  // Test context signature
  ProcessDataInfo ctxInfo = mgr.contextSignature();
  assertTrue(((Class)ctxInfo.get("packageBooleanData"))
       .isAssignableFrom(Boolean.class));
  assertTrue(((Class)ctxInfo.get("testString"))
       .isAssignableFrom(String.class));
  assertTrue(((Class)ctxInfo.get("packageIntegerData"))
View Full Code Here

Examples of de.danet.an.workflow.api.ProcessMgr.contextSignature()

       .isAssignableFrom(String.class));
  assertTrue(((Class)resInfo.get("PARAM-Out-Integer"))
       .isAssignableFrom(Long.class));

  mgr = defDir.processMgr("SystemTest_minimal", "minimal");
  assertTrue(mgr.contextSignature().isEmpty());
  assertTrue(mgr.resultSignature().isEmpty());
    }

    /**
     * Test initial values of process data.
View Full Code Here

Examples of de.danet.an.workflow.api.ProcessMgr.contextSignature()

      invalidData = true;   
  }
  data.put("packageIntegerData", new Integer("5"));

  proc.setProcessContext(data);
  ProcessDataInfo ctxInfo = mgr.contextSignature();
  // Fetch data to check modifications
  data = proc.processContext();
  assertTrue(((Long)data.get("packageIntegerData")).intValue() == 5);

  procDir.removeProcess(proc);
View Full Code Here

Examples of de.danet.an.workflow.api.ProcessMgr.contextSignature()

     */
    public void testInfo() throws Exception {
  Util.logEntry("testInfo");
  ProcessMgr mgr = defDir.processMgr("SystemTest_full", "full");
  // Test context signature
  ProcessDataInfo ctxInfo = mgr.contextSignature();
  assertTrue(((Class)ctxInfo.get("packageBooleanData"))
       .isAssignableFrom(Boolean.class));
  assertTrue(((Class)ctxInfo.get("testString"))
       .isAssignableFrom(String.class));
  assertTrue(((Class)ctxInfo.get("packageIntegerData"))
View Full Code Here

Examples of de.danet.an.workflow.api.ProcessMgr.contextSignature()

       .isAssignableFrom(Long.class));

  mgr = defDir.processMgr("SystemTest_minimal", "minimal");
  //wait to shutdown the processing instance
  Util.sleep(30000);
  assertTrue(mgr.contextSignature().isEmpty());
  assertTrue(mgr.resultSignature().isEmpty());
  Util.logExit("testInfo");
    }

    /**
 
View Full Code Here

Examples of de.danet.an.workflow.api.ProcessMgr.contextSignature()

      invalidData = true;   
  }
  data.put("packageIntegerData", new Integer("5"));

  proc.setProcessContext(data);
  ProcessDataInfo ctxInfo = mgr.contextSignature();
  // Fetch data to check modifications
  data = proc.processContext();
  assertTrue(((Long)data.get("packageIntegerData")).intValue() == 5);

  procDir.removeProcess(proc);
View Full Code Here

Examples of de.danet.an.workflow.domain.DefaultProcessDefinition.contextSignature()

  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"));
  assertTrue (pd.processHeader().priority().equals ("1"));

  assertTrue (pd.contextSignature()
        .get ("packageString") == String.class);
  assertTrue (pd.contextSignature()
        .get ("packageFloat") == Double.class);
  assertTrue (pd.contextSignature()
        .get ("packageInteger") == Long.class);
View Full Code Here

Examples of de.danet.an.workflow.domain.DefaultProcessDefinition.contextSignature()

  assertTrue (pd.processHeader().description().equals ("Anlegen eines Accounts"));
  assertTrue (pd.processHeader().priority().equals ("1"));

  assertTrue (pd.contextSignature()
        .get ("packageString") == String.class);
  assertTrue (pd.contextSignature()
        .get ("packageFloat") == Double.class);
  assertTrue (pd.contextSignature()
        .get ("packageInteger") == Long.class);
  assertTrue (pd.contextSignature()
        .get ("packageDateTime") == Date.class);
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.