Package de.danet.an.workflow.omgcore

Examples of de.danet.an.workflow.omgcore.ProcessData.keySet()


  assertTrue(dae.oldData().isEmpty());
  ProcessData newData = dae.newData();
  assertTrue("Size should be 3, is " + newData.size(),
       newData.size()==3);
  assertTrue(newData.keySet().contains("status"));
  String data = (String)(newData.get("status"));
  assertTrue(data == null);
  assertTrue(newData.keySet().contains("testData"));
  data = (String)(newData.get("testData"));
  assertTrue(data.equals("relevante Process Test Daten"));
View Full Code Here


  assertTrue("Size should be 3, is " + newData.size(),
       newData.size()==3);
  assertTrue(newData.keySet().contains("status"));
  String data = (String)(newData.get("status"));
  assertTrue(data == null);
  assertTrue(newData.keySet().contains("testData"));
  data = (String)(newData.get("testData"));
  assertTrue(data.equals("relevante Process Test Daten"));
  assertTrue(newData.keySet().contains("emailAddress"));
  data = (String)(newData.get("emailAddress"));
  assertTrue(data.equals("account@bank.com"));
View Full Code Here

  String data = (String)(newData.get("status"));
  assertTrue(data == null);
  assertTrue(newData.keySet().contains("testData"));
  data = (String)(newData.get("testData"));
  assertTrue(data.equals("relevante Process Test Daten"));
  assertTrue(newData.keySet().contains("emailAddress"));
  data = (String)(newData.get("emailAddress"));
  assertTrue(data.equals("account@bank.com"));
    }

    /* ********************************************************************* */
 
View Full Code Here

  assertTrue(dae.processMgrVersion().equals("1.42"));

  assertTrue(dae.oldData().isEmpty());
  ProcessData newData = dae.newData();
  assertTrue(newData.size()==1);
  Iterator j = newData.keySet().iterator();
  j.hasNext();
  String key = (String)j.next();
  assertTrue(key.equals("statusOut"));
  String data = (String)(newData.get(key));
  assertTrue(data.equals("Sent to: account@bank.com"));
View Full Code Here

  assertTrue(dae2.processMgrName().equals("ut-procdef-audit/auditTest"));
  assertTrue(dae2.processMgrVersion().equals("1.42"));

  ProcessData oldData = dae2.oldData();
  assertTrue(oldData.size()==1);
  Iterator j = oldData.keySet().iterator();
  j.hasNext();
  String key = (String)j.next();
  assertTrue(key.equals("status"));
  String data = (String)(oldData.get(key));
  assertTrue(data == null);
View Full Code Here

  String data = (String)(oldData.get(key));
  assertTrue(data == null);

  ProcessData newData = dae2.newData();
  assertTrue(newData.size()==1);
  Iterator k = newData.keySet().iterator();
  k.hasNext();
  key = (String)k.next();
  assertTrue(key.equals("status"));
  data = (String)(newData.get(key));
  assertTrue(data.equals("Sent to: account@bank.com"));
View Full Code Here

    break;
      }
  }
        assertTrue (e instanceof ProcessClosedAuditEvent);
        ProcessData res = ((ProcessClosedAuditEvent)e).result();
        assertTrue (res.keySet().size() == 2);
        assertTrue (res.keySet().contains("outVal1"));
        assertTrue (res.keySet().contains("inOutVal1"));
  assertTrue (subs.receive(2500) == null);
  workflowService().release (subs);
    }
View Full Code Here

      }
  }
        assertTrue (e instanceof ProcessClosedAuditEvent);
        ProcessData res = ((ProcessClosedAuditEvent)e).result();
        assertTrue (res.keySet().size() == 2);
        assertTrue (res.keySet().contains("outVal1"));
        assertTrue (res.keySet().contains("inOutVal1"));
  assertTrue (subs.receive(2500) == null);
  workflowService().release (subs);
    }
View Full Code Here

  }
        assertTrue (e instanceof ProcessClosedAuditEvent);
        ProcessData res = ((ProcessClosedAuditEvent)e).result();
        assertTrue (res.keySet().size() == 2);
        assertTrue (res.keySet().contains("outVal1"));
        assertTrue (res.keySet().contains("inOutVal1"));
  assertTrue (subs.receive(2500) == null);
  workflowService().release (subs);
    }

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

            List changes = new ArrayList ();
            Set items = new TreeSet();
            ProcessData oldData = ((WfDataAuditEvent)event).oldData();
            ProcessData newData = ((WfDataAuditEvent)event).newData();
            items.addAll (oldData.keySet());
            items.addAll (newData.keySet());
            for (Iterator i = items.iterator(); i.hasNext(); ) {
                String item = (String)i.next();
                changes.add (new ContextChangeWrapper
                             (item, oldData.get(item), newData.get(item)));
            }
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.